3
0
Fork 0
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:
Nikolaj Bjorner 2018-06-17 09:39:57 -07:00 committed by GitHub
commit d2c937a989
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.