mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
python regression
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e0a44894cf
commit
b4290d4b3d
|
@ -1631,7 +1631,7 @@ def Xor(a, b, ctx=None):
|
|||
>>> Xor(p, q)
|
||||
Xor(p, q)
|
||||
>>> simplify(Xor(p, q))
|
||||
q == Not(p)
|
||||
Not(p) == q
|
||||
"""
|
||||
ctx = _get_ctx(_ctx_from_ast_arg_list([a, b], ctx))
|
||||
s = BoolSort(ctx)
|
||||
|
@ -8159,7 +8159,7 @@ def simplify(a, *arguments, **keywords):
|
|||
>>> simplify((x + 1)*(y + 1), som=True)
|
||||
1 + x + y + x*y
|
||||
>>> simplify(Distinct(x, y, 1), blast_distinct=True)
|
||||
And(Not(x == y), Not(x == 1), Not(1 == y))
|
||||
And(Not(x == y), Not(x == 1), Not(y == 1))
|
||||
>>> simplify(And(x == 0, y == 1), elim_and=True)
|
||||
Not(Or(Not(x == 0), Not(y == 1)))
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue