@Override
	public void restoreState(Program p, SaveState obj) {
		super.restoreState(p, obj);
		isParameter = obj.getBoolean("_IS_PARAMETER", false);
		ordinalOrfirstUseOffset = obj.getInt("_ORDINAL_FIRST_USE_OFFSET", 0);
		variableAddress = Address.NO_ADDRESS; // corresponds to return parameter
		if (obj.hasValue("_VARIABLE_OFFSET")) {
			long offset = obj.getLong("_VARIABLE_OFFSET", -1L);
			if (offset != -1) {
				variableAddress = AddressSpace.VARIABLE_SPACE.getAddress(offset);
			}
		}
	}
Checks to see if this location is for the indicated variable.
@param var the variable
@return true if this location is for the specified variable.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/VariableLocation.java