package goblint-cil

  1. Overview
  2. Docs
A front-end for the C programming language that facilitates program analysis and transformation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

goblint-cil-2.1.1.tbz
sha256=015ceed9dd8bf073a643672037c2cf63c03f90a76b8c2e87ae8a27dd5d8ba2f0
sha512=079d379715f5bf5c6f31dc8660c5329470643f6325d4a6e32afc15d27844cb573dfd33c768100440d734670bb59b9abb6fb68d19389609c35d072f1b30302dd6

doc/goblint-cil.liveness/Liveness/Usedef/index.html

Module Liveness.UsedefSource

compute use/def information

Sourcemodule VS : sig ... end
Sourceval getUseDefFunctionRef : (GoblintCil.exp -> GoblintCil.exp list -> VS.t * VS.t * GoblintCil.exp list) ref

Set this global to how you want to handle function calls. This also returns a modified argument list which will be used for the purpose of Use analysis, in case you have a function that needs special treatment of its args.

Sourceval considerVariableUse : (GoblintCil.varinfo -> bool) ref

Say if you want to consider a variable use. This applies to variable reads only; see also considerVariableAddrOfAsUse

Sourceval considerVariableDef : (GoblintCil.varinfo -> bool) ref

Say if you want to consider a variable def

Sourceval considerVariableAddrOfAsUse : (GoblintCil.varinfo -> bool) ref

Say if you want to consider a variable addrof as a use

Sourceval considerVariableAddrOfAsDef : (GoblintCil.varinfo -> bool) ref

Say if you want to consider a variable addrof as a def

Sourceval extraUsesOfExpr : (GoblintCil.exp -> VS.t) ref

Return any vars that should be considered "used" by an expression, other than the ones it refers to directly. Deputy uses this for variables in Cast annotations.

Sourceval onlyNoOffsetsAreDefs : bool ref
Sourceval ignoreSizeof : bool ref

Should we ignore the contents of sizeof and alignof?

Sourceval varUsed : VS.t ref
Sourceval varDefs : VS.t ref
Sourceval useDefVisitor : useDefVisitorClass
Sourceval computeUseExp : ?acc:??? -> GoblintCil.exp -> VS.t

Compute the use information for an expression (accumulate to an existing set)

Sourceval computeUseDefInstr : ?acc_used:??? -> ?acc_defs:??? -> GoblintCil.instr -> VS.t * VS.t

Compute the use/def information for an instruction

Sourceval computeUseDefStmtKind : ?acc_used:??? -> ?acc_defs:??? -> GoblintCil.stmtkind -> VS.t * VS.t

Compute the use/def information for a statement kind. Do not descend into the nested blocks.

Sourceval computeDeepUseDefStmtKind : ?acc_used:??? -> ?acc_defs:??? -> GoblintCil.stmtkind -> VS.t * VS.t
Sourceval computeUseLocalTypes : ?acc_used:??? -> GoblintCil.fundec -> VS.t