Browse Source

Multi-objective LTL: Improve reference counting handling

Previously, a derefed JDDNode would be used (not necessarily
problematic, as the reference lived on a another node). Fixes a
warning by DebugJDD.



git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@11376 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Joachim Klein 10 years ago
parent
commit
36ca47cfd8
  1. 6
      prism/src/prism/LTLModelChecker.java

6
prism/src/prism/LTLModelChecker.java

@ -1021,10 +1021,8 @@ public class LTLModelChecker extends PrismComponent
if (candidateStates.equals(ec)) {
//mainLog.println(" ------------- ec is not modified ------------- ");
ecs = new Vector<JDDNode>();
//JDDNode ec1 = ec;
//JDD.Ref(ec);
ecs.add(ec);
//JDD.Deref(candidateStates);
ecs.add(ec.copy());
JDD.Deref(candidateStates);
} else if (candidateStates.equals(JDD.ZERO)) {
//mainLog.println(" ------------- ec is ZERO ------------- ");
JDD.Deref(candidateStates);

Loading…
Cancel
Save