package goblint
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=999272bfbd3b9b96fcd58987b237ac6e9fa6d92ef935cc89f1ea2b4205185141
sha512=f3bf6ab71cf8c258d3290da4bf9f6fe42d7c671822e0efeb0fc50afdff078ab15e352237e5c1db31c5aa3a9d430691268ed2e5e00da10f2615835f672f91683d
doc/goblint.lib/Cilfacade/index.html
Module Cilfacade
Helpful functions for dealing with Cil.
module GU = Goblintutilval current_statement : Cil.stmt refval current_file : Cil.file refval showtemps : bool refclass allBBVisitor : object ... endval visitors : (string * (Cil.fundec -> Cil.cilVisitor)) list refclass addConstructors : Cil.fundec list -> object ... endval getFuns : Cil.file -> startfunsCil.typeOf, etc reimplemented to raise sensible exceptions instead of printing all errors directly...
type typeOfError = | RealImag_NonNumerical(*unexpected non-numerical type for argument to __real__/__imag__
*)| StartOf_NonArray(*typeOf: StartOf on a non-array
*)| Mem_NonPointer of Cil.exp(*typeOfLval: Mem on a non-pointer (exp)
*)| Index_NonArray(*typeOffset: Index on a non-array
*)| Field_NonCompound(*typeOffset: Field on a non-compound
*)
exception TypeOfError of typeOfErrorval stringLiteralType : Cil.typ refval locs : (int, unit) Hashtbl.tHashSet of line numbers
class countFnVisitor : object ... endVisitor to count locs appearing inside a fundec.
val fnvis : countFnVisitorCount the number of unique locations appearing in fundec fn. Uses Cilfacade.locs hashtable for intermediate computations
module StmtH : sig ... endval pseudo_return_to_fun : Cil.fundec StmtH.tval find_stmt_fundec : StmtH.key -> Cil.fundecFind fundec which the stmt is in.
module VarinfoH : sig ... endval varinfo_fundecs : Cil.fundec VarinfoH.t Lazy.tval find_varinfo_fundec : VarinfoH.key -> Cil.fundecFind fundec by the function's varinfo (has the function name and type).
module StringH : sig ... endval find_name_fundec : StringH.key -> Cil.fundecFind fundec by the function's name.
val varinfo_roles : varinfo_role VarinfoH.t Lazy.tval find_varinfo_role : VarinfoH.key -> varinfo_roleFind the role of the varinfo.
val is_varinfo_formal : VarinfoH.key -> boolval find_scope_fundec : VarinfoH.key -> Cil.fundec optionFind the scope of the varinfo. If varinfo is a local or a formal argument of fundec, then returns Some fundec. If varinfo is a global or a function itself, then returns None.
val original_names : string VarinfoH.t Lazy.tval find_original_name : VarinfoH.key -> string optionFind the original name (in input source code) of the varinfo. If it was renamed by CIL, then returns the original name before renaming. If it wasn't renamed by CIL, then returns the same name. If it was inserted by CIL (or Goblint), then returns None.