Browse Source

Removed model construction warnings when guard is "false".

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@1831 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 16 years ago
parent
commit
489c7fb2b3
  1. 3
      prism/src/prism/Modules2MTBDD.java

3
prism/src/prism/Modules2MTBDD.java

@ -1447,8 +1447,11 @@ public class Modules2MTBDD
guardDDs[l] = JDD.Apply(JDD.TIMES, guardDDs[l], range);
// check for false guard
if (guardDDs[l].equals(JDD.ZERO)) {
// display a warning (unless guard is "false", in which case was probably intentional
if (!Expression.isFalse(command.getGuard())) {
String s = "\nWarning: Guard for command " + (l+1) + " of module \"" + module.getName() + "\" is never satisfied.\n";
mainLog.print(s);
}
// no point bothering to compute the mtbdds for the update
// if the guard is never satisfied
upDDs[l] = JDD.Constant(0);

Loading…
Cancel
Save