Add code generator wrapper, initialize all function in call graph before codegen