rename snapshotStack -> SnapshotStack
authorBrian Norris <banorris@uci.edu>
Sat, 26 May 2012 01:28:49 +0000 (18:28 -0700)
committerBrian Norris <banorris@uci.edu>
Sat, 26 May 2012 01:28:49 +0000 (18:28 -0700)
main.cc
snapshot-interface.cc
snapshot-interface.h

diff --git a/main.cc b/main.cc
index 8db63e6d1733d1204e9855575c49d06dafc6d9a6..958a4451594569b3e77d72e942ba200ad52891b3 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -43,8 +43,8 @@ void real_main() {
        thrd_t user_thread;
        ucontext_t main_context;
 
-       //Create the singleton snapshotStack object
-       snapshotObject = new snapshotStack();
+       //Create the singleton SnapshotStack object
+       snapshotObject = new SnapshotStack();
 
        model = new ModelChecker();
 
index b0df836221df41cd309636ae50c6149d3de4ef81..26e0067e729351b7bc5193d13ba759dd1e309803 100644 (file)
@@ -18,7 +18,7 @@
 
 typedef std::basic_string<char, std::char_traits<char>, MyAlloc<char> > MyString;
 
-snapshotStack * snapshotObject;
+SnapshotStack * snapshotObject;
 
 /*This looks like it might leak memory...  Subramanian should fix this. */
 
@@ -79,17 +79,17 @@ void SnapshotGlobalSegments(){
        }
 }
 
-//class definition of snapshotStack.....
+//class definition of SnapshotStack.....
 //declaration of constructor....
-snapshotStack::snapshotStack(){
+SnapshotStack::SnapshotStack(){
        SnapshotGlobalSegments();
        stack=NULL;
 }
        
-snapshotStack::~snapshotStack(){
+SnapshotStack::~SnapshotStack(){
 }
        
-int snapshotStack::backTrackBeforeStep(int seqindex) {
+int SnapshotStack::backTrackBeforeStep(int seqindex) {
        while(true) {
                if (stack->index<=seqindex) {
                        //have right entry
@@ -102,7 +102,7 @@ int snapshotStack::backTrackBeforeStep(int seqindex) {
        }
 }
 
-void snapshotStack::snapshotStep(int seqindex) {
+void SnapshotStack::snapshotStep(int seqindex) {
        struct stackEntry *tmp=(struct stackEntry *)MYMALLOC(sizeof(struct stackEntry));
        tmp->next=stack;
        tmp->index=seqindex;
index 0fab53b1ea9fb5ffa0514955bb743f9972acb77e..9a2b9cc18e3b3eaaa4e18434078126d2dbb1ccf6 100644 (file)
@@ -12,11 +12,11 @@ struct stackEntry {
   int index;
 };
 
-class snapshotStack {
+class SnapshotStack {
  public:
   MEMALLOC
-  snapshotStack( );
-  ~snapshotStack();
+  SnapshotStack( );
+  ~SnapshotStack();
   int backTrackBeforeStep(int seq_index);
   void snapshotStep(int seq_index);
 
@@ -27,5 +27,5 @@ class snapshotStack {
 /* Not sure what it even means to have more than one snapshot object,
    so let's just make a global reference to it.*/
 
-extern snapshotStack * snapshotObject;
+extern SnapshotStack * snapshotObject;
 #endif