From: Jacob Lifshay Date: Fri, 16 Dec 2022 10:05:48 +0000 (-0800) Subject: rearrange comments to make more sense X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12d9d07e58b349c05f2c44dc7a8a0a667aa9c63d;p=bigint-presentation-code.git rearrange comments to make more sense --- diff --git a/src/bigint_presentation_code/compiler_ir.py b/src/bigint_presentation_code/compiler_ir.py index 724841c..7dd5aac 100644 --- a/src/bigint_presentation_code/compiler_ir.py +++ b/src/bigint_presentation_code/compiler_ir.py @@ -912,6 +912,8 @@ class LocSet(OFSet[Loc], Interned): 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 @@ -919,8 +921,6 @@ class LocSet(OFSet[Loc], Interned): 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)