package goblint-cil
Module FormatcilSource
An Interpreter for constructing CIL constructs
Constructs an expression based on the program and the list of arguments. * Each argument consists of a name followed by the actual data. This * argument will be placed instead of occurrences of "%v:name" in the pattern * (where the "v" is dependent on the type of the data). The parsing of the * string is memoized. * Only the first expression is parsed.
Constructs an lval based on the program and the list of arguments. * Only the first lvalue is parsed. * The parsing of the string is memoized.
Constructs a type based on the program and the list of arguments. * Only the first type is parsed. * The parsing of the string is memoized.
Constructs an instruction based on the program and the list of arguments. * Only the first instruction is parsed. * The parsing of the string is memoized.
val cStmt :
string ->
(string -> Cil.typ -> Cil.varinfo) ->
Cil.location ->
(string * Cil.formatArg) list ->
Cil.stmtval cStmts :
string ->
(string -> Cil.typ -> Cil.varinfo) ->
Cil.location ->
(string * Cil.formatArg) list ->
Cil.stmt listConstructs a list of statements
Deconstructs an expression based on the program. Produces an optional * list of format arguments. The parsing of the string is memoized.
Deconstructs an lval based on the program. Produces an optional * list of format arguments. The parsing of the string is memoized.
Deconstructs a type based on the program. Produces an optional list of * format arguments. The parsing of the string is memoized.
Deconstructs an instruction based on the program. Produces an optional * list of format arguments. The parsing of the string is memoized.
Just a testing function