protected boolean connects(R r1, R r2) {
		return compare(getPreviousOrSame(getLower(r1)), getUpper(r2)) <= 0 ||
			compare(getPreviousOrSame(getLower(r2)), getUpper(r1)) <= 0;
	}
Check if the two ranges are connected

<p>
The ranges are connected if they intersect, or if their bounds abut.

@param r1 the first range
@param r2 the second range
@return true if connected
Ghidra/Framework/Emulation/src/main/java/generic/RangeMapSetter.java