We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7039a commit b577ec1Copy full SHA for b577ec1
src/cdomain/value/cdomains/int/intervalDomain.ml
@@ -11,7 +11,7 @@ struct
11
12
let top_of ?bitfield ik =
13
match bitfield with
14
- | Some b when b <= Ints_t.to_int (range ik |> snd) ->
+ | Some b when b <= Z.numbits (Size.range ik |> snd) ->
15
let signed_lower_bound = Ints_t.neg @@ Ints_t.shift_left Ints_t.one (b - 1) in
16
let unsigned_upper_bound = Ints_t.sub (Ints_t.shift_left Ints_t.one b) Ints_t.one in
17
if GoblintCil.isSigned ik then
0 commit comments