3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00

fixed FP Python doctest examples

This commit is contained in:
Christoph M. Wintersteiger 2016-03-04 13:09:42 +00:00
parent 1aeea763ff
commit 8cc3ba5a8b

View file

@ -8524,11 +8524,11 @@ def FPVal(sig, exp=None, fps=None, ctx=None):
>>> v = FPVal(-2.25, FPSort(8, 24)) >>> v = FPVal(-2.25, FPSort(8, 24))
>>> v >>> v
-1.125*(2**1) -1.125*(2**1)
>>> v = FPVal(-0.0, FPSort(8, 24)) >>> FPVal(-0.0, FPSort(8, 24))
-0.0 -0.0
>>> v = FPVal(0.0, FPSort(8, 24)) >>> FPVal(0.0, FPSort(8, 24))
+0.0 +0.0
>>> v = FPVal(+0.0, FPSort(8, 24)) >>> FPVal(+0.0, FPSort(8, 24))
+0.0 +0.0
""" """
ctx = _get_ctx(ctx) ctx = _get_ctx(ctx)
@ -8911,7 +8911,7 @@ def fpNEQ(a, b, ctx=None):
>>> fpNEQ(x, y) >>> fpNEQ(x, y)
Not(fpEQ(x, y)) Not(fpEQ(x, y))
>>> (x != y).sexpr() >>> (x != y).sexpr()
'(not (fp.eq x y))' '(distinct x y)'
""" """
return Not(fpEQ(a, b, ctx)) return Not(fpEQ(a, b, ctx))