Sophie

Sophie

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

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: expr.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">expr.h</div>  </div>
</div>
<div class="contents">
<a href="expr_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 expr.h</span>
<a name="l00004"></a>00004 <span class="comment"> * \brief Definition of the API to expression package.  See class Expr for details.</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * Author: Clark Barrett</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * Created: Tue Nov 26 00:27:40 2002</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> * License to use, copy, modify, sell and/or distribute this software</span>
<a name="l00013"></a>00013 <span class="comment"> * and its documentation for any purpose is hereby granted without</span>
<a name="l00014"></a>00014 <span class="comment"> * royalty, subject to the terms and conditions defined in the \ref</span>
<a name="l00015"></a>00015 <span class="comment"> * LICENSE file provided with this distribution.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00020"></a>00020 <span class="comment">/*****************************************************************************/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef _cvc3__expr_h_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _cvc3__expr_h_</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;sstream&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;set&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;functional&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;iterator&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;<a class="code" href="os_8h.html" title="Abstraction over different operating systems.">os.h</a>&quot;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;<a class="code" href="compat__hash__map_8h.html">compat_hash_map.h</a>&quot;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &quot;<a class="code" href="compat__hash__set_8h.html">compat_hash_set.h</a>&quot;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &quot;<a class="code" href="rational_8h.html">rational.h</a>&quot;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;<a class="code" href="kinds_8h.html">kinds.h</a>&quot;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &quot;<a class="code" href="cdo_8h.html">cdo.h</a>&quot;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &quot;<a class="code" href="cdflags_8h.html" title="Context Dependent Vector of Flags.">cdflags.h</a>&quot;</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include &quot;<a class="code" href="lang_8h.html" title="Definition of input and output languages to CVC3.">lang.h</a>&quot;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &quot;<a class="code" href="memory__manager_8h.html">memory_manager.h</a>&quot;</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="keyword">class </span>CInterface;
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="keyword">namespace </span>CVC3 {
<a name="l00045"></a>00045 
<a name="l00046"></a>00046   <span class="keyword">class </span>NotifyList;
<a name="l00047"></a>00047   <span class="keyword">class </span>Theory;
<a name="l00048"></a>00048   <span class="keyword">class </span>Op;
<a name="l00049"></a>00049   <span class="keyword">class </span>Type;
<a name="l00050"></a>00050   <span class="keyword">class </span>Theorem;
<a name="l00051"></a>00051 
<a name="l00052"></a>00052   <span class="keyword">template</span>&lt;<span class="keyword">class</span> Data&gt;
<a name="l00053"></a>00053   <span class="keyword">class </span>ExprHashMap;
<a name="l00054"></a>00054 
<a name="l00055"></a>00055   <span class="keyword">class </span>ExprManager;
<a name="l00056"></a>00056   <span class="comment">// Internal data-holding classes</span>
<a name="l00057"></a>00057   <span class="keyword">class </span>ExprValue;
<a name="l00058"></a>00058   <span class="keyword">class </span>ExprNode;
<a name="l00059"></a>00059   <span class="comment">// Printing</span>
<a name="l00060"></a>00060   <span class="keyword">class </span>ExprStream;
<a name="l00061"></a>00061 <span class="comment"></span>
<a name="l00062"></a>00062 <span class="comment">  //! Type ID of each ExprValue subclass.</span>
<a name="l00063"></a>00063 <span class="comment"></span><span class="comment">  /*! It is defined in expr.h, so that ExprManager can use it before loading</span>
<a name="l00064"></a>00064 <span class="comment">    expr_value.h */</span>
<a name="l00065"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8">00065</a>   <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00066"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a45728d440ceb44bdb47f21351a153e88">00066</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a45728d440ceb44bdb47f21351a153e88">EXPR_VALUE</a>,
<a name="l00067"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a3893ed6eebbc5daca30a7aac2282fe6f">00067</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a3893ed6eebbc5daca30a7aac2282fe6f">EXPR_NODE</a>,
<a name="l00068"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8ac0f64afa0582818fffa2cc5403db8a0e">00068</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8ac0f64afa0582818fffa2cc5403db8a0e" title="Application of functions and predicates.">EXPR_APPLY</a>, <span class="comment">//!&lt; Application of functions and predicates</span>
<a name="l00069"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8aaabca50d22455e77c3f61e8d5307989b">00069</a> <span class="comment"></span>    <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8aaabca50d22455e77c3f61e8d5307989b">EXPR_STRING</a>,
<a name="l00070"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a424556ebe7d7485cbd13e5c1e5228811">00070</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a424556ebe7d7485cbd13e5c1e5228811">EXPR_RATIONAL</a>,
<a name="l00071"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a4e7d647c7c01957f00b94b5a2c86e0a7">00071</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a4e7d647c7c01957f00b94b5a2c86e0a7">EXPR_SKOLEM</a>,
<a name="l00072"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a82b57cae98f27f2d8f414efe70d1a1b1">00072</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a82b57cae98f27f2d8f414efe70d1a1b1">EXPR_UCONST</a>,
<a name="l00073"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a54fe96ba026d0bef6191b315f7190262">00073</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a54fe96ba026d0bef6191b315f7190262">EXPR_SYMBOL</a>,
<a name="l00074"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a58a9f13ea5962be2ef65dc0693743d81">00074</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a58a9f13ea5962be2ef65dc0693743d81">EXPR_BOUND_VAR</a>,
<a name="l00075"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a93c8095a1c01d7a11081e615b94a3b2b">00075</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a93c8095a1c01d7a11081e615b94a3b2b">EXPR_CLOSURE</a>,
<a name="l00076"></a><a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a0ead87cd0a551c50f3b0e42cbe72f8b3">00076</a>     <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8a0ead87cd0a551c50f3b0e42cbe72f8b3">EXPR_VALUE_TYPE_LAST</a> <span class="comment">// The end of list; don&#39;t assign it to any subclass</span>
<a name="l00077"></a>00077   } <a class="code" href="namespaceCVC3.html#a492cd44a88003acd985d3c05cbd36ea8" title="Type ID of each ExprValue subclass.">ExprValueType</a>;
<a name="l00078"></a>00078 <span class="comment"></span>
<a name="l00079"></a>00079 <span class="comment">  //! Enum for cardinality of types</span>
<a name="l00080"></a><a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54">00080</a> <span class="comment"></span>  <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00081"></a><a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54ac1ba3119b0fd85d3e54c69601ec1ccca">00081</a>     <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54ac1ba3119b0fd85d3e54c69601ec1ccca">CARD_FINITE</a>,
<a name="l00082"></a><a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54ad4a45eb68b0ebb32f0c805f6d2abf6d6">00082</a>     <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54ad4a45eb68b0ebb32f0c805f6d2abf6d6">CARD_INFINITE</a>,
<a name="l00083"></a><a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54a61454dbfa122fc961909dfd151695807">00083</a>     <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54a61454dbfa122fc961909dfd151695807">CARD_UNKNOWN</a>
<a name="l00084"></a>00084   } <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54" title="Enum for cardinality of types.">Cardinality</a>;
<a name="l00085"></a>00085 <span class="comment"></span>
<a name="l00086"></a>00086 <span class="comment">  //! Expression index type</span>
<a name="l00087"></a><a class="code" href="namespaceCVC3.html#a4233916514848331ee104548acbab912">00087</a> <span class="comment"></span>  <span class="keyword">typedef</span> <span class="keywordtype">long</span> <span class="keywordtype">unsigned</span> <a class="code" href="namespaceCVC3.html#a4233916514848331ee104548acbab912" title="Expression index type.">ExprIndex</a>;
<a name="l00088"></a>00088 
<a name="l00089"></a>00089   <span class="comment">/**************************************************************************/</span><span class="comment"></span>
<a name="l00090"></a>00090 <span class="comment">  /*! \defgroup ExprPkg Expression Package</span>
<a name="l00091"></a>00091 <span class="comment">   * \ingroup BuildingBlocks</span>
<a name="l00092"></a>00092 <span class="comment">   */</span>
<a name="l00093"></a>00093   <span class="comment">/**************************************************************************/</span><span class="comment"></span>
<a name="l00094"></a>00094 <span class="comment">  /*! \defgroup Expr_SmartPointer Smart Pointer Functionality in Expr</span>
<a name="l00095"></a>00095 <span class="comment">   * \ingroup ExprPkg</span>
<a name="l00096"></a>00096 <span class="comment">   */</span>
<a name="l00097"></a>00097   <span class="comment">/**************************************************************************/</span>
<a name="l00098"></a>00098 
<a name="l00099"></a>00099   <span class="comment">/**************************************************************************/</span><span class="comment"></span>
<a name="l00100"></a>00100 <span class="comment">  //! Data structure of expressions in CVC3</span>
<a name="l00101"></a>00101 <span class="comment"></span><span class="comment">  /*! \ingroup ExprPkg</span>
<a name="l00102"></a>00102 <span class="comment">   * Class: Expr &lt;br&gt;</span>
<a name="l00103"></a>00103 <span class="comment">   * Author: Clark Barrett &lt;br&gt;</span>
<a name="l00104"></a>00104 <span class="comment">   * Created: Mon Nov 25 15:29:37 2002</span>
<a name="l00105"></a>00105 <span class="comment">   *</span>
<a name="l00106"></a>00106 <span class="comment">   * This class is the main data structure for expressions that all</span>
<a name="l00107"></a>00107 <span class="comment">   * other components should use.  It is actually a &lt;em&gt;smart</span>
<a name="l00108"></a>00108 <span class="comment">   * pointer&lt;/em&gt; to the actual data holding class ExprValue and its</span>
<a name="l00109"></a>00109 <span class="comment">   * subclasses.</span>
<a name="l00110"></a>00110 <span class="comment">   *</span>
<a name="l00111"></a>00111 <span class="comment">   * Expressions are represented as DAGs with maximal sharing of</span>
<a name="l00112"></a>00112 <span class="comment">   * subexpressions.  Therefore, testing for equality is a constant time</span>
<a name="l00113"></a>00113 <span class="comment">   * operation (simply compare the pointers).</span>
<a name="l00114"></a>00114 <span class="comment">   *</span>
<a name="l00115"></a>00115 <span class="comment">   * Unused expressions are automatically garbage-collected.  The use is</span>
<a name="l00116"></a>00116 <span class="comment">   * determined by a reference counting mechanism.  In particular, this</span>
<a name="l00117"></a>00117 <span class="comment">   * means that if there is a circular dependency among expressions</span>
<a name="l00118"></a>00118 <span class="comment">   * (e.g. an attribute points back to the expression itself), these</span>
<a name="l00119"></a>00119 <span class="comment">   * expressions will not be garbage-collected, even if no one else is</span>
<a name="l00120"></a>00120 <span class="comment">   * using them.</span>
<a name="l00121"></a>00121 <span class="comment">   *</span>
<a name="l00122"></a>00122 <span class="comment">   * The most frequently used operations are getKind() (determining the</span>
<a name="l00123"></a>00123 <span class="comment">   * kind of the top level node of the expression), arity() (how many</span>
<a name="l00124"></a>00124 <span class="comment">   * children an Expr has), operator[]() for accessing a child, and</span>
<a name="l00125"></a>00125 <span class="comment">   * various testers and methods for constructing new expressions.</span>
<a name="l00126"></a>00126 <span class="comment">   *</span>
<a name="l00127"></a>00127 <span class="comment">   * In addition, a total ordering operator&lt;() is provided.  It is</span>
<a name="l00128"></a>00128 <span class="comment">   * guaranteed to remain the same for the lifetime of the expressions</span>
<a name="l00129"></a>00129 <span class="comment">   * (it may change, however, if the expression is garbage-collected and</span>
<a name="l00130"></a>00130 <span class="comment">   * reborn).</span>
<a name="l00131"></a>00131 <span class="comment">   */</span>
<a name="l00132"></a>00132   <span class="comment">/**************************************************************************/</span>
<a name="l00133"></a><a class="code" href="classCVC3_1_1Expr.html">00133</a> <span class="keyword">class </span><a class="code" href="os_8h.html#a0035aac6379df39aa69feba98b2751ba">CVC_DLL</a> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> {
<a name="l00134"></a><a class="code" href="classCVC3_1_1Expr.html#a966b1c64eb8abb1688f28451453d3479">00134</a>   <span class="keyword">friend</span> <span class="keyword">class </span>ExprHasher;
<a name="l00135"></a><a class="code" href="classCVC3_1_1Expr.html#a53c627979d9a14928590601b9fd195c2">00135</a>   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>;
<a name="l00136"></a><a class="code" href="classCVC3_1_1Expr.html#a2c31e8a3c11caeb061d69db14ebb0e95">00136</a>   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCVC3_1_1Op.html">Op</a>;
<a name="l00137"></a><a class="code" href="classCVC3_1_1Expr.html#a6b4e0ce748563841be8fe35c34ee7975">00137</a>   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCVC3_1_1ExprValue.html" title="The base class for holding the actual data in expressions.">ExprValue</a>;
<a name="l00138"></a><a class="code" href="classCVC3_1_1Expr.html#af86989fa451681663344e67f9ae1be0d">00138</a>   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCVC3_1_1ExprNode.html">ExprNode</a>;
<a name="l00139"></a><a class="code" href="classCVC3_1_1Expr.html#a53271ded90a8b528132eeb7247936492">00139</a>   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCVC3_1_1ExprClosure.html" title="A &quot;closure&quot; expression which binds variables used in the &quot;body&quot;. Used by LAMBDA and quantifiers...">ExprClosure</a>;
<a name="l00140"></a><a class="code" href="classCVC3_1_1Expr.html#a61a2a0fa995725e9988683c6dabd503c">00140</a>   <span class="keyword">friend</span> class ::CInterface;
<a name="l00141"></a><a class="code" href="classCVC3_1_1Expr.html#a51f48d7e14c97707595cfe5f8f6df209">00141</a>   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>;
<a name="l00142"></a>00142 <span class="comment"></span>
<a name="l00143"></a>00143 <span class="comment">  /*! \addtogroup ExprPkg</span>
<a name="l00144"></a>00144 <span class="comment">   * @{</span>
<a name="l00145"></a>00145 <span class="comment">   */</span><span class="comment"></span>
<a name="l00146"></a>00146 <span class="comment">  //! bit-masks for static flags</span>
<a name="l00147"></a><a class="code" href="group__ExprPkg.html#ga5285f004f382cfb7a002f8dea3b3316c">00147</a> <span class="comment"></span>  <span class="keyword">typedef</span> <span class="keyword">enum</span> {<span class="comment"></span>
<a name="l00148"></a>00148 <span class="comment">    //! Whether is valid TYPE expr</span>
<a name="l00149"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca064c35d31f9b779c3c327a38c22f7d5a">00149</a> <span class="comment"></span>    VALID_TYPE = 0x1,<span class="comment"></span>
<a name="l00150"></a>00150 <span class="comment">    //! Whether IS_ATOMIC flag is valid (initialized)</span>
<a name="l00151"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca4bc8d45f29e985faa033b685c209c934">00151</a> <span class="comment"></span>    VALID_IS_ATOMIC = 0x2,<span class="comment"></span>
<a name="l00152"></a>00152 <span class="comment">    //! Whether the expression is an atomic term or formula</span>
<a name="l00153"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316caf25f8b67eed5f06cdff26bfe7e5f004b">00153</a> <span class="comment"></span>    IS_ATOMIC = 0x4,<span class="comment"></span>
<a name="l00154"></a>00154 <span class="comment">    //! Expression is the result of a &quot;normal&quot; (idempotent) rewrite</span>
<a name="l00155"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca6279757281c85b060623657eae639d11">00155</a> <span class="comment"></span>    REWRITE_NORMAL = 0x8,<span class="comment"></span>
<a name="l00156"></a>00156 <span class="comment">    //! Finite type</span>
<a name="l00157"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca8282a0d9539e4019a384810c6ddf80ff">00157</a> <span class="comment"></span>    IS_FINITE = 0x400,<span class="comment"></span>
<a name="l00158"></a>00158 <span class="comment">    //! Well-founded (used in datatypes)</span>
<a name="l00159"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca9f0f9b43c297449dc513bba12a343c0d">00159</a> <span class="comment"></span>    WELL_FOUNDED = 0x800,<span class="comment"></span>
<a name="l00160"></a>00160 <span class="comment">    //! Compute transitive closure (for binary uninterpreted predicates)</span>
<a name="l00161"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316caabe5302ce9b2cf701cb301b81e28315d">00161</a> <span class="comment"></span>    COMPUTE_TRANS_CLOSURE = 0x1000,<span class="comment"></span>
<a name="l00162"></a>00162 <span class="comment">    //! Whether expr contains a bounded variable (for quantifier instantiation)</span>
<a name="l00163"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca37150acb5faf924bcfdffd46fb91fb3f">00163</a> <span class="comment"></span>    CONTAINS_BOUND_VAR = 0x00020000,<span class="comment"></span>
<a name="l00164"></a>00164 <span class="comment">    //! Whether expr uses CC algorithm that relies on not simplifying an expr that has a find</span>
<a name="l00165"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316cad414c75c14f9cc186e6e7df225396627">00165</a> <span class="comment"></span>    USES_CC = 0x00080000,<span class="comment"></span>
<a name="l00166"></a>00166 <span class="comment">    //! Whether TERMINALS_CONST flag is valid (initialized)</span>
<a name="l00167"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca501e68dd8eb63c2ed0d6f52f1eb844f8">00167</a> <span class="comment"></span>    VALID_TERMINALS_CONST = 0x00100000,<span class="comment"></span>
<a name="l00168"></a>00168 <span class="comment">    //! Whether expr contains only numerical constants at all possible ite terminals</span>
<a name="l00169"></a><a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca8f04196095a0b34d324a5c004d08317d">00169</a> <span class="comment"></span>    TERMINALS_CONST = 0x00200000
<a name="l00170"></a>00170   } StaticFlagsEnum;
<a name="l00171"></a>00171 <span class="comment"></span>
<a name="l00172"></a>00172 <span class="comment">  //! bit-masks for dynamic flags</span>
<a name="l00173"></a>00173 <span class="comment"></span>  <span class="comment">// TODO: Registered flags instead of hard-wired</span>
<a name="l00174"></a><a class="code" href="group__ExprPkg.html#ga74e5360ad3392aa4779d981670887936">00174</a>   <span class="keyword">typedef</span> <span class="keyword">enum</span> {<span class="comment"></span>
<a name="l00175"></a>00175 <span class="comment">    //! Whether expr has been added as an implied literal</span>
<a name="l00176"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a34b44b8fd97e8950a24f9d1d939fd3ac">00176</a> <span class="comment"></span>    IMPLIED_LITERAL = 0x10,
<a name="l00177"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936ae7079560c1a0d6742b7dd084401327ac">00177</a>     IS_USER_ASSUMPTION = 0x20,
<a name="l00178"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a4e904444fd219938f8743b8e951eba6d">00178</a>     IS_INT_ASSUMPTION = 0x40,
<a name="l00179"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a5fdae20b9b42f2eae992d1fe377c32b8">00179</a>     IS_JUSTIFIED = 0x80,
<a name="l00180"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a72910ce6e23c9b05b457f5d324141e86">00180</a>     IS_TRANSLATED = 0x100,
<a name="l00181"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936aa8205caf0608f22ab9f3aab9704f4876">00181</a>     IS_USER_REGISTERED_ATOM = 0x200,
<a name="l00182"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a1b8256ca353bb0d0e7baf1c1442209d6">00182</a>     IS_SELECTED = 0x2000,
<a name="l00183"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936ad3d25a426b786f2336d6112309b2b80f">00183</a>     IS_STORED_PREDICATE = 0x4000,
<a name="l00184"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a96ef34cf7e9afffe1442ddd8bc3d946f">00184</a>     IS_REGISTERED_ATOM = 0x8000,
<a name="l00185"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936aec9453c0bef6971761ee89e60baa4a80">00185</a>     IN_USER_ASSUMPTION = 0x00010000,<span class="comment"></span>
<a name="l00186"></a>00186 <span class="comment">    //! Whether expr is normalized (in array theory)</span>
<a name="l00187"></a><a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a0328c59b775199c11653b376c0f3c8cb">00187</a> <span class="comment"></span>    NOT_ARRAY_NORMALIZED = 0x00040000
<a name="l00188"></a>00188   } DynamicFlagsEnum;
<a name="l00189"></a>00189 <span class="comment"></span>
<a name="l00190"></a>00190 <span class="comment">  //! Convenient null expr</span>
<a name="l00191"></a><a class="code" href="group__ExprPkg.html#ga7ad4f1f01878e19f3a6318a846dbfe6f">00191</a> <span class="comment"></span>  <span class="keyword">static</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga7ad4f1f01878e19f3a6318a846dbfe6f" title="Convenient null expr.">s_null</a>;
<a name="l00192"></a>00192 <span class="comment"></span>
<a name="l00193"></a>00193 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00194"></a>00194 <span class="comment"></span>  <span class="comment">// Private Dynamic Data                                                    //</span><span class="comment"></span>
<a name="l00195"></a>00195 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00196"></a>00196 <span class="comment">  //! The value.  This is the only data member in this class.</span>
<a name="l00197"></a><a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">00197</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1ExprValue.html" title="The base class for holding the actual data in expressions.">ExprValue</a>* <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>;
<a name="l00198"></a>00198 <span class="comment"></span>
<a name="l00199"></a>00199 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00200"></a>00200 <span class="comment"></span>  <span class="comment">// Private methods                                                         //</span><span class="comment"></span>
<a name="l00201"></a>00201 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00202"></a>00202 <span class="comment"></span><span class="comment"></span>
<a name="l00203"></a>00203 <span class="comment">  //! Private constructor, simply wraps around the pointer</span>
<a name="l00204"></a>00204 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1ExprValue.html" title="The base class for holding the actual data in expressions.">ExprValue</a>* expr);
<a name="l00205"></a>00205 
<a name="l00206"></a>00206   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> recursiveSubst(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap&lt;Expr&gt;</a>&amp; subst,
<a name="l00207"></a>00207                       <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap&lt;Expr&gt;</a>&amp; visited) <span class="keyword">const</span>;
<a name="l00208"></a>00208 
<a name="l00209"></a>00209   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> recursiveQuantSubst(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap&lt;Expr&gt;</a>&amp; subst,
<a name="l00210"></a>00210                       <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap&lt;Expr&gt;</a>&amp; visited) <span class="keyword">const</span>;
<a name="l00211"></a>00211 
<a name="l00212"></a>00212   std::vector&lt;std::vector&lt;Expr&gt; &gt; substTriggers(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap&lt;Expr&gt;</a> &amp; subst,
<a name="l00213"></a>00213         <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap&lt;Expr&gt;</a> &amp; visited) <span class="keyword">const</span>;
<a name="l00214"></a>00214 <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00215"></a>00215 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00216"></a>00216 <span class="comment"></span>  <span class="comment">// Public Classes and Types                                                //</span><span class="comment"></span>
<a name="l00217"></a>00217 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00218"></a>00218 <span class="comment"></span><span class="comment"></span>
<a name="l00219"></a>00219 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00220"></a>00220 <span class="comment"></span><span class="comment">  /*!</span>
<a name="l00221"></a>00221 <span class="comment">   * Class: Expr::iterator</span>
<a name="l00222"></a>00222 <span class="comment">   * Author: Sergey Berezin</span>
<a name="l00223"></a>00223 <span class="comment">   * Created: Fri Dec  6 15:38:51 2002</span>
<a name="l00224"></a>00224 <span class="comment">   * Description: STL-like iterator API to the Expr&#39;s children.</span>
<a name="l00225"></a>00225 <span class="comment">   * IMPORTANT: the iterator will not be valid after the originating</span>
<a name="l00226"></a>00226 <span class="comment">   * expression is destroyed.</span>
<a name="l00227"></a>00227 <span class="comment">  */</span><span class="comment"></span>
<a name="l00228"></a>00228 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00229"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html">00229</a> <span class="comment"></span>  <span class="keyword">class </span><a class="code" href="os_8h.html#a0035aac6379df39aa69feba98b2751ba">CVC_DLL</a> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">iterator</a>
<a name="l00230"></a>00230     : <span class="keyword">public</span> std::<a class="code" href="classCVC3_1_1Expr_1_1iterator.html">iterator</a>&lt;std::input_iterator_tag,Expr,ptrdiff_t&gt;
<a name="l00231"></a>00231   {
<a name="l00232"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#aa33520359f6cc0f51b476790d39ed869">00232</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>;
<a name="l00233"></a>00233   <span class="keyword">private</span>:
<a name="l00234"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#a8cd06349787921591a4ea07741784214">00234</a>     std::vector&lt;Expr&gt;::const_iterator <a class="code" href="classCVC3_1_1Expr_1_1iterator.html#a8cd06349787921591a4ea07741784214">d_it</a>;
<a name="l00235"></a>00235     <span class="comment">// Private constructors (used by Expr only)</span>
<a name="l00236"></a>00236     <span class="comment">//</span><span class="comment"></span>
<a name="l00237"></a>00237 <span class="comment">    //! Construct an iterator out of the vector&#39;s iterator</span>
<a name="l00238"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#a31607ebf261aafcfd3ec34647ced71c0">00238</a> <span class="comment"></span>    <a class="code" href="classCVC3_1_1Expr_1_1iterator.html#a31607ebf261aafcfd3ec34647ced71c0" title="Construct an iterator out of the vector&#39;s iterator.">iterator</a>(std::vector&lt;Expr&gt;::const_iterator it): d_it(it) { }
<a name="l00239"></a>00239     <span class="comment">// Public methods</span>
<a name="l00240"></a>00240   <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00241"></a>00241 <span class="comment">    //! Default constructor</span>
<a name="l00242"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#aee0314bd5cee8015cade6dcc727b69b8">00242</a> <span class="comment"></span>    <a class="code" href="classCVC3_1_1Expr_1_1iterator.html#aee0314bd5cee8015cade6dcc727b69b8" title="Default constructor.">iterator</a>() { }
<a name="l00243"></a>00243     <span class="comment">// Copy constructor and operator= are defined by C++, that&#39;s good enough</span>
<a name="l00244"></a>00244 <span class="comment"></span>
<a name="l00245"></a>00245 <span class="comment">    //! Equality</span>
<a name="l00246"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#ac05a8951ed793276a40d69cf0949ca78">00246</a> <span class="comment"></span>    <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html#ac05a8951ed793276a40d69cf0949ca78" title="Equality.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">iterator</a>&amp; i)<span class="keyword"> const </span>{
<a name="l00247"></a>00247       <span class="keywordflow">return</span> d_it == i.<a class="code" href="classCVC3_1_1Expr_1_1iterator.html#a8cd06349787921591a4ea07741784214">d_it</a>;
<a name="l00248"></a>00248     }<span class="comment"></span>
<a name="l00249"></a>00249 <span class="comment">    //! Disequality</span>
<a name="l00250"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#ad0bded1af878addc298e9252151afc93">00250</a> <span class="comment"></span>    <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html#ad0bded1af878addc298e9252151afc93" title="Disequality.">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">iterator</a>&amp; i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == i); }<span class="comment"></span>
<a name="l00251"></a>00251 <span class="comment">    //! Dereference operator</span>
<a name="l00252"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#ae84a8b1b80d71e91c6a588191e6f078c">00252</a> <span class="comment"></span>    <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="classCVC3_1_1Expr_1_1iterator.html#ae84a8b1b80d71e91c6a588191e6f078c" title="Dereference operator.">operator*</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *d_it; }<span class="comment"></span>
<a name="l00253"></a>00253 <span class="comment">    //! Dereference and member access</span>
<a name="l00254"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#a018c93875a6ce5c38455a4d6c826fb66">00254</a> <span class="comment"></span>    <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>* <a class="code" href="classCVC3_1_1Expr_1_1iterator.html#a018c93875a6ce5c38455a4d6c826fb66" title="Dereference and member access.">operator-&gt;</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &amp;(<a class="code" href="namespaceCVC3.html#a300bc9244236ebdb1bff90b0b453034c">operator*</a>()); }<span class="comment"></span>
<a name="l00255"></a>00255 <span class="comment">    //! Prefix increment</span>
<a name="l00256"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#aa1774c0cf4ac52869a944bc217859746">00256</a> <span class="comment"></span>    <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">iterator</a>&amp; <a class="code" href="classCVC3_1_1Expr_1_1iterator.html#aa1774c0cf4ac52869a944bc217859746" title="Prefix increment.">operator++</a>() {
<a name="l00257"></a>00257       ++d_it;
<a name="l00258"></a>00258       <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00259"></a>00259     }<span class="comment"></span>
<a name="l00260"></a>00260 <span class="comment">    /*! @brief Postfix increment requires a Proxy object to hold the</span>
<a name="l00261"></a>00261 <span class="comment">     * intermediate value for dereferencing */</span>
<a name="l00262"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html">00262</a>     <span class="keyword">class </span><a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html" title="Postfix increment requires a Proxy object to hold the intermediate value for dereferencing.">Proxy</a> {
<a name="l00263"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html#a349df658ad42a8b19e87b4c172851455">00263</a>       <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>* <a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html#a349df658ad42a8b19e87b4c172851455">d_e</a>;
<a name="l00264"></a>00264     <span class="keyword">public</span>:
<a name="l00265"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html#a408bd234be73e4c6562b7e096ca859cd">00265</a>       <a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html#a408bd234be73e4c6562b7e096ca859cd">Proxy</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) : d_e(&amp;e) { }
<a name="l00266"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html#a55f5f95da3aaf9f48b79407701f23d3b">00266</a>       <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html#a55f5f95da3aaf9f48b79407701f23d3b">operator*</a>() { <span class="keywordflow">return</span> *d_e; }
<a name="l00267"></a>00267     };<span class="comment"></span>
<a name="l00268"></a>00268 <span class="comment">    //! Postfix increment</span>
<a name="l00269"></a>00269 <span class="comment"></span><span class="comment">    /*! \return Proxy with the old Expr.</span>
<a name="l00270"></a>00270 <span class="comment">     *</span>
<a name="l00271"></a>00271 <span class="comment">     * Now, an expression like *i++ will return the current *i, and</span>
<a name="l00272"></a>00272 <span class="comment">     * then advance the iterator.  However, don&#39;t try to use Proxy for</span>
<a name="l00273"></a>00273 <span class="comment">     * anything else.</span>
<a name="l00274"></a>00274 <span class="comment">     */</span>
<a name="l00275"></a><a class="code" href="classCVC3_1_1Expr_1_1iterator.html#aee120db33f3555a008cb49dfafbc3402">00275</a>     <a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html" title="Postfix increment requires a Proxy object to hold the intermediate value for dereferencing.">Proxy</a> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html#aee120db33f3555a008cb49dfafbc3402" title="Postfix increment.">operator++</a>(<span class="keywordtype">int</span>) {
<a name="l00276"></a>00276       <a class="code" href="classCVC3_1_1Expr_1_1iterator_1_1Proxy.html" title="Postfix increment requires a Proxy object to hold the intermediate value for dereferencing.">Proxy</a> e(*(*<span class="keyword">this</span>));
<a name="l00277"></a>00277       ++(*this);
<a name="l00278"></a>00278       <span class="keywordflow">return</span> e;
<a name="l00279"></a>00279     }
<a name="l00280"></a>00280   }; <span class="comment">// end of class Expr::iterator</span>
<a name="l00281"></a>00281 <span class="comment"></span>
<a name="l00282"></a>00282 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00283"></a>00283 <span class="comment"></span>  <span class="comment">// Constructors                                                            //</span><span class="comment"></span>
<a name="l00284"></a>00284 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00285"></a>00285 <span class="comment"></span><span class="comment"></span>
<a name="l00286"></a>00286 <span class="comment">  //! Default constructor creates the Null Expr</span>
<a name="l00287"></a><a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1">00287</a> <span class="comment"></span>  <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>(): d_expr(NULL) {}
<a name="l00288"></a>00288 <span class="comment"></span>
<a name="l00289"></a>00289 <span class="comment">  /*! @brief Copy constructor and assignment (copy the pointer and take care</span>
<a name="l00290"></a>00290 <span class="comment">    of the refcount) */</span>
<a name="l00291"></a>00291   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</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="comment"></span>
<a name="l00292"></a>00292 <span class="comment">  //! Assignment operator: take care of the refcounting and GC</span>
<a name="l00293"></a>00293 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; operator=(<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="l00294"></a>00294 
<a name="l00295"></a>00295   <span class="comment">// These constructors grab the ExprManager from the Op or the first</span>
<a name="l00296"></a>00296   <span class="comment">// child.  The operator and all children must belong to the same</span>
<a name="l00297"></a>00297   <span class="comment">// ExprManager.</span>
<a name="l00298"></a>00298   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child);
<a name="l00299"></a>00299   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child0, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child1);
<a name="l00300"></a>00300   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child0, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child1,
<a name="l00301"></a>00301        <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child2);
<a name="l00302"></a>00302   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child0, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child1,
<a name="l00303"></a>00303        <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child2, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child3);
<a name="l00304"></a>00304   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; children,
<a name="l00305"></a>00305        <a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* em = NULL);
<a name="l00306"></a>00306 <span class="comment"></span>
<a name="l00307"></a>00307 <span class="comment">  //! Destructor</span>
<a name="l00308"></a>00308 <span class="comment"></span>  ~<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>();
<a name="l00309"></a>00309 
<a name="l00310"></a>00310   <span class="comment">// Compound expression constructors</span>
<a name="l00311"></a>00311   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> eqExpr(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>) <span class="keyword">const</span>;
<a name="l00312"></a>00312   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> notExpr() <span class="keyword">const</span>;
<a name="l00313"></a>00313   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> negate() <span class="keyword">const</span>; <span class="comment">// avoid double-negatives</span>
<a name="l00314"></a>00314   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="namespaceCVC3.html#ad4258158bba138eb54b9080af7f8223a">andExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>) <span class="keyword">const</span>;
<a name="l00315"></a>00315   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="namespaceCVC3.html#a30f30b6e20c174f21ae63acea8618294">orExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>) <span class="keyword">const</span>;
<a name="l00316"></a>00316   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> iteExpr(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; thenpart, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; elsepart) <span class="keyword">const</span>;
<a name="l00317"></a>00317   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> iffExpr(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>) <span class="keyword">const</span>;
<a name="l00318"></a>00318   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> impExpr(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>) <span class="keyword">const</span>;
<a name="l00319"></a>00319   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> xorExpr(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>) <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00320"></a>00320 <span class="comment">  //! Create a Skolem constant for the i&#39;th variable of an existential (*this)</span>
<a name="l00321"></a>00321 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> skolemExpr(<span class="keywordtype">int</span> i) <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00322"></a>00322 <span class="comment">  //! Create a Boolean variable out of the expression</span>
<a name="l00323"></a>00323 <span class="comment"></span>  <span class="comment">//  Expr boolVarExpr() const;</span><span class="comment"></span>
<a name="l00324"></a>00324 <span class="comment">  //! Rebuild Expr with a new ExprManager</span>
<a name="l00325"></a>00325 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> rebuild(<a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* em) <span class="keyword">const</span>;
<a name="l00326"></a>00326 <span class="comment">//    Expr newForall(const Expr&amp; e);</span>
<a name="l00327"></a>00327 <span class="comment">//    Expr newExists(const Expr&amp; e);</span>
<a name="l00328"></a>00328   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> substExpr(<span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; oldTerms,
<a name="l00329"></a>00329                  <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; newTerms) <span class="keyword">const</span>;
<a name="l00330"></a>00330   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> substExpr(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap&lt;Expr&gt;</a>&amp; oldToNew) <span class="keyword">const</span>;
<a name="l00331"></a>00331 
<a name="l00332"></a>00332 <span class="comment">// by yeting, a special subst function for TheoryQuant</span>
<a name="l00333"></a>00333   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> substExprQuant(<span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; oldTerms,
<a name="l00334"></a>00334           <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; newTerms) <span class="keyword">const</span>;
<a name="l00335"></a>00335   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> substExprQuant(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap&lt;Expr&gt;</a>&amp; oldToNew) <span class="keyword">const</span>;
<a name="l00336"></a>00336 
<a name="l00337"></a><a class="code" href="group__ExprPkg.html#gab13e5c897123bbde4b24e9571d27a88c">00337</a>   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#gab13e5c897123bbde4b24e9571d27a88c">operator!</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> notExpr(); }
<a name="l00338"></a><a class="code" href="group__ExprPkg.html#ga0fff31138ef63bbc3a7defd92af9fca2">00338</a>   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga0fff31138ef63bbc3a7defd92af9fca2">operator&amp;&amp;</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="namespaceCVC3.html#ad4258158bba138eb54b9080af7f8223a">andExpr</a>(right); }
<a name="l00339"></a><a class="code" href="group__ExprPkg.html#ga909307189b2a1c7e122d139ce6f093f0">00339</a>   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga909307189b2a1c7e122d139ce6f093f0">operator||</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="namespaceCVC3.html#a30f30b6e20c174f21ae63acea8618294">orExpr</a>(right); }
<a name="l00340"></a>00340 <span class="comment"></span>
<a name="l00341"></a>00341 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00342"></a>00342 <span class="comment"></span>  <span class="comment">// Public Static Methods                                                   //</span><span class="comment"></span>
<a name="l00343"></a>00343 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00344"></a>00344 <span class="comment"></span>
<a name="l00345"></a>00345   <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code" href="structHash_1_1hash.html">hash</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="l00346"></a>00346 <span class="comment"></span>
<a name="l00347"></a>00347 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00348"></a>00348 <span class="comment"></span>  <span class="comment">// Read-only (const) methods                                               //</span><span class="comment"></span>
<a name="l00349"></a>00349 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00350"></a>00350 <span class="comment"></span>
<a name="l00351"></a>00351   <span class="keywordtype">size_t</span> <a class="code" href="structHash_1_1hash.html">hash</a>() <span class="keyword">const</span>;
<a name="l00352"></a>00352 
<a name="l00353"></a>00353   <span class="comment">// Core expression testers</span>
<a name="l00354"></a>00354 
<a name="l00355"></a><a class="code" href="group__ExprPkg.html#ga6173f64b22cba76472cd0c814bbf6dae">00355</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga6173f64b22cba76472cd0c814bbf6dae">isFalse</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5f71bd33a6528411ae681f5291de1d82">FALSE_EXPR</a>; }
<a name="l00356"></a><a class="code" href="group__ExprPkg.html#gadf8596df73fa69ff8e6a22b9321f5c34">00356</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gadf8596df73fa69ff8e6a22b9321f5c34">isTrue</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba1fad76919fba496de21807e2beec533d">TRUE_EXPR</a>; }
<a name="l00357"></a><a class="code" href="group__ExprPkg.html#ga5c2cee598096c66e80d87490d6505bc4">00357</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga5c2cee598096c66e80d87490d6505bc4">isBoolConst</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> isFalse() || isTrue(); }
<a name="l00358"></a>00358   <span class="keywordtype">bool</span> isVar() <span class="keyword">const</span>;
<a name="l00359"></a><a class="code" href="group__ExprPkg.html#ga01122f4c0d9a19d9b991600e480cc862">00359</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga01122f4c0d9a19d9b991600e480cc862">isBoundVar</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba462c38186c36e12c2f38a6d0d43feddf">BOUND_VAR</a>; }
<a name="l00360"></a>00360   <span class="keywordtype">bool</span> isString() <span class="keyword">const</span>;
<a name="l00361"></a>00361   <span class="keywordtype">bool</span> isClosure() <span class="keyword">const</span>;
<a name="l00362"></a>00362   <span class="keywordtype">bool</span> isQuantifier() <span class="keyword">const</span>;
<a name="l00363"></a>00363   <span class="keywordtype">bool</span> isLambda() <span class="keyword">const</span>;
<a name="l00364"></a>00364   <span class="keywordtype">bool</span> isApply() <span class="keyword">const</span>;
<a name="l00365"></a>00365   <span class="keywordtype">bool</span> isSymbol() <span class="keyword">const</span>;
<a name="l00366"></a>00366   <span class="keywordtype">bool</span> isTheorem() <span class="keyword">const</span>;
<a name="l00367"></a>00367 
<a name="l00368"></a><a class="code" href="group__ExprPkg.html#ga3c3645e1962f6de72655c650639e7a2d">00368</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga3c3645e1962f6de72655c650639e7a2d">isConstant</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getOpKind() &lt;= <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba3618e875d4c212a43e224a8a8745e7eb">MAX_CONST</a>; }
<a name="l00369"></a>00369   
<a name="l00370"></a><a class="code" href="group__ExprPkg.html#ga61d63967e5419f6d32eb153e7e39a913">00370</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga61d63967e5419f6d32eb153e7e39a913">isRawList</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba60238049e233c8d68fc58e4d5ceb55e2">RAW_LIST</a>;}
<a name="l00371"></a>00371 <span class="comment"></span>
<a name="l00372"></a>00372 <span class="comment">  //! Expr represents a type</span>
<a name="l00373"></a>00373 <span class="comment"></span>  <span class="keywordtype">bool</span> isType() <span class="keyword">const</span>;
<a name="l00374"></a>00374   <span class="comment">/*</span>
<a name="l00375"></a>00375 <span class="comment">  bool isRecord() const;</span>
<a name="l00376"></a>00376 <span class="comment">  bool isRecordAccess() const;</span>
<a name="l00377"></a>00377 <span class="comment">  bool isTupleAccess() const;</span>
<a name="l00378"></a>00378 <span class="comment">  */</span><span class="comment"></span>
<a name="l00379"></a>00379 <span class="comment">  //! Provide access to ExprValue for client subclasses of ExprValue *only*</span>
<a name="l00380"></a>00380 <span class="comment"></span>  <span class="comment">/*@ Calling getExprValue on an Expr with a built-in ExprValue class will</span>
<a name="l00381"></a>00381 <span class="comment">   * cause an error */</span>
<a name="l00382"></a>00382   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1ExprValue.html" title="The base class for holding the actual data in expressions.">ExprValue</a>* getExprValue() <span class="keyword">const</span>;
<a name="l00383"></a>00383 <span class="comment"></span>
<a name="l00384"></a>00384 <span class="comment">  //! Test if e is a term (as opposed to a predicate/formula)</span>
<a name="l00385"></a>00385 <span class="comment"></span>  <span class="keywordtype">bool</span> isTerm() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00386"></a>00386 <span class="comment">  //! Test if e is atomic</span>
<a name="l00387"></a>00387 <span class="comment"></span><span class="comment">  /*! An atomic expression is TRUE or FALSE or one that does not</span>
<a name="l00388"></a>00388 <span class="comment">   *  contain a formula (including not being a formula itself).</span>
<a name="l00389"></a>00389 <span class="comment">   *  \sa isAtomicFormula */</span>
<a name="l00390"></a>00390   <span class="keywordtype">bool</span> isAtomic() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00391"></a>00391 <span class="comment">  //! Test if e is an atomic formula</span>
<a name="l00392"></a>00392 <span class="comment"></span><span class="comment">  /*! An atomic formula is TRUE or FALSE or an application of a predicate</span>
<a name="l00393"></a>00393 <span class="comment">    (possibly 0-ary) which does not properly contain any formula.  For</span>
<a name="l00394"></a>00394 <span class="comment">    instance, the formula &quot;x = IF f THEN y ELSE z ENDIF&quot; is not an atomic</span>
<a name="l00395"></a>00395 <span class="comment">    formula, since it contains the condition &quot;f&quot;, which is a formula. */</span>
<a name="l00396"></a>00396   <span class="keywordtype">bool</span> isAtomicFormula() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00397"></a>00397 <span class="comment">  //! An abstract atomic formua is an atomic formula or a quantified formula</span>
<a name="l00398"></a><a class="code" href="group__ExprPkg.html#ga5fe5158aefab64fd8adda48ecebb98f9">00398</a> <span class="comment"></span>  <span class="keywordtype">bool</span> isAbsAtomicFormula()<span class="keyword"> const</span>
<a name="l00399"></a>00399 <span class="keyword">    </span>{ <span class="keywordflow">return</span> isQuantifier() || isAtomicFormula(); }<span class="comment"></span>
<a name="l00400"></a>00400 <span class="comment">  //! Test if e is a literal</span>
<a name="l00401"></a>00401 <span class="comment"></span><span class="comment">  /*! A literal is an atomic formula, or its negation.</span>
<a name="l00402"></a>00402 <span class="comment">    \sa isAtomicFormula */</span>
<a name="l00403"></a><a class="code" href="group__ExprPkg.html#ga26619060de89ad70f1f63a20b4d8d020">00403</a>   <span class="keywordtype">bool</span> isLiteral()<span class="keyword"> const</span>
<a name="l00404"></a>00404 <span class="keyword">  </span>{ <span class="keywordflow">return</span> (isAtomicFormula() || (isNot() &amp;&amp; (*<span class="keyword">this</span>)[0].isAtomicFormula())); }<span class="comment"></span>
<a name="l00405"></a>00405 <span class="comment">  //! Test if e is an abstract literal</span>
<a name="l00406"></a><a class="code" href="group__ExprPkg.html#gaac535dae48f02fcd093a5b1b1a062211">00406</a> <span class="comment"></span>  <span class="keywordtype">bool</span> isAbsLiteral()<span class="keyword"> const</span>
<a name="l00407"></a>00407 <span class="keyword">  </span>{ <span class="keywordflow">return</span> (isAbsAtomicFormula() || (isNot() &amp;&amp; (*<span class="keyword">this</span>)[0].isAbsAtomicFormula())); }<span class="comment"></span>
<a name="l00408"></a>00408 <span class="comment">  //! A Bool connective is one of NOT,AND,OR,IMPLIES,IFF,XOR,ITE (with type Bool)</span>
<a name="l00409"></a>00409 <span class="comment"></span>  <span class="keywordtype">bool</span> isBoolConnective() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00410"></a>00410 <span class="comment">  //! True iff expr is not a Bool connective</span>
<a name="l00411"></a><a class="code" href="group__ExprPkg.html#gad8c63abfec9cc4a8319f3df1b47eee45">00411</a> <span class="comment"></span>  <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gad8c63abfec9cc4a8319f3df1b47eee45" title="True iff expr is not a Bool connective.">isPropAtom</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !isTerm() &amp;&amp; !isBoolConnective(); }<span class="comment"></span>
<a name="l00412"></a>00412 <span class="comment">  //! PropAtom or negation of PropAtom</span>
<a name="l00413"></a><a class="code" href="group__ExprPkg.html#gaccf96ea73570e38c5c7e4ad39ed8b509">00413</a> <span class="comment"></span>  <span class="keywordtype">bool</span> isPropLiteral()<span class="keyword"> const</span>
<a name="l00414"></a>00414 <span class="keyword">    </span>{ <span class="keywordflow">return</span> (isNot() &amp;&amp; (*<span class="keyword">this</span>)[0].isPropAtom()) || isPropAtom(); }<span class="comment"></span>
<a name="l00415"></a>00415 <span class="comment">  //! Return whether Expr contains a non-bool type ITE as a sub-term</span>
<a name="l00416"></a>00416 <span class="comment"></span>  <span class="keywordtype">bool</span> containsTermITE() <span class="keyword">const</span>;
<a name="l00417"></a>00417 
<a name="l00418"></a>00418 
<a name="l00419"></a><a class="code" href="group__ExprPkg.html#gac4af2026c180da0f18d66ac616f61f3a">00419</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gac4af2026c180da0f18d66ac616f61f3a">isEq</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba9efdc855f3c1477957fb50affec07f8f">EQ</a>; }
<a name="l00420"></a><a class="code" href="group__ExprPkg.html#ga1a898858ccadce833df5a294c7740f11">00420</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga1a898858ccadce833df5a294c7740f11">isNot</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba0378ebc895849163b249d0b330257dd6">NOT</a>; }
<a name="l00421"></a><a class="code" href="group__ExprPkg.html#ga383260cf4f8919728e2712e6e11f21fa">00421</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga383260cf4f8919728e2712e6e11f21fa">isAnd</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba865555c9f2e0458a7078486aa1b3254f">AND</a>; }
<a name="l00422"></a><a class="code" href="group__ExprPkg.html#ga36f1eff876808586db368dc1b6da5f56">00422</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga36f1eff876808586db368dc1b6da5f56">isOr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba96727447c0ad447987df1c6415aef074">OR</a>; }
<a name="l00423"></a><a class="code" href="group__ExprPkg.html#gaef13fa4752a1fb28e129a1efd0e26f01">00423</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaef13fa4752a1fb28e129a1efd0e26f01">isITE</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba3a4cfaf3eae8eac1dc2fd27d9f0994dc">ITE</a>; }
<a name="l00424"></a><a class="code" href="group__ExprPkg.html#gabe385fb97505cccb75702378511c5375">00424</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gabe385fb97505cccb75702378511c5375">isIff</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba527cb185631442655c4486d51522b5a7">IFF</a>; }
<a name="l00425"></a><a class="code" href="group__ExprPkg.html#ga9067c706c6454ea1761ace7d7837af46">00425</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga9067c706c6454ea1761ace7d7837af46">isImpl</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba7338bb59b9aa936104a6d2f631d4d8db">IMPLIES</a>; }
<a name="l00426"></a><a class="code" href="group__ExprPkg.html#gace27719ae0da2a171560b9fda9e10c8b">00426</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gace27719ae0da2a171560b9fda9e10c8b">isXor</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5bac62338ffb5de22369c75caa565b5da1a">XOR</a>;}
<a name="l00427"></a>00427 
<a name="l00428"></a><a class="code" href="group__ExprPkg.html#gaad6095e1d8b1551a006602d9421fb988">00428</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaad6095e1d8b1551a006602d9421fb988">isForall</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba7b7b6f6e2b88589bd4656a14bcb7eb94">FORALL</a>; }
<a name="l00429"></a><a class="code" href="group__ExprPkg.html#ga1c922163af59ed6bc101728d65e04d16">00429</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga1c922163af59ed6bc101728d65e04d16">isExists</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba3197625a1bb2264943f5a95f236d9973">EXISTS</a>; }
<a name="l00430"></a>00430 
<a name="l00431"></a><a class="code" href="group__ExprPkg.html#gac5ced6adc7a60945ea6707ef494aa28f">00431</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gac5ced6adc7a60945ea6707ef494aa28f">isRational</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5bae07a708ec52c578b62f8b0f701571d56">RATIONAL_EXPR</a>; }
<a name="l00432"></a><a class="code" href="group__ExprPkg.html#gab181584fa647ee5ef5f10e9050225562">00432</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gab181584fa647ee5ef5f10e9050225562">isSkolem</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getKind() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba73072b2c6fef896d006d6691e932cf37">SKOLEM_VAR</a>;}
<a name="l00433"></a>00433 
<a name="l00434"></a>00434   <span class="comment">// Leaf accessors - these functions must only be called one expressions of</span>
<a name="l00435"></a>00435   <span class="comment">// the appropriate kind.</span>
<a name="l00436"></a>00436 
<a name="l00437"></a>00437   <span class="comment">// For UCONST and BOUND_VAR Expr&#39;s</span>
<a name="l00438"></a>00438   <span class="keyword">const</span> std::string&amp; getName() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00439"></a>00439 <span class="comment">  //! For BOUND_VAR, get the UID</span>
<a name="l00440"></a>00440 <span class="comment"></span>  <span class="keyword">const</span> std::string&amp; getUid() <span class="keyword">const</span>;
<a name="l00441"></a>00441 
<a name="l00442"></a>00442   <span class="comment">// For STRING_EXPR&#39;s</span>
<a name="l00443"></a>00443   <span class="keyword">const</span> std::string&amp; getString() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00444"></a>00444 <span class="comment">  //! Get bound variables from a closure Expr</span>
<a name="l00445"></a>00445 <span class="comment"></span>  <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; getVars() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00446"></a>00446 <span class="comment">  //! Get the existential axiom expression for skolem constant</span>
<a name="l00447"></a>00447 <span class="comment"></span>  <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; getExistential() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00448"></a>00448 <span class="comment">  //! Get the index of the bound var that skolem constant comes from</span>
<a name="l00449"></a>00449 <span class="comment"></span>  <span class="keywordtype">int</span> getBoundIndex() <span class="keyword">const</span>;
<a name="l00450"></a>00450 <span class="comment"></span>
<a name="l00451"></a>00451 <span class="comment">  //! Get the body of the closure Expr</span>
<a name="l00452"></a>00452 <span class="comment"></span>  <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; getBody() <span class="keyword">const</span>;
<a name="l00453"></a>00453 <span class="comment"></span>
<a name="l00454"></a>00454 <span class="comment">  //! Set the triggers for a closure Expr</span>
<a name="l00455"></a>00455 <span class="comment"></span>  <span class="keywordtype">void</span> setTriggers(<span class="keyword">const</span> std::vector&lt;std::vector&lt;Expr&gt; &gt;&amp; triggers) <span class="keyword">const</span>;
<a name="l00456"></a>00456   <span class="keywordtype">void</span> setTriggers(<span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; triggers) <span class="keyword">const</span>;
<a name="l00457"></a>00457   <span class="keywordtype">void</span> setTrigger(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; trigger) <span class="keyword">const</span>;
<a name="l00458"></a>00458   <span class="keywordtype">void</span> setMultiTrigger(<span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; multiTrigger) <span class="keyword">const</span>;
<a name="l00459"></a>00459 <span class="comment"></span>
<a name="l00460"></a>00460 <span class="comment">  //! Get the manual triggers of the closure Expr</span>
<a name="l00461"></a>00461 <span class="comment"></span>  <span class="keyword">const</span> std::vector&lt;std::vector&lt;Expr&gt; &gt;&amp; getTriggers() <span class="keyword">const</span>; <span class="comment">//by yeting</span>
<a name="l00462"></a>00462 <span class="comment"></span>
<a name="l00463"></a>00463 <span class="comment">  //! Get the Rational value out of RATIONAL_EXPR</span>
<a name="l00464"></a>00464 <span class="comment"></span>  <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>&amp; getRational() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00465"></a>00465 <span class="comment">  //! Get theorem from THEOREM_EXPR</span>
<a name="l00466"></a>00466 <span class="comment"></span>  <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; getTheorem() <span class="keyword">const</span>;
<a name="l00467"></a>00467 
<a name="l00468"></a>00468   <span class="comment">// Get the expression manager.  The expression must be non-null.</span>
<a name="l00469"></a>00469   <a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a> *getEM() <span class="keyword">const</span>;
<a name="l00470"></a>00470 
<a name="l00471"></a>00471   <span class="comment">// Return a ref to the vector of children.</span>
<a name="l00472"></a>00472   <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; getKids() <span class="keyword">const</span>;
<a name="l00473"></a>00473 
<a name="l00474"></a>00474   <span class="comment">// Get the kind of this expr.</span>
<a name="l00475"></a>00475   <span class="keywordtype">int</span> getKind() <span class="keyword">const</span>;
<a name="l00476"></a>00476 
<a name="l00477"></a>00477   <span class="comment">// Get the index field</span>
<a name="l00478"></a>00478   <a class="code" href="namespaceCVC3.html#a4233916514848331ee104548acbab912" title="Expression index type.">ExprIndex</a> getIndex() <span class="keyword">const</span>;
<a name="l00479"></a>00479 
<a name="l00480"></a>00480   <span class="comment">// True if this is the most recently created expression</span>
<a name="l00481"></a>00481   <span class="keywordtype">bool</span> hasLastIndex() <span class="keyword">const</span>;
<a name="l00482"></a>00482 <span class="comment"></span>
<a name="l00483"></a>00483 <span class="comment">  //! Make the expr into an operator</span>
<a name="l00484"></a>00484 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Op.html">Op</a> mkOp() <span class="keyword">const</span>;
<a name="l00485"></a>00485 <span class="comment"></span>
<a name="l00486"></a>00486 <span class="comment">  //! Get operator from expression</span>
<a name="l00487"></a>00487 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Op.html">Op</a> getOp() <span class="keyword">const</span>;
<a name="l00488"></a>00488 <span class="comment"></span>
<a name="l00489"></a>00489 <span class="comment">  //! Get expression of operator (for APPLY Exprs only)</span>
<a name="l00490"></a>00490 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> getOpExpr() <span class="keyword">const</span>;
<a name="l00491"></a>00491 <span class="comment"></span>
<a name="l00492"></a>00492 <span class="comment">  //! Get kind of operator (for APPLY Exprs only)</span>
<a name="l00493"></a>00493 <span class="comment"></span>  <span class="keywordtype">int</span> getOpKind() <span class="keyword">const</span>;
<a name="l00494"></a>00494 
<a name="l00495"></a>00495   <span class="comment">// Return the number of children.  Note, that an application of a</span>
<a name="l00496"></a>00496   <span class="comment">// user-defined function has the arity of that function (the number</span>
<a name="l00497"></a>00497   <span class="comment">// of arguments), and the function name itself is part of the</span>
<a name="l00498"></a>00498   <span class="comment">// operator.</span>
<a name="l00499"></a>00499   <span class="keywordtype">int</span> arity() <span class="keyword">const</span>;
<a name="l00500"></a>00500 
<a name="l00501"></a>00501   <span class="comment">// Return the ith child.  As with arity, it&#39;s also the ith argument</span>
<a name="l00502"></a>00502   <span class="comment">// in function application.</span>
<a name="l00503"></a>00503   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; operator[](<span class="keywordtype">int</span> i) <span class="keyword">const</span>;
<a name="l00504"></a>00504 <span class="comment"></span>
<a name="l00505"></a>00505 <span class="comment">  //! Remove leading NOT if any</span>
<a name="l00506"></a><a class="code" href="group__ExprPkg.html#ga39070a3fb12c398dc5bb7526d6aeb7f3">00506</a> <span class="comment"></span>  <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="group__ExprPkg.html#ga39070a3fb12c398dc5bb7526d6aeb7f3" title="Remove leading NOT if any.">unnegate</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> isNot() ? (*this)[0] : *<span class="keyword">this</span>; }
<a name="l00507"></a>00507 <span class="comment"></span>
<a name="l00508"></a>00508 <span class="comment">  //! Begin iterator</span>
<a name="l00509"></a>00509 <span class="comment"></span>  iterator begin() <span class="keyword">const</span>;
<a name="l00510"></a>00510 <span class="comment"></span>
<a name="l00511"></a>00511 <span class="comment">  //! End iterator</span>
<a name="l00512"></a>00512 <span class="comment"></span>  iterator end() <span class="keyword">const</span>;
<a name="l00513"></a>00513 
<a name="l00514"></a>00514   <span class="comment">// Check if Expr is Null</span>
<a name="l00515"></a>00515   <span class="keywordtype">bool</span> isNull() <span class="keyword">const</span>;
<a name="l00516"></a>00516 
<a name="l00517"></a>00517   <span class="comment">// Check if Expr is not Null</span>
<a name="l00518"></a><a class="code" href="group__ExprPkg.html#gaa3359d5f6638eba5479c4c4036a551a8">00518</a>   <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaa3359d5f6638eba5479c4c4036a551a8">isInitialized</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_expr != NULL; }<span class="comment"></span>
<a name="l00519"></a>00519 <span class="comment">  //! Get the memory manager index (it uniquely identifies the subclass)</span>
<a name="l00520"></a>00520 <span class="comment"></span>  <span class="keywordtype">size_t</span> getMMIndex() <span class="keyword">const</span>;
<a name="l00521"></a>00521 
<a name="l00522"></a>00522   <span class="comment">// Attributes</span>
<a name="l00523"></a>00523 
<a name="l00524"></a>00524   <span class="comment">// True if the find attribute has been set to something other than NULL.</span>
<a name="l00525"></a>00525   <span class="keywordtype">bool</span> hasFind() <span class="keyword">const</span>;
<a name="l00526"></a>00526 
<a name="l00527"></a>00527   <span class="comment">// Return the attached find attribute for the expr.  Note that this</span>
<a name="l00528"></a>00528   <span class="comment">// must be called repeatedly to get the root of the union-find tree.</span>
<a name="l00529"></a>00529   <span class="comment">// Should only be called if hasFind is true.</span>
<a name="l00530"></a>00530   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; getFind() <span class="keyword">const</span>;
<a name="l00531"></a>00531   <span class="keywordtype">int</span> getFindLevel() <span class="keyword">const</span>;
<a name="l00532"></a>00532   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; getEqNext() <span class="keyword">const</span>;
<a name="l00533"></a>00533 
<a name="l00534"></a>00534   <span class="comment">// Return the notify list</span>
<a name="l00535"></a>00535   <a class="code" href="classCVC3_1_1NotifyList.html">NotifyList</a>* getNotify() <span class="keyword">const</span>;
<a name="l00536"></a>00536 <span class="comment"></span>
<a name="l00537"></a>00537 <span class="comment">  //! Get the type.  Recursively compute if necessary</span>
<a name="l00538"></a>00538 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> getType() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00539"></a>00539 <span class="comment">  //! Look up the current type. Do not recursively compute (i.e. may be NULL)</span>
<a name="l00540"></a>00540 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> lookupType() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00541"></a>00541 <span class="comment">  //! Return cardinality of type</span>
<a name="l00542"></a>00542 <span class="comment"></span>  <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54" title="Enum for cardinality of types.">Cardinality</a> typeCard() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00543"></a>00543 <span class="comment">  //! Return nth (starting with 0) element in a finite type</span>
<a name="l00544"></a>00544 <span class="comment"></span><span class="comment">  /*! Returns NULL Expr if unable to compute nth element</span>
<a name="l00545"></a>00545 <span class="comment">   */</span>
<a name="l00546"></a>00546   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> typeEnumerateFinite(<a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a> n) <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00547"></a>00547 <span class="comment">  //! Return size of a finite type; returns 0 if size cannot be determined</span>
<a name="l00548"></a>00548 <span class="comment"></span>  <a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a> typeSizeFinite() <span class="keyword">const</span>;
<a name="l00549"></a>00549 <span class="comment"></span>
<a name="l00550"></a>00550 <span class="comment">  /*! @brief Return true if there is a valid cached value for calling</span>
<a name="l00551"></a>00551 <span class="comment">      simplify on this Expr. */</span>
<a name="l00552"></a>00552   <span class="keywordtype">bool</span> validSimpCache() <span class="keyword">const</span>;
<a name="l00553"></a>00553 
<a name="l00554"></a>00554   <span class="comment">// Get the cached Simplify of this Expr.</span>
<a name="l00555"></a>00555   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; getSimpCache() <span class="keyword">const</span>;
<a name="l00556"></a>00556 
<a name="l00557"></a>00557   <span class="comment">// Return true if valid type flag is set for Expr</span>
<a name="l00558"></a>00558   <span class="keywordtype">bool</span> isValidType() <span class="keyword">const</span>;
<a name="l00559"></a>00559 
<a name="l00560"></a>00560   <span class="comment">// Return true if there is a valid flag for whether Expr is atomic</span>
<a name="l00561"></a>00561   <span class="keywordtype">bool</span> validIsAtomicFlag() <span class="keyword">const</span>;
<a name="l00562"></a>00562 
<a name="l00563"></a>00563   <span class="comment">// Return true if there is a valid flag for whether terminals are const</span>
<a name="l00564"></a>00564   <span class="keywordtype">bool</span> validTerminalsConstFlag() <span class="keyword">const</span>;
<a name="l00565"></a>00565 
<a name="l00566"></a>00566   <span class="comment">// Get the isAtomic flag</span>
<a name="l00567"></a>00567   <span class="keywordtype">bool</span> getIsAtomicFlag() <span class="keyword">const</span>;
<a name="l00568"></a>00568 
<a name="l00569"></a>00569   <span class="comment">// Get the TerminalsConst flag</span>
<a name="l00570"></a>00570   <span class="keywordtype">bool</span> getTerminalsConstFlag() <span class="keyword">const</span>;
<a name="l00571"></a>00571 
<a name="l00572"></a>00572   <span class="comment">// Get the RewriteNormal flag</span>
<a name="l00573"></a>00573   <span class="keywordtype">bool</span> isRewriteNormal() <span class="keyword">const</span>;
<a name="l00574"></a>00574 
<a name="l00575"></a>00575   <span class="comment">// Get the isFinite flag</span>
<a name="l00576"></a>00576   <span class="keywordtype">bool</span> isFinite() <span class="keyword">const</span>;
<a name="l00577"></a>00577 
<a name="l00578"></a>00578   <span class="comment">// Get the WellFounded flag</span>
<a name="l00579"></a>00579   <span class="keywordtype">bool</span> isWellFounded() <span class="keyword">const</span>;
<a name="l00580"></a>00580 
<a name="l00581"></a>00581   <span class="comment">// Get the ComputeTransClosure flag</span>
<a name="l00582"></a>00582   <span class="keywordtype">bool</span> computeTransClosure() <span class="keyword">const</span>;
<a name="l00583"></a>00583 
<a name="l00584"></a>00584   <span class="comment">// Get the ContainsBoundVar flag</span>
<a name="l00585"></a>00585   <span class="keywordtype">bool</span> containsBoundVar() <span class="keyword">const</span>;
<a name="l00586"></a>00586 
<a name="l00587"></a>00587   <span class="comment">// Get the usesCC flag</span>
<a name="l00588"></a>00588   <span class="keywordtype">bool</span> usesCC() <span class="keyword">const</span>;
<a name="l00589"></a>00589 
<a name="l00590"></a>00590   <span class="comment">// Get the notArrayNormalized flag</span>
<a name="l00591"></a>00591   <span class="keywordtype">bool</span> notArrayNormalized() <span class="keyword">const</span>;
<a name="l00592"></a>00592 
<a name="l00593"></a>00593   <span class="comment">// Get the ImpliedLiteral flag</span>
<a name="l00594"></a>00594   <span class="keywordtype">bool</span> isImpliedLiteral() <span class="keyword">const</span>;
<a name="l00595"></a>00595 
<a name="l00596"></a>00596   <span class="comment">// Get the UserAssumption flag</span>
<a name="l00597"></a>00597   <span class="keywordtype">bool</span> isUserAssumption() <span class="keyword">const</span>;
<a name="l00598"></a>00598 
<a name="l00599"></a>00599   <span class="comment">// Get the inUserAssumption flag</span>
<a name="l00600"></a>00600   <span class="keywordtype">bool</span> inUserAssumption() <span class="keyword">const</span>;
<a name="l00601"></a>00601 
<a name="l00602"></a>00602   <span class="comment">// Get the IntAssumption flag</span>
<a name="l00603"></a>00603   <span class="keywordtype">bool</span> isIntAssumption() <span class="keyword">const</span>;
<a name="l00604"></a>00604 
<a name="l00605"></a>00605   <span class="comment">// Get the Justified flag</span>
<a name="l00606"></a>00606   <span class="keywordtype">bool</span> isJustified() <span class="keyword">const</span>;
<a name="l00607"></a>00607 
<a name="l00608"></a>00608   <span class="comment">// Get the Translated flag</span>
<a name="l00609"></a>00609   <span class="keywordtype">bool</span> isTranslated() <span class="keyword">const</span>;
<a name="l00610"></a>00610 
<a name="l00611"></a>00611   <span class="comment">// Get the UserRegisteredAtom flag</span>
<a name="l00612"></a>00612   <span class="keywordtype">bool</span> isUserRegisteredAtom() <span class="keyword">const</span>;
<a name="l00613"></a>00613 
<a name="l00614"></a>00614   <span class="comment">// Get the RegisteredAtom flag</span>
<a name="l00615"></a>00615   <span class="keywordtype">bool</span> isRegisteredAtom() <span class="keyword">const</span>;
<a name="l00616"></a>00616 
<a name="l00617"></a>00617   <span class="comment">// Get the Selected flag</span>
<a name="l00618"></a>00618   <span class="keywordtype">bool</span> isSelected() <span class="keyword">const</span>;
<a name="l00619"></a>00619 
<a name="l00620"></a>00620   <span class="comment">// Get the Stored Predicate flag</span>
<a name="l00621"></a>00621   <span class="keywordtype">bool</span> isStoredPredicate() <span class="keyword">const</span>;
<a name="l00622"></a>00622 <span class="comment"></span>
<a name="l00623"></a>00623 <span class="comment">  //! Check if the generic flag is set</span>
<a name="l00624"></a>00624 <span class="comment"></span>  <span class="keywordtype">bool</span> getFlag() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00625"></a>00625 <span class="comment">  //! Set the generic flag</span>
<a name="l00626"></a>00626 <span class="comment"></span>  <span class="keywordtype">void</span> setFlag() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00627"></a>00627 <span class="comment">  //! Clear the generic flag in all Exprs</span>
<a name="l00628"></a>00628 <span class="comment"></span>  <span class="keywordtype">void</span> clearFlags() <span class="keyword">const</span>;
<a name="l00629"></a>00629 
<a name="l00630"></a>00630   <span class="comment">// Printing functions</span>
<a name="l00631"></a>00631 <span class="comment"></span>
<a name="l00632"></a>00632 <span class="comment">  //! Print the expression to a string</span>
<a name="l00633"></a>00633 <span class="comment"></span>  std::string toString() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00634"></a>00634 <span class="comment">  //! Print the expression to a string using the given output language</span>
<a name="l00635"></a>00635 <span class="comment"></span>  std::string toString(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0e" title="Different input languages.">InputLanguage</a> lang) <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00636"></a>00636 <span class="comment">  //! Print the expression in the specified format</span>
<a name="l00637"></a>00637 <span class="comment"></span>  <span class="keywordtype">void</span> print(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0e" title="Different input languages.">InputLanguage</a> lang, <span class="keywordtype">bool</span> dagify = <span class="keyword">true</span>) <span class="keyword">const</span>;
<a name="l00638"></a>00638 <span class="comment"></span>
<a name="l00639"></a>00639 <span class="comment">  //! Print the expression as AST (lisp-like format)</span>
<a name="l00640"></a><a class="code" href="group__ExprPkg.html#gae30ed55f3ca40745ad3735ddc7c55645">00640</a> <span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gae30ed55f3ca40745ad3735ddc7c55645" title="Print the expression as AST (lisp-like format)">print</a>()<span class="keyword"> const </span>{ <a class="code" href="group__ExprPkg.html#gae30ed55f3ca40745ad3735ddc7c55645" title="Print the expression as AST (lisp-like format)">print</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>); }<span class="comment"></span>
<a name="l00641"></a>00641 <span class="comment">  //! Print the expression as AST without dagifying</span>
<a name="l00642"></a>00642 <span class="comment"></span>  <span class="keywordtype">void</span> printnodag() <span class="keyword">const</span>;
<a name="l00643"></a>00643 <span class="comment"></span>
<a name="l00644"></a>00644 <span class="comment">  //! Pretty-print the expression</span>
<a name="l00645"></a>00645 <span class="comment"></span>  <span class="keywordtype">void</span> pprint() <span class="keyword">const</span>;<span class="comment"></span>
<a name="l00646"></a>00646 <span class="comment">  //! Pretty-print without dagifying</span>
<a name="l00647"></a>00647 <span class="comment"></span>  <span class="keywordtype">void</span> pprintnodag() <span class="keyword">const</span>;
<a name="l00648"></a>00648 <span class="comment"></span>
<a name="l00649"></a>00649 <span class="comment">  //! Print a leaf node</span>
<a name="l00650"></a>00650 <span class="comment"></span>  <span class="comment">/*@ The top node is pretty-printed if it is a basic leaf type;</span>
<a name="l00651"></a>00651 <span class="comment">   * otherwise, just the kind is printed.  Should only be called on expressions</span>
<a name="l00652"></a>00652 <span class="comment">   * with no children. */</span>
<a name="l00653"></a>00653   <a class="code" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>&amp; print(<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>;<span class="comment"></span>
<a name="l00654"></a>00654 <span class="comment">  //! Print the top node and then recurse through the children */</span>
<a name="l00655"></a>00655 <span class="comment"></span>  <span class="comment">/*@ The top node is printed as an AST with all the information, including</span>
<a name="l00656"></a>00656 <span class="comment">   * &quot;hidden&quot; Exprs that are part of the ExprValue */</span>
<a name="l00657"></a>00657   <a class="code" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>&amp; printAST(<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>;<span class="comment"></span>
<a name="l00658"></a>00658 <span class="comment">  //! Set initial indentation to n.</span>
<a name="l00659"></a>00659 <span class="comment"></span><span class="comment">  /*! The indentation will be reset to default unless the second</span>
<a name="l00660"></a>00660 <span class="comment">    argument is true.</span>
<a name="l00661"></a>00661 <span class="comment">    \return reference to itself, so one can write `os &lt;&lt; e.indent(5)&#39;</span>
<a name="l00662"></a>00662 <span class="comment">  */</span>
<a name="l00663"></a>00663   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; indent(<span class="keywordtype">int</span> n, <span class="keywordtype">bool</span> permanent = <span class="keyword">false</span>);
<a name="l00664"></a>00664 <span class="comment"></span>
<a name="l00665"></a>00665 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00666"></a>00666 <span class="comment"></span>  <span class="comment">// Other Public methods                                                    //</span><span class="comment"></span>
<a name="l00667"></a>00667 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00668"></a>00668 <span class="comment"></span>
<a name="l00669"></a>00669   <span class="comment">// Attributes</span>
<a name="l00670"></a>00670 <span class="comment"></span>
<a name="l00671"></a>00671 <span class="comment">  //! Set the find attribute to e</span>
<a name="l00672"></a>00672 <span class="comment"></span>  <span class="keywordtype">void</span> setFind(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e) <span class="keyword">const</span>;
<a name="l00673"></a>00673 <span class="comment"></span>
<a name="l00674"></a>00674 <span class="comment">  //! Set the eqNext attribute to e</span>
<a name="l00675"></a>00675 <span class="comment"></span>  <span class="keywordtype">void</span> setEqNext(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e) <span class="keyword">const</span>;
<a name="l00676"></a>00676 <span class="comment"></span>
<a name="l00677"></a>00677 <span class="comment">  //! Add (e,i) to the notify list of this expression</span>
<a name="l00678"></a>00678 <span class="comment"></span>  <span class="keywordtype">void</span> addToNotify(<a class="code" href="classCVC3_1_1Theory.html" title="Base class for theories.">Theory</a>* i, <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="l00679"></a>00679 <span class="comment"></span>
<a name="l00680"></a>00680 <span class="comment">  //! Set the cached type</span>
<a name="l00681"></a>00681 <span class="comment"></span>  <span class="keywordtype">void</span> setType(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>&amp; t) <span class="keyword">const</span>;
<a name="l00682"></a>00682 
<a name="l00683"></a>00683   <span class="comment">// Cache the result of a call to Simplify on this Expr</span>
<a name="l00684"></a>00684   <span class="keywordtype">void</span> setSimpCache(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e) <span class="keyword">const</span>;
<a name="l00685"></a>00685 
<a name="l00686"></a>00686   <span class="comment">// Set the valid type flag for this Expr</span>
<a name="l00687"></a>00687   <span class="keywordtype">void</span> setValidType() <span class="keyword">const</span>;
<a name="l00688"></a>00688 
<a name="l00689"></a>00689   <span class="comment">// Set the isAtomicFlag for this Expr</span>
<a name="l00690"></a>00690   <span class="keywordtype">void</span> setIsAtomicFlag(<span class="keywordtype">bool</span> value) <span class="keyword">const</span>;
<a name="l00691"></a>00691 
<a name="l00692"></a>00692   <span class="comment">// Set the TerminalsConst flag for this Expr</span>
<a name="l00693"></a>00693   <span class="keywordtype">void</span> setTerminalsConstFlag(<span class="keywordtype">bool</span> value) <span class="keyword">const</span>;
<a name="l00694"></a>00694 
<a name="l00695"></a>00695   <span class="comment">// Set or clear the RewriteNormal flag</span>
<a name="l00696"></a>00696   <span class="keywordtype">void</span> setRewriteNormal() <span class="keyword">const</span>;
<a name="l00697"></a>00697   <span class="keywordtype">void</span> clearRewriteNormal() <span class="keyword">const</span>;
<a name="l00698"></a>00698 
<a name="l00699"></a>00699   <span class="comment">// Set the isFinite flag</span>
<a name="l00700"></a>00700   <span class="keywordtype">void</span> setFinite() <span class="keyword">const</span>;
<a name="l00701"></a>00701 
<a name="l00702"></a>00702   <span class="comment">// Set the WellFounded flag</span>
<a name="l00703"></a>00703   <span class="keywordtype">void</span> setWellFounded() <span class="keyword">const</span>;
<a name="l00704"></a>00704 
<a name="l00705"></a>00705   <span class="comment">// Set the ComputeTransClosure flag</span>
<a name="l00706"></a>00706   <span class="keywordtype">void</span> setComputeTransClosure() <span class="keyword">const</span>;
<a name="l00707"></a>00707 
<a name="l00708"></a>00708   <span class="comment">// Set the ContainsBoundVar flag</span>
<a name="l00709"></a>00709   <span class="keywordtype">void</span> setContainsBoundVar() <span class="keyword">const</span>;
<a name="l00710"></a>00710 
<a name="l00711"></a>00711   <span class="comment">// Set the UsesCC flag</span>
<a name="l00712"></a>00712   <span class="keywordtype">void</span> setUsesCC() <span class="keyword">const</span>;
<a name="l00713"></a>00713 
<a name="l00714"></a>00714   <span class="comment">// Set the notArrayNormalized flag</span>
<a name="l00715"></a>00715   <span class="keywordtype">void</span> setNotArrayNormalized() <span class="keyword">const</span>;
<a name="l00716"></a>00716 
<a name="l00717"></a>00717   <span class="comment">// Set the impliedLiteral flag for this Expr</span>
<a name="l00718"></a>00718   <span class="keywordtype">void</span> setImpliedLiteral() <span class="keyword">const</span>;
<a name="l00719"></a>00719 
<a name="l00720"></a>00720   <span class="comment">// Set the user assumption flag for this Expr</span>
<a name="l00721"></a>00721   <span class="keywordtype">void</span> setUserAssumption(<span class="keywordtype">int</span> scope = -1) <span class="keyword">const</span>;
<a name="l00722"></a>00722 
<a name="l00723"></a>00723   <span class="comment">// Set the in user assumption flag for this Expr</span>
<a name="l00724"></a>00724   <span class="keywordtype">void</span> setInUserAssumption(<span class="keywordtype">int</span> scope = -1) <span class="keyword">const</span>;
<a name="l00725"></a>00725 
<a name="l00726"></a>00726   <span class="comment">// Set the internal assumption flag for this Expr</span>
<a name="l00727"></a>00727   <span class="keywordtype">void</span> setIntAssumption() <span class="keyword">const</span>;
<a name="l00728"></a>00728 
<a name="l00729"></a>00729   <span class="comment">// Set the justified flag for this Expr</span>
<a name="l00730"></a>00730   <span class="keywordtype">void</span> setJustified() <span class="keyword">const</span>;
<a name="l00731"></a>00731 <span class="comment"></span>
<a name="l00732"></a>00732 <span class="comment">  //! Set the translated flag for this Expr</span>
<a name="l00733"></a>00733 <span class="comment"></span>  <span class="keywordtype">void</span> setTranslated(<span class="keywordtype">int</span> scope = -1) <span class="keyword">const</span>;
<a name="l00734"></a>00734 <span class="comment"></span>
<a name="l00735"></a>00735 <span class="comment">  //! Set the UserRegisteredAtom flag for this Expr</span>
<a name="l00736"></a>00736 <span class="comment"></span>  <span class="keywordtype">void</span> setUserRegisteredAtom() <span class="keyword">const</span>;
<a name="l00737"></a>00737 <span class="comment"></span>
<a name="l00738"></a>00738 <span class="comment">  //! Set the RegisteredAtom flag for this Expr</span>
<a name="l00739"></a>00739 <span class="comment"></span>  <span class="keywordtype">void</span> setRegisteredAtom() <span class="keyword">const</span>;
<a name="l00740"></a>00740 <span class="comment"></span>
<a name="l00741"></a>00741 <span class="comment">  //! Set the Selected flag for this Expr</span>
<a name="l00742"></a>00742 <span class="comment"></span>  <span class="keywordtype">void</span> setSelected() <span class="keyword">const</span>;
<a name="l00743"></a>00743 <span class="comment"></span>
<a name="l00744"></a>00744 <span class="comment">  //! Set the Stored Predicate flag for this Expr</span>
<a name="l00745"></a>00745 <span class="comment"></span>  <span class="keywordtype">void</span> setStoredPredicate() <span class="keyword">const</span>;
<a name="l00746"></a>00746 <span class="comment"></span>
<a name="l00747"></a>00747 <span class="comment">  //! Check if the current Expr (*this) is a subexpression of e</span>
<a name="l00748"></a>00748 <span class="comment"></span>  <span class="keywordtype">bool</span> subExprOf(<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="l00749"></a>00749   <span class="comment">// Returns the maximum number of Boolean expressions on a path from</span>
<a name="l00750"></a>00750   <span class="comment">// this to a leaf, including this.</span>
<a name="l00751"></a>00751 
<a name="l00752"></a>00752   <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a> getSize() <span class="keyword">const</span>;
<a name="l00753"></a>00753 
<a name="l00754"></a>00754 <span class="comment">//   inline int getHeight() const;</span>
<a name="l00755"></a>00755 
<a name="l00756"></a>00756 <span class="comment">//   // Returns the index of the highest kid.</span>
<a name="l00757"></a>00757 <span class="comment">//   inline int getHighestKid() const;</span>
<a name="l00758"></a>00758 
<a name="l00759"></a>00759 <span class="comment">//   // Gets/sets an expression that this expression was simplified from</span>
<a name="l00760"></a>00760 <span class="comment">//   // (see newRWTheorem). This is the equivalent of SVC&#39;s Sigx.</span>
<a name="l00761"></a>00761 <span class="comment">//   inline bool hasSimpFrom() const;</span>
<a name="l00762"></a>00762 <span class="comment">//   inline const Expr&amp; getSimpFrom() const;</span>
<a name="l00763"></a>00763 <span class="comment">//   inline void setSimpFrom(const Expr&amp; simpFrom);</span>
<a name="l00764"></a>00764 
<a name="l00765"></a>00765   <span class="comment">// Attributes for uninterpreted function symbols.</span>
<a name="l00766"></a>00766   <span class="keywordtype">bool</span> hasSig() <span class="keyword">const</span>;
<a name="l00767"></a>00767   <span class="keywordtype">bool</span> hasRep() <span class="keyword">const</span>;
<a name="l00768"></a>00768   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; getSig() <span class="keyword">const</span>;
<a name="l00769"></a>00769   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; getRep() <span class="keyword">const</span>;
<a name="l00770"></a>00770   <span class="keywordtype">void</span> setSig(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e) <span class="keyword">const</span>;
<a name="l00771"></a>00771   <span class="keywordtype">void</span> setRep(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e) <span class="keyword">const</span>;
<a name="l00772"></a>00772 <span class="comment"></span>
<a name="l00773"></a>00773 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00774"></a>00774 <span class="comment"></span>  <span class="comment">// Friend methods                                                          //</span><span class="comment"></span>
<a name="l00775"></a>00775 <span class="comment">  /////////////////////////////////////////////////////////////////////////////</span>
<a name="l00776"></a>00776 <span class="comment"></span>
<a name="l00777"></a>00777   <span class="keyword">friend</span> <a class="code" href="os_8h.html#a0035aac6379df39aa69feba98b2751ba">CVC_DLL</a> std::ostream&amp; <a class="code" href="namespaceCVC3.html#a6b7e38d3c97da1e91e12a6c9555b8163">operator&lt;&lt;</a>(std::ostream&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="l00778"></a>00778 
<a name="l00779"></a>00779   <span class="comment">// The master method which defines some fixed total ordering on all</span>
<a name="l00780"></a>00780   <span class="comment">// Exprs.  If e1 &lt; e2, e1==e2, and e1 &gt; e2, it returns -1, 0, 1</span>
<a name="l00781"></a>00781   <span class="comment">// respectively.  A Null expr is always &quot;smaller&quot; than any other</span>
<a name="l00782"></a>00782   <span class="comment">// expr, but is equal to itself.</span>
<a name="l00783"></a>00783   <span class="keyword">friend</span> <span class="keywordtype">int</span> <a class="code" href="namespaceCVC3.html#ac06ac2fd4db699104b790f98b7abba71">compare</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2);
<a name="l00784"></a>00784 
<a name="l00785"></a>00785   <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#a8e164436388f2d87c971d9bbde973c58">operator==</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2);
<a name="l00786"></a>00786   <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#a5aa953c549c2e103f3834c48bf6cb9a1">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2);
<a name="l00787"></a>00787 
<a name="l00788"></a>00788   <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#ad3e3964a0b8cd9e2749de47b053b9d97">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2);
<a name="l00789"></a>00789   <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#abccc88aac4f7652def737f1081dc7a89">operator&lt;=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2);
<a name="l00790"></a>00790   <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#a0d82fd3eb68860cbd01ae86b2b9e3c66">operator&gt;</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2);
<a name="l00791"></a>00791   <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceCVC3.html#af997ba8407b661bf2ffe2cb6f52c3e3b">operator&gt;=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2);
<a name="l00792"></a>00792 <span class="comment"></span>
<a name="l00793"></a>00793 <span class="comment">  /*!@}*/</span> <span class="comment">// end of group Expr</span>
<a name="l00794"></a>00794 
<a name="l00795"></a>00795 }; <span class="comment">// end of class Expr</span>
<a name="l00796"></a>00796 
<a name="l00797"></a>00797 } <span class="comment">// end of namespace CVC3</span>
<a name="l00798"></a>00798 
<a name="l00799"></a>00799 <span class="comment">// Include expr_value.h here.  We cannot include it earlier, since it</span>
<a name="l00800"></a>00800 <span class="comment">// needs the definition of class Expr.  See comments in expr_value.h.</span>
<a name="l00801"></a>00801 <span class="preprocessor">#ifndef DOXYGEN</span>
<a name="l00802"></a>00802 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="expr__op_8h.html" title="Class Op representing the Expr&#39;s operator.">expr_op.h</a>&quot;</span>
<a name="l00803"></a>00803 <span class="preprocessor">#include &quot;<a class="code" href="expr__manager_8h.html" title="Expression manager API.">expr_manager.h</a>&quot;</span>
<a name="l00804"></a>00804 <span class="preprocessor">#endif</span>
<a name="l00805"></a>00805 <span class="preprocessor"></span><span class="keyword">namespace </span>CVC3 {
<a name="l00806"></a>00806 
<a name="l00807"></a><a class="code" href="group__ExprPkg.html#gadebfef27e4d0ea75d7d37c3fdbcfb727">00807</a> <span class="keyword">inline</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr::Expr</a>(<a class="code" href="classCVC3_1_1ExprValue.html" title="The base class for holding the actual data in expressions.">ExprValue</a>* expr) : d_expr(expr) { <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a0547e925398643e7779baf97d324e32e" title="Increment reference counter.">incRefcount</a>(); }
<a name="l00808"></a>00808 
<a name="l00809"></a><a class="code" href="group__ExprPkg.html#ga8e424c562e5d452d4ddc50f6e7b3e063">00809</a> <span class="keyword">inline</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr::Expr</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) : d_expr(e.d_expr) {
<a name="l00810"></a>00810   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> != NULL) <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a0547e925398643e7779baf97d324e32e" title="Increment reference counter.">incRefcount</a>();
<a name="l00811"></a>00811 }
<a name="l00812"></a>00812 
<a name="l00813"></a><a class="code" href="group__ExprPkg.html#ga0cc4af99d81c96b3c529d3b866861550">00813</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="group__ExprPkg.html#ga0cc4af99d81c96b3c529d3b866861550" title="Assignment operator: take care of the refcounting and GC.">Expr::operator=</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="l00814"></a>00814   <span class="keywordflow">if</span>(&amp;e == <span class="keyword">this</span>) <span class="keywordflow">return</span> *<span class="keyword">this</span>; <span class="comment">// Self-assignment</span>
<a name="l00815"></a>00815   <a class="code" href="classCVC3_1_1ExprValue.html" title="The base class for holding the actual data in expressions.">ExprValue</a>* tmp = e.<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>;
<a name="l00816"></a>00816   <span class="keywordflow">if</span>(tmp == <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>) <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00817"></a>00817   <span class="keywordflow">if</span> (tmp == NULL) {
<a name="l00818"></a>00818     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a8d62c9c4397548013dc302147903756e" title="Decrement reference counter.">decRefcount</a>();
<a name="l00819"></a>00819   }
<a name="l00820"></a>00820   <span class="keywordflow">else</span> {
<a name="l00821"></a>00821     tmp-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a0547e925398643e7779baf97d324e32e" title="Increment reference counter.">incRefcount</a>();
<a name="l00822"></a>00822     <span class="keywordflow">if</span>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> != NULL) {
<a name="l00823"></a>00823       <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a8d62c9c4397548013dc302147903756e" title="Decrement reference counter.">decRefcount</a>();
<a name="l00824"></a>00824     }
<a name="l00825"></a>00825   }
<a name="l00826"></a>00826   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = tmp;
<a name="l00827"></a>00827   <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00828"></a>00828 }
<a name="l00829"></a>00829 
<a name="l00830"></a><a class="code" href="group__ExprPkg.html#gafb0fbf8419f557068fc0f8293ecf1624">00830</a> <span class="keyword">inline</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr::Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child) {
<a name="l00831"></a>00831   <a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* em = child.<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>();
<a name="l00832"></a>00832   <span class="keywordflow">if</span> (op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>() != <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5c41450c4e719ca40d8e734f6a2008f0">APPLY</a>) {
<a name="l00833"></a>00833     <a class="code" href="classCVC3_1_1ExprNode.html">ExprNode</a> ev(em, op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>());
<a name="l00834"></a>00834     std::vector&lt;Expr&gt;&amp; kids = ev.<a class="code" href="classCVC3_1_1ExprNode.html#a025932a9fa434ecb0d591cd2dd930139" title="Return reference to children.">getKids1</a>();
<a name="l00835"></a>00835     kids.push_back(child);
<a name="l00836"></a>00836     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00837"></a>00837   } <span class="keywordflow">else</span> {
<a name="l00838"></a>00838     <a class="code" href="classCVC3_1_1ExprApply.html">ExprApply</a> ev(em, op);
<a name="l00839"></a>00839     std::vector&lt;Expr&gt;&amp; kids = ev.<a class="code" href="classCVC3_1_1ExprNode.html#a025932a9fa434ecb0d591cd2dd930139" title="Return reference to children.">getKids1</a>();
<a name="l00840"></a>00840     kids.push_back(child);
<a name="l00841"></a>00841     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00842"></a>00842   }
<a name="l00843"></a>00843   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a0547e925398643e7779baf97d324e32e" title="Increment reference counter.">incRefcount</a>();
<a name="l00844"></a>00844 }
<a name="l00845"></a>00845 
<a name="l00846"></a><a class="code" href="group__ExprPkg.html#ga593d896e3c01b8596e57b822b948e6f2">00846</a> <span class="keyword">inline</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr::Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child0, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child1) {
<a name="l00847"></a>00847   <a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* em = child0.<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>();
<a name="l00848"></a>00848   <span class="keywordflow">if</span> (op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>() != <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5c41450c4e719ca40d8e734f6a2008f0">APPLY</a>) {
<a name="l00849"></a>00849     <a class="code" href="classCVC3_1_1ExprNode.html">ExprNode</a> ev(em, op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>());
<a name="l00850"></a>00850     std::vector&lt;Expr&gt;&amp; kids = ev.<a class="code" href="classCVC3_1_1ExprNode.html#a025932a9fa434ecb0d591cd2dd930139" title="Return reference to children.">getKids1</a>();
<a name="l00851"></a>00851     kids.push_back(child0);
<a name="l00852"></a>00852     kids.push_back(child1);
<a name="l00853"></a>00853     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00854"></a>00854   } <span class="keywordflow">else</span> {
<a name="l00855"></a>00855     <a class="code" href="classCVC3_1_1ExprApply.html">ExprApply</a> ev(em, op);
<a name="l00856"></a>00856     std::vector&lt;Expr&gt;&amp; kids = ev.<a class="code" href="classCVC3_1_1ExprNode.html#a025932a9fa434ecb0d591cd2dd930139" title="Return reference to children.">getKids1</a>();
<a name="l00857"></a>00857     kids.push_back(child0);
<a name="l00858"></a>00858     kids.push_back(child1);
<a name="l00859"></a>00859     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00860"></a>00860   }
<a name="l00861"></a>00861   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a0547e925398643e7779baf97d324e32e" title="Increment reference counter.">incRefcount</a>();
<a name="l00862"></a>00862 }
<a name="l00863"></a>00863 
<a name="l00864"></a><a class="code" href="group__ExprPkg.html#ga67ac1e86cbda6dadb63c0739351fa19b">00864</a> <span class="keyword">inline</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr::Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child0, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child1,
<a name="l00865"></a>00865                   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child2) {
<a name="l00866"></a>00866   <a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* em = child0.<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>();
<a name="l00867"></a>00867   <span class="keywordflow">if</span> (op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>() != <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5c41450c4e719ca40d8e734f6a2008f0">APPLY</a>) {
<a name="l00868"></a>00868     <a class="code" href="classCVC3_1_1ExprNode.html">ExprNode</a> ev(em, op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>());
<a name="l00869"></a>00869     std::vector&lt;Expr&gt;&amp; kids = ev.<a class="code" href="classCVC3_1_1ExprNode.html#a025932a9fa434ecb0d591cd2dd930139" title="Return reference to children.">getKids1</a>();
<a name="l00870"></a>00870     kids.push_back(child0);
<a name="l00871"></a>00871     kids.push_back(child1);
<a name="l00872"></a>00872     kids.push_back(child2);
<a name="l00873"></a>00873     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00874"></a>00874   } <span class="keywordflow">else</span> {
<a name="l00875"></a>00875     <a class="code" href="classCVC3_1_1ExprApply.html">ExprApply</a> ev(em, op);
<a name="l00876"></a>00876     std::vector&lt;Expr&gt;&amp; kids = ev.<a class="code" href="classCVC3_1_1ExprNode.html#a025932a9fa434ecb0d591cd2dd930139" title="Return reference to children.">getKids1</a>();
<a name="l00877"></a>00877     kids.push_back(child0);
<a name="l00878"></a>00878     kids.push_back(child1);
<a name="l00879"></a>00879     kids.push_back(child2);
<a name="l00880"></a>00880     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00881"></a>00881   }
<a name="l00882"></a>00882   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a0547e925398643e7779baf97d324e32e" title="Increment reference counter.">incRefcount</a>();
<a name="l00883"></a>00883 }
<a name="l00884"></a>00884 
<a name="l00885"></a><a class="code" href="group__ExprPkg.html#ga759ac04d93b19fcffd125924d668995e">00885</a> <span class="keyword">inline</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr::Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child0, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child1,
<a name="l00886"></a>00886                   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child2, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; child3) {
<a name="l00887"></a>00887   <a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* em = child0.<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>();
<a name="l00888"></a>00888   <span class="keywordflow">if</span> (op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>() != <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5c41450c4e719ca40d8e734f6a2008f0">APPLY</a>) {
<a name="l00889"></a>00889     <a class="code" href="classCVC3_1_1ExprNode.html">ExprNode</a> ev(em, op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>());
<a name="l00890"></a>00890     std::vector&lt;Expr&gt;&amp; kids = ev.<a class="code" href="classCVC3_1_1ExprNode.html#a025932a9fa434ecb0d591cd2dd930139" title="Return reference to children.">getKids1</a>();
<a name="l00891"></a>00891     kids.push_back(child0);
<a name="l00892"></a>00892     kids.push_back(child1);
<a name="l00893"></a>00893     kids.push_back(child2);
<a name="l00894"></a>00894     kids.push_back(child3);
<a name="l00895"></a>00895     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00896"></a>00896   } <span class="keywordflow">else</span> {
<a name="l00897"></a>00897     <a class="code" href="classCVC3_1_1ExprApply.html">ExprApply</a> ev(em, op);
<a name="l00898"></a>00898     std::vector&lt;Expr&gt;&amp; kids = ev.<a class="code" href="classCVC3_1_1ExprNode.html#a025932a9fa434ecb0d591cd2dd930139" title="Return reference to children.">getKids1</a>();
<a name="l00899"></a>00899     kids.push_back(child0);
<a name="l00900"></a>00900     kids.push_back(child1);
<a name="l00901"></a>00901     kids.push_back(child2);
<a name="l00902"></a>00902     kids.push_back(child3);
<a name="l00903"></a>00903     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00904"></a>00904   }
<a name="l00905"></a>00905   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a0547e925398643e7779baf97d324e32e" title="Increment reference counter.">incRefcount</a>();
<a name="l00906"></a>00906 }
<a name="l00907"></a>00907 
<a name="l00908"></a><a class="code" href="group__ExprPkg.html#gaf6745550d2453e3e25af3bb9c4ea7a45">00908</a> <span class="keyword">inline</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr::Expr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Op.html">Op</a>&amp; op, <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; children,
<a name="l00909"></a>00909                   <a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* em) {
<a name="l00910"></a>00910   <span class="keywordflow">if</span> (em == NULL) {
<a name="l00911"></a>00911     <span class="keywordflow">if</span> (op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5c41450c4e719ca40d8e734f6a2008f0">APPLY</a>) em = op.<a class="code" href="classCVC3_1_1Op.html#a4a38071541d1e863583f12e9d81de3a2">getExpr</a>().<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>();
<a name="l00912"></a>00912     <span class="keywordflow">else</span> {
<a name="l00913"></a>00913       <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(children.size() &gt; 0,
<a name="l00914"></a>00914                   <span class="stringliteral">&quot;Expr::Expr(Op, children): op&#39;s EM is NULL and &quot;</span>
<a name="l00915"></a>00915                   <span class="stringliteral">&quot;no children given&quot;</span>);
<a name="l00916"></a>00916       em = children[0].getEM();
<a name="l00917"></a>00917     }
<a name="l00918"></a>00918   }
<a name="l00919"></a>00919   <span class="keywordflow">if</span> (op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>() != <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5c41450c4e719ca40d8e734f6a2008f0">APPLY</a>) {
<a name="l00920"></a>00920     <a class="code" href="classCVC3_1_1ExprNodeTmp.html">ExprNodeTmp</a> ev(em, op.<a class="code" href="classCVC3_1_1Op.html#a7fdaa9877edff1d7a32440a9400a81fd">getKind</a>(), children);
<a name="l00921"></a>00921     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00922"></a>00922   } <span class="keywordflow">else</span> {
<a name="l00923"></a>00923     <a class="code" href="classCVC3_1_1ExprApplyTmp.html">ExprApplyTmp</a> ev(em, op, children);
<a name="l00924"></a>00924     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> = em-&gt;<a class="code" href="group__EM__Priv.html#ga3c693890e6e6e1610c44dda553dbf803" title="Return either an existing or a new ExprValue matching ev.">newExprValue</a>(&amp;ev);
<a name="l00925"></a>00925   }
<a name="l00926"></a>00926   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a0547e925398643e7779baf97d324e32e" title="Increment reference counter.">incRefcount</a>();
<a name="l00927"></a>00927 }
<a name="l00928"></a>00928 
<a name="l00929"></a><a class="code" href="group__ExprPkg.html#gacb48495ca445c895f95d0c3c1ae2070b">00929</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#gacb48495ca445c895f95d0c3c1ae2070b">Expr::eqExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>)<span class="keyword"> const </span>{
<a name="l00930"></a>00930   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba9efdc855f3c1477957fb50affec07f8f">EQ</a>, *<span class="keyword">this</span>, right);
<a name="l00931"></a>00931 }
<a name="l00932"></a>00932 
<a name="l00933"></a><a class="code" href="group__ExprPkg.html#ga59d07586d68ba39eadd98c86492acdac">00933</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga59d07586d68ba39eadd98c86492acdac">Expr::notExpr</a>()<span class="keyword"> const </span>{
<a name="l00934"></a>00934   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba0378ebc895849163b249d0b330257dd6">NOT</a>, *<span class="keyword">this</span>);
<a name="l00935"></a>00935 }
<a name="l00936"></a>00936 
<a name="l00937"></a><a class="code" href="group__ExprPkg.html#gab1ce461dc931af73bf04e88c8d37dcbc">00937</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#gab1ce461dc931af73bf04e88c8d37dcbc">Expr::negate</a>()<span class="keyword"> const </span>{
<a name="l00938"></a>00938   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga1a898858ccadce833df5a294c7740f11">isNot</a>() ? (*this)[0] : this-&gt;<a class="code" href="group__ExprPkg.html#ga59d07586d68ba39eadd98c86492acdac">notExpr</a>();
<a name="l00939"></a>00939 }
<a name="l00940"></a>00940 
<a name="l00941"></a><a class="code" href="group__ExprPkg.html#ga6c3651465ce69ed5f4e6fd461b9acf3c">00941</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga6c3651465ce69ed5f4e6fd461b9acf3c">Expr::andExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>)<span class="keyword"> const </span>{
<a name="l00942"></a>00942   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba865555c9f2e0458a7078486aa1b3254f">AND</a>, *<span class="keyword">this</span>, right);
<a name="l00943"></a>00943 }
<a name="l00944"></a>00944 
<a name="l00945"></a><a class="code" href="namespaceCVC3.html#ad4258158bba138eb54b9080af7f8223a">00945</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="namespaceCVC3.html#ad4258158bba138eb54b9080af7f8223a">andExpr</a>(<span class="keyword">const</span> std::vector &lt;Expr&gt;&amp; children) {
<a name="l00946"></a>00946   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(children.size()&gt;0 &amp;&amp; !children[0].isNull(),
<a name="l00947"></a>00947               <span class="stringliteral">&quot;Expr::andExpr(kids)&quot;</span>);
<a name="l00948"></a>00948   <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba865555c9f2e0458a7078486aa1b3254f">AND</a>, children);
<a name="l00949"></a>00949 }
<a name="l00950"></a>00950 
<a name="l00951"></a><a class="code" href="group__ExprPkg.html#gaf310870d783fff343e77ba9c2277c626">00951</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#gaf310870d783fff343e77ba9c2277c626">Expr::orExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>)<span class="keyword"> const </span>{
<a name="l00952"></a>00952   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba96727447c0ad447987df1c6415aef074">OR</a>, *<span class="keyword">this</span>, right);
<a name="l00953"></a>00953 }
<a name="l00954"></a>00954 
<a name="l00955"></a><a class="code" href="namespaceCVC3.html#a30f30b6e20c174f21ae63acea8618294">00955</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="namespaceCVC3.html#a30f30b6e20c174f21ae63acea8618294">orExpr</a>(<span class="keyword">const</span> std::vector &lt;Expr&gt;&amp; children) {
<a name="l00956"></a>00956   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(children.size()&gt;0 &amp;&amp; !children[0].isNull(),
<a name="l00957"></a>00957               <span class="stringliteral">&quot;Expr::andExpr(kids)&quot;</span>);
<a name="l00958"></a>00958   <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba96727447c0ad447987df1c6415aef074">OR</a>, children);
<a name="l00959"></a>00959 }
<a name="l00960"></a>00960 
<a name="l00961"></a><a class="code" href="group__ExprPkg.html#ga5532cabad6f699c57da32a8db65a38da">00961</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga5532cabad6f699c57da32a8db65a38da">Expr::iteExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; thenpart, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; elsepart)<span class="keyword"> const </span>{
<a name="l00962"></a>00962   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba3a4cfaf3eae8eac1dc2fd27d9f0994dc">ITE</a>, *<span class="keyword">this</span>, thenpart, elsepart);
<a name="l00963"></a>00963 }
<a name="l00964"></a>00964 
<a name="l00965"></a><a class="code" href="group__ExprPkg.html#gaae017ca8e68af655ba285c985dd9fba5">00965</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#gaae017ca8e68af655ba285c985dd9fba5">Expr::iffExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>)<span class="keyword"> const </span>{
<a name="l00966"></a>00966   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba527cb185631442655c4486d51522b5a7">IFF</a>, *<span class="keyword">this</span>, right);
<a name="l00967"></a>00967 }
<a name="l00968"></a>00968 
<a name="l00969"></a><a class="code" href="group__ExprPkg.html#ga8dd97bcdeb9d8870238f94a263fd083b">00969</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga8dd97bcdeb9d8870238f94a263fd083b">Expr::impExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>)<span class="keyword"> const </span>{
<a name="l00970"></a>00970   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba7338bb59b9aa936104a6d2f631d4d8db">IMPLIES</a>, *<span class="keyword">this</span>, right);
<a name="l00971"></a>00971 }
<a name="l00972"></a>00972 
<a name="l00973"></a><a class="code" href="group__ExprPkg.html#ga37b3161a078f8992b71518992ab0b088">00973</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga37b3161a078f8992b71518992ab0b088">Expr::xorExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="namespaceMiniSat.html#a82558b7a36c52f5d3211d5d14bed99d4">right</a>)<span class="keyword"> const </span>{
<a name="l00974"></a>00974   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5bac62338ffb5de22369c75caa565b5da1a">XOR</a>, *<span class="keyword">this</span>, right);
<a name="l00975"></a>00975 }
<a name="l00976"></a>00976 
<a name="l00977"></a><a class="code" href="group__ExprPkg.html#ga1311a04a68f4cfae68a82826a3a0c5ad">00977</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga1311a04a68f4cfae68a82826a3a0c5ad" title="Create a Skolem constant for the i&#39;th variable of an existential (*this)">Expr::skolemExpr</a>(<span class="keywordtype">int</span> i)<span class="keyword"> const </span>{
<a name="l00978"></a>00978   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#gaf392ed0e07e505e56e551ce9cdaa76fe">newSkolemExpr</a>(*<span class="keyword">this</span>, i);
<a name="l00979"></a>00979 }
<a name="l00980"></a>00980 
<a name="l00981"></a><a class="code" href="group__ExprPkg.html#ga3df149427d124797567614e07080519d">00981</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga3df149427d124797567614e07080519d" title="Create a Boolean variable out of the expression.">Expr::rebuild</a>(<a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* em)<span class="keyword"> const </span>{
<a name="l00982"></a>00982   <span class="keywordflow">return</span> em-&gt;<a class="code" href="group__EM__Priv.html#gacaab5ccf5cf81d11185979051d301d5e" title="Rebuild the Expr with this ExprManager if it belongs to another ExprManager.">rebuild</a>(*<span class="keyword">this</span>);
<a name="l00983"></a>00983 }
<a name="l00984"></a>00984 
<a name="l00985"></a><a class="code" href="group__ExprPkg.html#ga8be57c8709c3b35792306ea50cfc06d5">00985</a> <span class="keyword">inline</span> <a class="code" href="group__ExprPkg.html#ga8be57c8709c3b35792306ea50cfc06d5" title="Destructor.">Expr::~Expr</a>() {
<a name="l00986"></a>00986   <span class="keywordflow">if</span>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> != NULL) {
<a name="l00987"></a>00987     <a class="code" href="debug_8h.html#a600cb2d68efe7cc413cccbb5714c7016">IF_DEBUG</a>(<a class="code" href="debug_8h.html#a2637b2fffa22e3c9fad40cda8fcc3bce" title="If something goes horribly wrong, print a message and abort immediately with exit(1).">FatalAssert</a>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a85c52eb888e4dc288fb2b951c547077a" title="Reference counter for garbage collection.">d_refcount</a> &gt; 0, <span class="stringliteral">&quot;Mis-handled the ref. counting&quot;</span>);)
<a name="l00988"></a>00988     <span class="keywordflow">if</span> (--(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a85c52eb888e4dc288fb2b951c547077a" title="Reference counter for garbage collection.">d_refcount</a>) == 0) <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#ae0b397b57244e8e5bb59cb95641b14d0" title="Our expr. manager.">d_em</a>-&gt;<a class="code" href="group__EM__Priv.html#ga5878c4fbe700243540dc835b965fd01b" title="Garbage collect the ExprValue pointer.">gc</a>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>);
<a name="l00989"></a>00989   }
<a name="l00990"></a>00990 }
<a name="l00991"></a>00991 
<a name="l00992"></a><a class="code" href="group__ExprPkg.html#gadf3d59da15e4f78daf0c41ef7779a749">00992</a> <span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="group__ExprPkg.html#gae11bd9d6d259d280c77cb1778520daa4">Expr::hash</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#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="classCVC3_1_1ExprManager.html#ac4a0d5785aa3427b482ab07dff8b5609">hash</a>(e); }
<a name="l00993"></a>00993 <span class="comment"></span>
<a name="l00994"></a>00994 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
<a name="l00995"></a>00995 <span class="comment"></span><span class="comment">// Read-only (const) methods                                               //</span><span class="comment"></span>
<a name="l00996"></a>00996 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
<a name="l00997"></a>00997 <span class="comment"></span>
<a name="l00998"></a><a class="code" href="group__ExprPkg.html#gae11bd9d6d259d280c77cb1778520daa4">00998</a> <span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="group__ExprPkg.html#gae11bd9d6d259d280c77cb1778520daa4">Expr::hash</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="classCVC3_1_1ExprManager.html#ac4a0d5785aa3427b482ab07dff8b5609">hash</a>(*<span class="keyword">this</span>); }
<a name="l00999"></a>00999 
<a name="l01000"></a><a class="code" href="group__ExprPkg.html#gad21442cf6ecf46e8fcccbef451f4041b">01000</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1ExprValue.html" title="The base class for holding the actual data in expressions.">ExprValue</a>* <a class="code" href="group__ExprPkg.html#gad21442cf6ecf46e8fcccbef451f4041b" title="Provide access to ExprValue for client subclasses of ExprValue *only*.">Expr::getExprValue</a>()<span class="keyword"> const</span>
<a name="l01001"></a>01001 <span class="keyword">  </span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a6315bb02b7669d20a4069ca067a44384" title="Test whether the expression is a generic subclass.">getExprValue</a>(); }
<a name="l01002"></a>01002 
<a name="l01003"></a>01003 <span class="comment">// Core Expression Testers</span>
<a name="l01004"></a>01004 
<a name="l01005"></a><a class="code" href="group__ExprPkg.html#ga55b6a203b4375e64598306596851d9ae">01005</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga55b6a203b4375e64598306596851d9ae">Expr::isVar</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a1effa8e282a5a83047a61ab06498cd1d" title="Uninterpreted constants.">isVar</a>(); }
<a name="l01006"></a><a class="code" href="group__ExprPkg.html#ga72034a21a6bcbd4d5d2085aa23c8f290">01006</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga72034a21a6bcbd4d5d2085aa23c8f290">Expr::isString</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a89b8a3f5ae5d364b6ac5e49de7d3929c" title="String expression tester.">isString</a>(); }
<a name="l01007"></a><a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">01007</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">Expr::isClosure</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a5c78d2e54f53d66f546e32cb865a34c1" title="A LAMBDA-expression or a quantifier.">isClosure</a>(); }
<a name="l01008"></a><a class="code" href="group__ExprPkg.html#ga35249e04af38d4641c873e358188d47a">01008</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga35249e04af38d4641c873e358188d47a">Expr::isQuantifier</a>()<span class="keyword"> const </span>{
<a name="l01009"></a>01009   <span class="keywordflow">return</span> (<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>() &amp;&amp; (<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba7b7b6f6e2b88589bd4656a14bcb7eb94">FORALL</a> || <a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba3197625a1bb2264943f5a95f236d9973">EXISTS</a>));
<a name="l01010"></a>01010 }
<a name="l01011"></a><a class="code" href="group__ExprPkg.html#ga165dba5b9e9502059c3cf01bddf4fe1e">01011</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga165dba5b9e9502059c3cf01bddf4fe1e">Expr::isLambda</a>()<span class="keyword"> const </span>{
<a name="l01012"></a>01012   <span class="keywordflow">return</span> (<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>() &amp;&amp; <a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba40176493726a127184ca47ea6352dc1f">LAMBDA</a>);
<a name="l01013"></a>01013 }
<a name="l01014"></a><a class="code" href="group__ExprPkg.html#ga1d6a6b4a9ce81b0dd8fd74870ff4284b">01014</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga1d6a6b4a9ce81b0dd8fd74870ff4284b">Expr::isApply</a>()<span class="keyword"> const</span>
<a name="l01015"></a>01015 <span class="keyword"></span>{ <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>((<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() != <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5c41450c4e719ca40d8e734f6a2008f0">APPLY</a> || <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aac20e4b14a2aa68fd9f122f49070db33" title="Application of another expression.">isApply</a>()) &amp;&amp;
<a name="l01016"></a>01016               (!<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aac20e4b14a2aa68fd9f122f49070db33" title="Application of another expression.">isApply</a>() || <a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5c41450c4e719ca40d8e734f6a2008f0">APPLY</a>), <span class="stringliteral">&quot;APPLY mismatch&quot;</span>);
<a name="l01017"></a>01017   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5c41450c4e719ca40d8e734f6a2008f0">APPLY</a>; }
<a name="l01018"></a><a class="code" href="group__ExprPkg.html#ga93059bf6ddd8020cef4e6796a3c9b5a4">01018</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga93059bf6ddd8020cef4e6796a3c9b5a4">Expr::isSymbol</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a851283c6d5ec48e392c60eacc6a64b35" title="Special named symbol.">isSymbol</a>(); }
<a name="l01019"></a><a class="code" href="group__ExprPkg.html#ga8ec720fa4004f3f7036b0fba87393d83">01019</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga8ec720fa4004f3f7036b0fba87393d83">Expr::isTheorem</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aa2a68639be3c6803bc0b942604df3952" title="Special Expr holding a theorem.">isTheorem</a>(); }
<a name="l01020"></a><a class="code" href="group__ExprPkg.html#gaea43cdb4de7c9216d0adcc1807a6eccc">01020</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaea43cdb4de7c9216d0adcc1807a6eccc" title="Expr represents a type.">Expr::isType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#ga8e91326852cd6030a390fa3a29f6c8f9" title="Check if a kind represents a type.">isTypeKind</a>(<a class="code" href="group__ExprPkg.html#gad036a3a3597d590ca6ee694505c6e1cd" title="Get kind of operator (for APPLY Exprs only)">getOpKind</a>()); }
<a name="l01021"></a><a class="code" href="group__ExprPkg.html#gad527acb49daef3591b78c748746e7eef">01021</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gad527acb49daef3591b78c748746e7eef" title="Test if e is a term (as opposed to a predicate/formula)">Expr::isTerm</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !<a class="code" href="group__ExprPkg.html#ga42929221eb172250697b72c28af6de07" title="Get the type. Recursively compute if necessary.">getType</a>().<a class="code" href="classCVC3_1_1Type.html#a38bba404056eadf3c283a67ab2347e02">isBool</a>(); }
<a name="l01022"></a><a class="code" href="group__ExprPkg.html#gac03948739e860fa791fd3bbb713c1076">01022</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gac03948739e860fa791fd3bbb713c1076" title="A Bool connective is one of NOT,AND,OR,IMPLIES,IFF,XOR,ITE (with type Bool)">Expr::isBoolConnective</a>()<span class="keyword"> const </span>{
<a name="l01023"></a>01023   <span class="keywordflow">if</span> (!<a class="code" href="group__ExprPkg.html#ga42929221eb172250697b72c28af6de07" title="Get the type. Recursively compute if necessary.">getType</a>().isBool()) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01024"></a>01024   <span class="keywordflow">switch</span> (<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>()) {
<a name="l01025"></a>01025     <span class="keywordflow">case</span> <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba0378ebc895849163b249d0b330257dd6">NOT</a>: <span class="keywordflow">case</span> <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba865555c9f2e0458a7078486aa1b3254f">AND</a>: <span class="keywordflow">case</span> <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba96727447c0ad447987df1c6415aef074">OR</a>: <span class="keywordflow">case</span> <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba7338bb59b9aa936104a6d2f631d4d8db">IMPLIES</a>: <span class="keywordflow">case</span> <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba527cb185631442655c4486d51522b5a7">IFF</a>: <span class="keywordflow">case</span> <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5bac62338ffb5de22369c75caa565b5da1a">XOR</a>: <span class="keywordflow">case</span> <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba3a4cfaf3eae8eac1dc2fd27d9f0994dc">ITE</a>:
<a name="l01026"></a>01026       <span class="keywordflow">return</span> <span class="keyword">true</span>; }
<a name="l01027"></a>01027   <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01028"></a>01028 }
<a name="l01029"></a>01029 
<a name="l01030"></a><a class="code" href="group__ExprPkg.html#gad2f1fb7c447bcc3a7d352fd24a8f265a">01030</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a> <a class="code" href="group__ExprPkg.html#gad2f1fb7c447bcc3a7d352fd24a8f265a">Expr::getSize</a>()<span class="keyword"> const </span>{
<a name="l01031"></a>01031   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a7316c58d0068e9392de07ed946765ccc" title="Size of dag rooted at this expression.">d_size</a> == 0) {
<a name="l01032"></a>01032     <a class="code" href="group__ExprPkg.html#ga463076527f4fb2b87362ee268abc013f" title="Clear the generic flag in all Exprs.">clearFlags</a>();
<a name="l01033"></a>01033     <span class="keyword">const_cast&lt;</span><a class="code" href="classCVC3_1_1ExprValue.html" title="The base class for holding the actual data in expressions.">ExprValue</a>*<span class="keyword">&gt;</span>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>)-&gt;d_size = <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a68254536adeffd89a4c6837df4c0095f" title="Return DAG-size of Expr.">getSize</a>();
<a name="l01034"></a>01034   }
<a name="l01035"></a>01035   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a7316c58d0068e9392de07ed946765ccc" title="Size of dag rooted at this expression.">d_size</a>;
<a name="l01036"></a>01036 }
<a name="l01037"></a>01037 
<a name="l01038"></a>01038   <span class="comment">//inline int Expr::getHeight() const { return d_expr-&gt;getHeight(); }</span>
<a name="l01039"></a>01039   <span class="comment">//inline int Expr::getHighestKid() const { return d_expr-&gt;getHighestKid(); }</span>
<a name="l01040"></a>01040 
<a name="l01041"></a>01041   <span class="comment">//inline bool Expr::hasSimpFrom() const</span>
<a name="l01042"></a>01042 <span class="comment">//   { return !d_expr-&gt;getSimpFrom().isNull(); }</span>
<a name="l01043"></a>01043 <span class="comment">// inline const Expr&amp; Expr::getSimpFrom() const</span>
<a name="l01044"></a>01044 <span class="comment">//   { return hasSimpFrom() ? d_expr-&gt;getSimpFrom() : *this; }</span>
<a name="l01045"></a>01045 <span class="comment">// inline void Expr::setSimpFrom(const Expr&amp; simpFrom)</span>
<a name="l01046"></a>01046 <span class="comment">//   { d_expr-&gt;setSimpFrom(simpFrom); }</span>
<a name="l01047"></a>01047 
<a name="l01048"></a>01048 <span class="comment">// Leaf accessors</span>
<a name="l01049"></a>01049 
<a name="l01050"></a><a class="code" href="group__ExprPkg.html#gaa3023d9117f249f079b0a202a1dfc5c2">01050</a> <span class="keyword">inline</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="group__ExprPkg.html#gaa3023d9117f249f079b0a202a1dfc5c2">Expr::getName</a>()<span class="keyword"> const </span>{
<a name="l01051"></a>01051   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::getName() on Null expr&quot;</span>);
<a name="l01052"></a>01052   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a6ac375ed03ddb0418c1f7bb61ef5f8a6" title="Returns the string name of UCONST and BOUND_VAR expr&#39;s.">getName</a>();
<a name="l01053"></a>01053 }
<a name="l01054"></a>01054 
<a name="l01055"></a><a class="code" href="group__ExprPkg.html#ga5e679ab39ad8166c3c027afee9004c26">01055</a> <span class="keyword">inline</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="group__ExprPkg.html#ga5e679ab39ad8166c3c027afee9004c26">Expr::getString</a>()<span class="keyword"> const </span>{
<a name="l01056"></a>01056    <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga72034a21a6bcbd4d5d2085aa23c8f290">isString</a>(),
<a name="l01057"></a>01057         <span class="stringliteral">&quot;CVC3::Expr::getString(): not a string Expr:\n  &quot;</span>
<a name="l01058"></a>01058         + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01059"></a>01059    <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#ae08d4299bce518b15feae6717b22db60">getString</a>();
<a name="l01060"></a>01060 }
<a name="l01061"></a>01061 
<a name="l01062"></a><a class="code" href="group__ExprPkg.html#gaad22e223d0e273780557aca9d87620cd">01062</a> <span class="keyword">inline</span> <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; <a class="code" href="group__ExprPkg.html#gaad22e223d0e273780557aca9d87620cd" title="Get bound variables from a closure Expr.">Expr::getVars</a>()<span class="keyword"> const </span>{
<a name="l01063"></a>01063    <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>(),
<a name="l01064"></a>01064         <span class="stringliteral">&quot;CVC3::Expr::getVars(): not a closure Expr:\n  &quot;</span>
<a name="l01065"></a>01065         + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01066"></a>01066    <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#ac703cf03606d107e9a547d758ecc425b">getVars</a>();
<a name="l01067"></a>01067 }
<a name="l01068"></a>01068 
<a name="l01069"></a><a class="code" href="group__ExprPkg.html#ga9060193194020fee3dac69ed1876a940">01069</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="group__ExprPkg.html#ga9060193194020fee3dac69ed1876a940" title="Get the body of the closure Expr.">Expr::getBody</a>()<span class="keyword"> const </span>{
<a name="l01070"></a>01070    <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>(),
<a name="l01071"></a>01071         <span class="stringliteral">&quot;CVC3::Expr::getBody(): not a closure Expr:\n  &quot;</span>
<a name="l01072"></a>01072         + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01073"></a>01073    <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#ab9acd5e57727e14c4873a6ae45985903">getBody</a>();
<a name="l01074"></a>01074 }
<a name="l01075"></a>01075 
<a name="l01076"></a><a class="code" href="group__ExprPkg.html#gad15dc19335e0f59dddbb75d1d27579e7">01076</a>  <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gad15dc19335e0f59dddbb75d1d27579e7" title="Set the triggers for a closure Expr.">Expr::setTriggers</a>(<span class="keyword">const</span> std::vector&lt; std::vector&lt;Expr&gt; &gt;&amp; triggers)<span class="keyword"> const </span>{
<a name="l01077"></a>01077   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>(),
<a name="l01078"></a>01078         <span class="stringliteral">&quot;CVC3::Expr::setTriggers(): not a closure Expr:\n  &quot;</span>
<a name="l01079"></a>01079         + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01080"></a>01080   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a25993f35f99548aa2b3e1a52261de160">setTriggers</a>(triggers);
<a name="l01081"></a>01081 }
<a name="l01082"></a>01082 
<a name="l01083"></a><a class="code" href="group__ExprPkg.html#ga05ec7fb847036e29c782c3595f758a70">01083</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gad15dc19335e0f59dddbb75d1d27579e7" title="Set the triggers for a closure Expr.">Expr::setTriggers</a>(<span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; triggers)<span class="keyword"> const </span>{
<a name="l01084"></a>01084    <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>(),
<a name="l01085"></a>01085                <span class="stringliteral">&quot;CVC3::Expr::setTriggers(): not a closure Expr:\n  &quot;</span>
<a name="l01086"></a>01086                + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01087"></a>01087    std::vector&lt;std::vector&lt;Expr&gt; &gt; patternvv;
<a name="l01088"></a>01088    <span class="keywordflow">for</span>(std::vector&lt;Expr&gt;::const_iterator i = triggers.begin(); i != triggers.end(); ++i ) {
<a name="l01089"></a>01089      std::vector&lt;Expr&gt; patternv;
<a name="l01090"></a>01090      patternv.push_back(*i);
<a name="l01091"></a>01091      patternvv.push_back(patternv);
<a name="l01092"></a>01092    }
<a name="l01093"></a>01093    <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a25993f35f99548aa2b3e1a52261de160">setTriggers</a>(patternvv);
<a name="l01094"></a>01094  }
<a name="l01095"></a>01095 
<a name="l01096"></a><a class="code" href="group__ExprPkg.html#ga4e0dcc7b987305b845414ce0a7089381">01096</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga4e0dcc7b987305b845414ce0a7089381">Expr::setTrigger</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; trigger)<span class="keyword"> const </span>{
<a name="l01097"></a>01097   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>(),
<a name="l01098"></a>01098         <span class="stringliteral">&quot;CVC3::Expr::setTrigger(): not a closure Expr:\n  &quot;</span>
<a name="l01099"></a>01099         + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01100"></a>01100   std::vector&lt;std::vector&lt;Expr&gt; &gt; patternvv;
<a name="l01101"></a>01101   std::vector&lt;Expr&gt; patternv;
<a name="l01102"></a>01102   patternv.push_back(trigger);
<a name="l01103"></a>01103   patternvv.push_back(patternv);
<a name="l01104"></a>01104   <a class="code" href="group__ExprPkg.html#gad15dc19335e0f59dddbb75d1d27579e7" title="Set the triggers for a closure Expr.">setTriggers</a>(patternvv);
<a name="l01105"></a>01105 }
<a name="l01106"></a>01106 
<a name="l01107"></a><a class="code" href="group__ExprPkg.html#ga91a460603cf210681cfdec52a98fa076">01107</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga91a460603cf210681cfdec52a98fa076">Expr::setMultiTrigger</a>(<span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; multiTrigger)<span class="keyword"> const </span>{
<a name="l01108"></a>01108   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>(),
<a name="l01109"></a>01109               <span class="stringliteral">&quot;CVC3::Expr::setTrigger(): not a closure Expr:\n  &quot;</span>
<a name="l01110"></a>01110               + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01111"></a>01111   std::vector&lt;std::vector&lt;Expr&gt; &gt; patternvv;
<a name="l01112"></a>01112   patternvv.push_back(multiTrigger);
<a name="l01113"></a>01113   <a class="code" href="group__ExprPkg.html#gad15dc19335e0f59dddbb75d1d27579e7" title="Set the triggers for a closure Expr.">setTriggers</a>(patternvv);
<a name="l01114"></a>01114 }
<a name="l01115"></a>01115 
<a name="l01116"></a><a class="code" href="group__ExprPkg.html#gae4cffec57be4b7d81e8486328c2396fc">01116</a>  <span class="keyword">inline</span> <span class="keyword">const</span> std::vector&lt;std::vector&lt;Expr&gt; &gt;&amp; <a class="code" href="group__ExprPkg.html#gae4cffec57be4b7d81e8486328c2396fc" title="Get the manual triggers of the closure Expr.">Expr::getTriggers</a>()<span class="keyword"> const </span>{ <span class="comment">//by yeting</span>
<a name="l01117"></a>01117   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3127f52184d5bcb2d4056cb23f3a292b">isClosure</a>(),
<a name="l01118"></a>01118         <span class="stringliteral">&quot;CVC3::Expr::getTrigs(): not a closure Expr:\n  &quot;</span>
<a name="l01119"></a>01119         + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01120"></a>01120   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9e4c7523bb4dfbf80ad0157fe8196c44">getTriggers</a>();
<a name="l01121"></a>01121 }
<a name="l01122"></a>01122 
<a name="l01123"></a><a class="code" href="group__ExprPkg.html#gaf12c1f078a1106ba7d7896c45b2eb4cb">01123</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="group__ExprPkg.html#gaf12c1f078a1106ba7d7896c45b2eb4cb" title="Get the existential axiom expression for skolem constant.">Expr::getExistential</a>()<span class="keyword"> const </span>{
<a name="l01124"></a>01124   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#gab181584fa647ee5ef5f10e9050225562">isSkolem</a>(),
<a name="l01125"></a>01125               <span class="stringliteral">&quot;CVC3::Expr::getExistential() not a skolem variable&quot;</span>);
<a name="l01126"></a>01126   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#ae7da29f0b091c780ec0f4b75b9d84529">getExistential</a>();
<a name="l01127"></a>01127 }
<a name="l01128"></a><a class="code" href="group__ExprPkg.html#ga58d51b54987242f54071bdcc0d7d183f">01128</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="group__ExprPkg.html#ga58d51b54987242f54071bdcc0d7d183f" title="Get the index of the bound var that skolem constant comes from.">Expr::getBoundIndex</a>()<span class="keyword"> const </span>{
<a name="l01129"></a>01129   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#gab181584fa647ee5ef5f10e9050225562">isSkolem</a>(),
<a name="l01130"></a>01130               <span class="stringliteral">&quot;CVC3::Expr::getBoundIndex() not a skolem variable&quot;</span>);
<a name="l01131"></a>01131   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#abd69167d8061d19eac1cfd710a3b27e5">getBoundIndex</a>();
<a name="l01132"></a>01132 }
<a name="l01133"></a>01133 
<a name="l01134"></a>01134 
<a name="l01135"></a><a class="code" href="group__ExprPkg.html#gab0eee70e4a7f97c09954dc61b71b65e5">01135</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>&amp; <a class="code" href="group__ExprPkg.html#gab0eee70e4a7f97c09954dc61b71b65e5" title="Get the Rational value out of RATIONAL_EXPR.">Expr::getRational</a>()<span class="keyword"> const </span>{
<a name="l01136"></a>01136   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#gac5ced6adc7a60945ea6707ef494aa28f">isRational</a>(),
<a name="l01137"></a>01137         <span class="stringliteral">&quot;CVC3::Expr::getRational(): not a rational Expr:\n  &quot;</span>
<a name="l01138"></a>01138         + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01139"></a>01139    <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#abdfb4f3179a7549d99dceaebcff0b788">getRational</a>();
<a name="l01140"></a>01140 }
<a name="l01141"></a>01141 
<a name="l01142"></a><a class="code" href="group__ExprPkg.html#ga29db2c821567c944bc14f8156eb092b6">01142</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="group__ExprPkg.html#ga29db2c821567c944bc14f8156eb092b6" title="Get theorem from THEOREM_EXPR.">Expr::getTheorem</a>()<span class="keyword"> const </span>{
<a name="l01143"></a>01143   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga8ec720fa4004f3f7036b0fba87393d83">isTheorem</a>(),
<a name="l01144"></a>01144         <span class="stringliteral">&quot;CVC3::Expr::getTheorem(): not a Theorem Expr:\n  &quot;</span>
<a name="l01145"></a>01145         + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01146"></a>01146    <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a080156f159575061e068aa85e003a4d2">getTheorem</a>();
<a name="l01147"></a>01147 }
<a name="l01148"></a>01148 
<a name="l01149"></a><a class="code" href="group__ExprPkg.html#ga2b086a0194b24a3f31afd402cea7de94">01149</a> <span class="keyword">inline</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="group__ExprPkg.html#ga2b086a0194b24a3f31afd402cea7de94" title="For BOUND_VAR, get the UID.">Expr::getUid</a>()<span class="keyword"> const </span>{
<a name="l01150"></a>01150    <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba462c38186c36e12c2f38a6d0d43feddf">BOUND_VAR</a>,
<a name="l01151"></a>01151         <span class="stringliteral">&quot;CVC3::Expr::getUid(): not a BOUND_VAR Expr:\n  &quot;</span>
<a name="l01152"></a>01152         + <a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>(<a class="code" href="namespaceCVC3.html#a3aaaf7bc1fc47a4860ef6e59ddb0db0ea0ee28952d729595b97a9e592975d1521">AST_LANG</a>));
<a name="l01153"></a>01153    <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aa41e0e611f41af685e245ff12233865e">getUid</a>();
<a name="l01154"></a>01154 }
<a name="l01155"></a>01155 
<a name="l01156"></a><a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">01156</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">Expr::getEM</a>()<span class="keyword"> const </span>{
<a name="l01157"></a>01157   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> != NULL,
<a name="l01158"></a>01158               <span class="stringliteral">&quot;CVC3::Expr:getEM: on Null Expr (not initialized)&quot;</span>);
<a name="l01159"></a>01159   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#ae0b397b57244e8e5bb59cb95641b14d0" title="Our expr. manager.">d_em</a>;
<a name="l01160"></a>01160 }
<a name="l01161"></a>01161 
<a name="l01162"></a><a class="code" href="group__ExprPkg.html#ga1e18ae89889e781591eb2874a4196b73">01162</a> <span class="keyword">inline</span> <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; <a class="code" href="group__ExprPkg.html#ga1e18ae89889e781591eb2874a4196b73">Expr::getKids</a>()<span class="keyword"> const </span>{
<a name="l01163"></a>01163   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> != NULL, <span class="stringliteral">&quot;Expr::getKids on Null Expr&quot;</span>);
<a name="l01164"></a>01164   <span class="keywordflow">if</span>(<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>()) <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#ga4619bc6e35a273b89d30908c45d73348" title="References to empty objects (used in ExprValue)">getEmptyVector</a>();
<a name="l01165"></a>01165   <span class="keywordflow">else</span> <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9599f84777bbbacdf953986ece645c2d" title="Get kids: by default, returns a ref to an empty vector.">getKids</a>();
<a name="l01166"></a>01166 }
<a name="l01167"></a>01167 
<a name="l01168"></a><a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">01168</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">Expr::getKind</a>()<span class="keyword"> const </span>{
<a name="l01169"></a>01169    <span class="keywordflow">if</span>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> == NULL) <span class="keywordflow">return</span> <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5bc05ce87fa69f660d39d0a4fa188c67">NULL_KIND</a>; <span class="comment">// FIXME: invent a better Null kind</span>
<a name="l01170"></a>01170    <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a4984ceea8831c2c175530910174985b4" title="The kind of the expression. In particular, it determines which subclass of ExprValue is used to store...">d_kind</a>;
<a name="l01171"></a>01171  }
<a name="l01172"></a>01172 
<a name="l01173"></a><a class="code" href="group__ExprPkg.html#gadaddb9b0566ecddd4611a10e820dc544">01173</a> <span class="keyword">inline</span> <a class="code" href="namespaceCVC3.html#a4233916514848331ee104548acbab912" title="Expression index type.">ExprIndex</a> <a class="code" href="group__ExprPkg.html#gadaddb9b0566ecddd4611a10e820dc544">Expr::getIndex</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a31c61be16227d9b96035410d8312b94a" title="Unique expression id.">d_index</a>; }
<a name="l01174"></a>01174 
<a name="l01175"></a><a class="code" href="group__ExprPkg.html#gaa930fda58c8146f27f3dacaab017015c">01175</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaa930fda58c8146f27f3dacaab017015c">Expr::hasLastIndex</a>()<span class="keyword"> const</span>
<a name="l01176"></a>01176 <span class="keyword"></span>{ <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#ae0b397b57244e8e5bb59cb95641b14d0" title="Our expr. manager.">d_em</a>-&gt;<a class="code" href="group__EM__Priv.html#gac64badd3988c01f34e43f227902e80f1">lastIndex</a>() == <a class="code" href="group__ExprPkg.html#gadaddb9b0566ecddd4611a10e820dc544">getIndex</a>(); }
<a name="l01177"></a>01177 
<a name="l01178"></a><a class="code" href="group__ExprPkg.html#ga3aefe2fb15c2d8e3a51dd92dbcc5cdc5">01178</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Op.html">Op</a> <a class="code" href="group__ExprPkg.html#ga3aefe2fb15c2d8e3a51dd92dbcc5cdc5" title="Make the expr into an operator.">Expr::mkOp</a>()<span class="keyword"> const </span>{
<a name="l01179"></a>01179   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::mkOp() on Null expr&quot;</span>);
<a name="l01180"></a>01180   <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Expr.html#a2c31e8a3c11caeb061d69db14ebb0e95">Op</a>(*<span class="keyword">this</span>);
<a name="l01181"></a>01181 }
<a name="l01182"></a>01182 
<a name="l01183"></a><a class="code" href="group__ExprPkg.html#gace479f04faca399219496195152f7806">01183</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Op.html">Op</a> <a class="code" href="group__ExprPkg.html#gace479f04faca399219496195152f7806" title="Get operator from expression.">Expr::getOp</a>()<span class="keyword"> const </span>{
<a name="l01184"></a>01184   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::getOp() on Null expr&quot;</span>);
<a name="l01185"></a>01185   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga1d6a6b4a9ce81b0dd8fd74870ff4284b">isApply</a>()) <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a2f674a5c2a7d6c8a2ac1bafdbfcf7a41" title="Get the Op from an Apply Expr.">getOp</a>();
<a name="l01186"></a>01186   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga28b901d05e52a5c646f83a95cc74f94b">arity</a>() &gt; 0,
<a name="l01187"></a>01187               <span class="stringliteral">&quot;Expr::getOp() called on non-apply expr with no children&quot;</span>);
<a name="l01188"></a>01188   <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Expr.html#a2c31e8a3c11caeb061d69db14ebb0e95">Op</a>(<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>());
<a name="l01189"></a>01189 }
<a name="l01190"></a>01190 
<a name="l01191"></a><a class="code" href="group__ExprPkg.html#ga9f3328fe077191803a780cfd6566ff9b">01191</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga9f3328fe077191803a780cfd6566ff9b" title="Get expression of operator (for APPLY Exprs only)">Expr::getOpExpr</a>()<span class="keyword"> const </span>{
<a name="l01192"></a>01192   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga1d6a6b4a9ce81b0dd8fd74870ff4284b">isApply</a>(), <span class="stringliteral">&quot;getOpExpr() called on non-apply&quot;</span>);
<a name="l01193"></a>01193   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gace479f04faca399219496195152f7806" title="Get operator from expression.">getOp</a>().<a class="code" href="classCVC3_1_1Op.html#a4a38071541d1e863583f12e9d81de3a2">getExpr</a>();
<a name="l01194"></a>01194 }
<a name="l01195"></a>01195 
<a name="l01196"></a><a class="code" href="group__ExprPkg.html#gad036a3a3597d590ca6ee694505c6e1cd">01196</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="group__ExprPkg.html#gad036a3a3597d590ca6ee694505c6e1cd" title="Get kind of operator (for APPLY Exprs only)">Expr::getOpKind</a>()<span class="keyword"> const </span>{
<a name="l01197"></a>01197   <span class="keywordflow">if</span> (!<a class="code" href="group__ExprPkg.html#ga1d6a6b4a9ce81b0dd8fd74870ff4284b">isApply</a>()) <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>();
<a name="l01198"></a>01198   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gace479f04faca399219496195152f7806" title="Get operator from expression.">getOp</a>().<a class="code" href="classCVC3_1_1Op.html#a4a38071541d1e863583f12e9d81de3a2">getExpr</a>().<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>();
<a name="l01199"></a>01199 }
<a name="l01200"></a>01200 
<a name="l01201"></a><a class="code" href="group__ExprPkg.html#ga28b901d05e52a5c646f83a95cc74f94b">01201</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="group__ExprPkg.html#ga28b901d05e52a5c646f83a95cc74f94b">Expr::arity</a>()<span class="keyword"> const </span>{
<a name="l01202"></a>01202   <span class="keywordflow">if</span>(<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>()) <span class="keywordflow">return</span> 0;
<a name="l01203"></a>01203   <span class="keywordflow">else</span> <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aa310750ac9085b47f90be9edf3119192" title="Default arity = 0.">arity</a>();
<a name="l01204"></a>01204 }
<a name="l01205"></a>01205 
<a name="l01206"></a><a class="code" href="group__ExprPkg.html#ga5b242a4834df256dc2055e310fb0e727">01206</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; <a class="code" href="group__ExprPkg.html#ga5b242a4834df256dc2055e310fb0e727">Expr::operator[]</a>(<span class="keywordtype">int</span> i)<span class="keyword"> const </span>{
<a name="l01207"></a>01207   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(i &lt; <a class="code" href="group__ExprPkg.html#ga28b901d05e52a5c646f83a95cc74f94b">arity</a>(), <span class="stringliteral">&quot;out of bounds access&quot;</span>);
<a name="l01208"></a>01208   <span class="keywordflow">return</span> (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9599f84777bbbacdf953986ece645c2d" title="Get kids: by default, returns a ref to an empty vector.">getKids</a>())[i];
<a name="l01209"></a>01209 }
<a name="l01210"></a>01210 
<a name="l01211"></a><a class="code" href="group__ExprPkg.html#gac890e13db184610276fc533fa4b4fe99">01211</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a> <a class="code" href="group__ExprPkg.html#gac890e13db184610276fc533fa4b4fe99" title="Begin iterator.">Expr::begin</a>()<span class="keyword"> const </span>{
<a name="l01212"></a>01212   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>() || <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aa310750ac9085b47f90be9edf3119192" title="Default arity = 0.">arity</a>() == 0)
<a name="l01213"></a>01213     <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a>(<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#ga4619bc6e35a273b89d30908c45d73348" title="References to empty objects (used in ExprValue)">getEmptyVector</a>().begin());
<a name="l01214"></a>01214   <span class="keywordflow">else</span> <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9599f84777bbbacdf953986ece645c2d" title="Get kids: by default, returns a ref to an empty vector.">getKids</a>().begin());
<a name="l01215"></a>01215 }
<a name="l01216"></a>01216 
<a name="l01217"></a><a class="code" href="group__ExprPkg.html#gaf6048a5030c8fa2511bf5dfee868e653">01217</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a> <a class="code" href="group__ExprPkg.html#gaf6048a5030c8fa2511bf5dfee868e653" title="End iterator.">Expr::end</a>()<span class="keyword"> const </span>{
<a name="l01218"></a>01218   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>() || <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aa310750ac9085b47f90be9edf3119192" title="Default arity = 0.">arity</a>() == 0)
<a name="l01219"></a>01219     <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a>(<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#ga4619bc6e35a273b89d30908c45d73348" title="References to empty objects (used in ExprValue)">getEmptyVector</a>().end());
<a name="l01220"></a>01220   <span class="keywordflow">else</span> <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9599f84777bbbacdf953986ece645c2d" title="Get kids: by default, returns a ref to an empty vector.">getKids</a>().end());
<a name="l01221"></a>01221 }
<a name="l01222"></a>01222 
<a name="l01223"></a><a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">01223</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">Expr::isNull</a>()<span class="keyword"> const </span>{
<a name="l01224"></a>01224   <span class="keywordflow">return</span> (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> == NULL) || (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a4984ceea8831c2c175530910174985b4" title="The kind of the expression. In particular, it determines which subclass of ExprValue is used to store...">d_kind</a> == <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba5bc05ce87fa69f660d39d0a4fa188c67">NULL_KIND</a>);
<a name="l01225"></a>01225 }
<a name="l01226"></a>01226 
<a name="l01227"></a><a class="code" href="group__ExprPkg.html#gaca3ae54b26443a7d5a74cc7d6f5e81e3">01227</a> <span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="group__ExprPkg.html#gaca3ae54b26443a7d5a74cc7d6f5e81e3" title="Get the memory manager index (it uniquely identifies the subclass)">Expr::getMMIndex</a>()<span class="keyword"> const </span>{
<a name="l01228"></a>01228   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::getMMIndex()&quot;</span>);
<a name="l01229"></a>01229   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#af4280c2539ba1dd4a089f0537f7ef3d4" title="Get unique memory manager ID.">getMMIndex</a>();
<a name="l01230"></a>01230 }
<a name="l01231"></a>01231 
<a name="l01232"></a><a class="code" href="group__ExprPkg.html#ga4dc94c33ae308ff8d9d004f49df8f42b">01232</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga4dc94c33ae308ff8d9d004f49df8f42b">Expr::hasFind</a>()<span class="keyword"> const </span>{
<a name="l01233"></a>01233   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;hasFind called on NULL Expr&quot;</span>);
<a name="l01234"></a>01234   <span class="keywordflow">return</span> (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a7c66d985cd073ba81fbd777193ca6144" title="The find attribute (may be NULL)">d_find</a> &amp;&amp; !(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a7c66d985cd073ba81fbd777193ca6144" title="The find attribute (may be NULL)">d_find</a>-&gt;<a class="code" href="classCVC3_1_1CDO.html#a818fcacc7b30b0f05347335ab125626c">get</a>().<a class="code" href="classCVC3_1_1Theorem.html#afc6fdb0507eb3669e28d9be5ed0bd333">isNull</a>()));
<a name="l01235"></a>01235 }
<a name="l01236"></a>01236 
<a name="l01237"></a><a class="code" href="group__ExprPkg.html#ga9be55edbdc2c0878fec750921a9fcc89">01237</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="group__ExprPkg.html#ga9be55edbdc2c0878fec750921a9fcc89">Expr::getFind</a>()<span class="keyword"> const </span>{
<a name="l01238"></a>01238   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga4dc94c33ae308ff8d9d004f49df8f42b">hasFind</a>(), <span class="stringliteral">&quot;Should only be called if find is valid&quot;</span>);
<a name="l01239"></a>01239   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a7c66d985cd073ba81fbd777193ca6144" title="The find attribute (may be NULL)">d_find</a>-&gt;<a class="code" href="classCVC3_1_1CDO.html#a818fcacc7b30b0f05347335ab125626c">get</a>();
<a name="l01240"></a>01240 }
<a name="l01241"></a>01241 
<a name="l01242"></a><a class="code" href="group__ExprPkg.html#ga45ea7926a65c7c5559c81f1f20bde281">01242</a> <span class="keyword">inline</span> <span class="keywordtype">int</span>  <a class="code" href="group__ExprPkg.html#ga45ea7926a65c7c5559c81f1f20bde281">Expr::getFindLevel</a>()<span class="keyword"> const </span>{
<a name="l01243"></a>01243   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga4dc94c33ae308ff8d9d004f49df8f42b">hasFind</a>(), <span class="stringliteral">&quot;Should only be called if find is valid&quot;</span>);
<a name="l01244"></a>01244   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a7c66d985cd073ba81fbd777193ca6144" title="The find attribute (may be NULL)">d_find</a>-&gt;<a class="code" href="classCVC3_1_1ContextObj.html#abf9828c2d05c7d48a55827ae4c117b91">level</a>();
<a name="l01245"></a>01245 }
<a name="l01246"></a>01246 
<a name="l01247"></a><a class="code" href="group__ExprPkg.html#gaac6e2bdafe4cb6b91d4bec8fa656bcb2">01247</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="group__ExprPkg.html#gaac6e2bdafe4cb6b91d4bec8fa656bcb2">Expr::getEqNext</a>()<span class="keyword"> const </span>{
<a name="l01248"></a>01248   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;getEqNext called on NULL Expr&quot;</span>);
<a name="l01249"></a>01249   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga4dc94c33ae308ff8d9d004f49df8f42b">hasFind</a>(), <span class="stringliteral">&quot;Should only be called if find is valid&quot;</span>);
<a name="l01250"></a>01250   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a3e910d33cc56606779e88be386d3c40a" title="Equality between this term and next term in ring of all terms in the equivalence class.">d_eqNext</a>, <span class="stringliteral">&quot;getEqNext: d_eqNext is NULL&quot;</span>);
<a name="l01251"></a>01251   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a3e910d33cc56606779e88be386d3c40a" title="Equality between this term and next term in ring of all terms in the equivalence class.">d_eqNext</a>-&gt;<a class="code" href="classCVC3_1_1CDO.html#a818fcacc7b30b0f05347335ab125626c">get</a>();
<a name="l01252"></a>01252 }
<a name="l01253"></a>01253 
<a name="l01254"></a><a class="code" href="group__ExprPkg.html#gace67f5f11fd81d9ecebba441b8c02e07">01254</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1NotifyList.html">NotifyList</a>* <a class="code" href="group__ExprPkg.html#gace67f5f11fd81d9ecebba441b8c02e07">Expr::getNotify</a>()<span class="keyword"> const </span>{
<a name="l01255"></a>01255   <span class="keywordflow">if</span>(<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>()) <span class="keywordflow">return</span> NULL;
<a name="l01256"></a>01256   <span class="keywordflow">else</span> <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a0db3195745319e1c17f8c886438752b8" title="The cached TCC of the expression (may be Null)">d_notifyList</a>;
<a name="l01257"></a>01257 }
<a name="l01258"></a>01258 
<a name="l01259"></a><a class="code" href="group__ExprPkg.html#ga42929221eb172250697b72c28af6de07">01259</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="group__ExprPkg.html#ga42929221eb172250697b72c28af6de07" title="Get the type. Recursively compute if necessary.">Expr::getType</a>()<span class="keyword"> const </span>{
<a name="l01260"></a>01260   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>()) <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga7ad4f1f01878e19f3a6318a846dbfe6f" title="Convenient null expr.">s_null</a>;
<a name="l01261"></a>01261   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a6c369e54e40d39696ff852e1013b7198" title="The cached type of the expression (may be Null)">d_type</a>.<a class="code" href="classCVC3_1_1Type.html#ab5fe00c99ee91f369e3339b26bab0bf7">isNull</a>()) <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#ga15e87e829f86a1dcf2c5e05be6f4d182" title="Compute the type of the Expr.">computeType</a>(*<span class="keyword">this</span>);
<a name="l01262"></a>01262   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a6c369e54e40d39696ff852e1013b7198" title="The cached type of the expression (may be Null)">d_type</a>;
<a name="l01263"></a>01263 }
<a name="l01264"></a>01264 
<a name="l01265"></a><a class="code" href="group__ExprPkg.html#ga801d77a373d26549c735dbd8a7fda1a5">01265</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="group__ExprPkg.html#ga801d77a373d26549c735dbd8a7fda1a5" title="Look up the current type. Do not recursively compute (i.e. may be NULL)">Expr::lookupType</a>()<span class="keyword"> const </span>{
<a name="l01266"></a>01266   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>()) <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga7ad4f1f01878e19f3a6318a846dbfe6f" title="Convenient null expr.">s_null</a>;
<a name="l01267"></a>01267   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a6c369e54e40d39696ff852e1013b7198" title="The cached type of the expression (may be Null)">d_type</a>;
<a name="l01268"></a>01268 }
<a name="l01269"></a>01269 
<a name="l01270"></a><a class="code" href="group__ExprPkg.html#ga9030cf2556acc13a160355c55e0a1b4e">01270</a> <span class="keyword">inline</span> <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54" title="Enum for cardinality of types.">Cardinality</a> <a class="code" href="group__ExprPkg.html#ga9030cf2556acc13a160355c55e0a1b4e" title="Return cardinality of type.">Expr::typeCard</a>()<span class="keyword"> const </span>{
<a name="l01271"></a>01271   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;typeCard called on NULL Expr&quot;</span>);
<a name="l01272"></a>01272   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> e(*<span class="keyword">this</span>);
<a name="l01273"></a>01273   <a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a> n;
<a name="l01274"></a>01274   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#gae5cc4c6a7dfcc718c7c931e6b160d9d1" title="Get information related to finiteness of a type.">finiteTypeInfo</a>(e, n, <span class="keyword">false</span>, <span class="keyword">false</span>);
<a name="l01275"></a>01275 }
<a name="l01276"></a>01276 
<a name="l01277"></a><a class="code" href="group__ExprPkg.html#ga9abac5907964bb1ca7d6ad7d1280791c">01277</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="group__ExprPkg.html#ga9abac5907964bb1ca7d6ad7d1280791c" title="Return nth (starting with 0) element in a finite type.">Expr::typeEnumerateFinite</a>(<a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a> n)<span class="keyword"> const </span>{
<a name="l01278"></a>01278   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;typeEnumerateFinite called on NULL Expr&quot;</span>);
<a name="l01279"></a>01279   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> e(*<span class="keyword">this</span>);
<a name="l01280"></a>01280   <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54" title="Enum for cardinality of types.">Cardinality</a> card = <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#gae5cc4c6a7dfcc718c7c931e6b160d9d1" title="Get information related to finiteness of a type.">finiteTypeInfo</a>(e, n, <span class="keyword">true</span>, <span class="keyword">false</span>);
<a name="l01281"></a>01281   <span class="keywordflow">if</span> (card != <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54ac1ba3119b0fd85d3e54c69601ec1ccca">CARD_FINITE</a>) e = <a class="code" href="group__ExprPkg.html#gaf3f35afa568a157d6f58ad24fd46b9d1" title="Default constructor creates the Null Expr.">Expr</a>();
<a name="l01282"></a>01282   <span class="keywordflow">return</span> e;
<a name="l01283"></a>01283 }
<a name="l01284"></a>01284 
<a name="l01285"></a><a class="code" href="group__ExprPkg.html#gaefc32b444057849c6364e63b7d4c3cf3">01285</a> <span class="keyword">inline</span> <a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a> <a class="code" href="group__ExprPkg.html#gaefc32b444057849c6364e63b7d4c3cf3" title="Return size of a finite type; returns 0 if size cannot be determined.">Expr::typeSizeFinite</a>()<span class="keyword"> const </span>{
<a name="l01286"></a>01286   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;typeCard called on NULL Expr&quot;</span>);
<a name="l01287"></a>01287   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> e(*<span class="keyword">this</span>);
<a name="l01288"></a>01288   <a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a> n;
<a name="l01289"></a>01289   <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54" title="Enum for cardinality of types.">Cardinality</a> card = <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#gae5cc4c6a7dfcc718c7c931e6b160d9d1" title="Get information related to finiteness of a type.">finiteTypeInfo</a>(e, n, <span class="keyword">false</span>, <span class="keyword">true</span>);
<a name="l01290"></a>01290   <span class="keywordflow">if</span> (card != <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54ac1ba3119b0fd85d3e54c69601ec1ccca">CARD_FINITE</a>) n = 0;
<a name="l01291"></a>01291   <span class="keywordflow">return</span> n;
<a name="l01292"></a>01292 }
<a name="l01293"></a>01293 
<a name="l01294"></a><a class="code" href="group__ExprPkg.html#ga99348741c5062f8c8e62962b787a73fd">01294</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga99348741c5062f8c8e62962b787a73fd" title="Return true if there is a valid cached value for calling simplify on this Expr.">Expr::validSimpCache</a>()<span class="keyword"> const </span>{
<a name="l01295"></a>01295   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a3a62b089ce7a3573879b933c231eebb5" title="For checking whether simplify cache is valid.">d_simpCacheTag</a> == <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#gacacaaf5083e198a6014c2407c7f09cc0" title="Get the simplifier&#39;s cache tag.">getSimpCacheTag</a>();
<a name="l01296"></a>01296 }
<a name="l01297"></a>01297 
<a name="l01298"></a><a class="code" href="group__ExprPkg.html#ga5dbb07a3a7f3a7154ad3bcdb58bbdec6">01298</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="group__ExprPkg.html#ga5dbb07a3a7f3a7154ad3bcdb58bbdec6">Expr::getSimpCache</a>()<span class="keyword"> const </span>{
<a name="l01299"></a>01299   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a016826b11af2138fb03564e19c36556b" title="For caching calls to Simplify.">d_simpCache</a>;
<a name="l01300"></a>01300 }
<a name="l01301"></a>01301 
<a name="l01302"></a><a class="code" href="group__ExprPkg.html#gaed5d5a14a8089122a0e05a55e38fc37f">01302</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaed5d5a14a8089122a0e05a55e38fc37f">Expr::isValidType</a>()<span class="keyword"> const </span>{
<a name="l01303"></a>01303   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca064c35d31f9b779c3c327a38c22f7d5a" title="Whether is valid TYPE expr.">VALID_TYPE</a>);
<a name="l01304"></a>01304 }
<a name="l01305"></a>01305 
<a name="l01306"></a><a class="code" href="group__ExprPkg.html#ga501126e42edf75538f510b7b87df96f1">01306</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga501126e42edf75538f510b7b87df96f1">Expr::validIsAtomicFlag</a>()<span class="keyword"> const </span>{
<a name="l01307"></a>01307   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca4bc8d45f29e985faa033b685c209c934" title="Whether IS_ATOMIC flag is valid (initialized)">VALID_IS_ATOMIC</a>);
<a name="l01308"></a>01308 }
<a name="l01309"></a>01309 
<a name="l01310"></a><a class="code" href="group__ExprPkg.html#ga0016a263d60de73f5924072848515699">01310</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga0016a263d60de73f5924072848515699">Expr::validTerminalsConstFlag</a>()<span class="keyword"> const </span>{
<a name="l01311"></a>01311   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca501e68dd8eb63c2ed0d6f52f1eb844f8" title="Whether TERMINALS_CONST flag is valid (initialized)">VALID_TERMINALS_CONST</a>);
<a name="l01312"></a>01312 }
<a name="l01313"></a>01313 
<a name="l01314"></a><a class="code" href="group__ExprPkg.html#gaaa895b97bdc2413b72419cc781178995">01314</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaaa895b97bdc2413b72419cc781178995">Expr::getIsAtomicFlag</a>()<span class="keyword"> const </span>{
<a name="l01315"></a>01315   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316caf25f8b67eed5f06cdff26bfe7e5f004b" title="Whether the expression is an atomic term or formula.">IS_ATOMIC</a>);
<a name="l01316"></a>01316 }
<a name="l01317"></a>01317 
<a name="l01318"></a><a class="code" href="group__ExprPkg.html#gab990a9104757ac6854b92c3b98727b9c">01318</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gab990a9104757ac6854b92c3b98727b9c">Expr::getTerminalsConstFlag</a>()<span class="keyword"> const </span>{
<a name="l01319"></a>01319   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca8f04196095a0b34d324a5c004d08317d" title="Whether expr contains only numerical constants at all possible ite terminals.">TERMINALS_CONST</a>);
<a name="l01320"></a>01320 }
<a name="l01321"></a>01321 
<a name="l01322"></a><a class="code" href="group__ExprPkg.html#gad27a864cc3351877b2b132f3dfe4ac1c">01322</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gad27a864cc3351877b2b132f3dfe4ac1c">Expr::isRewriteNormal</a>()<span class="keyword"> const </span>{
<a name="l01323"></a>01323   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca6279757281c85b060623657eae639d11" title="Expression is the result of a &quot;normal&quot; (idempotent) rewrite.">REWRITE_NORMAL</a>);
<a name="l01324"></a>01324 }
<a name="l01325"></a>01325 
<a name="l01326"></a><a class="code" href="group__ExprPkg.html#gacf628bd70fc2c4766afa268ed22ea947">01326</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gacf628bd70fc2c4766afa268ed22ea947">Expr::isFinite</a>()<span class="keyword"> const </span>{
<a name="l01327"></a>01327   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca8282a0d9539e4019a384810c6ddf80ff" title="Finite type.">IS_FINITE</a>);
<a name="l01328"></a>01328 }
<a name="l01329"></a>01329 
<a name="l01330"></a><a class="code" href="group__ExprPkg.html#gaa7dc360962f097870ecc6a4cc14c4909">01330</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaa7dc360962f097870ecc6a4cc14c4909">Expr::isWellFounded</a>()<span class="keyword"> const </span>{
<a name="l01331"></a>01331   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca9f0f9b43c297449dc513bba12a343c0d" title="Well-founded (used in datatypes)">WELL_FOUNDED</a>);
<a name="l01332"></a>01332 }
<a name="l01333"></a>01333 
<a name="l01334"></a><a class="code" href="group__ExprPkg.html#gac3aeac6fba7a1d6cacfe4bd653c5a084">01334</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gac3aeac6fba7a1d6cacfe4bd653c5a084">Expr::computeTransClosure</a>()<span class="keyword"> const </span>{
<a name="l01335"></a>01335   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316caabe5302ce9b2cf701cb301b81e28315d" title="Compute transitive closure (for binary uninterpreted predicates)">COMPUTE_TRANS_CLOSURE</a>);
<a name="l01336"></a>01336 }
<a name="l01337"></a>01337 
<a name="l01338"></a><a class="code" href="group__ExprPkg.html#gacafcbc459ee158f84e3666eaf32ca3f9">01338</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gacafcbc459ee158f84e3666eaf32ca3f9">Expr::containsBoundVar</a>()<span class="keyword"> const </span>{
<a name="l01339"></a>01339   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca37150acb5faf924bcfdffd46fb91fb3f" title="Whether expr contains a bounded variable (for quantifier instantiation)">CONTAINS_BOUND_VAR</a>);
<a name="l01340"></a>01340 }
<a name="l01341"></a>01341 
<a name="l01342"></a><a class="code" href="group__ExprPkg.html#ga0f1f1ce3472f18a4b6575805e0347bce">01342</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga0f1f1ce3472f18a4b6575805e0347bce">Expr::usesCC</a>()<span class="keyword"> const </span>{
<a name="l01343"></a>01343   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316cad414c75c14f9cc186e6e7df225396627" title="Whether expr uses CC algorithm that relies on not simplifying an expr that has a find.">USES_CC</a>);
<a name="l01344"></a>01344 }
<a name="l01345"></a>01345 
<a name="l01346"></a><a class="code" href="group__ExprPkg.html#gaabb885ae903ae169ed75137653dc2538">01346</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaabb885ae903ae169ed75137653dc2538">Expr::notArrayNormalized</a>()<span class="keyword"> const </span>{
<a name="l01347"></a>01347   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a0328c59b775199c11653b376c0f3c8cb" title="Whether expr is normalized (in array theory)">NOT_ARRAY_NORMALIZED</a>);
<a name="l01348"></a>01348 }
<a name="l01349"></a>01349 
<a name="l01350"></a><a class="code" href="group__ExprPkg.html#ga5d92d645899807eb4351502f2e74369e">01350</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga5d92d645899807eb4351502f2e74369e">Expr::isImpliedLiteral</a>()<span class="keyword"> const </span>{
<a name="l01351"></a>01351   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a34b44b8fd97e8950a24f9d1d939fd3ac" title="Whether expr has been added as an implied literal.">IMPLIED_LITERAL</a>);
<a name="l01352"></a>01352 }
<a name="l01353"></a>01353 
<a name="l01354"></a><a class="code" href="group__ExprPkg.html#gadeefef680b6323acc5d79a553644be8e">01354</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gadeefef680b6323acc5d79a553644be8e">Expr::isUserAssumption</a>()<span class="keyword"> const </span>{
<a name="l01355"></a>01355   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936ae7079560c1a0d6742b7dd084401327ac">IS_USER_ASSUMPTION</a>);
<a name="l01356"></a>01356 }
<a name="l01357"></a>01357 
<a name="l01358"></a><a class="code" href="group__ExprPkg.html#ga110d4a1734b738dbb999b7798e07c3d1">01358</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga110d4a1734b738dbb999b7798e07c3d1">Expr::inUserAssumption</a>()<span class="keyword"> const </span>{
<a name="l01359"></a>01359   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936aec9453c0bef6971761ee89e60baa4a80">IN_USER_ASSUMPTION</a>);
<a name="l01360"></a>01360 }
<a name="l01361"></a>01361 
<a name="l01362"></a><a class="code" href="group__ExprPkg.html#gaf42121131fd56040faef7a64d9e67729">01362</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gaf42121131fd56040faef7a64d9e67729">Expr::isIntAssumption</a>()<span class="keyword"> const </span>{
<a name="l01363"></a>01363   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a4e904444fd219938f8743b8e951eba6d">IS_INT_ASSUMPTION</a>);
<a name="l01364"></a>01364 }
<a name="l01365"></a>01365 
<a name="l01366"></a><a class="code" href="group__ExprPkg.html#ga3cf472ba2fa033f3e1401e4b67a3f8a0">01366</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga3cf472ba2fa033f3e1401e4b67a3f8a0">Expr::isJustified</a>()<span class="keyword"> const </span>{
<a name="l01367"></a>01367   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a5fdae20b9b42f2eae992d1fe377c32b8">IS_JUSTIFIED</a>);
<a name="l01368"></a>01368 }
<a name="l01369"></a>01369 
<a name="l01370"></a><a class="code" href="group__ExprPkg.html#gabe0b99a2c155f75ceedd4f06263ddebb">01370</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gabe0b99a2c155f75ceedd4f06263ddebb">Expr::isTranslated</a>()<span class="keyword"> const </span>{
<a name="l01371"></a>01371   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a72910ce6e23c9b05b457f5d324141e86">IS_TRANSLATED</a>);
<a name="l01372"></a>01372 }
<a name="l01373"></a>01373 
<a name="l01374"></a><a class="code" href="group__ExprPkg.html#ga8296386eb481a436937b6f0b140f8af0">01374</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga8296386eb481a436937b6f0b140f8af0">Expr::isUserRegisteredAtom</a>()<span class="keyword"> const </span>{
<a name="l01375"></a>01375   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936aa8205caf0608f22ab9f3aab9704f4876">IS_USER_REGISTERED_ATOM</a>);
<a name="l01376"></a>01376 }
<a name="l01377"></a>01377 
<a name="l01378"></a><a class="code" href="group__ExprPkg.html#ga8b55ff94d7f47d1166350cf308f2dd09">01378</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga8b55ff94d7f47d1166350cf308f2dd09">Expr::isRegisteredAtom</a>()<span class="keyword"> const </span>{
<a name="l01379"></a>01379   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a96ef34cf7e9afffe1442ddd8bc3d946f">IS_REGISTERED_ATOM</a>);
<a name="l01380"></a>01380 }
<a name="l01381"></a>01381 
<a name="l01382"></a><a class="code" href="group__ExprPkg.html#ga3292a2d664355dd3246479f21e6f26cb">01382</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga3292a2d664355dd3246479f21e6f26cb">Expr::isSelected</a>()<span class="keyword"> const </span>{
<a name="l01383"></a>01383   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a1b8256ca353bb0d0e7baf1c1442209d6">IS_SELECTED</a>);
<a name="l01384"></a>01384 }
<a name="l01385"></a>01385 
<a name="l01386"></a><a class="code" href="group__ExprPkg.html#ga2dab8e7d46762ef10be1f34bd14e751b">01386</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga2dab8e7d46762ef10be1f34bd14e751b">Expr::isStoredPredicate</a>()<span class="keyword"> const </span>{
<a name="l01387"></a>01387   <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a451b1398639a0b5fc8777ef5fc22ea7e">get</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936ad3d25a426b786f2336d6112309b2b80f">IS_STORED_PREDICATE</a>);
<a name="l01388"></a>01388 }
<a name="l01389"></a>01389 
<a name="l01390"></a><a class="code" href="group__ExprPkg.html#gab9779994b0bb78e555c4f9e2163571ed">01390</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gab9779994b0bb78e555c4f9e2163571ed" title="Check if the generic flag is set.">Expr::getFlag</a>()<span class="keyword"> const </span>{
<a name="l01391"></a>01391   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::getFlag() on Null Expr&quot;</span>);
<a name="l01392"></a>01392   <span class="keywordflow">return</span> (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a138cac22ce17733ee7dad8fa5f65f4ac" title="Which child has the largest height.">d_flag</a> == <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__ExprPkg.html#gab9779994b0bb78e555c4f9e2163571ed" title="Check if the generic flag is set.">getFlag</a>());
<a name="l01393"></a>01393 }
<a name="l01394"></a>01394 
<a name="l01395"></a><a class="code" href="group__ExprPkg.html#ga4695a56a4bdc943174eda1f41cbcead4">01395</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga4695a56a4bdc943174eda1f41cbcead4" title="Set the generic flag.">Expr::setFlag</a>()<span class="keyword"> const </span>{
<a name="l01396"></a>01396   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setFlag() on Null Expr&quot;</span>);
<a name="l01397"></a>01397   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a138cac22ce17733ee7dad8fa5f65f4ac" title="Which child has the largest height.">d_flag</a> = <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#gacaa71017958e2e9d069c055248c8dd78" title="Return the current Expr flag counter.">getFlag</a>();
<a name="l01398"></a>01398 }
<a name="l01399"></a>01399 
<a name="l01400"></a><a class="code" href="group__ExprPkg.html#ga463076527f4fb2b87362ee268abc013f">01400</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga463076527f4fb2b87362ee268abc013f" title="Clear the generic flag in all Exprs.">Expr::clearFlags</a>()<span class="keyword"> const </span>{
<a name="l01401"></a>01401   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::clearFlags() on Null Expr&quot;</span>);
<a name="l01402"></a>01402   <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#gab4b3f2259b5c0af2251741139ea9d952" title="Clears the generic Expr flag in all Exprs.">clearFlags</a>();
<a name="l01403"></a>01403 }
<a name="l01404"></a>01404 
<a name="l01405"></a><a class="code" href="group__ExprPkg.html#ga5318abf2b6333d23b3cfa8877a93151d">01405</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga5318abf2b6333d23b3cfa8877a93151d" title="Set the find attribute to e.">Expr::setFind</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e)<span class="keyword"> const </span>{
<a name="l01406"></a>01406   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setFind() on Null expr&quot;</span>);
<a name="l01407"></a>01407   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(e.<a class="code" href="classCVC3_1_1Theorem.html#a206c04f39fbbcacef2337148675553f4">getLHS</a>() == *<span class="keyword">this</span>, <span class="stringliteral">&quot;bad call to setFind&quot;</span>);
<a name="l01408"></a>01408   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a7c66d985cd073ba81fbd777193ca6144" title="The find attribute (may be NULL)">d_find</a>) <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a7c66d985cd073ba81fbd777193ca6144" title="The find attribute (may be NULL)">d_find</a>-&gt;<a class="code" href="classCVC3_1_1CDO.html#ab4e881820af78a628c72691cb9c2128e">set</a>(e);
<a name="l01409"></a>01409   <span class="keywordflow">else</span> {
<a name="l01410"></a>01410     <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>* tmp = <span class="keyword">new</span>(<span class="keyword">true</span>) <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>(<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#ga5f8daa1f01a0b3f30a3a147243411e5a" title="Get the current context from our ContextManager.">getCurrentContext</a>(), e);
<a name="l01411"></a>01411     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a7c66d985cd073ba81fbd777193ca6144" title="The find attribute (may be NULL)">d_find</a> = tmp;
<a name="l01412"></a>01412     <a class="code" href="debug_8h.html#a600cb2d68efe7cc413cccbb5714c7016">IF_DEBUG</a>(tmp-&gt;setName(<span class="stringliteral">&quot;CDO[Expr.find]&quot;</span>);)
<a name="l01413"></a>01413   }
<a name="l01414"></a>01414 }
<a name="l01415"></a>01415 
<a name="l01416"></a><a class="code" href="group__ExprPkg.html#gae283f0adb5cb21761081fc267ba8eba2">01416</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gae283f0adb5cb21761081fc267ba8eba2" title="Set the eqNext attribute to e.">Expr::setEqNext</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e) <span class="keyword">const</span> {
<a name="l01417"></a>01417   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setEqNext() on Null expr&quot;</span>);
<a name="l01418"></a>01418   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(e.<a class="code" href="classCVC3_1_1Theorem.html#a206c04f39fbbcacef2337148675553f4">getLHS</a>() == *<span class="keyword">this</span>, <span class="stringliteral">&quot;bad call to setEqNext&quot;</span>);
<a name="l01419"></a>01419   <span class="keywordflow">if</span> (<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a3e910d33cc56606779e88be386d3c40a" title="Equality between this term and next term in ring of all terms in the equivalence class.">d_eqNext</a>) <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a3e910d33cc56606779e88be386d3c40a" title="Equality between this term and next term in ring of all terms in the equivalence class.">d_eqNext</a>-&gt;<a class="code" href="classCVC3_1_1CDO.html#ab4e881820af78a628c72691cb9c2128e">set</a>(e);
<a name="l01420"></a>01420   <span class="keywordflow">else</span> {
<a name="l01421"></a>01421     <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>* tmp = <span class="keyword">new</span>(<span class="keyword">true</span>) <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>(<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#ga5f8daa1f01a0b3f30a3a147243411e5a" title="Get the current context from our ContextManager.">getCurrentContext</a>(), e);
<a name="l01422"></a>01422     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a3e910d33cc56606779e88be386d3c40a" title="Equality between this term and next term in ring of all terms in the equivalence class.">d_eqNext</a> = tmp;
<a name="l01423"></a>01423     <a class="code" href="debug_8h.html#a600cb2d68efe7cc413cccbb5714c7016">IF_DEBUG</a>(tmp-&gt;setName(<span class="stringliteral">&quot;CDO[Expr.eqNext]&quot;</span>);)
<a name="l01424"></a>01424   }
<a name="l01425"></a>01425 }
<a name="l01426"></a>01426 
<a name="l01427"></a><a class="code" href="group__ExprPkg.html#ga07d47f902598e00097086deabf04d9c5">01427</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga07d47f902598e00097086deabf04d9c5" title="Set the cached type.">Expr::setType</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="keyword">const</span> {
<a name="l01428"></a>01428   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setType() on Null expr&quot;</span>);
<a name="l01429"></a>01429   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a6c369e54e40d39696ff852e1013b7198" title="The cached type of the expression (may be Null)">d_type</a> = t;
<a name="l01430"></a>01430 }
<a name="l01431"></a>01431 
<a name="l01432"></a><a class="code" href="group__ExprPkg.html#ga933505a9529110425c3e7d3cd2e90c2c">01432</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga933505a9529110425c3e7d3cd2e90c2c">Expr::setSimpCache</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e)<span class="keyword"> const </span>{
<a name="l01433"></a>01433   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setSimpCache() on Null expr&quot;</span>);
<a name="l01434"></a>01434   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a016826b11af2138fb03564e19c36556b" title="For caching calls to Simplify.">d_simpCache</a> = e;
<a name="l01435"></a>01435   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a3a62b089ce7a3573879b933c231eebb5" title="For checking whether simplify cache is valid.">d_simpCacheTag</a> = <a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#gacacaaf5083e198a6014c2407c7f09cc0" title="Get the simplifier&#39;s cache tag.">getSimpCacheTag</a>();
<a name="l01436"></a>01436 }
<a name="l01437"></a>01437 
<a name="l01438"></a><a class="code" href="group__ExprPkg.html#gab854295d8dd4be1c54f62030301e94bd">01438</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gab854295d8dd4be1c54f62030301e94bd">Expr::setValidType</a>()<span class="keyword"> const </span>{
<a name="l01439"></a>01439   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setValidType() on Null expr&quot;</span>);
<a name="l01440"></a>01440   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca064c35d31f9b779c3c327a38c22f7d5a" title="Whether is valid TYPE expr.">VALID_TYPE</a>, 0);
<a name="l01441"></a>01441 }
<a name="l01442"></a>01442 
<a name="l01443"></a><a class="code" href="group__ExprPkg.html#ga5c1a2072d2478708bc788814385e00c4">01443</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga5c1a2072d2478708bc788814385e00c4">Expr::setIsAtomicFlag</a>(<span class="keywordtype">bool</span> value)<span class="keyword"> const </span>{
<a name="l01444"></a>01444   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setIsAtomicFlag() on Null expr&quot;</span>);
<a name="l01445"></a>01445   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca4bc8d45f29e985faa033b685c209c934" title="Whether IS_ATOMIC flag is valid (initialized)">VALID_IS_ATOMIC</a>, 0);
<a name="l01446"></a>01446   <span class="keywordflow">if</span> (value) <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316caf25f8b67eed5f06cdff26bfe7e5f004b" title="Whether the expression is an atomic term or formula.">IS_ATOMIC</a>, 0);
<a name="l01447"></a>01447   <span class="keywordflow">else</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a29c4414998471a86b258c910d6167bcf">clear</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316caf25f8b67eed5f06cdff26bfe7e5f004b" title="Whether the expression is an atomic term or formula.">IS_ATOMIC</a>, 0);
<a name="l01448"></a>01448 }
<a name="l01449"></a>01449 
<a name="l01450"></a><a class="code" href="group__ExprPkg.html#ga4158db17700c28f6fbd6be955c4ad075">01450</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga4158db17700c28f6fbd6be955c4ad075">Expr::setTerminalsConstFlag</a>(<span class="keywordtype">bool</span> value)<span class="keyword"> const </span>{
<a name="l01451"></a>01451   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setTerminalsConstFlag() on Null expr&quot;</span>);
<a name="l01452"></a>01452   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca501e68dd8eb63c2ed0d6f52f1eb844f8" title="Whether TERMINALS_CONST flag is valid (initialized)">VALID_TERMINALS_CONST</a>, 0);
<a name="l01453"></a>01453   <span class="keywordflow">if</span> (value) <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca8f04196095a0b34d324a5c004d08317d" title="Whether expr contains only numerical constants at all possible ite terminals.">TERMINALS_CONST</a>, 0);
<a name="l01454"></a>01454   <span class="keywordflow">else</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a29c4414998471a86b258c910d6167bcf">clear</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca8f04196095a0b34d324a5c004d08317d" title="Whether expr contains only numerical constants at all possible ite terminals.">TERMINALS_CONST</a>, 0);
<a name="l01455"></a>01455 }
<a name="l01456"></a>01456 
<a name="l01457"></a><a class="code" href="group__ExprPkg.html#ga06284723527dbaa4784949f63f586877">01457</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga06284723527dbaa4784949f63f586877">Expr::setRewriteNormal</a>()<span class="keyword"> const </span>{
<a name="l01458"></a>01458   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setRewriteNormal() on Null expr&quot;</span>);
<a name="l01459"></a>01459   <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba7fa27e82c6c4f69434225ed81e5d151e">TRACE</a>(<span class="stringliteral">&quot;setRewriteNormal&quot;</span>, <span class="stringliteral">&quot;setRewriteNormal(&quot;</span>, *<span class="keyword">this</span>, <span class="stringliteral">&quot;)&quot;</span>);
<a name="l01460"></a>01460   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca6279757281c85b060623657eae639d11" title="Expression is the result of a &quot;normal&quot; (idempotent) rewrite.">REWRITE_NORMAL</a>, 0);
<a name="l01461"></a>01461 }
<a name="l01462"></a>01462 
<a name="l01463"></a><a class="code" href="group__ExprPkg.html#gaecb0afa375de675309b6d1ec72a5c648">01463</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gaecb0afa375de675309b6d1ec72a5c648">Expr::setFinite</a>()<span class="keyword"> const </span>{
<a name="l01464"></a>01464   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setFinite() on Null expr&quot;</span>);
<a name="l01465"></a>01465   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca8282a0d9539e4019a384810c6ddf80ff" title="Finite type.">IS_FINITE</a>, 0);
<a name="l01466"></a>01466 }
<a name="l01467"></a>01467 
<a name="l01468"></a><a class="code" href="group__ExprPkg.html#ga3e4a13d6c9c5d1c14d44ca530ca8187d">01468</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga3e4a13d6c9c5d1c14d44ca530ca8187d">Expr::setWellFounded</a>()<span class="keyword"> const </span>{
<a name="l01469"></a>01469   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setWellFounded() on Null expr&quot;</span>);
<a name="l01470"></a>01470   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca9f0f9b43c297449dc513bba12a343c0d" title="Well-founded (used in datatypes)">WELL_FOUNDED</a>, 0);
<a name="l01471"></a>01471 }
<a name="l01472"></a>01472 
<a name="l01473"></a><a class="code" href="group__ExprPkg.html#ga5513f05f1d104aa5dc4fd8724b46e221">01473</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga5513f05f1d104aa5dc4fd8724b46e221">Expr::setComputeTransClosure</a>()<span class="keyword"> const </span>{
<a name="l01474"></a>01474   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setComputeTransClosure() on Null expr&quot;</span>);
<a name="l01475"></a>01475   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316caabe5302ce9b2cf701cb301b81e28315d" title="Compute transitive closure (for binary uninterpreted predicates)">COMPUTE_TRANS_CLOSURE</a>, 0);
<a name="l01476"></a>01476 }
<a name="l01477"></a>01477 
<a name="l01478"></a><a class="code" href="group__ExprPkg.html#ga46031ec4323f6c373c7ffb59b4db30e9">01478</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga46031ec4323f6c373c7ffb59b4db30e9">Expr::setContainsBoundVar</a>()<span class="keyword"> const </span>{
<a name="l01479"></a>01479   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setContainsBoundVar() on Null expr&quot;</span>);
<a name="l01480"></a>01480   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca37150acb5faf924bcfdffd46fb91fb3f" title="Whether expr contains a bounded variable (for quantifier instantiation)">CONTAINS_BOUND_VAR</a>, 0);
<a name="l01481"></a>01481 }
<a name="l01482"></a>01482 
<a name="l01483"></a><a class="code" href="group__ExprPkg.html#ga243c5d26015ee1fd946f8ccce5f83568">01483</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga243c5d26015ee1fd946f8ccce5f83568">Expr::setUsesCC</a>()<span class="keyword"> const </span>{
<a name="l01484"></a>01484   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setUsesCC() on Null expr&quot;</span>);
<a name="l01485"></a>01485   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316cad414c75c14f9cc186e6e7df225396627" title="Whether expr uses CC algorithm that relies on not simplifying an expr that has a find.">USES_CC</a>, 0);
<a name="l01486"></a>01486 }
<a name="l01487"></a>01487 
<a name="l01488"></a><a class="code" href="group__ExprPkg.html#gaa09f6f3f2938359d472a0c099ff0c634">01488</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gaa09f6f3f2938359d472a0c099ff0c634">Expr::setNotArrayNormalized</a>()<span class="keyword"> const </span>{
<a name="l01489"></a>01489   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setContainsBoundVar() on Null expr&quot;</span>);
<a name="l01490"></a>01490   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a0328c59b775199c11653b376c0f3c8cb" title="Whether expr is normalized (in array theory)">NOT_ARRAY_NORMALIZED</a>);
<a name="l01491"></a>01491 }
<a name="l01492"></a>01492 
<a name="l01493"></a><a class="code" href="group__ExprPkg.html#gaece7bfa79c995a45964a7dc5f2408e55">01493</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gaece7bfa79c995a45964a7dc5f2408e55">Expr::setImpliedLiteral</a>()<span class="keyword"> const </span>{
<a name="l01494"></a>01494   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setImpliedLiteral() on Null expr&quot;</span>);
<a name="l01495"></a>01495   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a34b44b8fd97e8950a24f9d1d939fd3ac" title="Whether expr has been added as an implied literal.">IMPLIED_LITERAL</a>);
<a name="l01496"></a>01496 }
<a name="l01497"></a>01497 
<a name="l01498"></a><a class="code" href="group__ExprPkg.html#ga63eb3b8c124654cf056b2814794c4236">01498</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga63eb3b8c124654cf056b2814794c4236">Expr::setUserAssumption</a>(<span class="keywordtype">int</span> scope)<span class="keyword"> const </span>{
<a name="l01499"></a>01499   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setUserAssumption() on Null expr&quot;</span>);
<a name="l01500"></a>01500   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936ae7079560c1a0d6742b7dd084401327ac">IS_USER_ASSUMPTION</a>, scope);
<a name="l01501"></a>01501 }
<a name="l01502"></a>01502 
<a name="l01503"></a><a class="code" href="group__ExprPkg.html#gacfaaa30a1743a0955e0568b3bcd7cc08">01503</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gacfaaa30a1743a0955e0568b3bcd7cc08">Expr::setInUserAssumption</a>(<span class="keywordtype">int</span> scope)<span class="keyword"> const </span>{
<a name="l01504"></a>01504   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setInUserAssumption() on Null expr&quot;</span>);
<a name="l01505"></a>01505   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936aec9453c0bef6971761ee89e60baa4a80">IN_USER_ASSUMPTION</a>, scope);
<a name="l01506"></a>01506 }
<a name="l01507"></a>01507 
<a name="l01508"></a><a class="code" href="group__ExprPkg.html#ga8b1ac81529d2ebee895a385a35460d39">01508</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga8b1ac81529d2ebee895a385a35460d39">Expr::setIntAssumption</a>()<span class="keyword"> const </span>{
<a name="l01509"></a>01509   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setIntAssumption() on Null expr&quot;</span>);
<a name="l01510"></a>01510   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a4e904444fd219938f8743b8e951eba6d">IS_INT_ASSUMPTION</a>);
<a name="l01511"></a>01511 }
<a name="l01512"></a>01512 
<a name="l01513"></a><a class="code" href="group__ExprPkg.html#ga98a725d64a530023a36be8045d87863a">01513</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga98a725d64a530023a36be8045d87863a">Expr::setJustified</a>()<span class="keyword"> const </span>{
<a name="l01514"></a>01514   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setJustified() on Null expr&quot;</span>);
<a name="l01515"></a>01515   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a5fdae20b9b42f2eae992d1fe377c32b8">IS_JUSTIFIED</a>);
<a name="l01516"></a>01516 }
<a name="l01517"></a>01517 
<a name="l01518"></a><a class="code" href="group__ExprPkg.html#gaf941ebb5b9a8e6ee0ca004d59425fb42">01518</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gaf941ebb5b9a8e6ee0ca004d59425fb42" title="Set the translated flag for this Expr.">Expr::setTranslated</a>(<span class="keywordtype">int</span> scope)<span class="keyword"> const </span>{
<a name="l01519"></a>01519   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setTranslated() on Null expr&quot;</span>);
<a name="l01520"></a>01520   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a72910ce6e23c9b05b457f5d324141e86">IS_TRANSLATED</a>, scope);
<a name="l01521"></a>01521 }
<a name="l01522"></a>01522 
<a name="l01523"></a><a class="code" href="group__ExprPkg.html#ga6f8db899f4680e53c4cf11c20dc10735">01523</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga6f8db899f4680e53c4cf11c20dc10735" title="Set the UserRegisteredAtom flag for this Expr.">Expr::setUserRegisteredAtom</a>()<span class="keyword"> const </span>{
<a name="l01524"></a>01524   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setUserRegisteredAtom() on Null expr&quot;</span>);
<a name="l01525"></a>01525   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936aa8205caf0608f22ab9f3aab9704f4876">IS_USER_REGISTERED_ATOM</a>);
<a name="l01526"></a>01526 }
<a name="l01527"></a>01527 
<a name="l01528"></a><a class="code" href="group__ExprPkg.html#ga6adb700b834218ed8aaf4296458d9bf9">01528</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga6adb700b834218ed8aaf4296458d9bf9" title="Set the RegisteredAtom flag for this Expr.">Expr::setRegisteredAtom</a>()<span class="keyword"> const </span>{
<a name="l01529"></a>01529   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setUserRegisteredAtom() on Null expr&quot;</span>);
<a name="l01530"></a>01530   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a96ef34cf7e9afffe1442ddd8bc3d946f">IS_REGISTERED_ATOM</a>);
<a name="l01531"></a>01531 }
<a name="l01532"></a>01532 
<a name="l01533"></a><a class="code" href="group__ExprPkg.html#ga50ebe7a6fa50064b2d01e0eaa25f931a">01533</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga50ebe7a6fa50064b2d01e0eaa25f931a" title="Set the Selected flag for this Expr.">Expr::setSelected</a>()<span class="keyword"> const </span>{
<a name="l01534"></a>01534   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setSelected() on Null expr&quot;</span>);
<a name="l01535"></a>01535   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936a1b8256ca353bb0d0e7baf1c1442209d6">IS_SELECTED</a>);
<a name="l01536"></a>01536 }
<a name="l01537"></a>01537 
<a name="l01538"></a><a class="code" href="group__ExprPkg.html#ga911ab512eb2b3d2f8e59280261b847d6">01538</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga911ab512eb2b3d2f8e59280261b847d6" title="Set the Stored Predicate flag for this Expr.">Expr::setStoredPredicate</a>()<span class="keyword"> const </span>{
<a name="l01539"></a>01539   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setStoredPredicate() on Null expr&quot;</span>);
<a name="l01540"></a>01540   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a4350e93b26673df04aadbf83d2c9b809">set</a>(<a class="code" href="group__ExprPkg.html#gga74e5360ad3392aa4779d981670887936ad3d25a426b786f2336d6112309b2b80f">IS_STORED_PREDICATE</a>);
<a name="l01541"></a>01541 }
<a name="l01542"></a>01542 
<a name="l01543"></a><a class="code" href="group__ExprPkg.html#ga643f89574537ab6acf9bb1bc2f703c77">01543</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga643f89574537ab6acf9bb1bc2f703c77">Expr::clearRewriteNormal</a>()<span class="keyword"> const </span>{
<a name="l01544"></a>01544   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::clearRewriteNormal() on Null expr&quot;</span>);
<a name="l01545"></a>01545   <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a9a15db9962002e088cbfbaa7f3142825" title="context-dependent bit-vector for flags that are context-dependent">d_dynamicFlags</a>.<a class="code" href="classCVC3_1_1CDFlags.html#a29c4414998471a86b258c910d6167bcf">clear</a>(<a class="code" href="group__ExprPkg.html#gga5285f004f382cfb7a002f8dea3b3316ca6279757281c85b060623657eae639d11" title="Expression is the result of a &quot;normal&quot; (idempotent) rewrite.">REWRITE_NORMAL</a>, 0);
<a name="l01546"></a>01546 }
<a name="l01547"></a>01547 
<a name="l01548"></a><a class="code" href="group__ExprPkg.html#ga3cc4e5ec0d7310f1bce3630455147bb3">01548</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga3cc4e5ec0d7310f1bce3630455147bb3">Expr::hasSig</a>()<span class="keyword"> const </span>{
<a name="l01549"></a>01549   <span class="keywordflow">return</span> (!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>()
<a name="l01550"></a>01550           &amp;&amp; <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a849c62f9a8c01cb632f594ddd46dc116" title="Special attributes for uninterpreted functions.">getSig</a>() != NULL
<a name="l01551"></a>01551           &amp;&amp; !(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a849c62f9a8c01cb632f594ddd46dc116" title="Special attributes for uninterpreted functions.">getSig</a>()-&gt;<a class="code" href="classCVC3_1_1CDO.html#a818fcacc7b30b0f05347335ab125626c">get</a>().<a class="code" href="classCVC3_1_1Theorem.html#afc6fdb0507eb3669e28d9be5ed0bd333">isNull</a>()));
<a name="l01552"></a>01552 }
<a name="l01553"></a>01553 
<a name="l01554"></a><a class="code" href="group__ExprPkg.html#gae71c95cf1ca998d57b02a136b379172b">01554</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#gae71c95cf1ca998d57b02a136b379172b">Expr::hasRep</a>()<span class="keyword"> const </span>{
<a name="l01555"></a>01555   <span class="keywordflow">return</span> (!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>()
<a name="l01556"></a>01556           &amp;&amp; <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aafdc2a2814ab3f015c5b115901ee845e">getRep</a>() != NULL
<a name="l01557"></a>01557           &amp;&amp; !(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aafdc2a2814ab3f015c5b115901ee845e">getRep</a>()-&gt;<a class="code" href="classCVC3_1_1CDO.html#a818fcacc7b30b0f05347335ab125626c">get</a>().<a class="code" href="classCVC3_1_1Theorem.html#afc6fdb0507eb3669e28d9be5ed0bd333">isNull</a>()));
<a name="l01558"></a>01558 }
<a name="l01559"></a>01559 
<a name="l01560"></a><a class="code" href="group__ExprPkg.html#gae281b04465cc1bf24b5797c8b5e9cbb4">01560</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="group__ExprPkg.html#gae281b04465cc1bf24b5797c8b5e9cbb4">Expr::getSig</a>()<span class="keyword"> const </span>{
<a name="l01561"></a>01561   <span class="keyword">static</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> nullThm;
<a name="l01562"></a>01562   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::getSig() on Null expr&quot;</span>);
<a name="l01563"></a>01563   <span class="keywordflow">if</span>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a849c62f9a8c01cb632f594ddd46dc116" title="Special attributes for uninterpreted functions.">getSig</a>() != NULL)
<a name="l01564"></a>01564     <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a849c62f9a8c01cb632f594ddd46dc116" title="Special attributes for uninterpreted functions.">getSig</a>()-&gt;<a class="code" href="classCVC3_1_1CDO.html#a818fcacc7b30b0f05347335ab125626c">get</a>();
<a name="l01565"></a>01565   <span class="keywordflow">else</span>
<a name="l01566"></a>01566     <span class="keywordflow">return</span> nullThm;
<a name="l01567"></a>01567 }
<a name="l01568"></a>01568 
<a name="l01569"></a><a class="code" href="group__ExprPkg.html#gaa4b5652980861e593ab8a741b5521779">01569</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="group__ExprPkg.html#gaa4b5652980861e593ab8a741b5521779">Expr::getRep</a>()<span class="keyword"> const </span>{
<a name="l01570"></a>01570   <span class="keyword">static</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> nullThm;
<a name="l01571"></a>01571   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::getRep() on Null expr&quot;</span>);
<a name="l01572"></a>01572   <span class="keywordflow">if</span>(<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aafdc2a2814ab3f015c5b115901ee845e">getRep</a>() != NULL)
<a name="l01573"></a>01573     <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aafdc2a2814ab3f015c5b115901ee845e">getRep</a>()-&gt;<a class="code" href="classCVC3_1_1CDO.html#a818fcacc7b30b0f05347335ab125626c">get</a>();
<a name="l01574"></a>01574   <span class="keywordflow">else</span>
<a name="l01575"></a>01575     <span class="keywordflow">return</span> nullThm;
<a name="l01576"></a>01576 }
<a name="l01577"></a>01577 
<a name="l01578"></a><a class="code" href="group__ExprPkg.html#gaaaba7ddaccd58bd37e3259fe9b949645">01578</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#gaaaba7ddaccd58bd37e3259fe9b949645">Expr::setSig</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e)<span class="keyword"> const </span>{
<a name="l01579"></a>01579   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setSig() on Null expr&quot;</span>);
<a name="l01580"></a>01580   <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>* sig = <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#a849c62f9a8c01cb632f594ddd46dc116" title="Special attributes for uninterpreted functions.">getSig</a>();
<a name="l01581"></a>01581   <span class="keywordflow">if</span>(sig != NULL) sig-&gt;<a class="code" href="classCVC3_1_1CDO.html#ab4e881820af78a628c72691cb9c2128e">set</a>(e);
<a name="l01582"></a>01582   <span class="keywordflow">else</span> {
<a name="l01583"></a>01583     <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>* tmp = <span class="keyword">new</span>(<span class="keyword">true</span>) <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>(<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#ga5f8daa1f01a0b3f30a3a147243411e5a" title="Get the current context from our ContextManager.">getCurrentContext</a>(), e);
<a name="l01584"></a>01584     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#ab49eb5cd6b429eec7676608222044b7d">setSig</a>(tmp);
<a name="l01585"></a>01585     <a class="code" href="debug_8h.html#a600cb2d68efe7cc413cccbb5714c7016">IF_DEBUG</a>(tmp-&gt;setName(<span class="stringliteral">&quot;CDO[Expr.sig] in &quot;</span>+<a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>());)
<a name="l01586"></a>01586   }
<a name="l01587"></a>01587 }
<a name="l01588"></a>01588 
<a name="l01589"></a><a class="code" href="group__ExprPkg.html#ga7b85677789c5a03e1a5dc2c93f0b6288">01589</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group__ExprPkg.html#ga7b85677789c5a03e1a5dc2c93f0b6288">Expr::setRep</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; e) <span class="keyword">const</span> {
<a name="l01590"></a>01590   <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(!<a class="code" href="group__ExprPkg.html#ga0265d1ca42fa59c95aaff3ca675b6504">isNull</a>(), <span class="stringliteral">&quot;Expr::setRep() on Null expr&quot;</span>);
<a name="l01591"></a>01591   <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>* rep = <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#aafdc2a2814ab3f015c5b115901ee845e">getRep</a>();
<a name="l01592"></a>01592   <span class="keywordflow">if</span>(rep != NULL) rep-&gt;<a class="code" href="classCVC3_1_1CDO.html#ab4e881820af78a628c72691cb9c2128e">set</a>(e);
<a name="l01593"></a>01593   <span class="keywordflow">else</span> {
<a name="l01594"></a>01594     <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>* tmp = <span class="keyword">new</span>(<span class="keyword">true</span>) <a class="code" href="classCVC3_1_1CDO.html">CDO&lt;Theorem&gt;</a>(<a class="code" href="group__ExprPkg.html#gab57ce3dfa78947a906241d090c7cf34d">getEM</a>()-&gt;<a class="code" href="group__EM__Priv.html#ga5f8daa1f01a0b3f30a3a147243411e5a" title="Get the current context from our ContextManager.">getCurrentContext</a>(), e);
<a name="l01595"></a>01595     <a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>-&gt;<a class="code" href="classCVC3_1_1ExprValue.html#ab82f024ea7092c84889410d385cc896f">setRep</a>(tmp);
<a name="l01596"></a>01596     <a class="code" href="debug_8h.html#a600cb2d68efe7cc413cccbb5714c7016">IF_DEBUG</a>(tmp-&gt;setName(<span class="stringliteral">&quot;CDO[Expr.rep] in &quot;</span>+<a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>());)
<a name="l01597"></a>01597   }
<a name="l01598"></a>01598 }
<a name="l01599"></a>01599 
<a name="l01600"></a><a class="code" href="namespaceCVC3.html#a8e164436388f2d87c971d9bbde973c58">01600</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <span class="keyword">operator</span>==(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2) {
<a name="l01601"></a>01601   <span class="comment">// Comparing pointers (equal expressions are always shared)</span>
<a name="l01602"></a>01602   <span class="keywordflow">return</span> e1.<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a> == e2.<a class="code" href="group__ExprPkg.html#ga3a08bea4e8715a268083e1671e340a2e">d_expr</a>;
<a name="l01603"></a>01603 }
<a name="l01604"></a>01604 
<a name="l01605"></a><a class="code" href="namespaceCVC3.html#a5aa953c549c2e103f3834c48bf6cb9a1">01605</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga7da18dfc7cf83f48c3b68eaf7bdaeca0">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2)
<a name="l01606"></a>01606   { <span class="keywordflow">return</span> !(e1 == e2); }
<a name="l01607"></a>01607 
<a name="l01608"></a>01608 <span class="comment">// compare() is defined in expr.cpp</span>
<a name="l01609"></a>01609 
<a name="l01610"></a><a class="code" href="namespaceCVC3.html#ad3e3964a0b8cd9e2749de47b053b9d97">01610</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga1d72417bdb285b126416d7d169e463dd">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2)
<a name="l01611"></a>01611   { <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gadeeaa34664eae73d96a147b6fad0c0e1">compare</a>(e1,e2) &lt; 0; }
<a name="l01612"></a><a class="code" href="namespaceCVC3.html#abccc88aac4f7652def737f1081dc7a89">01612</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga205ae18c57fd12d497996c7edad4c073">operator&lt;=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2)
<a name="l01613"></a>01613   { <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gadeeaa34664eae73d96a147b6fad0c0e1">compare</a>(e1,e2) &lt;= 0; }
<a name="l01614"></a><a class="code" href="namespaceCVC3.html#a0d82fd3eb68860cbd01ae86b2b9e3c66">01614</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga38fa42aec5b81d57acd5a605c73ead83">operator&gt;</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2)
<a name="l01615"></a>01615   { <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gadeeaa34664eae73d96a147b6fad0c0e1">compare</a>(e1,e2) &gt; 0; }
<a name="l01616"></a><a class="code" href="namespaceCVC3.html#af997ba8407b661bf2ffe2cb6f52c3e3b">01616</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="group__ExprPkg.html#ga5a1d868d3eb493b773101b5601984156">operator&gt;=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2)
<a name="l01617"></a>01617   { <span class="keywordflow">return</span> <a class="code" href="group__ExprPkg.html#gadeeaa34664eae73d96a147b6fad0c0e1">compare</a>(e1,e2) &gt;= 0; }
<a name="l01618"></a>01618 
<a name="l01619"></a>01619 } <span class="comment">// end of namespace CVC3</span>
<a name="l01620"></a>01620 
<a name="l01621"></a>01621 <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>