public class Z3Context
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.microsoft.z3.Context |
ctx
Z3 Context.
|
Constructor and Description |
---|
Z3Context()
Build Z3 Context
|
Modifier and Type | Method and Description |
---|---|
Z3Solver.SatResult |
check(com.microsoft.z3.Solver solver,
int timeOutInSeconds)
Assert a SMT Query in the Solver.
|
java.util.Map<java.lang.String,java.lang.String> |
getModel(com.microsoft.z3.Solver solver)
Get a Model after we have a SAT answer.
|
java.lang.String |
getVersion()
Get Version of the Z3 Solver.
|
private java.util.Map<java.lang.String,java.lang.String> |
parseModel(com.microsoft.z3.Model model)
Parse a Model from the model class to a hash map.
|
void |
setRandomSeed(com.microsoft.z3.Solver solver,
int seed)
Set a Random seed for the Solver.
|
public void setRandomSeed(com.microsoft.z3.Solver solver, int seed)
solver
- Z3 Solverseed
- seed valuepublic java.lang.String getVersion()
private java.util.Map<java.lang.String,java.lang.String> parseModel(com.microsoft.z3.Model model)
model
- model returned by the Z3 Solver.public Z3Solver.SatResult check(com.microsoft.z3.Solver solver, int timeOutInSeconds)
solver
- Z3 Solver instancetimeOutInSeconds
- time out in secondspublic java.util.Map<java.lang.String,java.lang.String> getModel(com.microsoft.z3.Solver solver)
solver
- Z3 Solver