From 12d9d07e58b349c05f2c44dc7a8a0a667aa9c63d Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 16 Dec 2022 02:05:48 -0800 Subject: [PATCH] rearrange comments to make more sense --- src/bigint_presentation_code/compiler_ir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2