3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-07 15:55:46 +00:00

add ability to register expressions during callback

This commit is contained in:
Nikolaj Bjorner 2021-12-07 09:47:05 -08:00
parent 50d50cdb48
commit 1e95fb44d1
9 changed files with 44 additions and 2 deletions

View file

@ -47,6 +47,10 @@ namespace user_solver {
DEBUG_CODE(validate_propagation(););
}
unsigned solver::register_cb(expr* e) {
return add_expr(e);
}
sat::check_result solver::check() {
if (!(bool)m_final_eh)
return sat::check_result::CR_DONE;

View file

@ -111,6 +111,7 @@ namespace user_solver {
bool has_fixed() const { return (bool)m_fixed_eh; }
void propagate_cb(unsigned num_fixed, unsigned const* fixed_ids, unsigned num_eqs, unsigned const* lhs, unsigned const* rhs, expr* conseq) override;
unsigned register_cb(expr* e) override;
void new_fixed_eh(euf::theory_var v, expr* value, unsigned num_lits, sat::literal const* jlits);