function isReturned(segment) {
			const info = segmentInfoMap.get(segment);

			return !info || info.returned;
		}
Checks whether the given segment is terminated by a return statement or not.
@param {CodePathSegment} segment The segment to check.
@returns {boolean} `true` if the segment is terminated by a return statement, or if it's still a part of unreachable.