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
6.9 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>ProcCfg (infer.Absint.ProcCfg)</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; <a href="../index.html">Absint</a> &#x00BB; ProcCfg</nav><h1>Module <code>Absint.ProcCfg</code></h1></header><aside><p>Control-flow graph for a single procedure (as opposed to cfg.ml, which represents a cfg for a file). Defines useful wrappers that allows us to do tricks like turn a forward cfg to into a backward one, or view a cfg as having a single instruction per block</p></aside><div class="spec module-type" id="module-type-Node"><a href="#module-type-Node" class="anchor"></a><code><span class="keyword">module</span> <span class="keyword">type</span> <a href="module-type-Node/index.html">Node</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module-type" id="module-type-S"><a href="#module-type-S" class="anchor"></a><code><span class="keyword">module</span> <span class="keyword">type</span> <a href="module-type-S/index.html">S</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-DefaultNode"><a href="#module-DefaultNode" class="anchor"></a><code><span class="keyword">module</span> <a href="DefaultNode/index.html">DefaultNode</a> : <a href="index.html#module-type-Node">Node</a> <span class="keyword">with</span> <span class="keyword">type</span> <a href="module-type-Node/index.html#type-t">t</a> = <a href="../../IR/Procdesc/Node/index.html#type-t">IR.Procdesc.Node.t</a> <span class="keyword">and</span> <span class="keyword">type</span> <a href="module-type-Node/index.html#type-id">id</a> = <a href="../../IR/Procdesc/Node/index.html#type-id">IR.Procdesc.Node.id</a></code></div><div class="spec module" id="module-InstrNode"><a href="#module-InstrNode" class="anchor"></a><code><span class="keyword">module</span> <a href="InstrNode/index.html">InstrNode</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec module" id="module-Normal"><a href="#module-Normal" class="anchor"></a><code><span class="keyword">module</span> <a href="Normal/index.html">Normal</a> : <a href="index.html#module-type-S">S</a> <span class="keyword">with</span> <span class="keyword">type</span> <a href="module-type-S/index.html#type-t">t</a> = <a href="../../IR/Procdesc/index.html#type-t">IR.Procdesc.t</a> <span class="keyword">and</span> <span class="keyword">module</span> <a href="module-type-S/Node/index.html">Node</a> = <a href="index.html#module-DefaultNode">DefaultNode</a> <span class="keyword">and</span> <span class="keyword">type</span> <a href="module-type-S/index.html#type-instrs_dir">instrs_dir</a> = <a href="../../IR/Instrs/index.html#type-not_reversed">IR.Instrs.not_reversed</a></code></dt><dd><p>Forward CFG with no exceptional control-flow</p></dd></dl><dl><dt class="spec module" id="module-Exceptional"><a href="#module-Exceptional" class="anchor"></a><code><span class="keyword">module</span> <a href="Exceptional/index.html">Exceptional</a> : <a href="index.html#module-type-S">S</a> <span class="keyword">with</span> <span class="keyword">type</span> <a href="module-type-S/index.html#type-t">t</a> = <a href="../../IR/Procdesc/index.html#type-t">IR.Procdesc.t</a> * <span><span><a href="DefaultNode/index.html#type-t">DefaultNode.t</a> list</span> <a href="../../IR__Procdesc/index.html#module-IdMap">IR.Procdesc.IdMap</a>.t</span> <span class="keyword">and</span> <span class="keyword">module</span> <a href="module-type-S/Node/index.html">Node</a> = <a href="index.html#module-DefaultNode">DefaultNode</a> <span class="keyword">and</span> <span class="keyword">type</span> <a href="module-type-S/index.html#type-instrs_dir">instrs_dir</a> = <a href="../../IR/Instrs/index.html#type-not_reversed">IR.Instrs.not_reversed</a></code></dt><dd><p>Forward CFG with exceptional control-flow</p></dd></dl><dl><dt class="spec module" id="module-Backward"><a href="#module-Backward" class="anchor"></a><code><span class="keyword">module</span> <a href="Backward/index.html">Backward</a> : <span class="keyword">functor</span> (<a href="Backward/argument-1-Base/index.html">Base</a> : <a href="index.html#module-type-S">S</a> <span class="keyword">with</span> <span class="keyword">type</span> <a href="Backward/index.html#type-instrs_dir">instrs_dir</a> = <a href="../../IR/Instrs/index.html#type-not_reversed">IR.Instrs.not_reversed</a>) <span>&#45;&gt;</span> <a href="index.html#module-type-S">S</a> <span class="keyword">with</span> <span class="keyword">type</span> <a href="Backward/index.html#type-t">t</a> = <a href="Backward/argument-1-Base/index.html#type-t">Base.t</a> <span class="keyword">and</span> <span class="keyword">module</span> <a href="Backward/Node/index.html">Node</a> = <a href="Backward/argument-1-Base/index.html#module-Node">Base.Node</a> <span class="keyword">and</span> <span class="keyword">type</span> <a href="Backward/index.html#type-instrs_dir">instrs_dir</a> = <a href="../../IR/Instrs/index.html#type-reversed">IR.Instrs.reversed</a></code></dt><dd><p>Wrapper that reverses the direction of the CFG</p></dd></dl><div class="spec module" id="module-OneInstrPerNode"><a href="#module-OneInstrPerNode" class="anchor"></a><code><span class="keyword">module</span> <a href="OneInstrPerNode/index.html">OneInstrPerNode</a> : <span class="keyword">functor</span> (<a href="OneInstrPerNode/argument-1-Base/index.html">Base</a> : <a href="index.html#module-type-S">S</a> <span class="keyword">with</span> <span class="keyword">module</span> <a href="OneInstrPerNode/Node/index.html">Node</a> = <a href="index.html#module-DefaultNode">DefaultNode</a>) <span>&#45;&gt;</span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-NormalOneInstrPerNode"><a href="#module-NormalOneInstrPerNode" class="anchor"></a><code><span class="keyword">module</span> <a href="NormalOneInstrPerNode/index.html">NormalOneInstrPerNode</a> : <span class="keyword">module</span> <span class="keyword">type</span> <span class="keyword">of</span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-MakeOcamlGraph"><a href="#module-MakeOcamlGraph" class="anchor"></a><code><span class="keyword">module</span> <a href="MakeOcamlGraph/index.html">MakeOcamlGraph</a> : <span class="keyword">functor</span> (<a href="MakeOcamlGraph/argument-1-Base/index.html">Base</a> : <a href="index.html#module-type-S">S</a>) <span>&#45;&gt;</span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div></div></body></html>