In preparation of many executions, I establish a counting variable
'num_executions'.
/* Initialize default scheduler */
this->scheduler = new Scheduler();
+ num_executions = 0;
this->current_action = NULL;
this->exploring = NULL;
this->nextThread = THREAD_ID_T_NONE;
printf("\n");
printf("---------------------------------------------------------------------\n");
+ printf("Number of executions: %d\n", num_executions);
printf("Total nodes created: %d\n\n", TreeNode::getTotalNodes());
scheduler->print();
bool next_execution();
private:
int used_thread_id;
+ int num_executions;
ModelAction *get_last_conflict(ModelAction *act);
void set_backtracking(ModelAction *act);