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

Method getTrailLevels

src/api/java/Solver.java:402–408  ·  view source on GitHub ↗

Retrieve the decision levels for each literal in the solver's trail after a check call. The trail contains Boolean literals (decisions and propagations) in the order they were assigned. The returned array has one entry per trail literal, indicating at which decision level it was assigned. Us

()

Source from the content-addressed store, hash-verified

400 * @throws Z3Exception
401 **/
402 public int[] getTrailLevels()
403 {
404 ASTVector trailVector = new ASTVector(getContext(), Native.solverGetTrail(getContext().nCtx(), getNativeObject()));
405 int[] levels = new int[trailVector.size()];
406 Native.solverGetLevels(getContext().nCtx(), getNativeObject(), trailVector.getNativeObject(), trailVector.size(), levels);
407 return levels;
408 }
409
410 /**
411 * Return a sequence of cubes (conjunctions of literals) for partitioning the search space.

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.95
getContextMethod · 0.80
nCtxMethod · 0.80
getNativeObjectMethod · 0.80

Tested by

no test coverage detected