public static AddressSet getCombinedAddresses(Program program1, Program program2) {

		AddressSetView addrSet1 = ProgramMemoryUtil.getAddressSet(program1);
		AddressSetView addrSet2 = ProgramMemoryUtil.getAddressSet(program2);
		AddressSet addrSet2CompatibleWith1 =
			DiffUtility.getCompatibleAddressSet(addrSet2, program1);
		return addrSet1.union(addrSet2CompatibleWith1);
    }
Returns the addresses from combining the address sets in program1 and program2.
 Addresses in the returned address set are derived from program1.
@return the addresses for both program1 and program2.
Ghidra/Features/Base/src/main/java/ghidra/program/util/ProgramMemoryComparator.java