if isinstance(other, LocSet):
return max(self.max_conflicts_with(i) for i in other)
else:
+ # now we do the equivalent of:
+ # return sum(other.conflicts(i) for i in self)
reg_len = self.reg_len
if reg_len is None:
return 0
if starts is None:
return 0
# now we do the equivalent of:
- # return sum(other.conflicts(i) for i in self)
- # which is the equivalent of:
# return sum(other.start < start + reg_len
# and start < other.start + other.reg_len
# for start in starts)