fix a bug in for
fix while IR and add some arm instructions