model: document behavior of ModelChecker::initialize_curr_action
authorBrian Norris <banorris@uci.edu>
Tue, 18 Sep 2012 23:35:46 +0000 (16:35 -0700)
committerBrian Norris <banorris@uci.edu>
Tue, 18 Sep 2012 23:48:02 +0000 (16:48 -0700)
model.cc

index a13ccb7d0b7114aaa1a20adbeca5d1eb6927dbc9..ebadbb6c8a86482a97999871bba1f0dae6da6a61 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -333,6 +333,17 @@ bool ModelChecker::process_write(ModelAction *curr)
        return updated_mod_order || updated_promises;
 }
 
+/**
+ * Initialize the current action by performing one or more of the following
+ * actions, as appropriate: merging RMWR and RMWC/RMW actions, stepping forward
+ * in the NodeStack, manipulating backtracking sets, allocating and
+ * initializing clock vectors, and computing the promises to fulfill.
+ *
+ * @param curr The current action, as passed from the user context; may be
+ * freed/invalidated after the execution of this function
+ * @return The current action, as processed by the ModelChecker. Is only the
+ * same as the parameter @a curr if this is a newly-explored action.
+ */
 ModelAction * ModelChecker::initialize_curr_action(ModelAction *curr)
 {
        ModelAction *newcurr;