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

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Unop (infer.IR.Unop)</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; Unop</nav><h1>Module <code>IR.Unop</code></h1></header><aside><p>The Smallfoot Intermediate Language: Unary Operators</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> = </code><table class="variant"><tr id="type-t.Neg" class="anchored"><td class="def constructor"><a href="#type-t.Neg" class="anchor"></a><code>| </code><code><span class="constructor">Neg</span></code></td><td class="doc"><p>Unary minus</p></td></tr><tr id="type-t.BNot" class="anchored"><td class="def constructor"><a href="#type-t.BNot" class="anchor"></a><code>| </code><code><span class="constructor">BNot</span></code></td><td class="doc"><p>Bitwise complement (~)</p></td></tr><tr id="type-t.LNot" class="anchored"><td class="def constructor"><a href="#type-t.LNot" class="anchor"></a><code>| </code><code><span class="constructor">LNot</span></code></td><td class="doc"><p>Logical Not (!)</p></td></tr></table></dt><dd><p>Unary operations</p></dd></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-to_string"><a href="#val-to_string" class="anchor"></a><code><span class="keyword">val</span> to_string : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> string</code></dt><dd><p>String representation of a unary operator.</p></dd></dl></div></body></html>