Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cdomain/value/cdomains/int/intervalSetDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ struct
let res = List.map (norm_interval ~suppress_ovwarn ~cast ik) xs in
let intvs = List.concat_map fst res in
let underflow = List.exists (fun (_,{underflow; _}) -> underflow) res in
let overflow = List.exists (fun (_,{overflow; _}) -> underflow) res in
let overflow = List.exists (fun (_,{overflow; _}) -> overflow) res in
(canonize intvs,{underflow; overflow})

let binary_op_with_norm op (ik:ikind) (x: t) (y: t) : t*overflow_info = match x, y with
Expand Down
6 changes: 6 additions & 0 deletions tests/regression/67-interval-sets-two/59-issue-1798.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// PARAM: --enable ana.int.interval_set
int count_int_int;
void main() {
for (;; count_int_int++) // WARN (overflow)
;
}
Loading