mirror of
https://github.com/Z3Prover/z3
synced 2025-04-26 02:25:32 +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)
|
||||
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):
|
||||
"""Create an at-most Pseudo-Boolean k constraint.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue