clockvector: add print() method
[c11tester.git] / main.cc
diff --git a/main.cc b/main.cc
index c5b6028f27536551078a0447d0c57e4d1bb15542..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();
 
@@ -53,6 +53,8 @@ void real_main() {
 
        model->set_system_context(&main_context);
 
+       snapshotObject->snapshotStep(0);
+
        do {
                /* Start user program */
                model->add_thread(new Thread(&user_thread, (void (*)(void *)) &user_main, NULL));