StmtSemantics.MakeSourcemodule Compiler : Sigs.CompilerCompilation environment
fold bind
LabelMap.find with refined excpetion.
Chain compiler by introducing fresh nodes between each element of the list. For each consecutive x;y elements, a fresh node n is created, and x is compiled with Next:n and y is compiled with Here:n.
val choice :
?pre:Clabels.c_label ->
?post:Clabels.c_label ->
(env -> 'a -> paths) ->
env ->
'a list ->
pathsChain compiler in parallel, between labels ~pre and ~post, which defaults to resp. here and next. The list of eventualities is exhastive, hence an either assumption is also inserted.
val parallel :
?pre:Clabels.c_label ->
?post:Clabels.c_label ->
(env -> 'a -> Cfg.C.t * paths) ->
env ->
'a list ->
pathsChain compiler in parallel, between labels ~pre and ~post, which defaults to resp. here and next. The list of eventualities is exhastive, hence an either assumption is also inserted.
Each instruction or statement is typically compiled between Here and Next nodes in the flow. Pre, Post and Exit are reserved for the entry and exit points of current function. in flow are used when needed such as Break and Continue and should be added before calling.
val call_kf :
env ->
Frama_c_kernel.Cil_types.lval option ->
Frama_c_kernel.Cil_types.kernel_function ->
Frama_c_kernel.Cil_types.exp list ->
pathsval call :
env ->
Frama_c_kernel.Cil_types.lval option ->
Frama_c_kernel.Cil_types.exp ->
Frama_c_kernel.Cil_types.exp list ->
pathsFull Compilation
Returns the set of all paths for the function, with all proof obligations. The returned node corresponds to the Init label.