From 270902216bc196e8d7b36fd78fb18f3c0f663f1e Mon Sep 17 00:00:00 2001 From: rtrimana Date: Fri, 18 Sep 2020 11:24:47 -0700 Subject: [PATCH 1/1] Minor changes to input arguments of some methods/functions. --- .../gov/nasa/jpf/listener/DPORStateReducerEfficient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/gov/nasa/jpf/listener/DPORStateReducerEfficient.java b/src/main/gov/nasa/jpf/listener/DPORStateReducerEfficient.java index aa54e5e..1f5408d 100644 --- a/src/main/gov/nasa/jpf/listener/DPORStateReducerEfficient.java +++ b/src/main/gov/nasa/jpf/listener/DPORStateReducerEfficient.java @@ -373,7 +373,7 @@ public class DPORStateReducerEfficient extends ListenerAdapter { private int choice; // Predecessor choice private Execution execution; // Predecessor execution - public Predecessor(int predChoice, Execution predExec) { + public Predecessor(Execution predExec, int predChoice) { choice = predChoice; execution = predExec; } @@ -675,7 +675,7 @@ public class DPORStateReducerEfficient extends ListenerAdapter { public void recordPredecessor(Execution execution, int choice) { if (!isRecordedPredecessor(execution, choice)) { - predecessors.add(new Predecessor(choice, execution)); + predecessors.add(new Predecessor(execution, choice)); } } @@ -1248,15 +1248,15 @@ public class DPORStateReducerEfficient extends ListenerAdapter { private void updateBacktrackSetRecursive(Execution execution, int currentChoice, Execution conflictExecution, int conflictChoice, ReadWriteSet currRWSet, HashSet visited) { + TransitionEvent currTrans = execution.getExecutionTrace().get(currentChoice); // TODO: THIS IS THE ACCESS SUMMARY TransitionEvent confTrans = conflictExecution.getExecutionTrace().get(conflictChoice); // Record this transition into rGraph summary - currRWSet = rGraph.recordTransitionSummary(confTrans.getStateId(), confTrans, currRWSet); + currRWSet = rGraph.recordTransitionSummary(currTrans.getStateId(), confTrans, currRWSet); // Halt when we have found the first read/write conflicts for all memory locations if (currRWSet.isEmpty()) { return; } - TransitionEvent currTrans = execution.getExecutionTrace().get(currentChoice); if (visited.contains(currTrans)) { return; } -- 2.34.1