snapshot: fix indentation
[model-checker.git] / main.cc
diff --git a/main.cc b/main.cc
index 967fd39e26955a561a04cf7e485c5d94c31978bc..c5b6028f27536551078a0447d0c57e4d1bb15542 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -1,5 +1,3 @@
-/* -*- Mode: C; indent-tabs-mode: t -*- */
-
 #include "libthreads.h"
 #include "common.h"
 #include "threads.h"
@@ -14,7 +12,7 @@
  */
 static int thread_system_next(void) {
        Thread *curr, *next;
-  
+
        curr = thread_current();
        if (curr) {
                if (curr->get_state() == THREAD_READY) {
@@ -47,24 +45,24 @@ void real_main() {
 
        //Create the singleton snapshotStack object
        snapshotObject = new snapshotStack();
-  
+
        model = new ModelChecker();
-  
+
        if (getcontext(&main_context))
                return;
-  
+
        model->set_system_context(&main_context);
 
        do {
                /* Start user program */
-               model->add_thread(new Thread(&user_thread, &user_main, NULL));
-    
+               model->add_thread(new Thread(&user_thread, (void (*)(void *)) &user_main, NULL));
+
                /* Wait for all threads to complete */
                thread_wait_finish();
        } while (model->next_execution());
-  
+
        delete model;
-  
+
        DEBUG("Exiting\n");
 }
 
@@ -80,5 +78,5 @@ int main(int numargs, char ** args) {
        main_args=args;
 
        /* Let's jump in quickly and start running stuff */
-       initSnapShotLibrary(10000 /*int numbackingpages*/, 1024 /*unsigned int numsnapshots*/, 1024 /*unsigned int nummemoryregions*/ , 1000 /*int numheappages*/, &real_main /*MyFuncPtr entryPoint*/);
+       initSnapShotLibrary(10000, 1024, 1024, 1000, &real_main);
 }