IntRef ref = new IntRef(); ref.key = check.key; state.locals.put(ref, value = new Integer(nextLocal(size)));
if (size == 0) { value = remapHelper(var, 2); if (value == null) { throw new IllegalStateException("Unknown local variable " + var); } } else { IntRef ref = new IntRef(); ref.key = getKey(var, size); state.locals.put(ref, value = new Integer(nextLocal(size))); }
    private int remap(int var, int size) {        if (var < state.firstLocal) {            return var;        }        check.key = (size == 2) ? ~var : var;        Integer value = (Integer)state.locals.get(check);        if (value == null) {            IntRef ref = new IntRef();            ref.key = check.key;            state.locals.put(ref, value = new Integer(nextLocal(size)));        }        return value.intValue();    }