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
7.1 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>InferIR__Var (InferIR.InferIR__Var)</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">InferIR</a> &#x00BB; InferIR__Var</nav><h1>Module <code>InferIR__Var</code></h1><p>Single abstraction for all the kinds of variables in SIL</p></header><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="../InferIR/Ident/index.html#type-t">InferIR.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="../InferIR/Pvar/index.html#type-t">InferIR.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>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> int</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>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</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>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</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="../InferIR/Ident/index.html#type-t">InferIR.Ident.t</a> <span>&#45;&gt;</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="../InferIR/Pvar/index.html#type-t">InferIR.Pvar.t</a> <span>&#45;&gt;</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>&#45;&gt;</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="../InferIR/Exp/index.html#type-t">InferIR.Exp.t</a> <span>&#45;&gt;</span> <span><a href="index.html#type-t">t</a> <a href="../../InferStdlib/InferStdlib/index.html#module-IStd">InferStdlib.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>&#45;&gt;</span> <a href="../InferIR/Exp/index.html#type-t">InferIR.Exp.t</a></code></dt><dt class="spec value" id="val-get_ident"><a href="#val-get_ident" class="anchor"></a><code><span class="keyword">val</span> get_ident : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span><a href="../InferIR/Ident/index.html#type-t">InferIR.Ident.t</a> option</span></code></dt><dt class="spec value" id="val-get_pvar"><a href="#val-get_pvar" class="anchor"></a><code><span class="keyword">val</span> get_pvar : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span><a href="../InferIR/Pvar/index.html#type-t">InferIR.Pvar.t</a> option</span></code></dt><dt class="spec value" id="val-is_global"><a href="#val-is_global" class="anchor"></a><code><span class="keyword">val</span> is_global : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_local_to_procedure"><a href="#val-is_local_to_procedure" class="anchor"></a><code><span class="keyword">val</span> is_local_to_procedure : <a href="../InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_return"><a href="#val-is_return" class="anchor"></a><code><span class="keyword">val</span> is_return : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_footprint"><a href="#val-is_footprint" class="anchor"></a><code><span class="keyword">val</span> is_footprint : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_none"><a href="#val-is_none" class="anchor"></a><code><span class="keyword">val</span> is_none : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-appears_in_source_code"><a href="#val-appears_in_source_code" class="anchor"></a><code><span class="keyword">val</span> appears_in_source_code : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>return true if this variable appears in source code (i.e., is not a LogicalVar or a frontend-generated ProgramVar)</p></dd></dl><dl><dt class="spec value" id="val-is_cpp_temporary"><a href="#val-is_cpp_temporary" class="anchor"></a><code><span class="keyword">val</span> is_cpp_temporary : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-get_footprint_index"><a href="#val-get_footprint_index" class="anchor"></a><code><span class="keyword">val</span> get_footprint_index : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span>int option</span></code></dt><dt class="spec value" id="val-pp"><a href="#val-pp" class="anchor"></a><code><span class="keyword">val</span> pp : Stdlib.Format.formatter <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> unit</code></dt></dl><div class="spec module" id="module-Map"><a href="#module-Map" class="anchor"></a><code><span class="keyword">module</span> Map : <a href="../../InferStdlib/InferStdlib/PrettyPrintable/index.html#module-type-PPMap">InferStdlib.PrettyPrintable.PPMap</a> <span class="keyword">with</span> <span class="keyword">type</span> <a href="../../InferStdlib/InferStdlib/PrettyPrintable/index.html#module-type-PPMap">PPMap</a>.key = <a href="index.html#type-t">t</a></code></div></div></body></html>