Browse Source

Bug fix: Model check freeze in GUI.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@2220 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 15 years ago
parent
commit
bb929f64f3
  1. 4
      prism/src/userinterface/properties/computation/ModelCheckThread.java

4
prism/src/userinterface/properties/computation/ModelCheckThread.java

@ -135,7 +135,7 @@ public class ModelCheckThread extends GUIComputationThread
if (definedPFConstants.getNumValues() > 0)
logln("Property constants: " + definedPFConstants);
// for PTAs via digital clocks, do model translation and build
if (modulesFile.getModelType() == ModelType.PTA
if (model == null && modulesFile.getModelType() == ModelType.PTA
&& prism.getSettings().getString(PrismSettings.PRISM_PTA_METHOD).equals("Digital clocks")) {
DigitalClocks dc = new DigitalClocks(prism);
dc.translate(modulesFile, propertiesFile, propertiesFile.getProperty(i));
@ -159,7 +159,7 @@ public class ModelCheckThread extends GUIComputationThread
} else {
modulesFileToCheck = modulesFile;
}
// No model (PTA) case
// No model (PTA, non-digital-clocks) case
if (model == null) {
if (modulesFile.getModelType() != ModelType.PTA)
throw new PrismException("No model to verify");

Loading…
Cancel
Save