You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.2 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferModules__SymExecBlocks (infer.InferModules__SymExecBlocks)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc %%VERSION%%"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../index.html">infer</a> &#x00BB; InferModules__SymExecBlocks</nav><h1>Module <code>InferModules__SymExecBlocks</code></h1></header><dl><dt class="spec value" id="val-resolve_method_with_block_args_and_analyze"><a href="#val-resolve_method_with_block_args_and_analyze" class="anchor"></a><code><span class="keyword">val</span> resolve_method_with_block_args_and_analyze : <span>caller_summary:<a href="../InferModules/Summary/index.html#type-t">InferModules.Summary.t</a></span> <span>&#45;&gt;</span> <a href="../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> <span><span>(<a href="../../InferIR/InferIR/Exp/index.html#type-t">InferIR.Exp.t</a> * <a href="../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a>)</span> list</span> <span>&#45;&gt;</span> <span><span>(<a href="../InferModules/Summary/index.html#type-t">InferModules.Summary.t</a> * <span><span>(<a href="../../InferIR/InferIR/Exp/index.html#type-t">InferIR.Exp.t</a> * <a href="../../InferIR/InferIR/Typ/index.html#type-t">InferIR.Typ.t</a>)</span> list</span>)</span> option</span></code></dt><dd><p><code>resolve_method_with_block_args_and_analyze caller_pdesc pname args</code> create a copy of the method pname if it is defined and it's called with the correct number of arguments, and some arguments are block closures. The copy is created by adding extra formals for each captured variable, and by swapping the calls to the block arguments to the calls to the concrete blocks. The new procedure is analyzed and the possibly computed summary is returned together with the list of arguments where the closures where swapped by their captured variables.</p></dd></dl></div></body></html>