3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00

doctest fix

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-09-03 19:07:02 -07:00
parent 7b9b714979
commit 09386e43e3
3 changed files with 53 additions and 54 deletions

View file

@ -3640,7 +3640,7 @@ def BitVecs(names, bv, ctx=None):
>>> Product(x, y, z)
1*x*y*z
>>> simplify(Product(x, y, z))
x*y*z
z*x*y
"""
ctx = _get_ctx(ctx)
if isinstance(names, str):
@ -7647,7 +7647,7 @@ def simplify(a, *arguments, **keywords):
>>> simplify(x + 1 + y + x + 1)
2 + 2*x + y
>>> simplify((x + 1)*(y + 1), som=True)
1 + x + y + x*y
1 + x + y + y*x
>>> simplify(Distinct(x, y, 1), blast_distinct=True)
And(Not(x == y), Not(x == 1), Not(y == 1))
>>> simplify(And(x == 0, y == 1), elim_and=True)