mirror of
https://github.com/Z3Prover/z3
synced 2025-06-01 11:51:20 +00:00
add missing functions to serialize optimize benchmarks for Java #1215
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
97e263299d
commit
4b759fd865
1 changed files with 18 additions and 0 deletions
|
@ -298,6 +298,24 @@ public class Optimize extends Z3Object {
|
||||||
return Native.optimizeToString(getContext().nCtx(), getNativeObject());
|
return Native.optimizeToString(getContext().nCtx(), getNativeObject());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse an SMT-LIB2 file with optimization objectives and constraints.
|
||||||
|
* The parsed constraints and objectives are added to the optimization context.
|
||||||
|
*/
|
||||||
|
public void fromFile(string file)
|
||||||
|
{
|
||||||
|
Native.optimizeFromFile(getContext().nCtx(), getNativeObject(), file);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Similar to FromFile. Instead it takes as argument a string.
|
||||||
|
*/
|
||||||
|
public void fromString(string s)
|
||||||
|
{
|
||||||
|
Native.optimizeFromString(getContext().nCtx(), getNativeObject(), s);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Optimize statistics.
|
* Optimize statistics.
|
||||||
**/
|
**/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue