#include "output.h"
#include "traceanalysis.h"
#include "execution.h"
-#include "history.h"
#include "bugmessage.h"
#include "params.h"
#include "plugins.h"
/* Initialize default scheduler */
params(),
scheduler(new Scheduler()),
- history(new ModelHistory()),
execution(new ModelExecution(this, scheduler)),
execution_number(1),
- curr_thread_num(INITIAL_THREAD_ID),
+ curr_thread_num(MAIN_THREAD_ID),
trace_analyses(),
inspect_plugin(NULL)
{
}
model_print("\n");
+#ifdef PRINT_TRACE
execution->print_summary();
+#endif
}
/**
clear_program_output();
execution_number ++;
- history->set_new_exec_flag();
if (more_executions)
reset_to_initial_state();
execution->collectActions();
}
- curr_thread_num = INITIAL_THREAD_ID;
+ curr_thread_num = MAIN_THREAD_ID;
Thread *thr = getNextThread(old);
if (thr != nullptr) {
scheduler->set_current_thread(thr);
scheduler->set_current_thread(NULL);
/** Reset curr_thread_num to initial value for next execution. */
- curr_thread_num = INITIAL_THREAD_ID;
+ curr_thread_num = MAIN_THREAD_ID;
/** If we have more executions, we won't make it past this call. */
finish_execution(execution_number < params.maxexecutions);