Sophie

Sophie

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

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: search.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">search.h</div>  </div>
</div>
<div class="contents">
<a href="search_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 search.h</span>
<a name="l00004"></a>00004 <span class="comment"> * \brief Abstract API to the proof search engine</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * Author: Clark Barrett, Vijay Ganesh (Clausal Normal Form Converter)</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * Created: Fri Jan 17 13:35:03 2003</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__include__search_h_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _cvc3__include__search_h_</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="queryresult_8h.html" title="enumerated type for result of queries">queryresult.h</a>&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;<a class="code" href="cdo_8h.html">cdo.h</a>&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="formula__value_8h.html" title="enumerated type for value of formulas">formula_value.h</a>&quot;</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="keyword">namespace </span>CVC3 {
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="keyword">class </span>SearchEngineRules;
<a name="l00033"></a>00033 <span class="keyword">class </span>Theorem;
<a name="l00034"></a>00034 <span class="keyword">class </span>Expr;
<a name="l00035"></a>00035 <span class="keyword">class </span>Proof;
<a name="l00036"></a>00036 <span class="keyword">class </span>TheoryCore;
<a name="l00037"></a>00037 <span class="keyword">class </span>CommonProofRules;
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keyword">template</span>&lt;<span class="keyword">class</span> Data&gt; <span class="keyword">class </span>ExprMap;
<a name="l00040"></a>00040 <span class="comment"></span>
<a name="l00041"></a>00041 <span class="comment">  /*! \defgroup SE Search Engine</span>
<a name="l00042"></a>00042 <span class="comment">   * \ingroup VC</span>
<a name="l00043"></a>00043 <span class="comment">   * The search engine includes Boolean reasoning and coordinates with theory</span>
<a name="l00044"></a>00044 <span class="comment">   * reasoning.  It consists of a generic abstract API (class SearchEngine) and</span>
<a name="l00045"></a>00045 <span class="comment">   * subclasses implementing concrete instances of search engines.</span>
<a name="l00046"></a>00046 <span class="comment">   */</span>
<a name="l00047"></a>00047 <span class="comment"></span>
<a name="l00048"></a>00048 <span class="comment">  //! API to to a generic proof search engine</span>
<a name="l00049"></a>00049 <span class="comment"></span><span class="comment">  /*! \ingroup SE */</span>
<a name="l00050"></a><a class="code" href="classCVC3_1_1SearchEngine.html">00050</a> <span class="keyword">class </span><a class="code" href="classCVC3_1_1SearchEngine.html" title="API to to a generic proof search engine.">SearchEngine</a> {
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="keyword">protected</span>:<span class="comment"></span>
<a name="l00053"></a>00053 <span class="comment">  /*! \addtogroup SE</span>
<a name="l00054"></a>00054 <span class="comment">   * @{</span>
<a name="l00055"></a>00055 <span class="comment">   */</span>
<a name="l00056"></a>00056 <span class="comment"></span>
<a name="l00057"></a>00057 <span class="comment">  //! Access to theory reasoning</span>
<a name="l00058"></a><a class="code" href="group__SE.html#ga3772c6af7eac91b9ed7fc278edf5ef90">00058</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1TheoryCore.html" title="This theory handles the built-in logical connectives plus equality. It also handles the registration ...">TheoryCore</a>* <a class="code" href="group__SE.html#ga3772c6af7eac91b9ed7fc278edf5ef90" title="Access to theory reasoning.">d_core</a>;
<a name="l00059"></a>00059 <span class="comment"></span>
<a name="l00060"></a>00060 <span class="comment">  //! Common proof rules</span>
<a name="l00061"></a><a class="code" href="group__SE.html#ga63f2a3cfcfa86820bea2f45cb890cc1c">00061</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CommonProofRules.html">CommonProofRules</a>* <a class="code" href="group__SE.html#ga63f2a3cfcfa86820bea2f45cb890cc1c" title="Common proof rules.">d_commonRules</a>;
<a name="l00062"></a>00062 <span class="comment"></span>
<a name="l00063"></a>00063 <span class="comment">  //! Proof rules for the search engine</span>
<a name="l00064"></a><a class="code" href="group__SE.html#ga879b68112123e2b4ae7175d85a03bfec">00064</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1SearchEngineRules.html" title="API to the proof rules for the Search Engines.">SearchEngineRules</a>* <a class="code" href="group__SE.html#ga879b68112123e2b4ae7175d85a03bfec" title="Proof rules for the search engine.">d_rules</a>;
<a name="l00065"></a>00065 <span class="comment"></span>
<a name="l00066"></a>00066 <span class="comment">  //! Create the trusted component</span>
<a name="l00067"></a>00067 <span class="comment"></span><span class="comment">  /*! This function is defined in search_theorem_producer.cpp */</span>
<a name="l00068"></a>00068   <a class="code" href="classCVC3_1_1SearchEngineRules.html" title="API to the proof rules for the Search Engines.">SearchEngineRules</a>* <a class="code" href="group__SE.html#ga11dd236b3ba4ca5faad7563dfe6f3d72" title="Create the trusted component.">createRules</a>();
<a name="l00069"></a>00069   <span class="comment">// hack for printing original assumptions in LFSC proofs by liana</span>
<a name="l00070"></a>00070   <a class="code" href="classCVC3_1_1SearchEngineRules.html" title="API to the proof rules for the Search Engines.">SearchEngineRules</a>* <a class="code" href="group__SE.html#ga11dd236b3ba4ca5faad7563dfe6f3d72" title="Create the trusted component.">createRules</a>(<a class="code" href="classCVC3_1_1SearchEngine.html" title="API to to a generic proof search engine.">SearchEngine</a>* s_eng);
<a name="l00071"></a>00071 
<a name="l00072"></a>00072  <span class="keyword">public</span>:
<a name="l00073"></a>00073 <span class="comment"></span>
<a name="l00074"></a>00074 <span class="comment">  //! Constructor</span>
<a name="l00075"></a>00075 <span class="comment"></span>  <a class="code" href="group__SE.html#ga2763859e03e0a91877d91e20a3d26a7a" title="Constructor.">SearchEngine</a>(<a class="code" href="classCVC3_1_1TheoryCore.html" title="This theory handles the built-in logical connectives plus equality. It also handles the registration ...">TheoryCore</a>* core);
<a name="l00076"></a>00076 <span class="comment"></span>
<a name="l00077"></a>00077 <span class="comment">  //! Destructor</span>
<a name="l00078"></a>00078 <span class="comment"></span>  <span class="keyword">virtual</span> <a class="code" href="group__SE.html#ga863ab87efd742b9a8f20b87774ab570f" title="Destructor.">~SearchEngine</a>();
<a name="l00079"></a>00079 <span class="comment"></span>
<a name="l00080"></a>00080 <span class="comment">  //! Name of this search engine</span>
<a name="l00081"></a>00081 <span class="comment"></span>  <span class="keyword">virtual</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="group__SE.html#ga942b3cc50f5ea9da1b3117ee23eff9c2" title="Name of this search engine.">getName</a>() = 0;
<a name="l00082"></a>00082 <span class="comment"></span>
<a name="l00083"></a>00083 <span class="comment">  //! Accessor for common rules</span>
<a name="l00084"></a><a class="code" href="group__SE.html#ga09d347bd55d59dc8f1d2f711df0d1c4c">00084</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CommonProofRules.html">CommonProofRules</a>* <a class="code" href="group__SE.html#ga09d347bd55d59dc8f1d2f711df0d1c4c" title="Accessor for common rules.">getCommonRules</a>() { <span class="keywordflow">return</span> <a class="code" href="group__SE.html#ga63f2a3cfcfa86820bea2f45cb890cc1c" title="Common proof rules.">d_commonRules</a>; }
<a name="l00085"></a>00085 <span class="comment"></span>
<a name="l00086"></a>00086 <span class="comment">  //! Accessor for TheoryCore</span>
<a name="l00087"></a><a class="code" href="group__SE.html#ga895a3150e972fb79a7a3ab26100dd31e">00087</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1TheoryCore.html" title="This theory handles the built-in logical connectives plus equality. It also handles the registration ...">TheoryCore</a>* <a class="code" href="group__SE.html#ga895a3150e972fb79a7a3ab26100dd31e" title="Accessor for TheoryCore.">theoryCore</a>() { <span class="keywordflow">return</span> <a class="code" href="group__SE.html#ga3772c6af7eac91b9ed7fc278edf5ef90" title="Access to theory reasoning.">d_core</a>; }
<a name="l00088"></a>00088 <span class="comment"></span>
<a name="l00089"></a>00089 <span class="comment">  //! Register an atomic formula of interest.</span>
<a name="l00090"></a>00090 <span class="comment"></span><span class="comment">  /*! Registered atoms are tracked by the decision procedures.  If one of them</span>
<a name="l00091"></a>00091 <span class="comment">      is deduced to be true or false, it is added to a list of implied literals.</span>
<a name="l00092"></a>00092 <span class="comment">      Implied literals can be retrieved with the getImpliedLiteral function */</span>
<a name="l00093"></a>00093   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__SE.html#ga0f7c2870341319738e7d8c6662e6d7cc" title="Register an atomic formula of interest.">registerAtom</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) = 0;
<a name="l00094"></a>00094 <span class="comment"></span>
<a name="l00095"></a>00095 <span class="comment">  //! Return next literal implied by last assertion.  Null Expr if none.</span>
<a name="l00096"></a>00096 <span class="comment"></span><span class="comment">  /*! Returned literals are either registered atomic formulas or their negation</span>
<a name="l00097"></a>00097 <span class="comment">   */</span>
<a name="l00098"></a>00098   <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="group__SE.html#ga29a287b5dd638015f974a8a046e19d8a" title="Return next literal implied by last assertion. Null Expr if none.">getImpliedLiteral</a>() = 0;
<a name="l00099"></a>00099 <span class="comment"></span>
<a name="l00100"></a>00100 <span class="comment">  //! Push a checkpoint</span>
<a name="l00101"></a>00101 <span class="comment"></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__SE.html#gadea197447ea40330f3b0739aa944c800" title="Push a checkpoint.">push</a>() = 0;
<a name="l00102"></a>00102 <span class="comment"></span>
<a name="l00103"></a>00103 <span class="comment">  //! Restore last checkpoint</span>
<a name="l00104"></a>00104 <span class="comment"></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__SE.html#ga2c7fa9d3a42a543ff23891110ad673e5" title="Restore last checkpoint.">pop</a>() = 0;
<a name="l00105"></a>00105 <span class="comment"></span>
<a name="l00106"></a>00106 <span class="comment">  //! Checks the validity of a formula in the current context</span>
<a name="l00107"></a>00107 <span class="comment"></span><span class="comment">  /*! If the query is valid, it returns VALID, the result parameter contains</span>
<a name="l00108"></a>00108 <span class="comment">   *  the corresponding theorem, and the scope and context are the same</span>
<a name="l00109"></a>00109 <span class="comment">   *  as when called.  If it returns INVALID, the context will be one which</span>
<a name="l00110"></a>00110 <span class="comment">   *  falsifies the query.  If it returns UNKNOWN, the context will falsify the</span>
<a name="l00111"></a>00111 <span class="comment">   *  query, but the context may be inconsistent.  Finally, if it returns</span>
<a name="l00112"></a>00112 <span class="comment">   *  ABORT, the context will be one which satisfies as much as</span>
<a name="l00113"></a>00113 <span class="comment">   *  possible.</span>
<a name="l00114"></a>00114 <span class="comment">   * \param e the formula to check.</span>
<a name="l00115"></a>00115 <span class="comment">   * \param result the resulting theorem, if the formula is valid.</span>
<a name="l00116"></a>00116 <span class="comment"> */</span>
<a name="l00117"></a>00117   <span class="keyword">virtual</span> <a class="code" href="namespaceCVC3.html#a060d21b3207cc3471e24f8dbcff3498b">QueryResult</a> <a class="code" href="group__SE.html#ga34a9133f5342719526863d24cd1a0fcc" title="Checks the validity of a formula in the current context.">checkValid</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 class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; result) = 0;
<a name="l00118"></a>00118 <span class="comment"></span>
<a name="l00119"></a>00119 <span class="comment">  //! Reruns last check with e as an additional assumption</span>
<a name="l00120"></a>00120 <span class="comment"></span><span class="comment">  /*! This method should only be called after a query which is invalid.</span>
<a name="l00121"></a>00121 <span class="comment">   * \param e the additional assumption</span>
<a name="l00122"></a>00122 <span class="comment">   * \param result the resulting theorem, if the query is valid.</span>
<a name="l00123"></a>00123 <span class="comment">   */</span>
<a name="l00124"></a>00124   <span class="keyword">virtual</span> <a class="code" href="namespaceCVC3.html#a060d21b3207cc3471e24f8dbcff3498b">QueryResult</a> <a class="code" href="group__SE.html#ga715936653b5bef3e3d9fd2a8a873bafd" title="Reruns last check with e as an additional assumption.">restart</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 class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; result) = 0;
<a name="l00125"></a>00125 <span class="comment"></span>
<a name="l00126"></a>00126 <span class="comment">  //! Returns to context immediately before last call to checkValid</span>
<a name="l00127"></a>00127 <span class="comment"></span><span class="comment">  /*! This method should only be called after a query which returns something</span>
<a name="l00128"></a>00128 <span class="comment">   * other than VALID.</span>
<a name="l00129"></a>00129 <span class="comment">   */</span>
<a name="l00130"></a>00130   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__SE.html#gad552593fb43fd5751f12942f3a29a90e" title="Returns to context immediately before last call to checkValid.">returnFromCheck</a>() = 0;
<a name="l00131"></a>00131 <span class="comment"></span>
<a name="l00132"></a>00132 <span class="comment">  //! Returns the result of the most recent valid theorem</span>
<a name="l00133"></a>00133 <span class="comment"></span><span class="comment">  /*! Returns Null Theorem if last call was not valid */</span>
<a name="l00134"></a>00134   <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="group__SE.html#ga9757a6fd272ea550d0e910d20bd7d00b" title="Returns the result of the most recent valid theorem.">lastThm</a>() = 0;
<a name="l00135"></a>00135 <span class="comment"></span>
<a name="l00136"></a>00136 <span class="comment">  /*! @brief Generate and add an assumption to the set of</span>
<a name="l00137"></a>00137 <span class="comment">   * assumptions in the current context. */</span><span class="comment"></span>
<a name="l00138"></a>00138 <span class="comment">  /*! By default, the assumption is added at the current scope.  The default</span>
<a name="l00139"></a>00139 <span class="comment">   * can be overridden by specifying the scope parameter. */</span>
<a name="l00140"></a>00140   <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="group__SE.html#ga5782663fc8ae00ec2965506c8ba65a86" title="Generate and add an assumption to the set of assumptions in the current context.">newUserAssumption</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) = 0;
<a name="l00141"></a>00141 <span class="comment"></span>
<a name="l00142"></a>00142 <span class="comment">  //! Get all user assumptions made in this and all previous contexts.</span>
<a name="l00143"></a>00143 <span class="comment"></span><span class="comment">  /*! User assumptions are created either by calls to newUserAssumption or</span>
<a name="l00144"></a>00144 <span class="comment">   * a call to checkValid.  In the latter case, the negated query is added</span>
<a name="l00145"></a>00145 <span class="comment">   * as an assumption.</span>
<a name="l00146"></a>00146 <span class="comment">   * \param assumptions should be empty on entry.</span>
<a name="l00147"></a>00147 <span class="comment">  */</span>
<a name="l00148"></a>00148   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__SE.html#ga43f52699cddc6e0feffffaf22424fe47" title="Get all user assumptions made in this and all previous contexts.">getUserAssumptions</a>(std::vector&lt;Expr&gt;&amp; assumptions) = 0;
<a name="l00149"></a>00149 <span class="comment"></span>
<a name="l00150"></a>00150 <span class="comment">  //! Get assumptions made internally in this and all previous contexts.</span>
<a name="l00151"></a>00151 <span class="comment"></span><span class="comment">  /*! Internal assumptions are literals assumed by the sat solver.</span>
<a name="l00152"></a>00152 <span class="comment">   * \param assumptions should be empty on entry.</span>
<a name="l00153"></a>00153 <span class="comment">  */</span>
<a name="l00154"></a>00154   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__SE.html#ga320e15a994a712bc7c20854853501b27" title="Get assumptions made internally in this and all previous contexts.">getInternalAssumptions</a>(std::vector&lt;Expr&gt;&amp; assumptions) = 0;
<a name="l00155"></a>00155 <span class="comment"></span>
<a name="l00156"></a>00156 <span class="comment">  //! Get all assumptions made in this and all previous contexts.</span>
<a name="l00157"></a>00157 <span class="comment"></span><span class="comment">  /*! \param assumptions should be an empty vector which will be filled \</span>
<a name="l00158"></a>00158 <span class="comment">    with the assumptions */</span>
<a name="l00159"></a>00159   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__SE.html#ga3167148206cca25a3434cb8bb15c69fe" title="Get all assumptions made in this and all previous contexts.">getAssumptions</a>(std::vector&lt;Expr&gt;&amp; assumptions) = 0;
<a name="l00160"></a>00160 <span class="comment"></span>
<a name="l00161"></a>00161 <span class="comment">  //! Check if the formula has already been assumed previously</span>
<a name="l00162"></a>00162 <span class="comment"></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="group__SE.html#ga20730f5acacc4b18d29031632d88904c" title="Check if the formula has already been assumed previously.">isAssumption</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) = 0;
<a name="l00163"></a>00163 <span class="comment"></span>
<a name="l00164"></a>00164 <span class="comment">  //! Will return the set of assertions which make the queried formula false.</span>
<a name="l00165"></a>00165 <span class="comment"></span><span class="comment">  /*! This method should only be called after an query which returns INVALID.</span>
<a name="l00166"></a>00166 <span class="comment">   * It will try to return the simplest possible set of assertions which are</span>
<a name="l00167"></a>00167 <span class="comment">   * sufficient to make the queried expression false.</span>
<a name="l00168"></a>00168 <span class="comment">   * \param assertions should be empty on entry.</span>
<a name="l00169"></a>00169 <span class="comment">   * \param inOrder if true, returns the assertions in the order they were</span>
<a name="l00170"></a>00170 <span class="comment">   * asserted.  This is slightly more expensive than inOrder = false.</span>
<a name="l00171"></a>00171 <span class="comment">  */</span>
<a name="l00172"></a>00172   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__SE.html#ga739867521b23967ee6739ec32a8070e2" title="Will return the set of assertions which make the queried formula false.">getCounterExample</a>(std::vector&lt;Expr&gt;&amp; assertions,
<a name="l00173"></a>00173                                  <span class="keywordtype">bool</span> inOrder = <span class="keyword">true</span>) = 0;
<a name="l00174"></a>00174 <span class="comment"></span>
<a name="l00175"></a>00175 <span class="comment">  //! Returns the proof term for the last proven query</span>
<a name="l00176"></a>00176 <span class="comment"></span><span class="comment">  /*! It should be called only after a query which returns VALID.</span>
<a name="l00177"></a>00177 <span class="comment">   * In any other case, it returns Null. */</span>
<a name="l00178"></a>00178   <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="group__SE.html#gaa0ce3839d5f7b64168d62ff5eb59cf1f" title="Returns the proof term for the last proven query.">getProof</a>() = 0;
<a name="l00179"></a>00179 <span class="comment"></span>
<a name="l00180"></a>00180 <span class="comment">  /*! @brief Build a concrete Model (assign values to variables),</span>
<a name="l00181"></a>00181 <span class="comment">   * should only be called after a query which returns INVALID. */</span>
<a name="l00182"></a>00182   <span class="keywordtype">void</span> <a class="code" href="group__SE.html#gae2a1cd46200160ac5855d7cd5f65517c" title="Build a concrete Model (assign values to variables), should only be called after a query which return...">getConcreteModel</a>(<a class="code" href="classCVC3_1_1ExprMap.html">ExprMap&lt;Expr&gt;</a>&amp; m);
<a name="l00183"></a>00183 <span class="comment"></span>
<a name="l00184"></a>00184 <span class="comment">  /*! @brief Try to build a concrete Model (assign values to variables),</span>
<a name="l00185"></a>00185 <span class="comment">   * should only be called after a query which returns UNKNOWN.</span>
<a name="l00186"></a>00186 <span class="comment">   * Returns a theorem if inconsistent */</span>
<a name="l00187"></a>00187   <span class="keywordtype">bool</span> <a class="code" href="group__SE.html#ga44f1c2fefc202249cd2cda55d7712bdf" title="Try to build a concrete Model (assign values to variables), should only be called after a query which...">tryModelGeneration</a>(<a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; thm);
<a name="l00188"></a>00188 
<a name="l00189"></a>00189   <span class="comment">//:ALEX: returns the current truth value of a formula</span>
<a name="l00190"></a>00190   <span class="comment">// returns CVC3::UNKNOWN_VAL if e is not associated</span>
<a name="l00191"></a>00191   <span class="comment">// with a boolean variable in the SAT module,</span>
<a name="l00192"></a>00192   <span class="comment">// i.e. if its value can not determined without search.</span>
<a name="l00193"></a>00193   <span class="keyword">virtual</span> <a class="code" href="namespaceCVC3.html#a9d68f126b86e6fd08b3bc13a511df9bf">FormulaValue</a> <a class="code" href="group__SE.html#ga38ced857c272afeecbe0429e1dcca28e">getValue</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">CVC3::Expr</a>&amp; e) = 0;
<a name="l00194"></a>00194 
<a name="l00195"></a>00195   <span class="comment">/* @} */</span> <span class="comment">// end of group SE</span>
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 };
<a name="l00198"></a>00198 
<a name="l00199"></a>00199 
<a name="l00200"></a>00200 }
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <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>