MCPcopy Create free account
hub / github.com/Z3Prover/z3 / check

Method check

examples/java/JavaExample.java:194–204  ·  view source on GitHub ↗
(Context ctx, BoolExpr f, Status sat)

Source from the content-addressed store, hash-verified

192 }
193
194 Model check(Context ctx, BoolExpr f, Status sat) throws TestFailedException
195 {
196 Solver s = ctx.mkSolver();
197 s.add(f);
198 if (s.check() != sat)
199 throw new TestFailedException();
200 if (sat == Status.SATISFIABLE)
201 return s.getModel();
202 else
203 return null;
204 }
205
206 void solveTactical(Context ctx, Tactic t, Goal g, Status sat)
207 throws TestFailedException

Callers 8

arrayExample3Method · 0.95
findModelExample1Method · 0.95
findModelExample2Method · 0.95
proveExample1Method · 0.95
bitvectorExample2Method · 0.95
parserExample1Method · 0.95
parserExample2Method · 0.95
floatingPointExample1Method · 0.95

Calls 4

addMethod · 0.95
checkMethod · 0.95
getModelMethod · 0.95
mkSolverMethod · 0.80

Tested by

no test coverage detected