SgFunctionCallExp* fooCallCreate() { SgFunctionSymbol* funcSymb = new SgFunctionSymbol(fooDecl); SgFunctionRefExp* funcRefExp = new SgFunctionRefExp(SgDefaultFile, funcSymb); funcSymb->set_parent(funcRefExp); SgExprListExp* args = new SgExprListExp(SgDefaultFile); SgFunctionCallExp* funcCall = new SgFunctionCallExp(SgDefaultFile, funcRefExp, args); funcRefExp->set_parent(funcCall); args->set_parent(funcCall); return funcCall; }