found the bug
[model-checker.git] / model.cc
index f320b8fab5ffdcfddc487f294afad91c80cb4022..775b796f167d68ee8394a0e828b0791e122a4937 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -856,7 +856,7 @@ Thread * ModelChecker::check_current_action(ModelAction *curr)
 
        ModelAction *newcurr = initialize_curr_action(curr);
 
-       wake_up_sleeping_actions(curr);
+       wake_up_sleeping_actions(newcurr);
 
        /* Add the action to lists before any other model-checking tasks */
        if (!second_part_of_rmw)