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

Method getUnsatCore

src/api/java/Optimize.java:271–275  ·  view source on GitHub ↗

The unsat core of the last Check. Remarks: The unsat core is a subset of Assumptions 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

269 * @throws Z3Exception
270 **/
271 public BoolExpr[] getUnsatCore()
272 {
273 ASTVector core = new ASTVector(getContext(), Native.optimizeGetUnsatCore(getContext().nCtx(), getNativeObject()));
274 return core.ToBoolExprArray();
275 }
276
277 /**
278 * Declare an arithmetical maximization objective.

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected