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

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>IR__PredSymb (infer.IR__PredSymb)</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; IR__PredSymb</nav><h1>Module <code>IR__PredSymb</code></h1><p>The Smallfoot Intermediate Language: Predicate Symbols</p><nav class="toc"><ul><li><a href="#programs-and-types">Programs and Types</a></li></ul></nav></header><section><header><h3 id="programs-and-types"><a href="#programs-and-types" class="anchor"></a>Programs and Types</h3></header><dl><dt class="spec type" id="type-mem_kind"><a href="#type-mem_kind" class="anchor"></a><code><span class="keyword">type</span> mem_kind</code><code> = </code><table class="variant"><tr id="type-mem_kind.Mmalloc" class="anchored"><td class="def constructor"><a href="#type-mem_kind.Mmalloc" class="anchor"></a><code>| </code><code><span class="constructor">Mmalloc</span></code></td><td class="doc"><p>memory allocated with malloc</p></td></tr><tr id="type-mem_kind.Mnew" class="anchored"><td class="def constructor"><a href="#type-mem_kind.Mnew" class="anchor"></a><code>| </code><code><span class="constructor">Mnew</span></code></td><td class="doc"><p>memory allocated with new</p></td></tr><tr id="type-mem_kind.Mnew_array" class="anchored"><td class="def constructor"><a href="#type-mem_kind.Mnew_array" class="anchor"></a><code>| </code><code><span class="constructor">Mnew_array</span></code></td><td class="doc"><p>memory allocated with new<code></code></p></td></tr><tr id="type-mem_kind.Mobjc" class="anchored"><td class="def constructor"><a href="#type-mem_kind.Mobjc" class="anchor"></a><code>| </code><code><span class="constructor">Mobjc</span></code></td><td class="doc"><p>memory allocated with objective-c alloc</p></td></tr></table></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-compare_mem_kind"><a href="#val-compare_mem_kind" class="anchor"></a><code><span class="keyword">val</span> compare_mem_kind : <a href="index.html#type-mem_kind">mem_kind</a> <span>&#45;&gt;</span> <a href="index.html#type-mem_kind">mem_kind</a> <span>&#45;&gt;</span> int</code></dt></dl></div></div></div><dl><dt class="spec type" id="type-resource"><a href="#type-resource" class="anchor"></a><code><span class="keyword">type</span> resource</code><code> = </code><table class="variant"><tr id="type-resource.Rmemory" class="anchored"><td class="def constructor"><a href="#type-resource.Rmemory" class="anchor"></a><code>| </code><code><span class="constructor">Rmemory</span> <span class="keyword">of</span> <a href="index.html#type-mem_kind">mem_kind</a></code></td></tr><tr id="type-resource.Rfile" class="anchored"><td class="def constructor"><a href="#type-resource.Rfile" class="anchor"></a><code>| </code><code><span class="constructor">Rfile</span></code></td></tr><tr id="type-resource.Rignore" class="anchored"><td class="def constructor"><a href="#type-resource.Rignore" class="anchor"></a><code>| </code><code><span class="constructor">Rignore</span></code></td></tr><tr id="type-resource.Rlock" class="anchored"><td class="def constructor"><a href="#type-resource.Rlock" class="anchor"></a><code>| </code><code><span class="constructor">Rlock</span></code></td></tr></table></dt><dd><p>resource that can be allocated</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-compare_resource"><a href="#val-compare_resource" class="anchor"></a><code><span class="keyword">val</span> compare_resource : <a href="index.html#type-resource">resource</a> <span>&#45;&gt;</span> <a href="index.html#type-resource">resource</a> <span>&#45;&gt;</span> int</code></dt></dl></div></div></div><dl><dt class="spec type" id="type-res_act_kind"><a href="#type-res