mirror of
https://github.com/Z3Prover/z3
synced 2025-06-07 06:33:23 +00:00
This commit is contained in:
parent
da154b2f7e
commit
cf08cdff9c
2 changed files with 5 additions and 0 deletions
|
@ -8789,6 +8789,10 @@ def Product(*args):
|
||||||
_args, sz = _to_ast_array(args)
|
_args, sz = _to_ast_array(args)
|
||||||
return ArithRef(Z3_mk_mul(ctx.ref(), sz, _args), ctx)
|
return ArithRef(Z3_mk_mul(ctx.ref(), sz, _args), ctx)
|
||||||
|
|
||||||
|
def Abs(arg):
|
||||||
|
"""Create the absolute value of an arithmetic expression"""
|
||||||
|
return If(arg > 0, arg, -arg)
|
||||||
|
|
||||||
|
|
||||||
def AtMost(*args):
|
def AtMost(*args):
|
||||||
"""Create an at-most Pseudo-Boolean k constraint.
|
"""Create an at-most Pseudo-Boolean k constraint.
|
||||||
|
|
|
@ -1489,6 +1489,7 @@ namespace arith {
|
||||||
case OP_MOD:
|
case OP_MOD:
|
||||||
case OP_REM:
|
case OP_REM:
|
||||||
case OP_DIV:
|
case OP_DIV:
|
||||||
|
case OP_IDIV:
|
||||||
case OP_POWER:
|
case OP_POWER:
|
||||||
case OP_IS_INT:
|
case OP_IS_INT:
|
||||||
case OP_TO_INT:
|
case OP_TO_INT:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue