added code gen for if and do while stmts