We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2466d25 commit da7ab8cCopy full SHA for da7ab8c
src/analyses/base.ml
@@ -960,9 +960,13 @@ struct
960
| bytes -> Int (ID.of_int !Cil.kindOfSizeOf (Z.of_int bytes))
961
| exception SizeOfError _ -> Int (ID.top_of !Cil.kindOfSizeOf) (* TODO: does this ever happen? *)
962
end
963
+ | SizeOfE e -> (* based on [Cil.constFold true] and inlined SizeOf *)
964
+ begin match Cilfacade.bytesSizeOf (Cilfacade.typeOf e) with
965
+ | bytes -> Int (ID.of_int !Cil.kindOfSizeOf (Z.of_int bytes))
966
+ | exception SizeOfError _ -> Int (ID.top_of !Cil.kindOfSizeOf) (* TODO: does this ever happen? *)
967
+ end
968
| Real _
969
| Imag _
- | SizeOfE _
970
| SizeOfStr _
971
| AlignOf _
972
| AlignOfE _
0 commit comments