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

Method check

examples/java/JavaGenericExample.java:180–191  ·  view source on GitHub ↗
(Context ctx, Expr<BoolSort> f, Status sat)

Source from the content-addressed store, hash-verified

178 }
179
180 @SuppressWarnings("unchecked")
181 Model check(Context ctx, Expr<BoolSort> f, Status sat) throws TestFailedException
182 {
183 Solver s = ctx.mkSolver();
184 s.add(f);
185 if (s.check() != sat)
186 throw new TestFailedException();
187 if (sat == Status.SATISFIABLE)
188 return s.getModel();
189 else
190 return null;
191 }
192
193 void solveTactical(Context ctx, Tactic t, Goal g, Status sat)
194 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