add variable and assignstatement in IR