3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-12 22:20:54 +00:00

expose internal API for set_phase

This commit is contained in:
Nikolaj Bjorner 2021-02-02 14:29:06 -08:00
parent 8f577d3943
commit fb1509d011
13 changed files with 24 additions and 2 deletions

View file

@ -294,6 +294,13 @@ public:
}
}
void set_phase(expr* e) override {
bool is_not = m.is_not(e, e);
sat::bool_var b = m_map.to_bool_var(e);
if (b != sat::null_bool_var)
m_solver.set_phase(b, is_not);
}
unsigned get_scope_level() const override {
return m_num_scopes;
}