Skip to content

Commit 8a267b9

Browse files
author
nmacedo
committed
better hangling of next segment
1 parent 6e8e2de commit 8a267b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/kodkod/engine/TemporalPardinusSolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ public Solution nextS(int state, int delta, Set<Relation> change) {
343343
if (delta < 1)
344344
throw new IllegalArgumentException("Cannot iterate boundless with s != 0, breaks completeness.");
345345

346-
if (!hasNext())
347-
throw new NoSuchElementException();
346+
if (translation == null)
347+
return Solution.triviallyUnsatisfiable(new Statistics(0, 0, 0, 0, 0), null);
348348
try {
349349
Set<Relation> fix = new HashSet<Relation>();
350350
if (iteration_stage == 0) // only fix config once

0 commit comments

Comments
 (0)