Prints out the current program trace.
DEBUG("trying to push NULL action...\n");
}
+void ModelChecker::print_trace(void)
+{
+ std::list<class ModelAction *>::iterator it;
+
+ for (it = action_trace.begin(); it != action_trace.end(); it++) {
+ DBG();
+ (*it)->print();
+ }
+}
+
ModelAction::ModelAction(action_type_t type, memory_order order, void *loc, int value)
{
struct thread *t = thread_current();
void set_current_action(ModelAction *act) { current_action = act; }
void check_current_action(void);
+ void print_trace(void);
private:
int used_thread_id;