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

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>RacerDModels (infer.Concurrency.RacerDModels)</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">Concurrency</a> &#x00BB; RacerDModels</nav><h1>Module <code>Concurrency.RacerDModels</code></h1></header><dl><dt class="spec value" id="val-is_container_read"><a href="#val-is_container_read" class="anchor"></a><code><span class="keyword">val</span> is_container_read : <a href="../../IR/Tenv/index.html#type-t">IR.Tenv.t</a> <span>&#45;&gt;</span> <a href="../../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_container_write"><a href="#val-is_container_write" class="anchor"></a><code><span class="keyword">val</span> is_container_write : <a href="../../IR/Tenv/index.html#type-t">IR.Tenv.t</a> <span>&#45;&gt;</span> <a href="../../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>return Some (access) if this procedure accesses the contents of a container (e.g., Map.get)</p></dd></dl><dl><dt class="spec value" id="val-has_return_annot"><a href="#val-has_return_annot" class="anchor"></a><code><span class="keyword">val</span> has_return_annot : <span>(<a href="../../IR/Annot/Item/index.html#type-t">IR.Annot.Item.t</a> <span>&#45;&gt;</span> bool)</span> <span>&#45;&gt;</span> <a href="../../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_functional"><a href="#val-is_functional" class="anchor"></a><code><span class="keyword">val</span> is_functional : <a href="../../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-acquires_ownership"><a href="#val-acquires_ownership" class="anchor"></a><code><span class="keyword">val</span> acquires_ownership : <a href="../../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> <a href="../../IR/Tenv/index.html#type-t">IR.Tenv.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-is_box"><a href="#val-is_box" class="anchor"></a><code><span class="keyword">val</span> is_box : <a href="../../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>return true if the given procname boxes a primitive type into a reference type</p></dd></dl><dl><dt class="spec value" id="val-is_thread_confined_method"><a href="#val-is_thread_confined_method" class="anchor"></a><code><span class="keyword">val</span> is_thread_confined_method : <a href="../../IR/Tenv/index.html#type-t">IR.Tenv.t</a> <span>&#45;&gt;</span> <a href="../../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>Methods in <code>@ThreadConfined</code> classes and methods annotated with <code>@ThreadConfined</code> are assumed to all run on the same thread. For the moment we won't warn on accesses resulting from use of such methods at all. In future we should account for races between these methods and methods from completely different classes that don't necessarily run on the same thread as the confined object.</p></dd></dl><dl><dt class="spec value" id="val-should_analyze_proc"><a href="#val-should_analyze_proc" class="anchor"></a><code><span class="keyword">val</span> should_analyze_proc : <a href="../../IR/Tenv/index.html#type-t">IR.Tenv.t</a> <span>&#45;&gt;</span> <a href="../../IR/Procname/index.html#type-t">IR.Procname.t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>return true if we should compute a summary for the procedure. if this returns false, we won't analyze the procedure or report any warnings on it. note: in