Skip to content
Snippets Groups Projects
Commit c0019775 authored by Valentin Perrelle's avatar Valentin Perrelle
Browse files

[Cil Builder] Add .@[] operator

parent 5a9e141b
No related branches found
No related tags found
No related merge requests found
...@@ -396,6 +396,7 @@ struct ...@@ -396,6 +396,7 @@ struct
let (<<), (>>) = shiftl, shiftr let (<<), (>>) = shiftl, shiftr
let (<), (>), (<=), (>=), (==), (!=) = lt, gt, le, ge, eq, ne let (<), (>), (<=), (>=), (==), (!=) = lt, gt, le, ge, eq, ne
let (--) = range let (--) = range
let (.@[]) = index
(* Convert *) (* Convert *)
......
...@@ -177,7 +177,6 @@ sig ...@@ -177,7 +177,6 @@ sig
val compound : Cil_types.typ -> init list -> [> init] val compound : Cil_types.typ -> init list -> [> init]
val values : (init,'values) typ -> 'values -> init val values : (init,'values) typ -> 'values -> init
(* Redefined operators *) (* Redefined operators *)
val (+) : [< exp] -> [< exp] -> [> exp] val (+) : [< exp] -> [< exp] -> [> exp]
...@@ -194,6 +193,7 @@ sig ...@@ -194,6 +193,7 @@ sig
val (==) : [< exp] -> [< exp] -> [> exp] val (==) : [< exp] -> [< exp] -> [> exp]
val (!=) : [< exp] -> [< exp] -> [> exp] val (!=) : [< exp] -> [< exp] -> [> exp]
val (--) : [< exp] -> [< exp] -> [> exp] val (--) : [< exp] -> [< exp] -> [> exp]
val (.@[]) : [< lval] -> [< exp] -> [> exp] (* C index operator [] *)
(* Export CIL objects from built expressions *) (* Export CIL objects from built expressions *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment