mirror of
https://github.com/Z3Prover/z3
synced 2025-05-01 04:45:52 +00:00
Merge pull request #1687 from Vtec234/master
Fix FPNumRef.significand_as_long
This commit is contained in:
commit
d2c937a989
1 changed files with 4 additions and 1 deletions
|
@ -8858,7 +8858,10 @@ class FPNumRef(FPRef):
|
|||
1.25
|
||||
"""
|
||||
def significand_as_long(self):
|
||||
return Z3_fpa_get_numeral_significand_uint64(self.ctx.ref(), self.as_ast())
|
||||
ptr = (ctypes.c_ulonglong * 1)()
|
||||
if not Z3_fpa_get_numeral_significand_uint64(self.ctx.ref(), self.as_ast(), ptr):
|
||||
raise Z3Exception("error retrieving the significand of a numeral.")
|
||||
return ptr[0]
|
||||
|
||||
"""The significand of the numeral as a bit-vector expression.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue