@@ -882,9 +882,9 @@ struct
882882
883883 let domain_of_t _ = TrivialDomain
884884
885- let get ?(checkBounds =true ) (ask : VDQ.t ) (x , (l : idx )) (e , v ) (c : (lval option * int ) option )=
886- if checkBounds then (array_oob_check (module Idx ) (x, l) (e, v) c ask);
887- Base. get ask x (e, v) c
885+ let get ?(checkBounds =true ) (ask : VDQ.t ) (x , (l : idx )) (e , v ) (arrExpDim : (lval option * int ) option )=
886+ if checkBounds then (array_oob_check (module Idx ) (x, l) (e, v) arrExpDim ask);
887+ Base. get ask x (e, v) arrExpDim
888888 let set (ask : VDQ.t ) (x ,l ) i v = Base. set ask x i v, l
889889 let make ?(varAttr =[] ) ?(typAttr =[] ) l x = Base. make l x, l
890890 let length (_ ,l ) = Some l
@@ -926,9 +926,9 @@ struct
926926
927927 let domain_of_t _ = PartitionedDomain
928928
929- let get ?(checkBounds =true ) (ask : VDQ.t ) (x , (l : idx )) (e , v ) (c ) =
930- if checkBounds then (array_oob_check (module Idx ) (x, l) (e, v) c ask);
931- Base. get ask x (e, v) c
929+ let get ?(checkBounds =true ) (ask : VDQ.t ) (x , (l : idx )) (e , v ) (arrExpDim ) =
930+ if checkBounds then (array_oob_check (module Idx ) (x, l) (e, v) arrExpDim ask);
931+ Base. get ask x (e, v) arrExpDim
932932 let set ask (x ,l ) i v = Base. set_with_length (Some l) ask x i v, l
933933 let make ?(varAttr =[] ) ?(typAttr =[] ) l x = Base. make l x, l
934934 let length (_ ,l ) = Some l
@@ -980,9 +980,9 @@ struct
980980
981981 let domain_of_t _ = UnrolledDomain
982982
983- let get ?(checkBounds =true ) (ask : VDQ.t ) (x , (l : idx )) (e , v ) (c )=
984- if checkBounds then (array_oob_check (module Idx ) (x, l) (e, v) c ask);
985- Base. get ask x (e, v) c
983+ let get ?(checkBounds =true ) (ask : VDQ.t ) (x , (l : idx )) (e , v ) (arrExpDim )=
984+ if checkBounds then (array_oob_check (module Idx ) (x, l) (e, v) arrExpDim ask);
985+ Base. get ask x (e, v) arrExpDim
986986 let set (ask : VDQ.t ) (x ,l ) i v = Base. set ask x i v, l
987987 let make ?(varAttr =[] ) ?(typAttr =[] ) l x = Base. make l x, l
988988 let length (_ ,l ) = Some l
@@ -1718,14 +1718,14 @@ struct
17181718 let unop_to_t' opp opt opu = unop_to_t opp (I. unop_to_t opt opu)
17191719
17201720 (* Simply call appropriate function for component that is not None *)
1721- let get ?(checkBounds =true ) a x (e ,i ) c =
1721+ let get ?(checkBounds =true ) a x (e ,i ) arrExpDim =
17221722 unop' (fun x ->
17231723 if e = None then
17241724 let e' = BatOption. map (fun x -> Cil. kintegerCilint (Cilfacade. ptrdiff_ikind () ) x) (Idx. to_int i) in
1725- P. get ~check Bounds a x (e', i) c
1725+ P. get ~check Bounds a x (e', i) arrExpDim
17261726 else
1727- P. get ~check Bounds a x (e, i) c
1728- ) (fun x -> T. get ~check Bounds a x (e,i) c ) (fun x -> U. get ~check Bounds a x (e,i) c ) x
1727+ P. get ~check Bounds a x (e, i) arrExpDim
1728+ ) (fun x -> T. get ~check Bounds a x (e,i) arrExpDim ) (fun x -> U. get ~check Bounds a x (e,i) arrExpDim ) x
17291729 let set (ask :VDQ.t ) x i a = unop_to_t' (fun x -> P. set ask x i a) (fun x -> T. set ask x i a) (fun x -> U. set ask x i a) x
17301730 let length = unop' P. length T. length U. length
17311731 let map f = unop_to_t' (P. map f) (T. map f) (U. map f)
0 commit comments