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

This file contains invisible Unicode characters!

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>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferIR__ProcAttributes (InferIR.InferIR__ProcAttributes)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><meta name="generator" content="doc-ock-html v1.0.0-1-g1fc9bf0"/></head><body><nav id="top"><a href="../index.html">Up</a> &mdash; <span class="package">package <a href="../index.html">InferIR</a></span></nav><header><h1><span class="keyword">Module</span> <span class="module-path">InferIR__ProcAttributes</span></h1></header><p>Attributes of a procedure.</p><div class="spec type" id="type-proc_flags"><a href="#type-proc_flags" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>proc_flags</code><code><span class="keyword"> = </span>(string, string) <a href="../../InferStdlib/InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.Caml.Hashtbl.t</code><code></code></div><div class="doc"><p>flags for a procedure</p></div></div><div class="spec include"><div class="doc"></div><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></span></summary><div class="spec val" id="val-compare_proc_flags"><a href="#val-compare_proc_flags" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compare_proc_flags : <a href="index.html#type-proc_flags">proc_flags</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-proc_flags">proc_flags</a> <span class="keyword">&#8209;&gt;</span> int</code></div><div class="doc"></div></div></details></div><div class="spec type" id="type-clang_method_kind"><a href="#type-clang_method_kind" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>clang_method_kind</code><code></code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-clang_method_kind.CPP_INSTANCE" class="anchored"><td class="def constructor"><a href="#type-clang_method_kind.CPP_INSTANCE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CPP_INSTANCE</span></code></td></tr><tr id="type-clang_method_kind.OBJC_INSTANCE" class="anchored"><td class="def constructor"><a href="#type-clang_method_kind.OBJC_INSTANCE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">OBJC_INSTANCE</span></code></td></tr><tr id="type-clang_method_kind.CPP_CLASS" class="anchored"><td class="def constructor"><a href="#type-clang_method_kind.CPP_CLASS" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CPP_CLASS</span></code></td></tr><tr id="type-clang_method_kind.OBJC_CLASS" class="anchored"><td class="def constructor"><a href="#type-clang_method_kind.OBJC_CLASS" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">OBJC_CLASS</span></code></td></tr><tr id="type-clang_method_kind.BLOCK" class="anchored"><td class="def constructor"><a href="#type-clang_method_kind.BLOCK" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">BLOCK</span></code></td></tr><tr id="type-clang_method_kind.C_FUNCTION" class="anchored"><td class="def constructor"><a href="#type-clang_method_kind.C_FUNCTION" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">C_FUNCTION</span></code></td></tr></table><code></code></div><div class="doc"></div></div><div class="spec include"><div class="doc"></div><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></span></summary><div class="spec val" id="val-compare_clang_method_kind"><a href="#val-compare_clang_method_kind" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compare_clang_method_kind : <a href="index.html#type-clang_method_kind">clang_method_kind</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-clang_method_kind">clang_method_kind</a> <span class="keyword">&#8209;&gt;</span> int</code></div><div class="doc"></div></div></details></div><div class="spec val" id="val-equal_clang_method_kind"><a href="#val-equal_clang_method_kind" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>equal_clang_method_kind : <a href="index.html#type-clang_method_kind">clang_method_kind</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-clang_method_kind">clang_method_kind</a> <span class="keyword">&#8209;&gt;</span> bool</code></div><div class="doc"></div></div><div class="spec val" id="val-string_of_clang_method_kind"><a href="#val-string_of_clang_method_kind" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>string_of_clang_method_kind : <a href="index.html#type-clang_method_kind">clang_method_kind</a> <span class="keyword">&#8209;&gt;</span> string</code></div><div class="doc"></div></div><div class="spec type" id="type-objc_accessor_type"><a href="#type-objc_accessor_type" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>objc_accessor_type</code><code></code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-objc_accessor_type.Objc_getter" class="anchored"><td class="def constructor"><a href="#type-objc_accessor_type.Objc_getter" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Objc_getter</span><span class="keyword"> of </span><a href="../InferIR/Typ/Struct/index.html#type-field">InferIR.Typ.Struct.field</a></code></td></tr><tr id="type-objc_accessor_type.Objc_setter" class="anchored"><td class="def constructor"><a href="#type-objc_accessor_type.Objc_setter" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Objc_setter</span><span class="keyword"> of </span><a href="../InferIR/Typ/Struct/index.html#type-field">InferIR.Typ.Struct.field</a></code></td></tr></table><code></code></div><div class="doc"></div></div><div class="spec include"><div class="doc"></div><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></span></summary><div class="spec val" id="val-compare_objc_accessor_type"><a href="#val-compare_objc_accessor_type" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compare_objc_accessor_type : <a href="index.html#type-objc_accessor_type">objc_accessor_type</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-objc_accessor_type">objc_accessor_type</a> <span class="keyword">&#8209;&gt;</span> int</code></div><div class="doc"></div></div></details></div><div class="spec val" id="val-kind_of_objc_accessor_type"><a href="#val-kind_of_objc_accessor_type" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>kind_of_objc_accessor_type : <a href="index.html#type-objc_accessor_type">objc_accessor_type</a> <span class="keyword">&#8209;&gt;</span> string</code></div><div class="doc"></div></div><div class="spec type" id="type-var_attribute"><a href="#type-var_attribute" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>var_attribute</code><code></code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-var_attribute.Modify_in_block" class="anchored"><td class="def constructor"><a href="#type-var_attribute.Modify_in_block" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Modify_in_block</span></code></td></tr></table><code></code></div><div class="doc"></div></div><div class="spec include"><div class="doc"></div><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></span></summary><div class="spec val" id="val-compare_var_attribute"><a href="#val-compare_var_attribute" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compare_var_attribute : <a href="index.html#type-var_attribute">var_attribute</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-var_attribute">var_attribute</a> <span class="keyword">&#8209;&gt;</span> int</code></div><div class="doc"></div></div></details></div><div class="spec val" id="val-var_attribute_equal"><a href="#val-var_attribute_equal" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>var_attribute_equal : <a href="index.html#type-var_attribute">var_attribute</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-var_attribute">var_attribute</a> <span class="keyword">&#8209;&gt;</span> bool</code></div><div class="doc"><p>Equality for var_attribute</p></div></div><div class="spec type" id="type-var_data"><a href="#type-var_data" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>var_data</code><code></code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-var_data.name" class="anchored"><td class="def field"><a href="#type-var_data.name" class="anchor"></a><code>name : <a href="../InferIR/Mangled/index.html#type-t">InferIR.Mangled.t</a>;</code></td></tr><tr id="type-var_data.typ" class="anchored"><td class="def field"><a href="#type-var_data.typ" class="anchor"></a><code>typ : <a href="../InferIR/Typ/index.html#type-t">InferIR.Typ.t</a>;</code></td></tr><tr id="type-var_data.attributes" class="anchored"><td class="def field"><a href="#type-var_data.attributes" class="anchor"></a><code>attributes : <a href="index.html#type-var_attribute">var_attribute</a> list;</code></td></tr></table><code>}</code><code></code></div><div class="doc"></div></div><div class="spec include"><div class="doc"></div><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></span></summary><div class="spec val" id="val-compare_var_data"><a href="#val-compare_var_data" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compare_var_data : <a href="index.html#type-var_data">var_data</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-var_data">var_data</a> <span class="keyword">&#8209;&gt;</span> int</code></div><div class="doc"></div></div></details></div><div class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>t</code><code></code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.access" class="anchored"><td class="def field"><a href="#type-t.access" class="anchor"></a><code>access : <a href="../InferIR/PredSymb/index.html#type-access">InferIR.PredSymb.access</a>;</code></td><td class="doc"><p>(** visibility access *)</p></td></tr><tr id="type-t.captured" class="anchored"><td class="def field"><a href="#type-t.captured" class="anchor"></a><code>captured : (<a href="../InferIR/Mangled/index.html#type-t">InferIR.Mangled.t</a><span class="keyword"> * </span><a href="../InferIR/Typ/index.html#type-t">InferIR.Typ.t</a>) list;</code></td><td class="doc"><p>(** name and type of variables captured in blocks *)</p></td></tr><tr id="type-t.did_preanalysis" class="anchored"><td class="def field"><a href="#type-t.did_preanalysis" class="anchor"></a><code><span class="keyword">mutable </span>did_preanalysis : bool;</code></td><td class="doc"><p>(** true if we performed preanalysis on the CFG for this proc *)</p></td></tr><tr id="type-t.err_log" class="anchored"><td class="def field"><a href="#type-t.err_log" class="anchor"></a><code>err_log : <a href="../InferIR/Errlog/index.html#type-t">InferIR.Errlog.t</a>;</code></td><td class="doc"><p>(** Error log for the procedure *)</p></td></tr><tr id="type-t.exceptions" class="anchored"><td class="def field"><a href="#type-t.exceptions" class="anchor"></a><code>exceptions : string list;</code></td><td class="doc"><p>(** exceptions thrown by the procedure *)</p></td></tr><tr id="type-t.formals" class="anchored"><td class="def field"><a href="#type-t.formals" class="anchor"></a><code>formals : (<a href="../InferIR/Mangled/index.html#type-t">InferIR.Mangled.t</a><span class="keyword"> * </span><a href="../InferIR/Typ/index.html#type-t">InferIR.Typ.t</a>) list;</code></td><td class="doc"><p>(** name and type of formal parameters *)</p></td></tr><tr id="type-t.const_formals" class="anchored"><td class="def field"><a href="#type-t.const_formals" class="anchor"></a><code>const_formals : int list;</code></td><td class="doc"><p>(** list of indices of formals that are const-qualified *)</p></td></tr><tr id="type-t.by_vals" class="anchored"><td class="def field"><a href="#type-t.by_vals" class="anchor"></a><code>by_vals : int list;</code></td><td class="doc"><p>(** list of indices of formals that are passed by-value *)</p></td></tr><tr id="type-t.func_attributes" class="anchored"><td class="def field"><a href="#type-t.func_attributes" class="anchor"></a><code>func_attributes : <a href="../InferIR/PredSymb/index.html#type-func_attribute">InferIR.PredSymb.func_attribute</a> list;</code></td></tr><tr id="type-t.is_abstract" class="anchored"><td class="def field"><a href="#type-t.is_abstract" class="anchor"></a><code>is_abstract : bool;</code></td><td class="doc"><p>(** the procedure is abstract *)</p></td></tr><tr id="type-t.is_bridge_method" class="anchored"><td class="def field"><a href="#type-t.is_bridge_method" class="anchor"></a><code>is_bridge_method : bool;</code></td><td class="doc"><p>(** the procedure is a bridge method *)</p></td></tr><tr id="type-t.is_defined" class="anchored"><td class="def field"><a href="#type-t.is_defined" class="anchor"></a><code>is_defined : bool;</code></td><td class="doc"><p>(** true if the procedure is defined, and not just declared *)</p></td></tr><tr id="type-t.is_cpp_noexcept_method" class="anchored"><td class="def field"><a href="#type-t.is_cpp_noexcept_method" class="anchor"></a><code>is_cpp_noexcept_method : bool;</code></td><td class="doc"><p>(** the procedure is an C++ method annotated with &quot;noexcept&quot; *)</p></td></tr><tr id="type-t.is_java_synchronized_method" class="anchored"><td class="def field"><a href="#type-t.is_java_synchronized_method" class="anchor"></a><code>is_java_synchronized_method : bool;</code></td><td class="doc"><p>(** the procedure is a Java synchronized method *)</p></td></tr><tr id="type-t.is_model" class="anchored"><td class="def field"><a href="#type-t.is_model" class="anchor"></a><code>is_model : bool;</code></td><td class="doc"><p>(** the procedure is a model *)</p></td></tr><tr id="type-t.is_specialized" class="anchored"><td class="def field"><a href="#type-t.is_specialized" class="anchor"></a><code>is_specialized : bool;</code></td><td class="doc"><p>(** the procedure is a clone specialized for dynamic dispatch handling *)</p></td></tr><tr id="type-t.is_synthetic_method" class="anchored"><td class="def field"><a href="#type-t.is_synthetic_method" class="anchor"></a><code>is_synthetic_method : bool;</code></td><td class="doc"><p>(** the procedure is a synthetic method *)</p></td></tr><tr id="type-t.clang_method_kind" class="anchored"><td class="def field"><a href="#type-t.clang_method_kind" class="anchor"></a><code>clang_method_kind : <a href="index.html#type-clang_method_kind">clang_method_kind</a>;</code></td><td class="doc"><p>(** the kind of method the procedure is *)</p></td></tr><tr id="type-t.loc" class="anchored"><td class="def field"><a href="#type-t.loc" class="anchor"></a><code>loc : <a href="../../InferBase/InferBase/Location/index.html#type-t">InferBase.Location.t</a>;</code></td><td class="doc"><p>(** location of this procedure in the source code *)</p></td></tr><tr id="type-t.translation_unit" class="anchored"><td class="def field"><a href="#type-t.translation_unit" class="anchor"></a><code>translation_unit : <a href="../../InferBase/InferBase/SourceFile/index.html#type-t">InferBase.SourceFile.t</a> option;</code></td><td class="doc"><p>(** translation unit to which the procedure belongs *)</p></td></tr><tr id="type-t.locals" class="anchored"><td class="def field"><a href="#type-t.locals" class="anchor"></a><code><span class="keyword">mutable </span>locals : <a href="index.html#type-var_data">var_data</a> list;</code></td><td class="doc"><p>(** name, type and attributes of local variables *)</p></td></tr><tr id="type-t.method_annotation" class="anchored"><td class="def field"><a href="#type-t.method_annotation" class="anchor"></a><code>method_annotation : <a href="../InferIR/Annot/Method/index.html#type-t">InferIR.Annot.Method.t</a>;</code></td><td class="doc"><p>(** annotations for all methods *)</p></td></tr><tr id="type-t.objc_accessor" class="anchored"><td class="def field"><a href="#type-t.objc_accessor" class="anchor"></a><code>objc_accessor : <a href="index.html#type-objc_accessor_type">objc_accessor_type</a> option;</code></td><td class="doc"><p>(** type of ObjC accessor, if any *)</p></td></tr><tr id="type-t.proc_flags" class="anchored"><td class="def field"><a href="#type-t.proc_flags" class="anchor"></a><code>proc_flags : <a href="index.html#type-proc_flags">proc_flags</a>;</code></td><td class="doc"><p>(** flags of the procedure *)</p></td></tr><tr id="type-t.proc_name" class="anchored"><td class="def field"><a href="#type-t.proc_name" class="anchor"></a><code>proc_name : <a href="../InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a>;</code></td><td class="doc"><p>(** name of the procedure *)</p></td></tr><tr id="type-t.ret_type" class="anchored"><td class="def field"><a href="#type-t.ret_type" class="anchor"></a><code>ret_type : <a href="../InferIR/Typ/index.html#type-t">InferIR.Typ.t</a>;</code></td><td class="doc"><p>(** return type *)</p></td></tr><tr id="type-t.source_file_captured" class="anchored"><td class="def field"><a href="#type-t.source_file_captured" class="anchor"></a><code>source_file_captured : <a href="../../InferBase/InferBase/SourceFile/index.html#type-t">InferBase.SourceFile.t</a>;</code></td><td class="doc"><p>(** source file where the procedure was captured *)</p></td></tr></table><code>}</code><code></code></div><div class="doc"></div></div><div class="spec include"><div class="doc"></div><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></span></summary><div class="spec val" id="val-compare"><a href="#val-compare" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compare : <a href="index.html#type-t">t</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-t">t</a> <span class="keyword">&#8209;&gt;</span> int</code></div><div class="doc"></div></div></details></div><div class="spec val" id="val-default"><a href="#val-default" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>default : <a href="../InferIR/Typ/Procname/index.html#type-t">InferIR.Typ.Procname.t</a> <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-t">t</a></code></div><div class="doc"><p>Create a proc_attributes with default values.</p></div></div><div class="spec val" id="val-pp"><a href="#val-pp" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>pp : Format.formatter <span class="keyword">&#8209;&gt;</span> <a href="index.html#type-t">t</a> <span class="keyword">&#8209;&gt;</span> unit</code></div><div class="doc"></div></div><div class="spec module" id="module-SQLite"><a href="#module-SQLite" class="anchor"></a><div class="def module"><code><span class="keyword">module </span><a href="SQLite/index.html">SQLite</a> : <a href="../../InferBase/InferBase/SqliteUtils/index.html#module-type-Data">InferBase.SqliteUtils.Data</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../../InferBase/InferBase/SqliteUtils/module-type-Data/index.html#type-t">t</a><span class="keyword"> = </span><a href="index.html#type-t">t</a></code></div><div class="doc"></div></div></body></html>