File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/cdomain/value/cdomains/int Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -271,12 +271,12 @@ module BitfieldFunctor (Ints_t : IntOps.IntOps): Bitfield_SOverflow with type in
271271 let underflow = Z. compare (BArith. min old_ik (z,o)) min_ik < 0 in
272272 let overflow = Z. compare max_ik (BArith. max old_ik (z,o)) < 0 in
273273 (underflow, overflow)
274- (* | _ -> (* TODO: what is this case? was it always dead? *)
275- let isPos = z <: Ints_t.zero in
276- let isNeg = o <: Ints_t.zero in
277- let underflow = if GoblintCil.isSigned ik then (((Ints_t.of_bigint min_ik) &: z) <>: Ints_t.zero) && isNeg else isNeg in
278- let overflow = (((!:(Ints_t.of_bigint max_ik)) &: o) <>: Ints_t.zero) && isPos in
279- (underflow, overflow) *)
274+ (* | _ -> (* TODO: what is this case? was it always dead? *)
275+ let isPos = z <: Ints_t.zero in
276+ let isNeg = o <: Ints_t.zero in
277+ let underflow = if GoblintCil.isSigned ik then (((Ints_t.of_bigint min_ik) &: z) <>: Ints_t.zero) && isNeg else isNeg in
278+ let overflow = (((!:(Ints_t.of_bigint max_ik)) &: o) <>: Ints_t.zero) && isPos in
279+ (underflow, overflow) *)
280280 in
281281 let overflow_info = {underflow; overflow} in
282282 (norm ~ov: (underflow || overflow) ik (z,o), overflow_info)
You can’t perform that action at this time.
0 commit comments