reset memory locations of FuncInsts when new executions start