mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
commit
d15f8c52a0
|
@ -298,6 +298,24 @@ public class Optimize extends Z3Object {
|
|||
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.
|
||||
**/
|
||||
|
|
492
src/smt/mam.cpp
492
src/smt/mam.cpp
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue