This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
<!DOCTYPE html>
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>Models (infer.InferModules.Models)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><metaname="generator"content="doc-ock-html v1.0.0-1-g1fc9bf0"/></head><body><navid="top"><ahref="../index.html">Up</a>—<spanclass="package">package <ahref="../../index.html">infer</a></span></nav><header><h1><spanclass="keyword">Module</span><spanclass="module-path">InferModules.Models</span></h1></header><divclass="spec module"id="module-Hashtbl"><ahref="#module-Hashtbl"class="anchor"></a><divclass="def module"><code><spanclass="keyword">module </span>Hashtbl = <ahref="../../../InferStdlib/InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.Caml.Hashtbl</code></div><divclass="doc"></div></div><divclass="spec module"id="module-L"><ahref="#module-L"class="anchor"></a><divclass="def module"><code><spanclass="keyword">module </span>L = <ahref="../../../InferBase/InferBase/index.html#module-Logging">InferBase.Logging</a></code></div><divclass="doc"></div></div><p>Module for standard library models.</p><divclass="spec val"id="val-use_models"><ahref="#val-use_models"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>use_models : bool</code></div><divclass="doc"></div></div><divclass="spec module"id="module-Inference"><ahref="#module-Inference"class="anchor"></a><divclass="def module"><code><spanclass="keyword">module </span><ahref="Inference/index.html">Inference</a> : <spanclass="keyword">sig</span> ... <spanclass="keyword">end</span></code></div><divclass="doc"><p>Module for inference of parameter and return annotations.</p></div></div><divclass="spec val"id="val-match_method_name"><ahref="#val-match_method_name"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>match_method_name : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span><ahref="../../../InferStdlib/InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.String.t <spanclass="keyword">‑></span> bool</code></div><divclass="doc"></div></div><divclass="spec val"id="val-table_has_procedure"><ahref="#val-table_has_procedure"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>table_has_procedure : (string,<spanclass="type-var">'a</span>)<ahref="index.html#module-Hashtbl">Hashtbl</a>.t <spanclass="keyword">‑></span><ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"></div></div><divclass="spec val"id="val-get_modelled_annotated_signature"><ahref="#val-get_modelled_annotated_signature"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>get_modelled_annotated_signature : <ahref="../../../InferIR/InferIR/ProcAttributes/index.html#type-t">InferIR.ProcAttributes.t</a><spanclass="keyword">‑></span><ahref="../AnnotatedSignature/index.html#type-t">AnnotatedSignature.t</a></code></div><divclass="doc"><p>Return the annotated signature of the procedure, taking into account models.</p></div></div><divclass="spec val"id="val-is_modelled_nullable"><ahref="#val-is_modelled_nullable"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_modelled_nullable : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Return true when the procedure has been modelled for nullable.</p></div></div><divclass="spec val"id="val-is_check_not_null"><ahref="#val-is_check_not_null"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_check_not_null : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Check if the procedure is one of the known Preconditions.checkNotNull.</p></div></div><divclass="spec val"id="val-get_check_not_null_parameter"><ahref="#val-get_check_not_null_parameter"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>get_check_not_null_parameter : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> int</code></div><divclass="doc"><p>Parameter number for a procedure known to be a checkNotNull</p></div></div><divclass="spec val"id="val-is_check_state"><ahref="#val-is_check_state"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_check_state : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Check if the procedure is one of the known Preconditions.checkState.</p></div></div><divclass="spec val"id="val-is_check_argument"><ahref="#val-is_check_argument"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_check_argument : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Check if the procedure is one of the known Preconditions.checkArgument.</p></div></div><divclass="spec val"id="val-is_noreturn"><ahref="#val-is_noreturn"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_noreturn : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Check if the procedure does not return.</p></div></div><divclass="spec val"id="val-is_optional_get"><ahref="#val-is_optional_get"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_optional_get : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Check if the procedure is Optional.get().</p></div></div><divclass="spec val"id="val-is_optional_isPresent"><ahref="#val-is_optional_isPresent"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_optional_isPresent : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Check if the procedure is Optional.isPresent().</p></div></div><divclass="spec val"id="val-is_true_on_null"><ahref="#val-is_true_on_null"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_true_on_null : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Check if the procedure returns true on null.</p></div></div><divclass="spec val"id="val-is_containsKey"><ahref="#val-is_containsKey"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_containsKey : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Check if the procedure is Map.containsKey().</p></div></div><divclass="spec val"id="val-is_mapPut"><ahref="#val-is_mapPut"class="anchor"></a><divclass="def val"><code><spanclass="keyword">val </span>is_mapPut : <ahref="../../../InferIR/InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a><spanclass="keyword">‑></span> bool</code></div><divclass="doc"><p>Check if the procedure is Map.put().</p></div></div></body></html>