mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
Merge pull request #519 from 4tXJ7f/patch-1
[Z3py] Fix error in FPRef.__neg__()
This commit is contained in:
commit
3755035d65
|
@ -8178,8 +8178,13 @@ class FPRef(ExprRef):
|
|||
return self
|
||||
|
||||
def __neg__(self):
|
||||
"""Create the Z3 expression `-self`."""
|
||||
return FPRef(fpNeg(self))
|
||||
"""Create the Z3 expression `-self`.
|
||||
|
||||
>>> x = FP('x', Float32())
|
||||
>>> -x
|
||||
-x
|
||||
"""
|
||||
return fpNeg(self)
|
||||
|
||||
def __div__(self, other):
|
||||
"""Create the Z3 expression `self / other`.
|
||||
|
|
Loading…
Reference in a new issue