Module IR__SpecializeProcdesc

exception UnmatchedParameters
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