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
4.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Absint__AnalysisCallbacks (infer.Absint__AnalysisCallbacks)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.0"/><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; Absint__AnalysisCallbacks</nav><h1>Module <code>Absint__AnalysisCallbacks</code></h1><nav class="toc"><ul><li><a href="#analysis-api">Analysis API</a></li><li><a href="#callbacks-management">Callbacks management</a></li></ul></nav></header><section><header><h3 id="analysis-api"><a href="#analysis-api" class="anchor"></a>Analysis API</h3></header><dl><dt class="spec value" id="val-get_proc_desc"><a href="#val-get_proc_desc" class="anchor"></a><code><span class="keyword">val</span> get_proc_desc : <a href="../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> <span><a href="../IR/Procdesc/index.html#type-t">IR.Procdesc.t</a> option</span></code></dt><dd><p>set to <code>Ondemand.get_proc_desc</code></p></dd></dl><dl><dt class="spec value" id="val-html_debug_new_node_session"><a href="#val-html_debug_new_node_session" class="anchor"></a><code><span class="keyword">val</span> html_debug_new_node_session : <span>?&#8288;kind:<span>[ `ComputePre <span>| `ExecNode</span> <span>| `ExecNodeNarrowing</span> <span>| `WTO</span> ]</span></span> <span>&#45;&gt;</span> <span>pp_name:<span>(Stdlib.Format.formatter <span>&#45;&gt;</span> unit)</span></span> <span>&#45;&gt;</span> <a href="../IR/Procdesc/Node/index.html#type-t">IR.Procdesc.Node.t</a> <span>&#45;&gt;</span> <span>f:<span>(unit <span>&#45;&gt;</span> <span class="type-var">'a</span>)</span></span> <span>&#45;&gt;</span> <span class="type-var">'a</span></code></dt><dd><p>set to <code>NodePrinter.with_session</code></p></dd></dl><dl><dt class="spec value" id="val-proc_resolve_attributes"><a href="#val-proc_resolve_attributes" class="anchor"></a><code><span class="keyword">val</span> proc_resolve_attributes : <a href="../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> <span><a href="../IR/ProcAttributes/index.html#type-t">IR.ProcAttributes.t</a> option</span></code></dt><dd><p>set to <code>Summary.OnDisk.proc_resolve_attributes</code></p></dd></dl></section><section><header><h3 id="callbacks-management"><a href="#callbacks-management" class="anchor"></a>Callbacks management</h3></header><dl><dt class="spec type" id="type-callbacks"><a href="#type-callbacks" class="anchor"></a><code><span class="keyword">type</span> callbacks</code><code> = </code><code>{</code><table class="record"><tr id="type-callbacks.get_proc_desc_f" class="anchored"><td class="def field"><a href="#type-callbacks.get_proc_desc_f" class="anchor"></a><code>get_proc_desc_f : <a href="../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> <span><a href="../IR/Procdesc/index.html#type-t">IR.Procdesc.t</a> option</span>;</code></td></tr><tr id="type-callbacks.html_debug_new_node_session_f" class="anchored"><td class="def field"><a href="#type-callbacks.html_debug_new_node_session_f" class="anchor"></a><code>html_debug_new_node_session_f : a. <span>?&#8288;kind:<span>[ `ComputePre <span>| `ExecNode</span> <span>| `ExecNodeNarrowing</span> <span>| `WTO</span> ]</span></span> <span>&#45;&gt;</span> <span>pp_name:<span>(Stdlib.Format.formatter <span>&#45;&gt;</span> unit)</span></span> <span>&#45;&gt;</span> <a href="../IR/Procdesc/Node/index.html#type-t">IR.Procdesc.Node.t</a> <span>&#45;&gt;</span> <span>f:<span>(unit <span>&#45;&gt;</span> <span class="type-var">'a</span>)</span></span> <span>&#45;&gt;</span> <span class="type-var">'a</span>;</code></td></tr><tr id="type-callbacks.proc_resolve_attributes_f" class="anchored"><td class="def field"><a href="#type-callbacks.proc_resolve_attributes_f" class="anchor"></a><code>proc_resolve_attributes_f : <a href="../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> <span><a href="../IR/ProcAttributes/index.html#type-t">IR.ProcAttributes.t</a> option</span>;</code></td></tr></table><code>}</code></dt><dd><p>These callbacks are used to break the dependency cycles between some modules. Specifically, we put here functions needed for the analysis that depend on modules higher up the dependency graph than this library but whose type does not.</p></dd></dl><dl><dt class="spec value" id="val-set_callbacks"><a href="#val-set_callbacks" class="anchor"></a><code><span class="keyword">val</span> set_callbacks : <a href="index.html#type-callbacks">callbacks</a> <span>&#45;&gt;</span> unit</code></dt><dd><p>make sure this is called before starting any actual analysis</p></dd></dl></section></div></body></html>