We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ec3917d + 7c5b772 commit 4b18694Copy full SHA for 4b18694
2 files changed
src/cdomain/value/cdomains/int/intervalSetDomain.ml
@@ -167,7 +167,7 @@ struct
167
let res = List.map (norm_interval ~suppress_ovwarn ~cast ik) xs in
168
let intvs = List.concat_map fst res in
169
let underflow = List.exists (fun (_,{underflow; _}) -> underflow) res in
170
- let overflow = List.exists (fun (_,{overflow; _}) -> underflow) res in
+ let overflow = List.exists (fun (_,{overflow; _}) -> overflow) res in
171
(canonize intvs,{underflow; overflow})
172
173
let binary_op_with_norm op (ik:ikind) (x: t) (y: t) : t*overflow_info = match x, y with
tests/regression/67-interval-sets-two/59-issue-1798.c
@@ -0,0 +1,6 @@
1
+// PARAM: --enable ana.int.interval_set
2
+int count_int_int;
3
+void main() {
4
+ for (;; count_int_int++) // WARN (overflow)
5
+ ;
6
+}
0 commit comments