private void addRange(Register reg, ArrayList<RegisterValueRange> ranges, Address start,
			Address end) {
		if (end == null) {
			addRange(reg, ranges, start, start.getAddressSpace().getMaxAddress());
		}
		else if (!start.getAddressSpace().equals(end.getAddressSpace())) {
			addRange(reg, ranges, start, start.getAddressSpace().getMaxAddress());
			addRange(reg, ranges, end.getAddressSpace().getMinAddress(), end);
			return;
		}
		else {
			RegisterValueRange valueRange = getRegisterRange(reg, start, end);
			if (valueRange.getValue() != null) {
				ranges.add(valueRange);
			}
		}
	}
Constructs a new ProgramContextDB object
@param dbHandle the handle to the database.
@param errHandler the error handler
@param language the processor language
@param addrMap the address map.
@param lock the program synchronization lock
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/register/OldProgramContextDB.java