added tentative output for tree2asm
added state transition for function
added function enter/exit process