little optimizations motivated by profiling...
[model-checker.git] / main.cc
diff --git a/main.cc b/main.cc
index a1115721436706f2007d23cd7fc4c4733f09c28f..b6e41523c0084d3699c5083c7c5ce4ca3cbb94e6 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -22,7 +22,7 @@ static void param_defaults(struct model_params *params)
        params->bound = 0;
        params->maxfuturevalues = 0;
        params->expireslop = 10;
-       params->verbose = 0;
+       params->verbose = !!DBG_ENABLED();
 }
 
 static void print_usage(struct model_params *params)
@@ -123,11 +123,10 @@ static void model_main()
        //Initialize race detector
        initRaceDetector();
 
-       //Create the singleton SnapshotStack object
-       snapshotObject = new SnapshotStack();
+       snapshot_stack_init();
 
        model = new ModelChecker(params);
-       snapshotObject->snapshotStep(0);
+       snapshot_record(0);
        model->run();
        delete model;
 
@@ -147,5 +146,5 @@ int main(int argc, char **argv)
        redirect_output();
 
        /* Let's jump in quickly and start running stuff */
-       initSnapshotLibrary(10000, 1024, 1024, 4000, &model_main);
+       snapshot_system_init(10000, 1024, 1024, 4000, &model_main);
 }