3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 03:45:51 +00:00

include paths

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-08-04 17:08:08 -07:00
parent 1dc8089e6e
commit ec2e9105d3
5 changed files with 33 additions and 43 deletions

View file

@ -111,11 +111,11 @@ namespace polysat {
// unsigned_vector var2mono(unsigned sz, var_t v) { throw default_exception("nyi"); }
// distinguish constraint and justification dependencies
unsigned external_dep2dep(unsigned dep) const { return UINT_MAX - dep; }
unsigned constraint_idx2dep(unsigned idx) const { return idx; }
bool is_constraint_dep(unsigned dep) const { return dep < UINT_MAX / 2; }
unsigned dep2constraint_idx(unsigned dep) const { return dep; }
unsigned dep2external_dep(unsigned dep) const { return UINT_MAX - dep; }
unsigned external_dep2dep(unsigned dep) const { return dep * 2; }
unsigned constraint_idx2dep(unsigned idx) const { return 1 + (idx * 2); }
bool is_constraint_dep(unsigned dep) const { return 0 != (dep & 0x1); }
unsigned dep2constraint_idx(unsigned dep) const { return dep >> 2; }
unsigned dep2external_dep(unsigned dep) const { return dep >> 2; }
public:
linear_solver(solver& s):