@@ -1027,13 +1027,13 @@ struct
10271027 match e1_val, e2_val with
10281028 | `Int i1 , `Int i2 -> begin
10291029 match ID. to_int i1, ID. to_int i2 with
1030- | Some i1' , Some i2' when i1' = i2' -> true
1030+ | Some i1' , Some i2' when Z. equal i1' i2' -> true
10311031 | _ -> false
10321032 end
10331033 | _ -> false
10341034 end
10351035 | Q. MayBeEqual (e1 , e2 ) -> begin
1036- (* Printf.printf "----------------------> may equality check for %s and %s \n" (ExpDomain.short 20 (`Lifted e1)) (ExpDomain.short 20 (`Lifted e2) ); *)
1036+ (* Printf.printf "----------------------> may equality check for %s and %s \n" (CilType.Exp.show e1) (CilType.Exp.show e2 ); *)
10371037 let e1_val = eval_rv (Analyses. ask_of_ctx ctx) ctx.global ctx.local e1 in
10381038 let e2_val = eval_rv (Analyses. ask_of_ctx ctx) ctx.global ctx.local e2 in
10391039 match e1_val, e2_val with
@@ -1044,24 +1044,24 @@ struct
10441044 let ik= Cil. commonIntKind e1_ik e2_ik in
10451045 if ID. is_bot (ID. meet (ID. cast_to ik i1) (ID. cast_to ik i2)) then
10461046 begin
1047- (* Printf.printf "----------------------> NOPE may equality check for %s and %s \n" (ExpDomain.short 20 (`Lifted e1)) (ExpDomain.short 20 (`Lifted e2) ); *)
1047+ (* Printf.printf "----------------------> NOPE may equality check for %s and %s \n" (CilType.Exp.show e1) (CilType.Exp.show e2 ); *)
10481048 false
10491049 end
10501050 else true
10511051 end
10521052 | _ -> true
10531053 end
10541054 | Q. MayBeLess (e1 , e2 ) -> begin
1055- (* Printf.printf "----------------------> may check for %s < %s \n" (ExpDomain.short 20 (`Lifted e1)) (ExpDomain.short 20 (`Lifted e2) ); *)
1055+ (* Printf.printf "----------------------> may check for %s < %s \n" (CilType.Exp.show e1) (CilType.Exp.show e2 ); *)
10561056 let e1_val = eval_rv (Analyses. ask_of_ctx ctx) ctx.global ctx.local e1 in
10571057 let e2_val = eval_rv (Analyses. ask_of_ctx ctx) ctx.global ctx.local e2 in
10581058 match e1_val, e2_val with
10591059 | `Int i1 , `Int i2 -> begin
10601060 match (ID. minimal i1), (ID. maximal i2) with
10611061 | Some i1' , Some i2' ->
1062- if i1' > = i2' then
1062+ if Z. geq i1' i2' then
10631063 begin
1064- (* Printf.printf "----------------------> NOPE may check for %s < %s \n" (ExpDomain.short 20 (`Lifted e1)) (ExpDomain.short 20 (`Lifted e2) ); *)
1064+ (* Printf.printf "----------------------> NOPE may check for %s < %s \n" (CilType.Exp.show e1) (CilType.Exp.show e2 ); *)
10651065 false
10661066 end
10671067 else true
0 commit comments