rootNode = new TreeNode(NULL);
currentNode = rootNode;
- action_trace = new std::list<class ModelAction *>();
+ action_trace = new action_list_t();
}
ModelChecker::~ModelChecker()
default:
break;
}
- std::list<class ModelAction *>::reverse_iterator rit;
+ action_list_t::reverse_iterator rit;
for (rit = action_trace->rbegin(); rit != action_trace->rend(); rit++) {
ModelAction *prev = *rit;
if (prev->get_location() != loc)
void ModelChecker::print_trace(void)
{
- std::list<class ModelAction *>::iterator it;
+ action_list_t::iterator it;
printf("\n");
printf("---------------------------------------------------------------------\n");
ATOMIC_WRITE
} action_type_t;
+typedef std::list<class ModelAction *> action_list_t;
+
class ModelAction {
public:
ModelAction(action_type_t type, memory_order order, void *loc, int value);
private:
int used_thread_id;
class ModelAction *current_action;
- std::list<class ModelAction *> *action_trace;
+ action_list_t *action_trace;
std::map<thread_id_t, class Thread *> thread_map;
class TreeNode *rootNode, *currentNode;
};