for (sllnode<ModelAction *> * it = act_list->begin();it != NULL;it = it->getNext()) {
ModelAction * act = it->getVal();
+ act->setFuncActRef(NULL); // Remove func_act_ref so that this action can be removed
FuncInst * func_inst = get_inst(act);
void * loc = act->get_location();