bugfix in debug output: only take item from worklist if it is not empty

This commit is contained in:
Martin Mohr 2015-04-10 16:17:09 +02:00
parent b66903c8de
commit f2a4bba83f
1 changed files with 6 additions and 4 deletions

View File

@ -634,10 +634,12 @@ public class PropagationSystem extends DefaultFixedPointSolver<PointsToSetVariab
if (getFixedPointSystem() instanceof VerboseAction) {
((VerboseAction) getFixedPointSystem()).performVerboseAction();
}
AbstractStatement s = workList.takeStatement();
System.err.println(printRHSInstances(s));
workList.insertStatement(s);
System.err.println("CGNodes: " + cg.getNumberOfNodes());
if (!workList.isEmpty()) {
AbstractStatement s = workList.takeStatement();
System.err.println(printRHSInstances(s));
workList.insertStatement(s);
System.err.println("CGNodes: " + cg.getNumberOfNodes());
}
}