mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
Merge pull request #936 from jamesbornholt/z3py-with
z3py: With tactical should not try to use context as a parameter
This commit is contained in:
commit
7272d3f480
|
@ -7204,7 +7204,7 @@ def With(t, *args, **keys):
|
||||||
>>> t((x + 1)*(y + 2) == 0)
|
>>> t((x + 1)*(y + 2) == 0)
|
||||||
[[2*x + y + x*y == -2]]
|
[[2*x + y + x*y == -2]]
|
||||||
"""
|
"""
|
||||||
ctx = keys.get('ctx', None)
|
ctx = keys.pop('ctx', None)
|
||||||
t = _to_tactic(t, ctx)
|
t = _to_tactic(t, ctx)
|
||||||
p = args2params(args, keys, t.ctx)
|
p = args2params(args, keys, t.ctx)
|
||||||
return Tactic(Z3_tactic_using_params(t.ctx.ref(), t.tactic, p.params), t.ctx)
|
return Tactic(Z3_tactic_using_params(t.ctx.ref(), t.tactic, p.params), t.ctx)
|
||||||
|
|
Loading…
Reference in a new issue