Sophie

Sophie

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

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: assumptions.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">assumptions.h</div>  </div>
</div>
<div class="contents">
<a href="assumptions_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 assumptions.h</span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * Author: Sergey Berezin</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Created: Dec 10 00:37:49 GMT 2002</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * License to use, copy, modify, sell and/or distribute this software</span>
<a name="l00012"></a>00012 <span class="comment"> * and its documentation for any purpose is hereby granted without</span>
<a name="l00013"></a>00013 <span class="comment"> * royalty, subject to the terms and conditions defined in the \ref</span>
<a name="l00014"></a>00014 <span class="comment"> * LICENSE file provided with this distribution.</span>
<a name="l00015"></a>00015 <span class="comment"> * </span>
<a name="l00016"></a>00016 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00017"></a>00017 <span class="comment"> * </span>
<a name="l00018"></a>00018 <span class="comment"> */</span>
<a name="l00019"></a>00019 <span class="comment">/*****************************************************************************/</span>
<a name="l00020"></a>00020 <span class="comment">// CLASS: Assumptions</span>
<a name="l00021"></a>00021 <span class="comment">//</span>
<a name="l00022"></a>00022 <span class="comment">// AUTHOR: Sergey Berezin, 12/03/2002</span>
<a name="l00023"></a>00023 <span class="comment">//</span>
<a name="l00024"></a>00024 <span class="comment">// Abstract:</span>
<a name="l00025"></a>00025 <span class="comment">//</span>
<a name="l00026"></a>00026 <span class="comment">// Mathematically, the value of class Assumptions is a set of pairs</span>
<a name="l00027"></a>00027 <span class="comment">// &#39;u:A&#39; on the LHS of the Theorem&#39;s sequent.  Both u and A are Expr.</span>
<a name="l00028"></a>00028 <span class="comment">//</span>
<a name="l00029"></a>00029 <span class="comment">// Null assumptions is almost always treated as the empty set.  The</span>
<a name="l00030"></a>00030 <span class="comment">// only exception: iterators cannot be constructed for Null.</span>
<a name="l00031"></a>00031 <span class="comment">//</span>
<a name="l00032"></a>00032 <span class="comment">// This interface should be used as little as possible by the users of</span>
<a name="l00033"></a>00033 <span class="comment">// Theorem class.</span><span class="comment"></span>
<a name="l00034"></a>00034 <span class="comment">///////////////////////////////////////////////////////////////////////////////</span>
<a name="l00035"></a>00035 <span class="comment"></span><span class="preprocessor">#ifndef _cvc3__expr_h_</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="expr_8h.html" title="Definition of the API to expression package. See class Expr for details.">expr.h</a>&quot;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="preprocessor">#ifndef _cvc3__assumptions_h_</span>
<a name="l00040"></a><a class="code" href="assumptions_8h.html#a2e083a3bb2d9c30f646fc2e59f46c97f">00040</a> <span class="preprocessor"></span><span class="preprocessor">#define _cvc3__assumptions_h_</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &quot;<a class="code" href="theorem_8h.html">theorem.h</a>&quot;</span>
<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><a class="code" href="classCVC3_1_1Assumptions.html">00046</a>   <span class="keyword">class </span><a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a> {
<a name="l00047"></a>00047   <span class="keyword">private</span>:
<a name="l00048"></a><a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">00048</a>     std::vector&lt;Theorem&gt; <a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>;
<a name="l00049"></a><a class="code" href="classCVC3_1_1Assumptions.html#a660c863825a5efd492db1b93769efbfe">00049</a>     <span class="keyword">static</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a> <a class="code" href="classCVC3_1_1Assumptions.html#a660c863825a5efd492db1b93769efbfe">s_empty</a>;
<a name="l00050"></a>00050 
<a name="l00051"></a>00051   <span class="keyword">private</span>:
<a name="l00052"></a>00052     <span class="comment">// Private constructor for internal use.  Assumes v != NULL.</span>
<a name="l00053"></a>00053     <span class="comment">//    Assumptions(AssumptionsValue *v);</span>
<a name="l00054"></a>00054 
<a name="l00055"></a>00055     <span class="comment">// helper function for []</span>
<a name="l00056"></a>00056     <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="classCVC3_1_1Assumptions.html#a9d4f8e2ab0bee667188a42f1e0ab1a98">findTheorem</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) <span class="keyword">const</span>;
<a name="l00057"></a>00057 
<a name="l00058"></a>00058     <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1Assumptions.html#a2fd592d43e21629722887fe7b812b8b6">findExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&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; e, 
<a name="l00059"></a>00059        std::vector&lt;Theorem&gt;&amp; gamma);
<a name="l00060"></a>00060     <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1Assumptions.html#a2aee19965a0ec1adcd927f7c40b7064f">findExprs</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&amp; a, <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; es, 
<a name="l00061"></a>00061         std::vector&lt;Theorem&gt;&amp; gamma);
<a name="l00062"></a>00062 
<a name="l00063"></a>00063     <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1Assumptions.html#a72ece655220d8976c4090006eb7b0b40">add</a>(<span class="keyword">const</span> std::vector&lt;Theorem&gt;&amp; thms);
<a name="l00064"></a>00064 
<a name="l00065"></a>00065   <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00066"></a>00066 <span class="comment">    //! Default constructor: no value is created</span>
<a name="l00067"></a><a class="code" href="classCVC3_1_1Assumptions.html#a48495ccaf5ba3bd448712573b1cd2d51">00067</a> <span class="comment"></span>    <a class="code" href="classCVC3_1_1Assumptions.html#a48495ccaf5ba3bd448712573b1cd2d51" title="Default constructor: no value is created.">Assumptions</a>() { }<span class="comment"></span>
<a name="l00068"></a>00068 <span class="comment">    //! Constructor from a vector of theorems</span>
<a name="l00069"></a>00069 <span class="comment"></span>    <a class="code" href="classCVC3_1_1Assumptions.html#a48495ccaf5ba3bd448712573b1cd2d51" title="Default constructor: no value is created.">Assumptions</a>(<span class="keyword">const</span> std::vector&lt;Theorem&gt;&amp; v);<span class="comment"></span>
<a name="l00070"></a>00070 <span class="comment">    //! Constructor for one theorem (common case)</span>
<a name="l00071"></a><a class="code" href="classCVC3_1_1Assumptions.html#a057ea30fb46ac9c437fa78fc533c08d1">00071</a> <span class="comment"></span>    <a class="code" href="classCVC3_1_1Assumptions.html#a057ea30fb46ac9c437fa78fc533c08d1" title="Constructor for one theorem (common case)">Assumptions</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; t) { <a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>.push_back(t); }<span class="comment"></span>
<a name="l00072"></a>00072 <span class="comment">    //! Constructor for two theorems (common case)</span>
<a name="l00073"></a>00073 <span class="comment"></span>    <a class="code" href="classCVC3_1_1Assumptions.html#a48495ccaf5ba3bd448712573b1cd2d51" title="Default constructor: no value is created.">Assumptions</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; t1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; t2);
<a name="l00074"></a>00074 
<a name="l00075"></a>00075     <span class="comment">// Destructor</span>
<a name="l00076"></a><a class="code" href="classCVC3_1_1Assumptions.html#ae2a8910654b704d67450b80ca5caf538">00076</a>     <a class="code" href="classCVC3_1_1Assumptions.html#ae2a8910654b704d67450b80ca5caf538">~Assumptions</a>() {}
<a name="l00077"></a>00077     <span class="comment">// Copy constructor.</span>
<a name="l00078"></a><a class="code" href="classCVC3_1_1Assumptions.html#aaf50a6162028fb8210e5ee992712769f">00078</a>     <a class="code" href="classCVC3_1_1Assumptions.html#aaf50a6162028fb8210e5ee992712769f">Assumptions</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a> &amp;assump) : <a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>(assump.<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>) {}
<a name="l00079"></a>00079     <span class="comment">// Assignment.</span>
<a name="l00080"></a><a class="code" href="classCVC3_1_1Assumptions.html#a9813efe16db162994c6b2aece8d950fb">00080</a>     <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a> &amp;<a class="code" href="classCVC3_1_1Assumptions.html#a9813efe16db162994c6b2aece8d950fb">operator=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a> &amp;assump)
<a name="l00081"></a>00081     { <a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a> = assump.<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="classCVC3_1_1Assumptions.html#af309a39e2e013cc62b6d94c5812ad86b">00083</a>     <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&amp; <a class="code" href="classCVC3_1_1Assumptions.html#af309a39e2e013cc62b6d94c5812ad86b">emptyAssump</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Assumptions.html#a660c863825a5efd492db1b93769efbfe">s_empty</a>; }
<a name="l00084"></a>00084 
<a name="l00085"></a><a class="code" href="classCVC3_1_1Assumptions.html#a519110edce1cffe144c636e404a29ff4">00085</a>     <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1Assumptions.html#a519110edce1cffe144c636e404a29ff4">add1</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; t) {
<a name="l00086"></a>00086       <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>.empty(), <span class="stringliteral">&quot;expected empty vector&quot;</span>);
<a name="l00087"></a>00087       <a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>.push_back(t);
<a name="l00088"></a>00088     }
<a name="l00089"></a>00089     <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1Assumptions.html#a72ece655220d8976c4090006eb7b0b40">add</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; t);
<a name="l00090"></a><a class="code" href="classCVC3_1_1Assumptions.html#ab9cabf6c8400905fa896e73e2dc60010">00090</a>     <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1Assumptions.html#ab9cabf6c8400905fa896e73e2dc60010">add</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&amp; a) { <a class="code" href="classCVC3_1_1Assumptions.html#ab9cabf6c8400905fa896e73e2dc60010">add</a>(a.<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>); }
<a name="l00091"></a>00091     <span class="comment">// clear the set of assumptions</span>
<a name="l00092"></a><a class="code" href="classCVC3_1_1Assumptions.html#ab34a834ee653d1b34f042a6202c05b13">00092</a>     <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1Assumptions.html#ab34a834ee653d1b34f042a6202c05b13">clear</a>() { <a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>.clear(); }
<a name="l00093"></a>00093     <span class="comment">// get the size</span>
<a name="l00094"></a><a class="code" href="classCVC3_1_1Assumptions.html#ad6687116416453b9120a6e97141b631d">00094</a>     <span class="keywordtype">unsigned</span> <a class="code" href="classCVC3_1_1Assumptions.html#ad6687116416453b9120a6e97141b631d">size</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>.size(); }
<a name="l00095"></a><a class="code" href="classCVC3_1_1Assumptions.html#a37da34b71944a11667d6af0fbd45651b">00095</a>     <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1Assumptions.html#a37da34b71944a11667d6af0fbd45651b">empty</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>.empty(); }
<a name="l00096"></a>00096 
<a name="l00097"></a>00097     <span class="comment">// needed by TheoremValue</span>
<a name="l00098"></a><a class="code" href="classCVC3_1_1Assumptions.html#a247df9fd4650ca8c58b3524bb6d393f4">00098</a>     <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="classCVC3_1_1Assumptions.html#a247df9fd4650ca8c58b3524bb6d393f4">getFirst</a>() {
<a name="l00099"></a>00099       <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1Assumptions.html#ad6687116416453b9120a6e97141b631d">size</a>() &gt; 0, <span class="stringliteral">&quot;Expected size &gt; 0&quot;</span>);
<a name="l00100"></a>00100       <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>[0];
<a name="l00101"></a>00101     }
<a name="l00102"></a>00102     
<a name="l00103"></a>00103     <span class="comment">// Print functions</span>
<a name="l00104"></a>00104     std::string <a class="code" href="classCVC3_1_1Assumptions.html#ab1e6eca463ad7b98c0c2d2d31bb5d1dd">toString</a>() <span class="keyword">const</span>;
<a name="l00105"></a>00105     <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1Assumptions.html#afefe1857c30806381eb0f8f7fa3d88c4">print</a>() <span class="keyword">const</span>;
<a name="l00106"></a>00106 
<a name="l00107"></a>00107     <span class="comment">// Return Assumption associated with the expression.  The</span>
<a name="l00108"></a>00108     <span class="comment">// value will be Null if the assumption is not in the set.</span>
<a name="l00109"></a>00109     <span class="comment">//</span>
<a name="l00110"></a>00110     <span class="comment">// NOTE: do not try to assign anything to the result, it won&#39;t work.</span>
<a name="l00111"></a>00111     <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="classCVC3_1_1Assumptions.html#a6acec430850e6bcc418d2c65e164a520">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) <span class="keyword">const</span>;
<a name="l00112"></a>00112 
<a name="l00113"></a>00113     <span class="comment">// find only searches through current set of assumptions, will not recurse</span>
<a name="l00114"></a>00114     <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="classCVC3_1_1Assumptions.html#acafacf59eb34d2e188931a016a87c61b">find</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) <span class="keyword">const</span>;
<a name="l00115"></a>00115 <span class="comment"></span>
<a name="l00116"></a>00116 <span class="comment">    //! Iterator for the Assumptions: points to class Theorem.</span>
<a name="l00117"></a>00117 <span class="comment"></span><span class="comment">    /*! Cannot inherit from vector&lt;Theorem&gt;::const_iterator in gcc 2.96 */</span>
<a name="l00118"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html">00118</a>     <span class="keyword">class </span><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html" title="Iterator for the Assumptions: points to class Theorem.">iterator</a> : <span class="keyword">public</span> std::<a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html" title="Iterator for the Assumptions: points to class Theorem.">iterator</a>&lt;std::input_iterator_tag,Theorem,ptrdiff_t&gt; {
<a name="l00119"></a>00119       <span class="comment">// Let&#39;s be friends</span>
<a name="l00120"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#af2f6075245839ecb6e143bfd29ff8da8">00120</a>       <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>;
<a name="l00121"></a>00121     <span class="keyword">private</span>:
<a name="l00122"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">00122</a>       std::vector&lt;Theorem&gt;::const_iterator <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">d_it</a>;
<a name="l00123"></a>00123 
<a name="l00124"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a7e73108ab54a48c4fe3de4413ff31654">00124</a>       <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a7e73108ab54a48c4fe3de4413ff31654">iterator</a>(<span class="keyword">const</span> std::vector&lt;Theorem&gt;::const_iterator&amp; i): <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">d_it</a>(i) { }
<a name="l00125"></a>00125     <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00126"></a>00126 <span class="comment">      //! Default constructor</span>
<a name="l00127"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a2e6c3cff1b62716aeb64c4da8927b43f">00127</a> <span class="comment"></span>      <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a2e6c3cff1b62716aeb64c4da8927b43f" title="Default constructor.">iterator</a>() { }<span class="comment"></span>
<a name="l00128"></a>00128 <span class="comment">      //! Destructor</span>
<a name="l00129"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a33fa24676afff6d5ec0c9200a9e24715">00129</a> <span class="comment"></span>      <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a33fa24676afff6d5ec0c9200a9e24715" title="Destructor.">~iterator</a>() { }<span class="comment"></span>
<a name="l00130"></a>00130 <span class="comment">      //! Equality</span>
<a name="l00131"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a4bcc518f862e9253beebfe542ef6a0a8">00131</a> <span class="comment"></span>      <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a4bcc518f862e9253beebfe542ef6a0a8" title="Equality.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html" title="Iterator for the Assumptions: points to class Theorem.">iterator</a>&amp; i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">d_it</a> == i.<a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">d_it</a>); }<span class="comment"></span>
<a name="l00132"></a>00132 <span class="comment">      //! Disequality</span>
<a name="l00133"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#ae6804a23a0e8f94bd297ad09eda0275b">00133</a> <span class="comment"></span>      <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#ae6804a23a0e8f94bd297ad09eda0275b" title="Disequality.">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html" title="Iterator for the Assumptions: points to class Theorem.">iterator</a>&amp; i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">d_it</a> != i.<a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">d_it</a>); }<span class="comment"></span>
<a name="l00134"></a>00134 <span class="comment">      //! Dereference operator</span>
<a name="l00135"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a51ae7f5ee40baecf99286a6161576f35">00135</a> <span class="comment"></span>      <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a51ae7f5ee40baecf99286a6161576f35" title="Dereference operator.">operator*</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *<a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">d_it</a>; }<span class="comment"></span>
<a name="l00136"></a>00136 <span class="comment">      //! Member dereference operator</span>
<a name="l00137"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a3779224fd9f382d7f66f84f4aca7aefc">00137</a> <span class="comment"></span>      <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>* <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a3779224fd9f382d7f66f84f4aca7aefc" title="Member dereference operator.">operator-&gt;</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &amp;(<a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a51ae7f5ee40baecf99286a6161576f35" title="Dereference operator.">operator*</a>()); }<span class="comment"></span>
<a name="l00138"></a>00138 <span class="comment">      //! Prefix increment</span>
<a name="l00139"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a71147a498f3351639d0575d0a766f75d">00139</a> <span class="comment"></span>      <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html" title="Iterator for the Assumptions: points to class Theorem.">iterator</a>&amp; <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a71147a498f3351639d0575d0a766f75d" title="Prefix increment.">operator++</a>() { ++<a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">d_it</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }<span class="comment"></span>
<a name="l00140"></a>00140 <span class="comment">      //! Proxy class for postfix increment</span>
<a name="l00141"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html">00141</a> <span class="comment"></span>      <span class="keyword">class </span><a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html" title="Proxy class for postfix increment.">Proxy</a> {
<a name="l00142"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html#ae3a0bac1492484c533366243069002a4">00142</a>   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>* <a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html#ae3a0bac1492484c533366243069002a4">d_t</a>;
<a name="l00143"></a>00143       <span class="keyword">public</span>:
<a name="l00144"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html#a650aec83decb46ef12a3a9009796f762">00144</a>   <a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html#a650aec83decb46ef12a3a9009796f762">Proxy</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; t) : <a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html#ae3a0bac1492484c533366243069002a4">d_t</a>(&amp;t) { }
<a name="l00145"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html#a8ff79b5ea37c69f70888d27938fbae6c">00145</a>   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; <a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html#a8ff79b5ea37c69f70888d27938fbae6c">operator*</a>() { <span class="keywordflow">return</span> *<a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html#ae3a0bac1492484c533366243069002a4">d_t</a>; }
<a name="l00146"></a>00146       };<span class="comment"></span>
<a name="l00147"></a>00147 <span class="comment">      //! Postfix increment</span>
<a name="l00148"></a><a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a7737ba61fadae877c92c44888084ad42">00148</a> <span class="comment"></span>      <a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html" title="Proxy class for postfix increment.">Proxy</a> <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#a7737ba61fadae877c92c44888084ad42" title="Postfix increment.">operator++</a>(<span class="keywordtype">int</span>) { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Assumptions_1_1iterator_1_1Proxy.html" title="Proxy class for postfix increment.">Proxy</a>(*(<a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html#abdc5f6e288aa9e54eb0ecb07bf5186e1">d_it</a>++)); }
<a name="l00149"></a>00149     };
<a name="l00150"></a>00150 
<a name="l00151"></a><a class="code" href="classCVC3_1_1Assumptions.html#ac3e7d0e1796c83edf687aac063bdba06">00151</a>     <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html" title="Iterator for the Assumptions: points to class Theorem.">iterator</a> <a class="code" href="classCVC3_1_1Assumptions.html#ac3e7d0e1796c83edf687aac063bdba06">begin</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html" title="Iterator for the Assumptions: points to class Theorem.">iterator</a>(<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>.begin()); }
<a name="l00152"></a><a class="code" href="classCVC3_1_1Assumptions.html#afc875bbe97e4e2d74a2cdc824f783bfb">00152</a>     <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html" title="Iterator for the Assumptions: points to class Theorem.">iterator</a> <a class="code" href="classCVC3_1_1Assumptions.html#afc875bbe97e4e2d74a2cdc824f783bfb">end</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Assumptions_1_1iterator.html" title="Iterator for the Assumptions: points to class Theorem.">iterator</a>(<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>.end()); }
<a name="l00153"></a>00153 
<a name="l00154"></a>00154     <span class="comment">// Merging assumptions</span>
<a name="l00155"></a>00155     <span class="comment">//    friend Assumptions operator+(const Assumptions&amp; a1, const Assumptions&amp; a2);</span>
<a name="l00156"></a>00156 <span class="comment"></span>
<a name="l00157"></a>00157 <span class="comment">    //! Returns all (recursive) assumptions except e</span>
<a name="l00158"></a>00158 <span class="comment"></span>    <span class="keyword">friend</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a> <a class="code" href="classCVC3_1_1Assumptions.html#ae7979a5513c61abea383d419bb38b32a" title="Returns all (recursive) assumptions except e.">operator-</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&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; e);<span class="comment"></span>
<a name="l00159"></a>00159 <span class="comment">    //! Returns all (recursive) assumptions except those in es</span>
<a name="l00160"></a>00160 <span class="comment"></span>    <span class="keyword">friend</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a> <a class="code" href="classCVC3_1_1Assumptions.html#ae7979a5513c61abea383d419bb38b32a" title="Returns all (recursive) assumptions except e.">operator-</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&amp; a,
<a name="l00161"></a>00161                                  <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; es);
<a name="l00162"></a>00162 
<a name="l00163"></a>00163     <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="classCVC3_1_1Assumptions.html#a00df12f458d21e3fb60a5d53b7eede49">operator&lt;&lt;</a>(std::ostream&amp; os,
<a name="l00164"></a>00164                                     <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a> &amp;assump);
<a name="l00165"></a>00165 
<a name="l00166"></a><a class="code" href="classCVC3_1_1Assumptions.html#a80f32d3c8b6067fd975edfdb901ef404">00166</a>     <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1Assumptions.html#a80f32d3c8b6067fd975edfdb901ef404">operator==</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&amp; a1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&amp; a2)
<a name="l00167"></a>00167     { <span class="keywordflow">return</span> a1.<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a> == a2.<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>; }
<a name="l00168"></a><a class="code" href="classCVC3_1_1Assumptions.html#a1f01e3a71cd2e93b28adc84ba99c46d2">00168</a>     <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1Assumptions.html#a1f01e3a71cd2e93b28adc84ba99c46d2">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&amp; a1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Assumptions.html">Assumptions</a>&amp; a2)
<a name="l00169"></a>00169     { <span class="keywordflow">return</span> a1.<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a> != a2.<a class="code" href="classCVC3_1_1Assumptions.html#a510d7d883844766ec1fd9003bbf6d66c">d_vector</a>; }
<a name="l00170"></a>00170 
<a name="l00171"></a>00171   }; <span class="comment">// end of class Assumptions</span>
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 } <span class="comment">// end of namespace CVC3</span>
<a name="l00174"></a>00174 
<a name="l00175"></a>00175 <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>