mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
fixed FP Python doctest examples
This commit is contained in:
parent
1aeea763ff
commit
8cc3ba5a8b
|
@ -8524,11 +8524,11 @@ def FPVal(sig, exp=None, fps=None, ctx=None):
|
|||
>>> v = FPVal(-2.25, FPSort(8, 24))
|
||||
>>> v
|
||||
-1.125*(2**1)
|
||||
>>> v = FPVal(-0.0, FPSort(8, 24))
|
||||
>>> FPVal(-0.0, FPSort(8, 24))
|
||||
-0.0
|
||||
>>> v = FPVal(0.0, FPSort(8, 24))
|
||||
>>> FPVal(0.0, FPSort(8, 24))
|
||||
+0.0
|
||||
>>> v = FPVal(+0.0, FPSort(8, 24))
|
||||
>>> FPVal(+0.0, FPSort(8, 24))
|
||||
+0.0
|
||||
"""
|
||||
ctx = _get_ctx(ctx)
|
||||
|
@ -8911,7 +8911,7 @@ def fpNEQ(a, b, ctx=None):
|
|||
>>> fpNEQ(x, y)
|
||||
Not(fpEQ(x, y))
|
||||
>>> (x != y).sexpr()
|
||||
'(not (fp.eq x y))'
|
||||
'(distinct x y)'
|
||||
"""
|
||||
return Not(fpEQ(a, b, ctx))
|
||||
|
||||
|
|
Loading…
Reference in a new issue