Module to register and invoke callbacks
type proc_callback_args
=
{
get_proc_desc : InferIR.Typ.Procname.t ‑> InferIR.Procdesc.t option; |
get_procs_in_file : InferIR.Typ.Procname.t ‑> InferIR.Typ.Procname.t list; |
tenv : InferIR.Tenv.t; |
summary : InferModules.Summary.t; |
proc_desc : InferIR.Procdesc.t; |
exe_env : InferModules.Exe_env.t; |
}
Type of a procedure callback:
type cluster_callback_args
=
{
procedures : (InferIR.Tenv.t * InferIR.Procdesc.t) list; |
get_proc_desc : InferIR.Typ.Procname.t ‑> InferIR.Procdesc.t option; |
exe_env : InferModules.Exe_env.t; |
}
val register_procedure_callback : ?dynamic_dispatch:bool ‑> InferBase.Language.t ‑> proc_callback_t ‑> unit
register a procedure callback
val register_cluster_callback : InferBase.Language.t ‑> cluster_callback_t ‑> unit
register a cluster callback