Skip to content

Commit

Permalink
fix regressions in python API for user-propagator
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Aug 24, 2020
1 parent e46ad45 commit c722962
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/python/z3/z3.py
Original file line number Diff line number Diff line change
Expand Up @@ -10556,7 +10556,7 @@ def user_prop_fresh(id, ctx):
def user_prop_fixed(ctx, cb, id, value):
prop = _prop_closures.get(ctx)
prop.cb = cb
prop.fixed(id, _to_expr_ref(ctypes.c_void_p(value), prop.ctx))
prop.fixed(id, _to_expr_ref(ctypes.c_void_p(value), prop.ctx()))
prop.cb = None

def user_prop_final(ctx, cb):
Expand Down Expand Up @@ -10684,7 +10684,7 @@ def propagate(self, e, ids, eqs = []):
for i in range(num_eqs):
_lhs[i] = eqs[i][0]
_rhs[i] = eqs[i][1]
Z3_solver_propagate_consequence(self.ctx_ref(), ctypes.c_void_p(self.cb), num_fixed, _ids, num_eqs, _lhs, _rhs, e.ast)
Z3_solver_propagate_consequence(e.ctx.ref(), ctypes.c_void_p(self.cb), num_fixed, _ids, num_eqs, _lhs, _rhs, e.ast)

def conflict(self, ids):
self.propagate(ids, BoolVal(False, self.ctx_ref()))
self.propagate(BoolVal(False, self.ctx()), ids, eqs=[])

0 comments on commit c722962

Please sign in to comment.