main, threads: improve comments regarding thread stepping
[model-checker.git] / model.cc
index 4844c566a0a1ba898e3a94ac126f30a26b7afc01..d2e9f5ebecb16ee52c00aa323a16405061a5668b 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -339,7 +339,7 @@ void ModelChecker::check_current_action(void)
        if (!already_added)
                add_action_to_lists(curr);
 
-       /* Is there a better interface for setting the next thread rather
+       /** @todo Is there a better interface for setting the next thread rather
                 than this field/convoluted approach?  Perhaps like just returning
                 it or something? */
 
@@ -353,7 +353,8 @@ void ModelChecker::check_current_action(void)
        Node *currnode = curr->get_node();
        Node *parnode = currnode->get_parent();
 
-       if (!parnode->backtrack_empty()||!currnode->read_from_empty()||!currnode->future_value_empty()||!currnode->promise_empty())
+       if (!parnode->backtrack_empty() || !currnode->read_from_empty() ||
+                 !currnode->future_value_empty() || !currnode->promise_empty())
                if (!next_backtrack || *curr > *next_backtrack)
                        next_backtrack = curr;