mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
Merge pull request #1687 from Vtec234/master
Fix FPNumRef.significand_as_long
This commit is contained in:
commit
d2c937a989
|
@ -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…
Reference in a new issue