|
|
@ -521,6 +521,7 @@ public class Modules2PTA |
|
|
states.add(state); |
|
|
states.add(state); |
|
|
explore.add(state); |
|
|
explore.add(state); |
|
|
src = -1; |
|
|
src = -1; |
|
|
|
|
|
try { |
|
|
while (!explore.isEmpty()) { |
|
|
while (!explore.isEmpty()) { |
|
|
// Pick next state to explore |
|
|
// Pick next state to explore |
|
|
// (they are stored in order found so know index is src+1) |
|
|
// (they are stored in order found so know index is src+1) |
|
|
@ -588,6 +589,11 @@ public class Modules2PTA |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// Catch a (possibly) common source of mem-out errors during explicit-state reachability |
|
|
|
|
|
catch (OutOfMemoryError e) { |
|
|
|
|
|
throw new PrismLangException("Out of memory after exploring " + (src + 1) + " states of module " + module.getName(), module); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Set the invariant for the new module |
|
|
// Set the invariant for the new module |
|
|
moduleNew.setInvariant(invarNew); |
|
|
moduleNew.setInvariant(invarNew); |
|
|
|