mirror of
https://github.com/Z3Prover/z3
synced 2025-05-03 22:05:45 +00:00
add abs function to API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b120745078
commit
efc893263a
3 changed files with 10 additions and 0 deletions
|
@ -1023,6 +1023,7 @@ typedef enum {
|
|||
Z3_OP_TO_INT,
|
||||
Z3_OP_IS_INT,
|
||||
Z3_OP_POWER,
|
||||
Z3_OP_ABS,
|
||||
|
||||
// Arrays & Sets
|
||||
Z3_OP_STORE = 0x300,
|
||||
|
@ -2548,6 +2549,13 @@ extern "C" {
|
|||
*/
|
||||
Z3_ast Z3_API Z3_mk_power(Z3_context c, Z3_ast arg1, Z3_ast arg2);
|
||||
|
||||
/**
|
||||
\brief Take the absolute value of an integer
|
||||
|
||||
def_API('Z3_mk_abs', AST, (_in(CONTEXT), _in(AST)))
|
||||
*/
|
||||
Z3_ast Z3_API Z3_mk_abs(Z3_context c, Z3_ast arg);
|
||||
|
||||
/**
|
||||
\brief Create less than.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue