modified codegen to maybe generate code for gotoifnots