protected static int compareAddr(Address addr1, Address addr2) {
		if (addr1 == null) {
			if (addr2 == null) {
				return 0;
			}
			return -1;
		}
		else if (addr2 == null) {
			return 1;
		}
		return addr1.compareTo(addr2);
	}
Get the program location for the given program and save state object.

@param program the program for the location
@param saveState the state to restore
@return the restored program location
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/ProgramLocation.java