You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(* Simply call appropriate function for component that is not None *)
847
847
letgetax (e,i) = unop' (funx ->
848
-
if e =`Topthen
849
-
let e' =BatOption.map_default (funx -> `Lifted (Cil.kintegerCilint (Cilfacade.ptrdiff_ikind ()) x)) (`Top) (Idx.to_int i) in
850
-
P.get a x (e', i)
851
-
else
852
-
P.get a x (e, i)
853
-
) (funx -> T.get a x (e,i)) (funx -> U.get a x (e,i)) x
848
+
if e =`Topthen
849
+
let e' =BatOption.map_default (funx -> `Lifted (Cil.kintegerCilint (Cilfacade.ptrdiff_ikind ()) x)) (`Top) (Idx.to_int i) in
850
+
P.get a x (e', i)
851
+
else
852
+
P.get a x (e, i)
853
+
) (funx -> T.get a x (e,i)) (funx -> U.get a x (e,i)) x
854
854
letset (ask:Q.ask) xia= unop_to_t' (funx -> P.set ask x i a) (funx -> T.set ask x i a) (funx -> U.set ask x i a) x
855
855
let length = unop' P.length T.length U.length
856
856
letmapf= unop_to_t' (P.map f) (T.map f) (U.map f)
857
857
letfold_leftfs= unop' (P.fold_left f s) (T.fold_left f s) (U.fold_left f s)
858
858
letfold_left2fs= binop' (P.fold_left2 f s) (T.fold_left2 f s) (U.fold_left2 f s)
859
859
860
-
letmove_if_affected?(replace_with_const=false) (ask:Q.ask) xvf= unop_to_t' (funx -> P.move_if_affected ~replace_with_const:replace_with_const ask x v f) (funx -> T.move_if_affected ~replace_with_const:replace_with_const ask x v f)
861
-
(funx -> U.move_if_affected ~replace_with_const:replace_with_const ask x v f) x
860
+
letmove_if_affected?(replace_with_const=false) (ask:Q.ask) xvf= unop_to_t' (funx -> P.move_if_affected ~replace_with_const:replace_with_const ask x v f) (funx -> T.move_if_affected ~replace_with_const:replace_with_const ask x v f) (funx -> U.move_if_affected ~replace_with_const:replace_with_const ask x v f) x
862
861
let get_vars_in_e = unop' P.get_vars_in_e T.get_vars_in_e U.get_vars_in_e
863
862
letsmart_joinfg= binop_to_t' (P.smart_join f g) (T.smart_join f g) (U.smart_join f g)
864
863
letsmart_widenfg= binop_to_t' (P.smart_widen f g) (T.smart_widen f g) (U.smart_widen f g)
0 commit comments