model: rename PendingFutureValue 'act' to 'reader'
authorBrian Norris <banorris@uci.edu>
Thu, 21 Mar 2013 23:01:23 +0000 (16:01 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 21 Mar 2013 23:01:23 +0000 (16:01 -0700)
To make it more clear

model.cc
model.h

index 780633e..f0763cb 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -1104,7 +1104,7 @@ bool ModelChecker::process_write(ModelAction *curr)
        if (promises->empty()) {
                for (unsigned int i = 0; i < futurevalues->size(); i++) {
                        struct PendingFutureValue pfv = (*futurevalues)[i];
-                       add_future_value(pfv.writer, pfv.act);
+                       add_future_value(pfv.writer, pfv.reader);
                }
                futurevalues->clear();
        }
diff --git a/model.h b/model.h
index 07879cd..faa0dfe 100644 (file)
--- a/model.h
+++ b/model.h
@@ -73,9 +73,11 @@ struct execution_stats {
 };
 
 struct PendingFutureValue {
-       PendingFutureValue(ModelAction *writer, ModelAction *act) : writer(writer), act(act) { }
+       PendingFutureValue(ModelAction *writer, ModelAction *reader) :
+               writer(writer), reader(reader)
+       { }
        const ModelAction *writer;
-       ModelAction *act;
+       ModelAction *reader;
 };
 
 /** @brief Records information regarding a single pending release sequence */