it is ok to assume asm mode in the minifier (as it was in the past), which would simplify stuff like this. You don't need to calculate local vars, instead just check if it is in asmInfo.vars or params.