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.
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Costlib__CostUtils (infer.Costlib__CostUtils)</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> » Costlib__CostUtils</nav><h1>Module <code>Costlib__CostUtils</code></h1></header><div class="spec module" id="module-L"><a href="#module-L" class="anchor"></a><code><span class="keyword">module</span> L = <a href="../IBase/index.html#module-Logging">IBase.Logging</a></code></div><div class="spec module" id="module-BasicCost"><a href="#module-BasicCost" class="anchor"></a><code><span class="keyword">module</span> BasicCost = <a href="../Costlib/CostDomain/index.html#module-BasicCost">Costlib.CostDomain.BasicCost</a></code></div><dl><dt class="spec type" id="type-model"><a href="#type-model" class="anchor"></a><code><span class="keyword">type</span> model</code><code> = <a href="../BO/BufferOverrunUtils/ModelEnv/index.html#type-model_env">BO.BufferOverrunUtils.ModelEnv.model_env</a> <span>-></span> <span>ret:<span>(<a href="../IR/Ident/index.html#type-t">IR.Ident.t</a> * <a href="../IR/Typ/index.html#type-t">IR.Typ.t</a>)</span></span> <span>-></span> <a href="../BO/BufferOverrunDomain/Mem/index.html#type-t">BO.BufferOverrunDomain.Mem.t</a> <span>-></span> <a href="../Costlib__CostDomain/BasicCost/index.html#type-t">BasicCost.t</a></code></dt></dl><dl><dt class="spec value" id="val-unit_cost_of"><a href="#val-unit_cost_of" class="anchor"></a><code><span class="keyword">val</span> unit_cost_of : <span>of_function:string</span> <span>-></span> <a href="../IBase/Location/index.html#type-t">IBase.Location.t</a> <span>-></span> <a href="../Costlib__CostDomain/BasicCost/index.html#type-t">BasicCost.t</a></code></dt><dt class="spec value" id="val-of_itv"><a href="#val-of_itv" class="anchor"></a><code><span class="keyword">val</span> of_itv : <span>itv:<a href="../BO/Itv/index.html#type-t">BO.Itv.t</a></span> <span>-></span> <span>degree_kind:<a href="../BO__Polynomials/DegreeKind/index.html#type-t">BO__Polynomials.DegreeKind.t</a></span> <span>-></span> <span>of_function:string</span> <span>-></span> <a href="../IBase/Location/index.html#type-t">IBase.Location.t</a> <span>-></span> <a href="../Costlib__CostDomain/BasicCost/index.html#type-t">BasicCost.t</a></code></dt><dt class="spec value" id="val-string_len_range_itv"><a href="#val-string_len_range_itv" class="anchor"></a><code><span class="keyword">val</span> string_len_range_itv : <a href="../BO/BufferOverrunUtils/ModelEnv/index.html#type-model_env">BO.BufferOverrunUtils.ModelEnv.model_env</a> <span>-></span> <a href="../IR/Exp/index.html#type-t">IR.Exp.t</a> <span>-></span> <span>from:<span><span>(<a href="../IR/Exp/index.html#type-t">IR.Exp.t</a> * <a href="../IR/Typ/IntegerWidths/index.html#type-t">IR.Typ.IntegerWidths.t</a>)</span> option</span></span> <span>-></span> <a href="../BO/BufferOverrunDomain/Mem/index.html#type-t">BO.BufferOverrunDomain.Mem.t</a> <span>-></span> <a href="../BO/Itv/index.html#type-t">BO.Itv.t</a></code></dt><dd><p>Given a string of length n and an optional starting index i (0 by default), return itv <code>0, n_u-i_l</code></p></dd></dl><div class="spec module-type" id="module-type-S"><a href="#module-type-S" class="anchor"></a><code><span class="keyword">module</span> <span class="keyword">type</span> <a href="module-type-S/index.html">S</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Array"><a href="#module-Array" class="anchor"></a><code><span class="keyword">module</span> <a href="Array/index.html">Array</a> : <a href="index.html#module-type-S">S</a></code></div><div class="sp
|