Skip to content

Commit a81a94c

Browse files
committed
Disable Cil.constFold in base to not miss checks in constant expressions
1 parent 3aabda0 commit a81a94c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/analyses/base.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ struct
821821
in
822822
let r =
823823
(* query functions were no help ... now try with values*)
824-
match constFold true exp with
824+
match exp with (* TODO: support all cases from [constFold true] directly *)
825825
(* Integer literals *)
826826
(* seems like constFold already converts CChr to CInt *)
827827
| Const (CChr x) -> eval_rv ~man st (Const (charConstToInt x)) (* char becomes int, see Cil doc/ISO C 6.4.4.4.10 *)

0 commit comments

Comments
 (0)