mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 02:45:51 +00:00
enable binary string access to unsigned numerals over API #4568
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4a8533e41f
commit
4b346ef693
3 changed files with 23 additions and 2 deletions
|
@ -3711,6 +3711,10 @@ class BitVecNumRef(BitVecRef):
|
|||
def as_string(self):
|
||||
return Z3_get_numeral_string(self.ctx_ref(), self.as_ast())
|
||||
|
||||
def as_binary_string(self):
|
||||
return Z3_get_numeral_binary_string(self.ctx_ref(), self.as_ast())
|
||||
|
||||
|
||||
def is_bv(a):
|
||||
"""Return `True` if `a` is a Z3 bit-vector expression.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue