fix test002
fix write loadSSA
fix main code generator