Skip to content

Commit e2e02de

Browse files
committed
Fixing off by one
1 parent c0762b6 commit e2e02de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comp_analyzer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ void CompAnalyzer::calc_blocked(
134134
}
135135

136136
for(uint32_t clid = 1; clid < clid_bin_start; clid++) {
137-
const auto& cl = id_to_cl[clid-1];
137+
const auto& cl = id_to_cl[clid];
138+
assert(cl.size() > 2);
138139

139140
// already satisfied
140141
bool sat_already = false;

0 commit comments

Comments
 (0)