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

Method check

src/api/java/Solver.java:235–248  ·  view source on GitHub ↗

Checks whether the assertions in the solver are consistent or not. Remarks: @see #getModel @see #getUnsatCore @see #getProof

(Expr<BoolSort>... assumptions)

Source from the content-addressed store, hash-verified

233 * @see #getProof
234 **/
235 @SafeVarargs
236 public final Status check(Expr<BoolSort>... assumptions)
237 {
238 Z3_lbool r;
239 if (assumptions == null) {
240 r = Z3_lbool.fromInt(Native.solverCheck(getContext().nCtx(),
241 getNativeObject()));
242 } else {
243 r = Z3_lbool.fromInt(Native.solverCheckAssumptions(getContext()
244 .nCtx(), getNativeObject(), assumptions.length, AST
245 .arrayToNative(assumptions)));
246 }
247 return lboolToStatus(r);
248 }
249
250 /**
251 * Checks whether the assertions in the solver are consistent or not.

Callers

nothing calls this directly

Calls 6

lboolToStatusMethod · 0.95
fromIntMethod · 0.80
nCtxMethod · 0.80
getContextMethod · 0.80
getNativeObjectMethod · 0.80
arrayToNativeMethod · 0.80

Tested by

no test coverage detected