Testing the implementation; fixing a bug.
authorrtrimana <rtrimana@uci.edu>
Fri, 11 Sep 2020 18:54:27 +0000 (11:54 -0700)
committerrtrimana <rtrimana@uci.edu>
Fri, 11 Sep 2020 18:54:27 +0000 (11:54 -0700)
src/main/gov/nasa/jpf/listener/DPORStateReducerEfficient.java

index 7512691..5948290 100644 (file)
@@ -444,6 +444,11 @@ public class DPORStateReducerEfficient extends ListenerAdapter {
     }
 
     public HashMap<Integer, SummaryNode> getReachableTransitionsSummary(int stateId) {
+      // Just return an empty map if the state ID is not recorded yet
+      // This means that there is no reachable transition from this state
+      if (!graphSummary.containsKey(stateId)) {
+        return new HashMap<>();
+      }
       return graphSummary.get(stateId);
     }