mirror of
https://github.com/Z3Prover/z3
synced 2026-06-25 01:50:33 +00:00
Fix high and medium priority API coherence issues (Go, Java, C++, TypeScript) (#8983)
* Initial plan * Add missing API functions to Go, Java, C++, and TypeScript bindings Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
b8e15f2121
commit
21bfb115ea
9 changed files with 337 additions and 0 deletions
|
|
@ -1152,6 +1152,27 @@ public class Context implements AutoCloseable {
|
|||
return new BoolExpr(this, Native.mkIsInt(nCtx(), t.getNativeObject()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the absolute value of an arithmetic expression.
|
||||
* Remarks: The argument must have integer or real sort.
|
||||
**/
|
||||
public <R extends ArithSort> ArithExpr<R> mkAbs(Expr<? extends R> arg)
|
||||
{
|
||||
checkContextMatch(arg);
|
||||
return (ArithExpr<R>) Expr.create(this, Native.mkAbs(nCtx(), arg.getNativeObject()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an integer divisibility predicate (t1 divides t2).
|
||||
* Remarks: Both arguments must have integer sort.
|
||||
**/
|
||||
public BoolExpr mkDivides(Expr<IntSort> t1, Expr<IntSort> t2)
|
||||
{
|
||||
checkContextMatch(t1);
|
||||
checkContextMatch(t2);
|
||||
return new BoolExpr(this, Native.mkDivides(nCtx(), t1.getNativeObject(), t2.getNativeObject()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Bitwise negation.
|
||||
* Remarks: The argument must have a bit-vector
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue