FP Expressions.
Floating-point expressions.
Definition at line 8687 of file z3py.py.
def __div__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Create the Z3 expression `self / other`.
>>> x = FP('x', FPSort(8, 24))
>>> y = FP('y', FPSort(8, 24))
>>> x / y
x / y
>>> (x / y).sort()
FPSort(8, 24)
>>> 10 / y
1.25*(2**3) / y
Definition at line 8820 of file z3py.py.
8820 def __div__(self, other):
8821 """Create the Z3 expression `self / other`. 8823 >>> x = FP('x', FPSort(8, 24)) 8824 >>> y = FP('y', FPSort(8, 24)) 8832 [a, b] = _coerce_fp_expr_list([self, other], self.ctx)
8833 return fpDiv(_dflt_rm(), a, b, self.ctx)
def fpDiv(rm, a, b, ctx=None)
def __mul__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
Create the Z3 expression `self * other`.
>>> x = FP('x', FPSort(8, 24))
>>> y = FP('y', FPSort(8, 24))
>>> x * y
x * y
>>> (x * y).sort()
FPSort(8, 24)
>>> 10 * y
1.25*(2**3) * y
Definition at line 8779 of file z3py.py.
8779 def __mul__(self, other):
8780 """Create the Z3 expression `self * other`. 8782 >>> x = FP('x', FPSort(8, 24)) 8783 >>> y = FP('y', FPSort(8, 24)) 8791 [a, b] = _coerce_fp_expr_list([self, other], self.ctx)
8792 return fpMul(_dflt_rm(), a, b, self.ctx)
def fpMul(rm, a, b, ctx=None)
Return the sort of the floating-point expression `self`.
>>> x = FP('1.0', FPSort(8, 24))
>>> x.sort()
FPSort(8, 24)
>>> x.sort() == FPSort(8, 24)
True
Definition at line 8690 of file z3py.py.
Referenced by FPRef.__add__(), FPRef.__div__(), FPRef.__mul__(), and FPRef.__sub__().
8691 """Return the sort of the floating-point expression `self`. 8693 >>> x = FP('1.0', FPSort(8, 24)) 8696 >>> x.sort() == FPSort(8, 24) 8699 return FPSortRef(
Z3_get_sort(self.ctx_ref(), self.as_ast()), self.ctx)
Z3_sort Z3_API Z3_get_sort(Z3_context c, Z3_ast a)
Return the sort of an AST node.