Fixing a bug: VOD graph traversal should continue with the next neighbor when there...
authorrtrimana <rtrimana@uci.edu>
Thu, 9 Apr 2020 23:18:40 +0000 (16:18 -0700)
committerrtrimana <rtrimana@uci.edu>
Thu, 9 Apr 2020 23:18:40 +0000 (16:18 -0700)
src/main/gov/nasa/jpf/listener/DPORStateReducer.java

index 7d5546c..f9d79c5 100644 (file)
@@ -796,8 +796,8 @@ public class DPORStateReducer extends ListenerAdapter {
         if (choice == currEvent) {
           return true;
         }
-        if (visitedChoice.contains(choice)) { // If there is a loop then we don't find it
-          return false;
+        if (visitedChoice.contains(choice)) { // If there is a loop then just continue the exploration
+          continue;
         }
         // Continue searching
         visitedChoice.add(choice);