mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 05:18:44 +00:00
Added missing notes on fpToIEEEBV in Python.
This commit is contained in:
parent
e1303e1eab
commit
f1a1267d4c
|
@ -8480,7 +8480,13 @@ def fpToReal(x):
|
|||
return ArithRef(Z3_mk_fpa_to_real(x.ctx_ref(), x.ast), x.ctx)
|
||||
|
||||
def fpToIEEEBV(x):
|
||||
"""Create a Z3 floating-point conversion expression, from floating-point expression to IEEE bit-vector.
|
||||
"""\brief Conversion of a floating-point term into a bit-vector term in IEEE 754-2008 format.
|
||||
|
||||
The size of the resulting bit-vector is automatically determined.
|
||||
|
||||
Note that IEEE 754-2008 allows multiple different representations of NaN. This conversion
|
||||
knows only one NaN and it will always produce the same bit-vector represenatation of
|
||||
that NaN.
|
||||
|
||||
>>> x = FP('x', FPSort(8, 24))
|
||||
>>> y = fpToIEEEBV(x)
|
||||
|
|
Loading…
Reference in a new issue