3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-08-23 09:39:36 -07:00
parent af389db2b2
commit 666e835e08
4 changed files with 22 additions and 9 deletions

View file

@ -27,7 +27,7 @@ user_propagator::user_propagator(context& ctx):
{}
user_propagator::~user_propagator() {
if (m_api_context) memory::deallocate(m_api_context);
dealloc(m_api_context);
}
void user_propagator::force_push() {
@ -48,7 +48,10 @@ unsigned user_propagator::add_expr(expr* e) {
return v;
}
void user_propagator::propagate(unsigned num_fixed, unsigned const* fixed_ids, unsigned num_eqs, unsigned const* eq_lhs, unsigned const* eq_rhs, expr* conseq) {
void user_propagator::propagate(
unsigned num_fixed, unsigned const* fixed_ids,
unsigned num_eqs, unsigned const* eq_lhs, unsigned const* eq_rhs,
expr* conseq) {
m_prop.push_back(prop_info(num_fixed, fixed_ids, num_eqs, eq_lhs, eq_rhs, expr_ref(conseq, m)));
}

View file

@ -57,7 +57,7 @@ namespace smt {
solver::fixed_eh_t m_fixed_eh;
solver::eq_eh_t m_eq_eh;
solver::eq_eh_t m_diseq_eh;
void* m_api_context { nullptr };
solver::context_obj* m_api_context { nullptr };
unsigned m_qhead { 0 };
vector<prop_info> m_prop;