Browse Source

PrismSTPGAbstractRefine: set initial states from the label file

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@11748 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Joachim Klein 10 years ago
parent
commit
890620fd5f
  1. 7
      prism/src/explicit/PrismSTPGAbstractRefine.java

7
prism/src/explicit/PrismSTPGAbstractRefine.java

@ -28,6 +28,7 @@ package explicit;
import java.util.*;
import common.IterableStateSet;
import prism.ModelType;
import prism.PrismComponent;
import prism.PrismException;
@ -95,7 +96,6 @@ public class PrismSTPGAbstractRefine extends QuantAbstractRefine
throw new PrismNotSupportedException("Cannot handle model type " + modelType);
}
modelConcrete.buildFromPrismExplicit(traFile);
modelConcrete.addInitialState(0);
if (buildEmbeddedDtmc) {
// TODO: do more efficiently (straight from tra file?)
mainLog.println("Concrete " + "CTMC" + ": " + modelConcrete.infoString());
@ -124,6 +124,11 @@ public class PrismSTPGAbstractRefine extends QuantAbstractRefine
if (targetConcrete == null)
throw new PrismException("Unknown label \"" + targetLabel + "\"");
// set the initial states from the set initialConcrete
for (int state : new IterableStateSet(initialConcrete, modelConcrete.getNumStates())) {
modelConcrete.addInitialState(state);
}
// If the 'exact' flag is set, just do model checking on the concrete model (no abstraction)
if (exact) {
doExactModelChecking();

Loading…
Cancel
Save