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

Fixed FPA Python doctest

This commit is contained in:
Christoph M. Wintersteiger 2015-06-02 12:45:55 +01:00
parent d6398c4fdc
commit c7fd74e8ad

View file

@ -8205,12 +8205,13 @@ def FPs(names, fpsort, ctx=None):
>>> x, y, z = FPs('x y z', FPSort(8, 24))
>>> x.sort()
FPSort(8, 24)
>>> x.sbits()
24
>>> x.ebits()
8
>>> simplify(Product(x, y, z))
x*y*z
>>> fpMul(RNE(), fpAdd(RNE(), x, y), z)
fpMul(RNE(), fpAdd(RNE(), x, y), z)
"""
ctx = z3._get_ctx(ctx)
if isinstance(names, str):