mirror of
https://github.com/Z3Prover/z3
synced 2025-05-04 06:15:46 +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
2d358a9a50
commit
4a8533e41f
4 changed files with 41 additions and 1 deletions
|
@ -4677,7 +4677,7 @@ extern "C" {
|
|||
Z3_func_decl Z3_API Z3_to_func_decl(Z3_context c, Z3_ast a);
|
||||
|
||||
/**
|
||||
\brief Return numeral value, as a string of a numeric constant term
|
||||
\brief Return numeral value, as a decimal string of a numeric constant term
|
||||
|
||||
\pre Z3_get_ast_kind(c, a) == Z3_NUMERAL_AST
|
||||
|
||||
|
@ -4685,6 +4685,16 @@ extern "C" {
|
|||
*/
|
||||
Z3_string Z3_API Z3_get_numeral_string(Z3_context c, Z3_ast a);
|
||||
|
||||
/**
|
||||
\brief Return numeral value, as a binary string of a numeric constant term
|
||||
|
||||
\pre Z3_get_ast_kind(c, a) == Z3_NUMERAL_AST
|
||||
\pre a represents a non-negative integer
|
||||
|
||||
def_API('Z3_get_numeral_binary_string', STRING, (_in(CONTEXT), _in(AST)))
|
||||
*/
|
||||
Z3_string Z3_API Z3_get_numeral_binary_string(Z3_context c, Z3_ast a);
|
||||
|
||||
/**
|
||||
\brief Return numeral as a string in decimal notation.
|
||||
The result has at most \c precision decimal places.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue