Browse Source

ExplicitFiles2MTBDD: fix missing JDDNode copy

When using the init label DD for the actual start state, need to copy.
Otherwise the ref count will be too low.


git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@11996 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Joachim Klein 9 years ago
parent
commit
2221cb99d4
  1. 2
      prism/src/prism/ExplicitFiles2MTBDD.java

2
prism/src/prism/ExplicitFiles2MTBDD.java

@ -673,7 +673,7 @@ public class ExplicitFiles2MTBDD
} }
// Otherwise, construct from the labels // Otherwise, construct from the labels
else { else {
start = labelsDD.get("init");
start = labelsDD.get("init").copy();
if (start == null || start.equals(JDD.ZERO)) { if (start == null || start.equals(JDD.ZERO)) {
throw new PrismException("No initial states found in labels file"); throw new PrismException("No initial states found in labels file");
} }

Loading…
Cancel
Save