AddressRange[] getConflicts(AddressSetView addressSet, TaskMonitor monitor)
				throws CancelledException {

			ArrayList<AddressRange> conflicts = new ArrayList<AddressRange>();

			AddressSet tempLatestChanges = getRegisterDifferences(conflictRegisterName,
				conflictOriginalContext, conflictLatestContext, addressSet, monitor);

			AddressSet tempMyChanges = getRegisterDifferences(conflictRegisterName,
				conflictOriginalContext, conflictMyContext, addressSet, monitor);

			AddressSet bothChanged = tempMyChanges.intersect(tempLatestChanges);

			// For each range in my program context change set.
			AddressRangeIterator iter = bothChanged.getAddressRanges();
			while (iter.hasNext()) {
				AddressRange range = iter.next();
				Address rangeMin = range.getMinAddress();
				Address rangeMax = range.getMaxAddress();

				AddressRangeIterator it1 = conflictLatestContext
						.getRegisterValueAddressRanges(conflictLatestReg, rangeMin, rangeMax);
				AddressRangeIterator it2 = conflictMyContext
						.getRegisterValueAddressRanges(conflictMyReg, rangeMin, rangeMax);
				AddressRangeIterator it = new CombinedAddressRangeIterator(it1, it2);

				while (it.hasNext()) {
					AddressRange addrRange = it.next();
					BigInteger lastestValue = conflictLatestContext.getValue(conflictLatestReg,
						addrRange.getMinAddress(), false);
					BigInteger myValue =
						conflictMyContext.getValue(conflictMyReg, addrRange.getMinAddress(), false);
					boolean sameValue =
						(lastestValue == null) ? (myValue == null) : lastestValue.equals(myValue);
					if (!sameValue) {
						conflicts.add(addrRange);
					}

				}
				monitor.checkCancelled();
			}
			return conflicts.toArray(new AddressRange[conflicts.size()]);
		}
Gets the addresses where the named register differs 
between two programs.

@param regName
@param addressSet
@param monitor the task monitor for indicating the progress of
determining differences. This monitor reports the progress to the user.

@return the addresses of code units where the register values differ.
Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/RegisterMergeManager.java