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

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Absint__AccessPath (infer.Absint__AccessPath)</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> &#x00BB; Absint__AccessPath</nav><h1>Module <code>Absint__AccessPath</code></h1></header><aside><p>Module for naming heap locations via the path used to access them (e.g., x.f.g, y<code>a</code>.b)</p></aside><dl><dt class="spec type" id="type-base"><a href="#type-base" class="anchor"></a><code><span class="keyword">type</span> base</code><code> = <a href="../IR/Var/index.html#type-t">IR.Var.t</a> * <a href="../IR/Typ/index.html#type-t">IR.Typ.t</a></code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-compare_base"><a href="#val-compare_base" class="anchor"></a><code><span class="keyword">val</span> compare_base : <a href="index.html#type-base">base</a> <span>&#45;&gt;</span> <a href="index.html#type-base">base</a> <span>&#45;&gt;</span> int</code></dt></dl></div></div></div><dl><dt class="spec type" id="type-access"><a href="#type-access" class="anchor"></a><code><span class="keyword">type</span> access</code><code> = </code><table class="variant"><tr id="type-access.ArrayAccess" class="anchored"><td class="def constructor"><a href="#type-access.ArrayAccess" class="anchor"></a><code>| </code><code><span class="constructor">ArrayAccess</span> <span class="keyword">of</span> <a href="../IR/Typ/index.html#type-t">IR.Typ.t</a> * <span><a href="index.html#type-t">t</a> list</span></code></td><td class="doc"><p>array element type with list of access paths in index</p></td></tr><tr id="type-access.FieldAccess" class="anchored"><td class="def constructor"><a href="#type-access.FieldAccess" class="anchor"></a><code>| </code><code><span class="constructor">FieldAccess</span> <span class="keyword">of</span> <a href="../IR/Fieldname/index.html#type-t">IR.Fieldname.t</a></code></td><td class="doc"><p>field name</p></td></tr></table></dt><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">and</span> t</code><code> = <a href="index.html#type-base">base</a> * <span><a href="index.html#type-access">access</a> list</span></code></dt><dd><p>root var, and a list of accesses. closest to the root var is first that is, x.f.g is represented as (x, <code>f; g</code>)</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-compare_access"><a href="#val-compare_access" class="anchor"></a><code><span class="keyword">val</span> compare_access : <a href="index.html#type-access">access</a> <span>&#45;&gt;</span> <a href="index.html#type-access">access</a> <span>&#45;&gt;</span> int</code></dt><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><dt class="spec value" id="val-equal_access"><a href="#val-equal_access" class="anchor"></a><code><span class="keyword">val</span> equal_access : <a href="index.html#type-access">access</a> <span>&#45;&gt;</span> <a href="index.html#type-access">access</a> <span>&#45;&gt;</span> bool</code></dt><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_access"><a href="#val-compare_access" class="anchor"></a><code><span class="keyword">val</span> compare_access : <a href="index.html#type-access">access</a> <span>&#45;&gt;</span> <a href="index.html#typ