package goblint-cil
Install
Dune Dependency
Authors
Maintainers
Sources
md5=796ad26120b5c6b939a57e8623088aef
sha512=01a58ac6d928afead21c8a97af5865715114cd0562234d1d4aef9e4ac5d91415d040a15927c52cb896dbb39a53e915627f498ebe2d026a548c3ff597682041b2
doc/goblint-cil.syntacticsearch/FuncFunction/class-fun_find_returns/index.html
Class FuncFunction.fun_find_returns
Source
method vvdec : Cil.varinfo -> Cil.varinfo Cil.visitAction
Invoked for each variable declaration. The subtrees to be traversed * are those corresponding to the type and attributes of the variable. * Note that variable declarations are all the GVar
, GVarDecl
, GFun
, * all the varinfo
in formals of function types, and the formals and * locals for function definitions. This means that the list of formals * in a function definition will be traversed twice, once as part of the * function type and second as part of the formals in a function * definition.
method vvrbl : Cil.varinfo -> Cil.varinfo Cil.visitAction
Invoked on each variable use. Here only the SkipChildren
and * ChangeTo
actions make sense since there are no subtrees. Note that * the type and attributes of the variable are not traversed for a * variable use
method vexpr : Cil.exp -> Cil.exp Cil.visitAction
Invoked on each expression occurrence. The subtrees are the * subexpressions, the types (for a Cast
or SizeOf
expression) or the * variable use.
method vlval : Cil.lval -> Cil.lval Cil.visitAction
Invoked on each lvalue occurrence
method voffs : Cil.offset -> Cil.offset Cil.visitAction
Invoked on each offset occurrence that is *not* as part * of an initializer list specification, i.e. in an lval or * recursively inside an offset.
method vinitoffs : Cil.offset -> Cil.offset Cil.visitAction
Invoked on each offset appearing in the list of a * CompoundInit initializer.
method vinst : Cil.instr -> Cil.instr list Cil.visitAction
Invoked on each instruction occurrence. The ChangeTo
action can * replace this instruction with a list of instructions
method vstmt : Cil.stmt -> Cil.stmt Cil.visitAction
Control-flow statement. The default DoChildren
action does not * create a new statement when the components change. Instead it updates * the contents of the original statement. This is done to preserve the * sharing with Goto
and Case
statements that point to the original * statement. If you use the ChangeTo
action then you should take care * of preserving that sharing yourself.
method vblock : Cil.block -> Cil.block Cil.visitAction
Block.
method vfunc : Cil.fundec -> Cil.fundec Cil.visitAction
Function definition. Replaced in place.
method vglob : Cil.global -> Cil.global list Cil.visitAction
Global (vars, types, etc.)
method vinit : Cil.varinfo ->
Cil.offset ->
Cil.init ->
Cil.init Cil.visitAction
Initializers for static, * const and global variables, * pass the variable where this * occurs, and the offset
method vtype : Cil.typ -> Cil.typ Cil.visitAction
Use of some type. Note * that for structure/union * and enumeration types the * definition of the * composite type is not * visited. Use vglob
to * visit it.
method vattr : Cil.attribute -> Cil.attribute list Cil.visitAction
Attribute. Each attribute can be replaced by a list
method vattrparam : Cil.attrparam -> Cil.attrparam Cil.visitAction
Attribute parameters.
method queueInstr : Cil.instr list -> unit
Add here instructions while visiting to queue them to precede the * current statement or instruction being processed. Use this method only * when you are visiting an expression that is inside a function body, or * a statement, because otherwise there will no place for the visitor to * place your instructions.
method unqueueInstr : unit -> Cil.instr list
Gets the queue of instructions and resets the queue. This is done * automatically for you when you visit statements.