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>
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>IntLit (infer.IR.IntLit)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.0"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../../index.html">infer</a>»<ahref="../index.html">IR</a>» IntLit</nav><h1>Module <code>IR.IntLit</code></h1></header><divclass="spec module"id="module-F"><ahref="#module-F"class="anchor"></a><code><spanclass="keyword">module</span> F = Stdlib.Format</code></div><dl><dtclass="spec type"id="type-t"><ahref="#type-t"class="anchor"></a><code><spanclass="keyword">type</span> t</code></dt><dd><p>signed and unsigned integer literals</p></dd></dl><dl><dtclass="spec exception"id="exception-OversizedShift"><ahref="#exception-OversizedShift"class="anchor"></a><code><spanclass="keyword">exception</span></code><code><spanclass="exception">OversizedShift</span></code></dt></dl><dl><dtclass="spec value"id="val-add"><ahref="#val-add"class="anchor"></a><code><spanclass="keyword">val</span> add : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-compare"><ahref="#val-compare"class="anchor"></a><code><spanclass="keyword">val</span> compare : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> int</code></dt><dd><p>compare integers ignoring the distinction between pointers and non-pointers</p></dd></dl><dl><dtclass="spec value"id="val-compare_value"><ahref="#val-compare_value"class="anchor"></a><code><spanclass="keyword">val</span> compare_value : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> int</code></dt><dd><p>compare the value of the integers, notice this is different from const compare, which distinguished between signed and unsigned +1</p></dd></dl><dl><dtclass="spec value"id="val-div"><ahref="#val-div"class="anchor"></a><code><spanclass="keyword">val</span> div : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-eq"><ahref="#val-eq"class="anchor"></a><code><spanclass="keyword">val</span> eq : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-of_int"><ahref="#val-of_int"class="anchor"></a><code><spanclass="keyword">val</span> of_int : int <span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-of_int32"><ahref="#val-of_int32"class="anchor"></a><code><spanclass="keyword">val</span> of_int32 : int32 <span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-of_int64"><ahref="#val-of_int64"class="anchor"></a><code><spanclass="keyword">val</span> of_int64 : int64 <span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-of_string"><ahref="#val-of_string"class="anchor"></a><code><spanclass="keyword">val</span> of_string : string <span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-geq"><ahref="#val-geq"class="anchor"></a><code><spanclass="keyword">val</span> geq : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-gt"><ahref="#val-gt"class="anchor"></a><code><spanclass="keyword">val</span> gt : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-isminusone"><ahref="#val-isminusone"class="anchor"></a><code><spanclass="keyword">val</span> isminusone : <ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-isnegative"><ahref="#val-isnegative"class="anchor"></a><code><spanclass="keyword">val</span> isnegative : <ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-isnull"><ahref="#val-isnull"class="anchor"></a><code><spanclass="keyword">val</span> isnull : <ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-isone"><ahref="#val-isone"class="anchor"></a><code><spanclass="keyword">val</span> isone : <ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-iszero"><ahref="#val-iszero"class="anchor"></a><code><spanclass="keyword">val</span> iszero : <ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-leq"><ahref="#val-leq"class="anchor"></a><code><spanclass="keyword">val</span> leq : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-logand"><ahref="#val-logand"class="anchor"></a><code><spanclass="keyword">val</span> logand : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-lognot"><ahref="#val-lognot"class="anchor"></a><code><spanclass="keyword">val</span> lognot : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-logor"><ahref="#val-logor"class="anchor"></a><code><spanclass="keyword">val</span> logor : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-logxor"><ahref="#val-logxor"class="anchor"></a><code><spanclass="keyword">val</span> logxor : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-lt"><ahref="#val-lt"class="anchor"></a><code><spanclass="keyword">val</span> lt : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-minus_one"><ahref="#val-minus_one"class="anchor"></a><code><spanclass="keyword">val</span> minus_one : <ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-mul"><ahref="#val-mul"class="anchor"></a><code><spanclass="keyword">val</span> mul : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-neg"><ahref="#val-neg"class="anchor"></a><code><spanclass="keyword">val</span> neg : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-neq"><ahref="#val-neq"class="anchor"></a><code><spanclass="keyword">val</span> neq : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> bool</code></dt><dtclass="spec value"id="val-null"><ahref="#val-null"class="anchor"></a><code><spanclass="keyword">val</span> null : <ahref="index.html#type-t">t</a></code></dt><dd><p>null behaves like zero except for the function isnull</p></dd></dl><dl><dtclass="spec value"id="val-one"><ahref="#val-one"class="anchor"></a><code><spanclass="keyword">val</span> one : <ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-pp"><ahref="#val-pp"class="anchor"></a><code><spanclass="keyword">val</span> pp : <ahref="index.html#module-F">F</a>.formatter <span>-></span><ahref="index.html#type-t">t</a><span>-></span> unit</code></dt><dtclass="spec value"id="val-rem"><ahref="#val-rem"class="anchor"></a><code><spanclass="keyword">val</span> rem : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-shift_left"><ahref="#val-shift_left"class="anchor"></a><code><spanclass="keyword">val</span> shift_left : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-shift_right"><ahref="#val-shift_right"class="anchor"></a><code><spanclass="keyword">val</span> shift_right : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-sub"><ahref="#val-sub"class="anchor"></a><code><spanclass="keyword">val</span> sub : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-max"><ahref="#val-max"class="anchor"></a><code><spanclass="keyword">val</span> max : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-min"><ahref="#val-min"class="anchor"></a><code><spanclass="keyword">val</span> min : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-to_int"><ahref="#val-to_int"class="anchor"></a><code><spanclass="keyword">val</span> to_int : <ahref="index.html#type-t">t</a><span>-></span><span>int option</span></code></dt><dtclass="spec value"id="val-to_int_exn"><ahref="#val-to_int_exn"class="anchor"></a><code><spanclass="keyword">val</span> to_int_exn : <ahref="index.html#type-t">t</a><span>-></span> int</code></dt><dtclass="spec value"id="val-to_big_int"><ahref="#val-to_big_int"class="anchor"></a><code><spanclass="keyword">val</span> to_big_int : <ahref="index.html#type-t">t</a><span>-></span> Z.t</code></dt><dtclass="spec value"id="val-to_float"><ahref="#val-to_float"class="anchor"></a><code><spanclass="keyword">val</span> to_float : <ahref="index.html#type-t">t</a><span>-></span> float</code></dt><dtclass="spec value"id="val-to_signed"><ahref="#val-to_signed"class="anchor"></a><code><spanclass="keyword">val</span> to_signed : <ahref="index.html#type-t">t</a><span>-></span><span><ahref="index.html#type-t">t</a> option</span></code></dt><dtclass="spec value"id="val-to_string"><ahref="#val-to_string"class="anchor"></a><code><spanclass="keyword">val</span> to_string : <ahref="index.html#type-t">t</a><span>-></span> string</code></dt><dd><p>convert to signed if the value is representable</p></dd></dl><dl><dtclass="spec value"id="val-two"><ahref="#val-two"class="anchor"></a><code><spanclass="keyword">val</span> two : <ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-zero"><ahref="#val-zero"class="anchor"></a><code><spanclass="keyword">val</span> zero : <ahref="index.html#type-t">t</a></code></dt></dl></div></body></html>