mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 18:15:32 +00:00
parent
dfbd285dae
commit
605dcc40a3
5 changed files with 121 additions and 13 deletions
|
@ -314,6 +314,23 @@ public class Optimize extends Z3Object {
|
|||
Native.optimizeFromString(getContext().nCtx(), getNativeObject(), s);
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of asserted formulas.
|
||||
*/
|
||||
public BoolExpr[] getAssertions()
|
||||
{
|
||||
ASTVector assertions = new ASTVector(getContext(), Native.optimizeGetAssertions(getContext().nCtx(), getNativeObject()));
|
||||
return assertions.ToBoolExprArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* The set of asserted formulas.
|
||||
*/
|
||||
public Expr[] getObjectives()
|
||||
{
|
||||
ASTVector objectives = new ASTVector(getContext(), Native.optimizeGetObjectives(getContext().nCtx(), getNativeObject()));
|
||||
return objectives.ToExprArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Optimize statistics.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue