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.
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>IR__Var (infer.IR__Var)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.2"/><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> » IR__Var</nav><h1>Module <code>IR__Var</code></h1></header><aside><p>Single abstraction for all the kinds of variables in SIL</p></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code><code> = <span class="keyword">private</span> </code><table class="variant"><tr id="type-t.LogicalVar" class="anchored"><td class="def constructor"><a href="#type-t.LogicalVar" class="anchor"></a><code>| </code><code><span class="constructor">LogicalVar</span> <span class="keyword">of</span> <a href="../IR/Ident/index.html#type-t">IR.Ident.t</a></code></td></tr><tr id="type-t.ProgramVar" class="anchored"><td class="def constructor"><a href="#type-t.ProgramVar" class="anchor"></a><code>| </code><code><span class="constructor">ProgramVar</span> <span class="keyword">of</span> <a href="../IR/Pvar/index.html#type-t">IR.Pvar.t</a></code></td></tr></table></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-compare"><a href="#val-compare" class="anchor"></a><code><span class="keyword">val</span> compare : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-yojson_of_t"><a href="#val-yojson_of_t" class="anchor"></a><code><span class="keyword">val</span> yojson_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_yojson_conv_lib.Yojson.Safe.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-equal"><a href="#val-equal" class="anchor"></a><code><span class="keyword">val</span> equal : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-compare_modulo_this"><a href="#val-compare_modulo_this" class="anchor"></a><code><span class="keyword">val</span> compare_modulo_this : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-of_id"><a href="#val-of_id" class="anchor"></a><code><span class="keyword">val</span> of_id : <a href="../IR/Ident/index.html#type-t">IR.Ident.t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_pvar"><a href="#val-of_pvar" class="anchor"></a><code><span class="keyword">val</span> of_pvar : <a href="../IR/Pvar/index.html#type-t">IR.Pvar.t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_formal_index"><a href="#val-of_formal_index" class="anchor"></a><code><span class="keyword">val</span> of_formal_index : int <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Create a variable representing the ith formal of the current procedure</p></dd></dl><dl><dt class="spec value" id="val-get_all_vars_in_exp"><a href="#val-get_all_vars_in_exp" class="anchor"></a><code><span class="keyword">val</span> get_all_vars_in_exp : <a href="../IR/Exp/index.html#type-t">IR.Exp.t</a> <span>-></span> <span><a href="index.html#type-t">t</a> <a href="../IStdlib/index.html#module-IStd">IStdlib.IStd</a>.Sequence.t</span></code></dt><dd><p>Get all free and program vars</p></dd></dl><dl><dt class="spec value" id="val-to_exp"><a href="#val-to_exp" class="anchor"></a><code><span class="keyword">val</span> to_exp : <a href="index.html#type-t">t</a> <span>-></span> <a href="../IR/Exp/index.html#type-t">IR.Exp.t</a></code></dt><dt class="spec value" id="val-get_ident"><a href
|