Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 583ffa4ba069126c3ba0bc565dc0485a > files > 1674

cvc3-doc-2.4.1-1.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>CVC3: theory_array.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CVC3&#160;<span id="projectnumber">2.4.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">theory_array.h</div>  </div>
</div>
<div class="contents">
<a href="theory__array_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************************/</span><span class="comment"></span>
<a name="l00002"></a>00002 <span class="comment">/*!</span>
<a name="l00003"></a>00003 <span class="comment"> * \file theory_array.h</span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * Author: Clark Barrett</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Created: Wed Feb 26 18:32:06 2003</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * License to use, copy, modify, sell and/or distribute this software</span>
<a name="l00012"></a>00012 <span class="comment"> * and its documentation for any purpose is hereby granted without</span>
<a name="l00013"></a>00013 <span class="comment"> * royalty, subject to the terms and conditions defined in the \ref</span>
<a name="l00014"></a>00014 <span class="comment"> * LICENSE file provided with this distribution.</span>
<a name="l00015"></a>00015 <span class="comment"> * </span>
<a name="l00016"></a>00016 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00017"></a>00017 <span class="comment"> * </span>
<a name="l00018"></a>00018 <span class="comment"> */</span>
<a name="l00019"></a>00019 <span class="comment">/*****************************************************************************/</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef _cvc3__include__theory_array_h_</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define _cvc3__include__theory_array_h_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="theory__core_8h.html">theory_core.h</a>&quot;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>CVC3 {
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">class </span>ArrayProofRules;
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781">00030</a>  <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00031"></a><a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a8aa48defeac37f699364f71fe54f39ee">00031</a>    <a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a8aa48defeac37f699364f71fe54f39ee">ARRAY</a> = 2000,
<a name="l00032"></a><a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781ab012911c4fabb7b8556925a0d61e9c8c">00032</a>    <a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781ab012911c4fabb7b8556925a0d61e9c8c">READ</a>,
<a name="l00033"></a><a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a33b0829ff24c1e0d27de00d675267297">00033</a>    <a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a33b0829ff24c1e0d27de00d675267297">WRITE</a>,
<a name="l00034"></a>00034    <span class="comment">// Array literal [ [type] e ]; creates a constant array holding &#39;e&#39;</span>
<a name="l00035"></a>00035    <span class="comment">// in all elements: (CONST_ARRAY type e)</span>
<a name="l00036"></a><a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a9e6a1f69d18953ab05c21b660abbb0f0">00036</a>    <a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a9e6a1f69d18953ab05c21b660abbb0f0">ARRAY_LITERAL</a>
<a name="l00037"></a>00037  } <a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781">ArrayKinds</a>;
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="comment">/*****************************************************************************/</span><span class="comment"></span>
<a name="l00040"></a>00040 <span class="comment">/*!</span>
<a name="l00041"></a>00041 <span class="comment"> *\class TheoryArray</span>
<a name="l00042"></a>00042 <span class="comment"> *\ingroup Theories</span>
<a name="l00043"></a>00043 <span class="comment"> *\brief This theory handles arrays.</span>
<a name="l00044"></a>00044 <span class="comment"> *</span>
<a name="l00045"></a>00045 <span class="comment"> * Author: Clark Barrett</span>
<a name="l00046"></a>00046 <span class="comment"> *</span>
<a name="l00047"></a>00047 <span class="comment"> * Created: Thu Feb 27 00:38:20 2003</span>
<a name="l00048"></a>00048 <span class="comment"> */</span>
<a name="l00049"></a>00049 <span class="comment">/*****************************************************************************/</span>
<a name="l00050"></a><a class="code" href="classCVC3_1_1TheoryArray.html">00050</a> <span class="keyword">class </span><a class="code" href="classCVC3_1_1TheoryArray.html" title="This theory handles arrays.">TheoryArray</a> :<span class="keyword">public</span> <a class="code" href="classCVC3_1_1Theory.html" title="Base class for theories.">Theory</a> {
<a name="l00051"></a><a class="code" href="classCVC3_1_1TheoryArray.html#a69da5ce6db78128b8798091fdb5bbcf7">00051</a>   <a class="code" href="classCVC3_1_1ArrayProofRules.html">ArrayProofRules</a>* <a class="code" href="classCVC3_1_1TheoryArray.html#a69da5ce6db78128b8798091fdb5bbcf7">d_rules</a>;
<a name="l00052"></a>00052 <span class="comment"></span>
<a name="l00053"></a>00053 <span class="comment">  //! Backtracking list of array reads, for building concrete models.</span>
<a name="l00054"></a><a class="code" href="classCVC3_1_1TheoryArray.html#acda80f8b90c2a1bdf93b21c06657ad5b">00054</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CDList.html">CDList&lt;Expr&gt;</a> <a class="code" href="classCVC3_1_1TheoryArray.html#acda80f8b90c2a1bdf93b21c06657ad5b" title="Backtracking list of array reads, for building concrete models.">d_reads</a>;<span class="comment"></span>
<a name="l00055"></a>00055 <span class="comment">  //! Set of renaming theorems \f$\exists x. t = x\f$ indexed by t</span>
<a name="l00056"></a><a class="code" href="classCVC3_1_1TheoryArray.html#af573052892d377c14a404d2b737601c7">00056</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1ExprMap.html">ExprMap&lt;Theorem&gt;</a> <a class="code" href="classCVC3_1_1TheoryArray.html#af573052892d377c14a404d2b737601c7" title="Set of renaming theorems  indexed by t.">d_renameThms</a>;<span class="comment"></span>
<a name="l00057"></a>00057 <span class="comment">  //! Flag to include array reads to the concrete model</span>
<a name="l00058"></a><a class="code" href="classCVC3_1_1TheoryArray.html#a9a8372869f9d200564cf5eb971296f80">00058</a> <span class="comment"></span>  <span class="keyword">const</span> <span class="keywordtype">bool</span>&amp; <a class="code" href="classCVC3_1_1TheoryArray.html#a9a8372869f9d200564cf5eb971296f80" title="Flag to include array reads to the concrete model.">d_applicationsInModel</a>;<span class="comment"></span>
<a name="l00059"></a>00059 <span class="comment">  //! Flag to lift ite&#39;s over reads</span>
<a name="l00060"></a><a class="code" href="classCVC3_1_1TheoryArray.html#aed11c0ba6189b14a7fd68b44ff444563">00060</a> <span class="comment"></span>  <span class="keyword">const</span> <span class="keywordtype">bool</span>&amp; <a class="code" href="classCVC3_1_1TheoryArray.html#aed11c0ba6189b14a7fd68b44ff444563" title="Flag to lift ite&#39;s over reads.">d_liftReadIte</a>;
<a name="l00061"></a>00061 <span class="comment"></span>
<a name="l00062"></a>00062 <span class="comment">  //! Backtracking database of subterms of shared terms</span>
<a name="l00063"></a><a class="code" href="classCVC3_1_1TheoryArray.html#a8551ccd39df5cbb32ca3911def6f14a2">00063</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CDMap.html">CDMap&lt;Expr,Expr&gt;</a> <a class="code" href="classCVC3_1_1TheoryArray.html#a8551ccd39df5cbb32ca3911def6f14a2" title="Backtracking database of subterms of shared terms.">d_sharedSubterms</a>;<span class="comment"></span>
<a name="l00064"></a>00064 <span class="comment">  //! Backtracking database of subterms of shared terms</span>
<a name="l00065"></a><a class="code" href="classCVC3_1_1TheoryArray.html#adf746d89244842c91308cd7fa0c52920">00065</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CDList.html">CDList&lt;Expr&gt;</a> <a class="code" href="classCVC3_1_1TheoryArray.html#adf746d89244842c91308cd7fa0c52920" title="Backtracking database of subterms of shared terms.">d_sharedSubtermsList</a>;<span class="comment"></span>
<a name="l00066"></a>00066 <span class="comment">  //! Used in checkSat</span>
<a name="l00067"></a><a class="code" href="classCVC3_1_1TheoryArray.html#ad98c8d1d57cb54716b9ee4975c50296d">00067</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;unsigned&gt;</a> <a class="code" href="classCVC3_1_1TheoryArray.html#ad98c8d1d57cb54716b9ee4975c50296d" title="Used in checkSat.">d_index</a>;
<a name="l00068"></a>00068 
<a name="l00069"></a><a class="code" href="classCVC3_1_1TheoryArray.html#a86906e3f5f261b9452cec428d4db1617">00069</a>   <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;size_t&gt;</a> <a class="code" href="classCVC3_1_1TheoryArray.html#ac0eec8fa179be546e39bf802d1d514b8">d_sharedIdx1</a>, <a class="code" href="classCVC3_1_1TheoryArray.html#a86906e3f5f261b9452cec428d4db1617">d_sharedIdx2</a>;
<a name="l00070"></a>00070 <span class="comment"></span>
<a name="l00071"></a>00071 <span class="comment">  //! Flag for use in checkSat</span>
<a name="l00072"></a><a class="code" href="classCVC3_1_1TheoryArray.html#aa1f0bd2c459e22c2021664c37a6c0491">00072</a> <span class="comment"></span>  <span class="keywordtype">int</span> <a class="code" href="classCVC3_1_1TheoryArray.html#aa1f0bd2c459e22c2021664c37a6c0491" title="Flag for use in checkSat.">d_inCheckSat</a>;
<a name="l00073"></a>00073 <span class="comment"></span>
<a name="l00074"></a>00074 <span class="comment">  //! Derived rule</span>
<a name="l00075"></a>00075 <span class="comment"></span>  <span class="comment">// w(...,i,v1,...,) =&gt; w(......,i,v1&#39;)</span>
<a name="l00076"></a>00076   <span class="comment">// Returns Null Theorem if index does not appear</span>
<a name="l00077"></a>00077   <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryArray.html#ab10760b908e3a9d94324c3aafb28b2f9" title="Derived rule.">pullIndex</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; index);
<a name="l00078"></a>00078 
<a name="l00079"></a>00079 <span class="keyword">public</span>:
<a name="l00080"></a>00080   <a class="code" href="classCVC3_1_1TheoryArray.html#a44111caa8fd8cca4ca83df173ceece16">TheoryArray</a>(<a class="code" href="classCVC3_1_1TheoryCore.html" title="This theory handles the built-in logical connectives plus equality. It also handles the registration ...">TheoryCore</a>* core);
<a name="l00081"></a>00081   <a class="code" href="classCVC3_1_1TheoryArray.html#a77c7e5234339abec22b66d938624fd96">~TheoryArray</a>();
<a name="l00082"></a>00082 
<a name="l00083"></a>00083   <span class="comment">// Trusted method that creates the proof rules class (used in constructor).</span>
<a name="l00084"></a>00084   <span class="comment">// Implemented in array_theorem_producer.cpp</span>
<a name="l00085"></a>00085   <a class="code" href="classCVC3_1_1ArrayProofRules.html">ArrayProofRules</a>* <a class="code" href="classCVC3_1_1TheoryArray.html#a5b53e3f645da3208478edb182e8bcd8e">createProofRules</a>();
<a name="l00086"></a>00086 
<a name="l00087"></a>00087   <span class="comment">// Theory interface</span>
<a name="l00088"></a>00088   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryArray.html#a7df593d6f121bf88bda064a390d44a7e" title="Notify theory of a new shared term.">addSharedTerm</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e);
<a name="l00089"></a>00089   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryArray.html#a5240f8ce94fcf0baeafaffd1319cc64b" title="Assert a new fact to the decision procedure.">assertFact</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e);
<a name="l00090"></a>00090   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryArray.html#a87386ed95b18c84a1736d44fc53f3382" title="Check for satisfiability in the theory.">checkSat</a>(<span class="keywordtype">bool</span> fullEffort);
<a name="l00091"></a>00091   <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryArray.html#ad26e3958bc32f28030d57c9b8415d69f" title="Theory-specific rewrite rules.">rewrite</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e);
<a name="l00092"></a>00092   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryArray.html#a51796298980c0587b567b2af7b36921a" title="Set up the term e for call-backs when e or its children change.">setup</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e);
<a name="l00093"></a>00093   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryArray.html#a98649fa8384e42c564d2bbae90e45454" title="Notify a theory of a new equality.">update</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; d);
<a name="l00094"></a>00094   <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryArray.html#a142d21629000a0f7fdf1dfe24bc0b25b" title="An optional solver.">solve</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e);
<a name="l00095"></a>00095   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryArray.html#ae6eb6ed17276330ab41fe1944a612f03" title="Check that e is a valid Type expr.">checkType</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e);
<a name="l00096"></a>00096   <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54" title="Enum for cardinality of types.">Cardinality</a> <a class="code" href="classCVC3_1_1TheoryArray.html#acb95878ba64d211ede428600c09ca71e" title="Compute information related to finiteness of types.">finiteTypeInfo</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e, <a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a>&amp; n,
<a name="l00097"></a>00097                              <span class="keywordtype">bool</span> enumerate, <span class="keywordtype">bool</span> computeSize);
<a name="l00098"></a>00098   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryArray.html#a877d95364306ead07d3c26cf1a5f4e2d" title="Compute and store the type of e.">computeType</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e);
<a name="l00099"></a>00099   <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> <a class="code" href="classCVC3_1_1TheoryArray.html#a5381a34007ebe59a8869e5c38951bbd2" title="Compute the base type of the top-level operator of an arbitrary type.">computeBaseType</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>&amp; t);
<a name="l00100"></a>00100   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryArray.html#a5005ba3bcd8688e06b1dd9dfd81a1a8f" title="Add variables from &#39;e&#39; to &#39;v&#39; for constructing a concrete model.">computeModelTerm</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e, std::vector&lt;Expr&gt;&amp; v);
<a name="l00101"></a>00101   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryArray.html#ac3d4027dec5817e812ce81ff46c2998b" title="Compute the value of a compound variable from the more primitive ones.">computeModel</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e, std::vector&lt;Expr&gt;&amp; vars);
<a name="l00102"></a>00102   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1TheoryArray.html#a12999bb5404a778250daae90a72df6d1" title="Compute and cache the TCC of e.">computeTCC</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e);
<a name="l00103"></a>00103   <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1TheoryArray.html#ad034351d6763b4cdc9bf87f52a97e98c" title="Theory-specific parsing implemented by the DP.">parseExprOp</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e);
<a name="l00104"></a>00104   <a class="code" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>&amp; <a class="code" href="classCVC3_1_1TheoryArray.html#adf21a7b23c771ff5b9a9da1b84810127" title="Theory-specific pretty-printing.">print</a>(<a class="code" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>&amp; os, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e);
<a name="l00105"></a>00105   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1TheoryArray.html#a65788bb10c3773a50889d1f992355a4c">getBaseArray</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) <span class="keyword">const</span>;
<a name="l00106"></a>00106 };
<a name="l00107"></a>00107 
<a name="l00108"></a>00108 <span class="comment">// Array testers</span>
<a name="l00109"></a><a class="code" href="namespaceCVC3.html#abb990c58eff7370233a56098a732fc46">00109</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#abb990c58eff7370233a56098a732fc46">isArray</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>&amp; t) { <span class="keywordflow">return</span> t.<a class="code" href="classCVC3_1_1Type.html#a0bc1eebf8dbd9d2880e1f18d7804e5c2">getExpr</a>().<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a8aa48defeac37f699364f71fe54f39ee">ARRAY</a>; }
<a name="l00110"></a><a class="code" href="namespaceCVC3.html#a970e5543468dfa1fb19e6e256b022370">00110</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#a970e5543468dfa1fb19e6e256b022370">isRead</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) { <span class="keywordflow">return</span> e.<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781ab012911c4fabb7b8556925a0d61e9c8c">READ</a>; }
<a name="l00111"></a><a class="code" href="namespaceCVC3.html#abdc2f55e0df529954fc271499242351c">00111</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#abdc2f55e0df529954fc271499242351c">isWrite</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) { <span class="keywordflow">return</span> e.<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a33b0829ff24c1e0d27de00d675267297">WRITE</a>; }
<a name="l00112"></a><a class="code" href="namespaceCVC3.html#ae0300fa33bc89c52444cfaa14fa3a9c7">00112</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#ae0300fa33bc89c52444cfaa14fa3a9c7">isArrayLiteral</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e)
<a name="l00113"></a>00113   { <span class="keywordflow">return</span> (e.<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>() &amp;&amp; e.<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a9e6a1f69d18953ab05c21b660abbb0f0">ARRAY_LITERAL</a>); }
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="comment">// Array constructors</span>
<a name="l00116"></a><a class="code" href="namespaceCVC3.html#a587d33ff63396be21a99bf4d744b2b98">00116</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> <a class="code" href="namespaceCVC3.html#a587d33ff63396be21a99bf4d744b2b98">arrayType</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>&amp; type1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>&amp; type2)
<a name="l00117"></a>00117   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="namespaceCVC3.html#a83fde65f6cf7f65c3e5c02c9a108d781a8aa48defeac37f699364f71fe54f39ee">ARRAY</a>, type1.<a class="code" href="classCVC3_1_1Type.html#a0bc1eebf8dbd9d2880e1f18d7804e5c2">getExpr</a>(), type2.<a class="code" href="classCVC3_1_1Type.html#a0bc1eebf8dbd9d2880e1f18d7804e5c2">getExpr</a>())); }
<a name="l00118"></a>00118 
<a name="l00119"></a>00119 <span class="comment">// Expr read(const Expr&amp; arr, const Expr&amp; index);</span>
<a name="l00120"></a>00120 <span class="comment">// Expr write(const Expr&amp; arr, const Expr&amp; index, const Expr&amp; value);</span>
<a name="l00121"></a>00121 Expr <a class="code" href="namespaceCVC3.html#a6e5d3ff27d9ac5973d1f9f3ba7fbd5fb">arrayLiteral</a>(<span class="keyword">const</span> Expr&amp; ind, <span class="keyword">const</span> Expr&amp; body);
<a name="l00122"></a>00122 } <span class="comment">// end of namespace CVC3</span>
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Sep 7 2011 for CVC3 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>