package goblint-cil
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=015ceed9dd8bf073a643672037c2cf63c03f90a76b8c2e87ae8a27dd5d8ba2f0
sha512=079d379715f5bf5c6f31dc8660c5329470643f6325d4a6e32afc15d27844cb573dfd33c768100440d734670bb59b9abb6fb68d19389609c35d072f1b30302dd6
doc/goblint-cil/GoblintCil/Feature/index.html
Module GoblintCil.FeatureSource
Extending CIL with external features
type t = {mutable fd_enabled : bool;(*The enable flag. Set to default value
*)fd_name : string;(*This is used to construct an option "--doxxx" and "--dontxxx" that enable and disable the feature
*)fd_description : string;(*A longer name that can be used to document the new options
*)fd_extraopt : (string * Arg.spec * string) list;(*Additional command line options. The description strings should usually start with a space for Arg.align to print the --help nicely.
*)fd_doit : Cil.file -> unit;(*This performs the transformation
*)fd_post_check : bool;(*Whether to perform a CIL consistency checking after this stage, if checking is enabled (--check is passed to cilly). Set this to true if your feature makes any changes for the program.
*)
}Description of a CIL feature.
Check if a given feature is registered.
Find a feature by name. Raise Not_found if the feature is not registered.
Enable a given feature, by name. Raise Errormsg.Error if the feature is not registered.
Check if a given feature is enabled. Return false if the feature is not registered.