package goblint-cil

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.8.0.tar.gz
md5=796ad26120b5c6b939a57e8623088aef
sha512=01a58ac6d928afead21c8a97af5865715114cd0562234d1d4aef9e4ac5d91415d040a15927c52cb896dbb39a53e915627f498ebe2d026a548c3ff597682041b2

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

Module UsedefSource

module E = Errormsg

compute use/def information

Sourcemodule VS : sig ... end
Sourceval getUseDefFunctionRef : (Cil.exp -> Cil.exp list -> VS.t * VS.t * Cil.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 : (Cil.varinfo -> bool) ref

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

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

Say if you want to consider a variable def

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

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

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

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

Sourceval extraUsesOfExpr : (Cil.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:VS.t -> Cil.exp -> VS.t

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

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

Compute the use/def information for an instruction

Sourceval computeUseDefStmtKind : ?acc_used:VS.t -> ?acc_defs:VS.t -> Cil.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:VS.t -> ?acc_defs:VS.t -> Cil.stmtkind -> VS.t * VS.t
Sourceval computeUseLocalTypes : ?acc_used:VS.t -> Cil.fundec -> VS.t
OCaml

Innovation. Community. Security.