Skip to content

Commit 7c5b772

Browse files
committed
Fix copy-paste typo in interval set overflow handling (closes #1798)
1 parent b28f7a6 commit 7c5b772

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/cdomain/value/cdomains/int/intervalSetDomain.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ struct
167167
let res = List.map (norm_interval ~suppress_ovwarn ~cast ik) xs in
168168
let intvs = List.concat_map fst res in
169169
let underflow = List.exists (fun (_,{underflow; _}) -> underflow) res in
170-
let overflow = List.exists (fun (_,{overflow; _}) -> underflow) res in
170+
let overflow = List.exists (fun (_,{overflow; _}) -> overflow) res in
171171
(canonize intvs,{underflow; overflow})
172172

173173
let binary_op_with_norm op (ik:ikind) (x: t) (y: t) : t*overflow_info = match x, y with
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// PARAM: --enable ana.int.interval_set
22
int count_int_int;
33
void main() {
4-
for (;; count_int_int++) // TODO WARN (overflow)
4+
for (;; count_int_int++) // WARN (overflow)
55
;
66
}

0 commit comments

Comments
 (0)