package goblint-cil
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=b8f33cf1e3d455ff3db273e8e6e1609fe30873f12b5b68a5173311dc6a0a0bd7
sha512=c279eacac4f766e19b158b1b7c10f92bcaca924634fde4bd88e8f806f33c8f2b401852ab68d2fe5a2ef3f5fe2912f7009104ff99dd43086c91fde5ca7047ad6b
doc/goblint-cil.liveness/Liveness/Usedef/index.html
Module Liveness.UsedefSource
module E = GoblintCil.Errormsgcompute use/def information
val getUseDefFunctionRef :
(GoblintCil.exp ->
GoblintCil.exp list ->
VS.t * VS.t * GoblintCil.exp list)
refSet 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.
Say if you want to consider a variable use. This applies to variable reads only; see also considerVariableAddrOfAsUse
Say if you want to consider a variable def
Say if you want to consider a variable addrof as a use
Say if you want to consider a variable addrof as a def
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.
Compute the use information for an expression (accumulate to an existing set)
Compute the use/def information for an instruction
val computeUseDefStmtKind :
?acc_used:VS.t ->
?acc_defs:VS.t ->
GoblintCil.stmtkind ->
VS.t * VS.tCompute the use/def information for a statement kind. Do not descend into the nested blocks.