infer_clone/website/static/odoc/1.0.0/infer/IR/Var/index.html

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>Var (infer.IR.Var)</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; <a href="../index.html">IR</a> &#x00BB; 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="../Ident/index.html#type-t">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="../Pvar/index.html#type-t">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="../Ident/index.html#type-t">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="../Pvar/index.html#type-t">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="../Exp/index.html#type-t">Exp.t</a> <span>&#45;&gt;</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>&#45;&gt;</span> <a href="../Exp/index.html#type-t">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="../Ident/index.html#type-t">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="../Pvar/index.html#type-t">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="../Procname/index.html#type-t">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-is_this"><a href="#val-is_this" class="anchor"></a><code><span class="keyword">val</span> is_this : <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="../../IStdlib/PrettyPrintable/index.html#module-type-PPMap">IStdlib.PrettyPrintable.PPMap</a> <span class="keyword">with</span> <span class="keyword">type</span> <a href="../../IStdlib/PrettyPrintable/index.html#module-type-PPMap">PPMap</a>.key = <a href="index.html#type-t">t</a></code></div></div></body></html>