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

Method computeNext

src/api/java/Solver.java:434–448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432 private BoolExpr[] nextCube = computeNext();
433
434 private BoolExpr[] computeNext() {
435 ASTVector result = new ASTVector(getContext(),
436 Native.solverCube(getContext().nCtx(), getNativeObject(),
437 cubeVars.getNativeObject(), cutoff));
438 BoolExpr[] cube = result.ToBoolExprArray();
439
440 // Check for termination conditions
441 if (cube.length == 1 && cube[0].isFalse()) {
442 return null; // No more cubes
443 }
444 if (cube.length == 0) {
445 return null; // Search space exhausted
446 }
447 return cube;
448 }
449
450 @Override
451 public boolean hasNext() {

Callers 2

cubeMethod · 0.95
nextMethod · 0.95

Calls 5

ToBoolExprArrayMethod · 0.95
getContextMethod · 0.80
nCtxMethod · 0.80
getNativeObjectMethod · 0.80
isFalseMethod · 0.65

Tested by

no test coverage detected