3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-02 20:47:52 +00:00

extract/concat plumbing

This commit is contained in:
Jakob Rath 2023-07-21 10:19:21 +02:00
parent e45807db0c
commit 0b17a14c83
4 changed files with 52 additions and 15 deletions

View file

@ -320,9 +320,6 @@ namespace polysat {
void push_reinit_stack(clause& c);
/** Get variable representing v[hi:lo] */
pvar extract_var(pvar v, unsigned hi, unsigned lo);
void add_clause(clause_ref clause);
void add_clause(clause& clause);
void add_clause(signed_constraint c1, bool is_redundant);
@ -415,11 +412,11 @@ namespace polysat {
*/
pdd var(pvar v) { return m_vars[v]; }
/** Create expression for v[hi:lo] */
pdd extract(pvar v, unsigned hi, unsigned lo);
/** Create expression for p[hi:lo] */
pdd extract(pdd const& p, unsigned hi, unsigned lo);
pdd extract(pdd const& p, unsigned hi, unsigned lo) { return m_constraints.extract(p, hi, lo); }
/** Create expression for concatenation of args */
pdd concat(unsigned num_args, pdd const* args) { return m_constraints.concat(num_args, args); }
/**
* Create terms for unsigned quot-rem