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

Method getProof

src/api/java/Solver.java:315–323  ·  view source on GitHub ↗

The proof of the last Check. Remarks: The result is null if Check was not invoked before, if its results was not UNSATISFIABLE, or if proof production is disabled. @throws Z3Exception

()

Source from the content-addressed store, hash-verified

313 * @throws Z3Exception
314 **/
315 public Expr<?> getProof()
316 {
317 long x = Native.solverGetProof(getContext().nCtx(), getNativeObject());
318 if (x == 0) {
319 return null;
320 } else {
321 return Expr.create(getContext(), x);
322 }
323 }
324
325 /**
326 * The unsat core of the last {@code Check}.

Callers 4

proveMethod · 0.95
proveMethod · 0.95

Calls 4

createMethod · 0.95
nCtxMethod · 0.80
getContextMethod · 0.80
getNativeObjectMethod · 0.80

Tested by

no test coverage detected