mirror of
https://github.com/Z3Prover/z3
synced 2025-06-04 05:11:21 +00:00
Fixed FPA Python doctest
This commit is contained in:
parent
d6398c4fdc
commit
c7fd74e8ad
1 changed files with 3 additions and 2 deletions
|
@ -8205,12 +8205,13 @@ def FPs(names, fpsort, ctx=None):
|
||||||
|
|
||||||
>>> x, y, z = FPs('x y z', FPSort(8, 24))
|
>>> x, y, z = FPs('x y z', FPSort(8, 24))
|
||||||
>>> x.sort()
|
>>> x.sort()
|
||||||
|
FPSort(8, 24)
|
||||||
>>> x.sbits()
|
>>> x.sbits()
|
||||||
24
|
24
|
||||||
>>> x.ebits()
|
>>> x.ebits()
|
||||||
8
|
8
|
||||||
>>> simplify(Product(x, y, z))
|
>>> fpMul(RNE(), fpAdd(RNE(), x, y), z)
|
||||||
x*y*z
|
fpMul(RNE(), fpAdd(RNE(), x, y), z)
|
||||||
"""
|
"""
|
||||||
ctx = z3._get_ctx(ctx)
|
ctx = z3._get_ctx(ctx)
|
||||||
if isinstance(names, str):
|
if isinstance(names, str):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue