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

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>IR__Instrs (infer.IR__Instrs)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><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; IR__Instrs</nav><h1>Module <code>IR__Instrs</code></h1></header><aside><p>Manipulate possibly-reversed lists of instructions efficiently</p></aside><dl><dt class="spec type" id="type-reversed"><a href="#type-reversed" class="anchor"></a><code><span class="keyword">type</span> reversed</code></dt><dt class="spec type" id="type-not_reversed"><a href="#type-not_reversed" class="anchor"></a><code><span class="keyword">type</span> not_reversed</code></dt><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> <span>_ t</span></code></dt><dt class="spec type" id="type-not_reversed_t"><a href="#type-not_reversed_t" class="anchor"></a><code><span class="keyword">type</span> not_reversed_t</code><code> = <span><a href="index.html#type-not_reversed">not_reversed</a> <a href="index.html#type-t">t</a></span></code></dt><dd><p>defined for convenience: we can write <code>Instrs.not_reversed_t</code> in other modules instead of <code>Instrs.not_reversed Instrs.t</code></p></dd></dl><dl><dt class="spec value" id="val-empty"><a href="#val-empty" class="anchor"></a><code><span class="keyword">val</span> empty : <span><span class="type-var">_</span> <a href="index.html#type-t">t</a></span></code></dt><dt class="spec value" id="val-singleton"><a href="#val-singleton" class="anchor"></a><code><span class="keyword">val</span> singleton : <a href="../IR/Sil/index.html#type-instr">IR.Sil.instr</a> <span>&#45;&gt;</span> <span><span class="type-var">_</span> <a href="index.html#type-t">t</a></span></code></dt><dt class="spec value" id="val-append_list"><a href="#val-append_list" class="anchor"></a><code><span class="keyword">val</span> append_list : <span><a href="index.html#type-not_reversed">not_reversed</a> <a href="index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><a href="../IR/Sil/index.html#type-instr">IR.Sil.instr</a> list</span> <span>&#45;&gt;</span> <span><a href="index.html#type-not_reversed">not_reversed</a> <a href="index.html#type-t">t</a></span></code></dt><dt class="spec value" id="val-of_list"><a href="#val-of_list" class="anchor"></a><code><span class="keyword">val</span> of_list : <span><a href="../IR/Sil/index.html#type-instr">IR.Sil.instr</a> list</span> <span>&#45;&gt;</span> <span><a href="index.html#type-not_reversed">not_reversed</a> <a href="index.html#type-t">t</a></span></code></dt><dt class="spec value" id="val-filter_map"><a href="#val-filter_map" class="anchor"></a><code><span class="keyword">val</span> filter_map : <span><a href="index.html#type-not_reversed">not_reversed</a> <a href="index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span>f:<span>(<a href="../IR/Sil/index.html#type-instr">IR.Sil.instr</a> <span>&#45;&gt;</span> <span><a href="../IR/Sil/index.html#type-instr">IR.Sil.instr</a> option</span>)</span></span> <span>&#45;&gt;</span> <span><a href="index.html#type-not_reversed">not_reversed</a> <a href="index.html#type-t">t</a></span></code></dt><dt class="spec value" id="val-map"><a href="#val-map" class="anchor"></a><code><span class="keyword">val</span> map : <span><a href="index.html#type-not_reversed">not_reversed</a> <a href="index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span>f:<span>(<a href="../IR/Sil/index.html#type-instr">IR.Sil.instr</a> <span>&#45;&gt;</span> <a href="../IR/Sil/index.html#type-instr">IR.Sil.instr</a>)</span></span> <span>&#45;&gt;</span> <span><a href="index.html#type-not_reversed">not_reversed</a> <a href="index.html#type-t">t</a></span></code></dt><dd><p>replace every instruction <code>instr</code> with <c