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

Method getUnsatCore

src/api/java/Solver.java:334–339  ·  view source on GitHub ↗

The unsat core of the last Check. Remarks: The unsat core is a subset of Assertions The result is empty if Check was not invoked before, if its results was not UNSATISFIABLE, or if core production is disabled. @throws Z3Exception

()

Source from the content-addressed store, hash-verified

332 * @throws Z3Exception
333 **/
334 public BoolExpr[] getUnsatCore()
335 {
336
337 ASTVector core = new ASTVector(getContext(), Native.solverGetUnsatCore(getContext().nCtx(), getNativeObject()));
338 return core.ToBoolExprArray();
339 }
340
341 /**
342 * Retrieve currently inferred units.

Calls 4

ToBoolExprArrayMethod · 0.95
getContextMethod · 0.80
nCtxMethod · 0.80
getNativeObjectMethod · 0.80

Tested by

no test coverage detected