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

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Binop (infer.IR.Binop)</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; <a href="../index.html">IR</a> &#x00BB; Binop</nav><h1>Module <code>IR.Binop</code></h1></header><aside><p>The Smallfoot Intermediate Language: Binary 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.PlusA" class="anchored"><td class="def constructor"><a href="#type-t.PlusA" class="anchor"></a><code>| </code><code><span class="constructor">PlusA</span> <span class="keyword">of</span> <span><a href="../Typ/index.html#type-ikind">Typ.ikind</a> option</span></code></td><td class="doc"><p>arithmetic +</p></td></tr><tr id="type-t.PlusPI" class="anchored"><td class="def constructor"><a href="#type-t.PlusPI" class="anchor"></a><code>| </code><code><span class="constructor">PlusPI</span></code></td><td class="doc"><p>pointer + integer</p></td></tr><tr id="type-t.MinusA" class="anchored"><td class="def constructor"><a href="#type-t.MinusA" class="anchor"></a><code>| </code><code><span class="constructor">MinusA</span> <span class="keyword">of</span> <span><a href="../Typ/index.html#type-ikind">Typ.ikind</a> option</span></code></td><td class="doc"><p>arithmetic -</p></td></tr><tr id="type-t.MinusPI" class="anchored"><td class="def constructor"><a href="#type-t.MinusPI" class="anchor"></a><code>| </code><code><span class="constructor">MinusPI</span></code></td><td class="doc"><p>pointer - integer</p></td></tr><tr id="type-t.MinusPP" class="anchored"><td class="def constructor"><a href="#type-t.MinusPP" class="anchor"></a><code>| </code><code><span class="constructor">MinusPP</span></code></td><td class="doc"><p>pointer - pointer</p></td></tr><tr id="type-t.Mult" class="anchored"><td class="def constructor"><a href="#type-t.Mult" class="anchor"></a><code>| </code><code><span class="constructor">Mult</span> <span class="keyword">of</span> <span><a href="../Typ/index.html#type-ikind">Typ.ikind</a> option</span></code></td><td class="doc"><p>*</p></td></tr><tr id="type-t.Div" class="anchored"><td class="def constructor"><a href="#type-t.Div" class="anchor"></a><code>| </code><code><span class="constructor">Div</span></code></td><td class="doc"><p>/</p></td></tr><tr id="type-t.Mod" class="anchored"><td class="def constructor"><a href="#type-t.Mod" class="anchor"></a><code>| </code><code><span class="constructor">Mod</span></code></td><td class="doc"><p>%</p></td></tr><tr id="type-t.Shiftlt" class="anchored"><td class="def constructor"><a href="#type-t.Shiftlt" class="anchor"></a><code>| </code><code><span class="constructor">Shiftlt</span></code></td><td class="doc"><p>shift left</p></td></tr><tr id="type-t.Shiftrt" class="anchored"><td class="def constructor"><a href="#type-t.Shiftrt" class="anchor"></a><code>| </code><code><span class="constructor">Shiftrt</span></code></td><td class="doc"><p>shift right</p></td></tr><tr id="type-t.Lt" class="anchored"><td class="def constructor"><a href="#type-t.Lt" class="anchor"></a><code>| </code><code><span class="constructor">Lt</span></code></td><td class="doc"><p>&lt; (arithmetic comparison)</p></td></tr><tr id="type-t.Gt" class="anchored"><td class="def constructor"><a href="#type-t.Gt" class="anchor"></a><code>| </code><code><span class="constructor">Gt</span></code></td><td class="doc"><p>&gt; (arithmetic comparison)</p></td></tr><tr id="type-t.Le" class="anchored"><td class="def constructor"><a href="#type-t.Le" class="anchor"></a><code>| </code><code><span class="constructor">Le</span></code></td><td class="doc"><p>&lt;= (arithmetic comparison)</p></td