3
0
Fork 0
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:
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, 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):