()
| 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() { |
no test coverage detected