Skip to content

Commit

Permalink
fixed overflow handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Krauß committed Dec 19, 2024
1 parent 0cc16dc commit 65237fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdomain/value/cdomains/int/bitfieldDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ module BitfieldFunctor (Ints_t : IntOps.IntOps): SOverflow with type int_t = Int
else
(top_of ik, overflow_info)

let cast_to ?(suppress_ovwarn=false) ?torg ?no_ov t = norm ~suppress_ovwarn t
let cast_to ?(suppress_ovwarn=false) ?torg ?no_ov ik x = norm ~suppress_ovwarn:(suppress_ovwarn || x = top ()) ik x

let join ik b1 b2 = (norm ik @@ (BArith.join b1 b2) ) |> fst

Expand Down

0 comments on commit 65237fd

Please sign in to comment.