function isAnySegmentReachable(segments) {
	for (const segment of segments) {
		if (segment.reachable) {
			return true;
		}
	}

	return false;
}
Checks all segments in a set and returns true if any are reachable.
@param {Set<CodePathSegment>} segments The segments to check.
@returns {boolean} True if any segment is reachable; false otherwise.