private HashMap<String, Integer> computeLocalVarOffset(VariableTable localVarTable) {
		HashMap<String, Integer> addr = new HashMap<String, Integer>();
		int offset = (allocator.getRegNumber() + 2) * 4; // useless, just to
															// make
		// code logic simple
		int maxReg = 0;
		for (int reg : regMap.values()) {
			if (maxReg < reg) {
				maxReg = reg;
			}
		}
		if (maxReg > allocator.getRegNumber() + 2) {
			offset = maxReg * 4;
		}
		offset = -offset;
		for (Variable var : localVarTable) {
			if (var.isArray()) {
				offset -= var.computeSize();
				addr.put(var.getVarName(), offset);
			}
		}
		return addr;
	}