mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
Add support for abs (absolute value) function in theory arith (it is part of the SMT-LIB 2.0 standard)
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
490905e320
commit
c4f762028f
6 changed files with 31 additions and 0 deletions
|
@ -51,6 +51,7 @@ enum arith_op_kind {
|
|||
OP_TO_REAL,
|
||||
OP_TO_INT,
|
||||
OP_IS_INT,
|
||||
OP_ABS,
|
||||
OP_POWER,
|
||||
// hyperbolic and trigonometric functions
|
||||
OP_SIN,
|
||||
|
@ -121,6 +122,9 @@ protected:
|
|||
func_decl * m_r_power_decl;
|
||||
func_decl * m_i_power_decl;
|
||||
|
||||
func_decl * m_r_abs_decl;
|
||||
func_decl * m_i_abs_decl;
|
||||
|
||||
func_decl * m_sin_decl;
|
||||
func_decl * m_cos_decl;
|
||||
func_decl * m_tan_decl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue