Module IR__SpecializeProcdesc
val with_formals_types : ?has_clang_model:bool -> IR.Procdesc.t -> IR.Procname.t -> (IR.Exp.t * IR.Typ.t) list -> IR.Procdesc.t
Creates a copy of a procedure description and a list of type substitutions of the form (name, typ) where name is a parameter. The resulting procdesc is isomorphic but all the type of the parameters are replaced in the instructions according to the list. The virtual calls are also replaced to match the parameter types
val with_block_args : IR.Procdesc.t -> IR.Procname.t -> IR.Exp.closure option list -> IR.Procdesc.t
Creates a copy of a procedure description given a list of possible closures that are passed as arguments to the method. The resulting procdesc is isomorphic but
- the block parameters are replaces with the closures
- the parameters of the method are extended with parameters for the captured variables in the closures