Browse Source

Statistical model checking: Print warning if we resolve the nondeterminism

master
Joachim Klein 8 years ago
committed by Dave Parker
parent
commit
8cd3435bbd
  1. 8
      prism/src/prism/Prism.java

8
prism/src/prism/Prism.java

@ -3071,6 +3071,10 @@ public class Prism extends PrismComponent implements PrismSettingsListener
if (definedPFConstants != null && definedPFConstants.getNumValues() > 0) if (definedPFConstants != null && definedPFConstants.getNumValues() > 0)
mainLog.println("Property constants: " + definedPFConstants); mainLog.println("Property constants: " + definedPFConstants);
if (currentModelType.nondeterministic() && currentModelType.removeNondeterminism() != currentModelType) {
mainLog.printWarning("For simulation, nondeterminism in " + currentModelType + " is resolved uniformly (resulting in " + currentModelType.removeNondeterminism() + ").");
}
// Check that property is valid for this model type // Check that property is valid for this model type
expr.checkValid(currentModelType); expr.checkValid(currentModelType);
@ -3115,6 +3119,10 @@ public class Prism extends PrismComponent implements PrismSettingsListener
if (definedPFConstants != null && definedPFConstants.getNumValues() > 0) if (definedPFConstants != null && definedPFConstants.getNumValues() > 0)
mainLog.println("Property constants: " + definedPFConstants); mainLog.println("Property constants: " + definedPFConstants);
if (currentModelType.nondeterministic() && currentModelType.removeNondeterminism() != currentModelType) {
mainLog.printWarning("For simulation, nondeterminism in " + currentModelType + " is resolved uniformly (resulting in " + currentModelType.removeNondeterminism() + ").");
}
// Check that properties are valid for this model type // Check that properties are valid for this model type
for (Expression expr : exprs) for (Expression expr : exprs)
expr.checkValid(currentModelType); expr.checkValid(currentModelType);

Loading…
Cancel
Save