optimize traverseGeneratedFunctions
update test_emcc