mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
separate pre-processing, add callback parameter to push/pop in python API
This commit is contained in:
parent
f43d9d00d4
commit
c996a66da0
16 changed files with 287 additions and 200 deletions
|
@ -11237,12 +11237,16 @@ def ensure_prop_closures():
|
|||
_prop_closures = PropClosures()
|
||||
|
||||
|
||||
def user_prop_push(ctx):
|
||||
_prop_closures.get(ctx).push()
|
||||
def user_prop_push(ctx, cb):
|
||||
prop = _prop_closures.get(ctx)
|
||||
prop.cb = cb
|
||||
prop.push()
|
||||
|
||||
|
||||
def user_prop_pop(ctx, num_scopes):
|
||||
_prop_closures.get(ctx).pop(num_scopes)
|
||||
def user_prop_pop(ctx, cb, num_scopes):
|
||||
prop = _prop_closures.get(ctx)
|
||||
prop.cb = cb
|
||||
pop(num_scopes)
|
||||
|
||||
|
||||
def user_prop_fresh(id, ctx):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue