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

Method getUnits

src/api/java/Solver.java:349–353  ·  view source on GitHub ↗

Retrieve currently inferred units. Remarks: This retrieves the set of literals that the solver has inferred at the current decision level after a check call. @return An array of Boolean expressions representing the inferred units @throws Z3Exception

()

Source from the content-addressed store, hash-verified

347 * @throws Z3Exception
348 **/
349 public BoolExpr[] getUnits()
350 {
351 ASTVector units = new ASTVector(getContext(), Native.solverGetUnits(getContext().nCtx(), getNativeObject()));
352 return units.ToBoolExprArray();
353 }
354
355 /**
356 * Retrieve non-unit atomic formulas in the solver state.

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