*/
bool FuncInst::add_pred(FuncInst * other)
{
- func_inst_list_mt::iterator it;
- for (it = predecessors.begin();it != predecessors.end();it++) {
- FuncInst * inst = *it;
+ mllnode<FuncInst*> * it;
+ for (it = predecessors.begin();it != NULL;it=it->getNext()) {
+ FuncInst * inst = it->getVal();
if (inst == other)
return false;
}
bool FuncInst::add_succ(FuncInst * other)
{
- func_inst_list_mt::iterator it;
- for (it = successors.begin();it != successors.end();it++) {
- FuncInst * inst = *it;
+ mllnode<FuncInst*>* it;
+ for (it = successors.begin();it != NULL;it=it->getNext()) {
+ FuncInst * inst = it->getVal();
if ( inst == other )
return false;
}
{
action_type type = act->get_type();
- func_inst_list_mt::iterator it;
- for (it = collisions.begin();it != collisions.end();it++) {
- FuncInst * inst = *it;
+ mllnode<FuncInst*>* it;
+ for (it = collisions.begin();it != NULL;it=it->getNext()) {
+ FuncInst * inst = it->getVal();
if ( inst->get_type() == type )
return inst;
}