<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>CVC3: theory_core.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">CVC3 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b0856f6b0d80ccb263b2f415c91f9e17.html">include</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">theory_core.h</div> </div> </div><!--header--> <div class="contents"> <a href="theory__core_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*****************************************************************************/</span><span class="comment"></span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*!</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * \file theory_core.h</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Author: Clark Barrett</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> *</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * Created: Thu Jan 30 16:58:05 2003</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * <hr></span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * License to use, copy, modify, sell and/or distribute this software</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * and its documentation for any purpose is hereby granted without</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * royalty, subject to the terms and conditions defined in the \ref</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * LICENSE file provided with this distribution.</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * <hr></span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> *</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> */</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">/*****************************************************************************/</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef _cvc3__include__theory_core_h_</span></div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor"></span><span class="preprocessor">#define _cvc3__include__theory_core_h_</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <queue></span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="theory_8h.html" title="Generic API for Theories plus methods commonly used by theories.">theory.h</a>"</span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="cdmap_8h.html">cdmap.h</a>"</span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="statistics_8h.html" title="Description: Counters and flags for collecting run-time statistics.">statistics.h</a>"</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <string></span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="notifylist_8h.html">notifylist.h</a>"</span></div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <vector></span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <utility></span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">//#include "expr_transform.h"</span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">namespace </span>CVC3 {</div> <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">class </span>ExprTransform;</div> <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">// class Statistics;</span></div> <div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">class </span>CoreProofRules;</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">class </span>Translator;</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">/*****************************************************************************/</span><span class="comment"></span></div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">/*!</span></div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"> *\class TheoryCore</span></div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> *\ingroup Theories</span></div> <div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> *\brief This theory handles the built-in logical connectives plus equality.</span></div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> * It also handles the registration and cooperation among all other theories.</span></div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> *</span></div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"> * Author: Clark Barrett</span></div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment"> *</span></div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment"> * Created: Sat Feb 8 14:54:05 2003</span></div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment"> */</span></div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">/*****************************************************************************/</span></div> <div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html"> 53</a></span> <span class="keyword">class </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> :<span class="keyword">public</span> <a class="code" href="classCVC3_1_1Theory.html" title="Base class for theories.">Theory</a> {</div> <div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#abe20cc4b804d6951c09b92aec0085063"> 54</a></span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCVC3_1_1Theory.html" title="Base class for theories.">Theory</a>;</div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment"></span></div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"> //! Context manager</span></div> <div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#aa803e0e65fec3e389c9c4d12d8d634a3"> 57</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1ContextManager.html" title="Manager for multiple contexts. Also holds current context.">ContextManager</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#aa803e0e65fec3e389c9c4d12d8d634a3" title="Context manager.">d_cm</a>;</div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"></span></div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> //! Theorem manager</span></div> <div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a8b9c81920208ce15dac9eb3bb97b4a2b"> 60</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1TheoremManager.html">TheoremManager</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#a8b9c81920208ce15dac9eb3bb97b4a2b" title="Theorem manager.">d_tm</a>;</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"></span></div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"> //! Core proof rules</span></div> <div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#af28b98269dc8ef40a6fa97d58f414173"> 63</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1CoreProofRules.html">CoreProofRules</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#af28b98269dc8ef40a6fa97d58f414173" title="Core proof rules.">d_rules</a>;</div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"></span></div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment"> //! Reference to command line flags</span></div> <div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#adf5b754e1e4732cb0e1946cf0f274885"> 66</a></span> <span class="comment"></span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1CLFlags.html">CLFlags</a>& <a class="code" href="classCVC3_1_1TheoryCore.html#adf5b754e1e4732cb0e1946cf0f274885" title="Reference to command line flags.">d_flags</a>;</div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"></span></div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> //! Reference to statistics</span></div> <div class="line"><a name="l00069"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a053311bcc9681a402ab440bf90447632"> 69</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Statistics.html">Statistics</a>& <a class="code" href="classCVC3_1_1TheoryCore.html#a053311bcc9681a402ab440bf90447632" title="Reference to statistics.">d_statistics</a>;</div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"></span></div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> //! PrettyPrinter (we own it)</span></div> <div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#aba88f17e048e24984f8637be9d31a74c"> 72</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1PrettyPrinter.html" title="Abstract API to a pretty-printer for Expr.">PrettyPrinter</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#aba88f17e048e24984f8637be9d31a74c" title="PrettyPrinter (we own it)">d_printer</a>;</div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"></span></div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> //! Type Computer</span></div> <div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ae430167a0f9f0e2ba742436bcb04e9fb"> 75</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1ExprManager_1_1TypeComputer.html" title="Abstract class for computing expr type.">ExprManager::TypeComputer</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#ae430167a0f9f0e2ba742436bcb04e9fb" title="Type Computer.">d_typeComputer</a>;</div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"></span></div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"> //! Expr Transformer</span></div> <div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a03b7c799d7ee3b3a4a10f14b2faacfbb"> 78</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1ExprTransform.html">ExprTransform</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#a03b7c799d7ee3b3a4a10f14b2faacfbb" title="Expr Transformer.">d_exprTrans</a>;</div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment"></span></div> <div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"> //! Translator</span></div> <div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#abe21ce53a179720cb3e94293fd6d771f"> 81</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Translator.html">Translator</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#abe21ce53a179720cb3e94293fd6d771f" title="Translator.">d_translator</a>;</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment"></span></div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment"> //! Assertion queue</span></div> <div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#af057513081cf61dc3780967f84ae58fe"> 84</a></span> <span class="comment"></span> std::queue<Theorem> <a class="code" href="classCVC3_1_1TheoryCore.html#af057513081cf61dc3780967f84ae58fe" title="Assertion queue.">d_queue</a>;<span class="comment"></span></div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> //! Queue of facts to be sent to the SearchEngine</span></div> <div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a5253f49c096b1ce32579f7095c895ac4"> 86</a></span> <span class="comment"></span> std::vector<Theorem> <a class="code" href="classCVC3_1_1TheoryCore.html#a5253f49c096b1ce32579f7095c895ac4" title="Queue of facts to be sent to the SearchEngine.">d_queueSE</a>;</div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"></span></div> <div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> //! Inconsistent flag</span></div> <div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ac44993c5095bc2fda1f6b931060223bf"> 89</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1CDO.html">CDO<bool></a> <a class="code" href="classCVC3_1_1TheoryCore.html#ac44993c5095bc2fda1f6b931060223bf" title="Inconsistent flag.">d_inconsistent</a>;<span class="comment"></span></div> <div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"> //! The set of reasons for incompleteness (empty when we are complete)</span></div> <div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ae81dae9c186efe8ead153d14e29985bf"> 91</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1CDMap.html">CDMap<std::string, bool></a> <a class="code" href="classCVC3_1_1TheoryCore.html#ae81dae9c186efe8ead153d14e29985bf" title="The set of reasons for incompleteness (empty when we are complete)">d_incomplete</a>;</div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"></span></div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> //! Proof of inconsistent</span></div> <div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a1560124d30d8cda4a6cedca4c919f8aa"> 94</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1CDO.html">CDO<Theorem></a> <a class="code" href="classCVC3_1_1TheoryCore.html#a1560124d30d8cda4a6cedca4c919f8aa" title="Proof of inconsistent.">d_incThm</a>;<span class="comment"></span></div> <div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> //! List of all active terms in the system (for quantifier instantiation)</span></div> <div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a9ebcf505b2577cd3a3a29d70a4fd50ae"> 96</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1CDList.html">CDList<Expr></a> <a class="code" href="classCVC3_1_1TheoryCore.html#a9ebcf505b2577cd3a3a29d70a4fd50ae" title="List of all active terms in the system (for quantifier instantiation)">d_terms</a>;<span class="comment"></span></div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> //! Map from active terms to theorems that introduced those terms</span></div> <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"></span></div> <div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ab2fd8e3ebcc92df0276d6d0b4e8a88bf"> 99</a></span>  <a class="code" href="classHash_1_1hash__map.html">std::hash_map<Expr, Theorem></a> <a class="code" href="classCVC3_1_1TheoryCore.html#ab2fd8e3ebcc92df0276d6d0b4e8a88bf" title="Map from active terms to theorems that introduced those terms.">d_termTheorems</a>;</div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// CDMap<Expr, Theorem> d_termTheorems;</span></div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"></span></div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"> //! List of all active non-equality atomic formulas in the system (for quantifier instantiation)</span></div> <div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a27f2f350452da6f7adca44c342a1f29d"> 103</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1CDList.html">CDList<Expr></a> <a class="code" href="classCVC3_1_1TheoryCore.html#a27f2f350452da6f7adca44c342a1f29d" title="List of all active non-equality atomic formulas in the system (for quantifier instantiation)">d_predicates</a>;<span class="comment"></span></div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"> //! List of variables that were created up to this point</span></div> <div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ae3ac2dba3022934af3ba4a61fc979be4"> 105</a></span> <span class="comment"></span> std::vector<Expr> <a class="code" href="classCVC3_1_1TheoryCore.html#ae3ac2dba3022934af3ba4a61fc979be4" title="List of variables that were created up to this point.">d_vars</a>;<span class="comment"></span></div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"> //! Database of declared identifiers</span></div> <div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a6ef875ba12849a2bfd367c4e1bc02e71"> 107</a></span> <span class="comment"></span> std::map<std::string, Expr> <a class="code" href="classCVC3_1_1TheoryCore.html#a6ef875ba12849a2bfd367c4e1bc02e71" title="Database of declared identifiers.">d_globals</a>;<span class="comment"></span></div> <div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> //! Bound variable stack: a vector of pairs <name, var></span></div> <div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a72592744e8f94ed7c832ad895791a72a"> 109</a></span> <span class="comment"></span> std::vector<std::pair<std::string, Expr> > <a class="code" href="classCVC3_1_1TheoryCore.html#a72592744e8f94ed7c832ad895791a72a" title="Bound variable stack: a vector of pairs <name, var>">d_boundVarStack</a>;<span class="comment"></span></div> <div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"> //! Map for bound vars</span></div> <div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#af1f09ebd45eebb8171943533fe49e677"> 111</a></span> <span class="comment"></span> <a class="code" href="classHash_1_1hash__map.html">std::hash_map<std::string, Expr></a> <a class="code" href="classCVC3_1_1TheoryCore.html#af1f09ebd45eebb8171943533fe49e677" title="Map for bound vars.">d_boundVarMap</a>;<span class="comment"></span></div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment"> //! Top-level cache for parser</span></div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"></span> <span class="comment">// This cache is only used when there are no bound variables</span></div> <div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a22825b89097f0baa8348f268317db563"> 114</a></span>  <a class="code" href="classCVC3_1_1ExprMap.html">ExprMap<Expr></a> <a class="code" href="classCVC3_1_1TheoryCore.html#a22825b89097f0baa8348f268317db563" title="Top-level cache for parser.">d_parseCacheTop</a>;<span class="comment"></span></div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"> //! Alternative cache for parser when not at top-level</span></div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"></span> <span class="comment">// This cache used when there are bound variables - and it is cleared</span></div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="comment">// every time the bound variable stack changes</span></div> <div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ac0523af18592d25050b45ca363e52332"> 118</a></span>  <a class="code" href="classCVC3_1_1ExprMap.html">ExprMap<Expr></a> <a class="code" href="classCVC3_1_1TheoryCore.html#ac0523af18592d25050b45ca363e52332" title="Alternative cache for parser when not at top-level.">d_parseCacheOther</a>;<span class="comment"></span></div> <div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"> //! Current cache being used for parser</span></div> <div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#af8402b991e938282c87e01120dfd6b99"> 120</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1ExprMap.html">ExprMap<Expr></a>* <a class="code" href="classCVC3_1_1TheoryCore.html#af8402b991e938282c87e01120dfd6b99" title="Current cache being used for parser.">d_parseCache</a>;<span class="comment"></span></div> <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment"> //! Cache for tcc's</span></div> <div class="line"><a name="l00122"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ab1f589f325461e2bb39f0035c2dfa4bb"> 122</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1ExprMap.html">ExprMap<Expr></a> <a class="code" href="classCVC3_1_1TheoryCore.html#ab1f589f325461e2bb39f0035c2dfa4bb" title="Cache for tcc's.">d_tccCache</a>;</div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment"></span></div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment"> //! Array of registered theories</span></div> <div class="line"><a name="l00125"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a067b4f792c7bcd9fa1d756efdc5d1e72"> 125</a></span> <span class="comment"></span> std::vector<Theory*> <a class="code" href="classCVC3_1_1TheoryCore.html#a067b4f792c7bcd9fa1d756efdc5d1e72" title="Array of registered theories.">d_theories</a>;</div> <div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"></span></div> <div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"> //! Array mapping kinds to theories</span></div> <div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#af9395eb99819f9b78df0dcb24ffac785"> 128</a></span> <span class="comment"></span> <a class="code" href="classHash_1_1hash__map.html">std::hash_map<int, Theory*></a> <a class="code" href="classCVC3_1_1TheoryCore.html#af9395eb99819f9b78df0dcb24ffac785" title="Array mapping kinds to theories.">d_theoryMap</a>;</div> <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment"></span></div> <div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment"> //! The theory which has the solver (if any)</span></div> <div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#af15d1082296c5c7f610d832bfb3cc675"> 131</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theory.html" title="Base class for theories.">Theory</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#af15d1082296c5c7f610d832bfb3cc675" title="The theory which has the solver (if any)">d_solver</a>;</div> <div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment"></span></div> <div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment"> //! Mapping of compound type variables to simpler types (model generation)</span></div> <div class="line"><a name="l00134"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a74cb89f5b3e600cde8e0d7b961532a5e"> 134</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap<std::vector<Expr></a> > <a class="code" href="classCVC3_1_1TheoryCore.html#a74cb89f5b3e600cde8e0d7b961532a5e" title="Mapping of compound type variables to simpler types (model generation)">d_varModelMap</a>;<span class="comment"></span></div> <div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> //! Mapping of intermediate variables to their values</span></div> <div class="line"><a name="l00136"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ad2689808e6b677e79151c5ae413a9170"> 136</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap<Theorem></a> <a class="code" href="classCVC3_1_1TheoryCore.html#ad2689808e6b677e79151c5ae413a9170" title="Mapping of intermediate variables to their values.">d_varAssignments</a>;<span class="comment"></span></div> <div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"> //! List of basic variables (temporary storage for model generation)</span></div> <div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#afbe156b32fe43d2b3e5519477df83110"> 138</a></span> <span class="comment"></span> std::vector<Expr> <a class="code" href="classCVC3_1_1TheoryCore.html#afbe156b32fe43d2b3e5519477df83110" title="List of basic variables (temporary storage for model generation)">d_basicModelVars</a>;<span class="comment"></span></div> <div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment"> //! Mapping of basic variables to simplified expressions (temp. storage)</span></div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"></span><span class="comment"> /*! There may be some vars which simplify to something else; we save</span></div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> * those separately, and keep only those which simplify to</span></div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"> * themselves. Once the latter vars are assigned, we'll re-simplify</span></div> <div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment"> * the former variables and use the results as concrete values.</span></div> <div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment"> */</span></div> <div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a28416be391c5f58a2bf7cbe301e81663"> 145</a></span>  <a class="code" href="classCVC3_1_1ExprHashMap.html">ExprHashMap<Theorem></a> <a class="code" href="classCVC3_1_1TheoryCore.html#a28416be391c5f58a2bf7cbe301e81663" title="Mapping of basic variables to simplified expressions (temp. storage)">d_simplifiedModelVars</a>;</div> <div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"></span></div> <div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> //! Command line flag whether to simplify in place</span></div> <div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ac02ca139143a150df1ecb7ec4d4247e7"> 148</a></span> <span class="comment"></span> <span class="keyword">const</span> <span class="keywordtype">bool</span>* <a class="code" href="classCVC3_1_1TheoryCore.html#ac02ca139143a150df1ecb7ec4d4247e7" title="Command line flag whether to simplify in place.">d_simplifyInPlace</a>;<span class="comment"></span></div> <div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment"> //! Which recursive simplifier to use</span></div> <div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ae9e63b5ca2b5d745cb176ac3a528959b"> 150</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</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>::*<a class="code" href="classCVC3_1_1TheoryCore.html#ae9e63b5ca2b5d745cb176ac3a528959b" title="Which recursive simplifier to use.">d_currentRecursiveSimplifier</a>)(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&);</div> <div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"></span></div> <div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment"> //! Resource limit (0==unlimited, 1==no more resources, >=2 - available).</span></div> <div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"></span><span class="comment"> /*! Currently, it is the number of enqueued facts. Once the</span></div> <div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"> * resource is exhausted, the remaining facts will be dropped, and</span></div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment"> * an incomplete flag is set.</span></div> <div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"> */</span></div> <div class="line"><a name="l00157"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a7040ce9b2fa8d567df0d84a5ceee84bf"> 157</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a7040ce9b2fa8d567df0d84a5ceee84bf" title="Resource limit (0==unlimited, 1==no more resources, >=2 - available).">d_resourceLimit</a>;</div> <div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment"></span></div> <div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment"> //! Time limit (0==unlimited, >0==total available cpu time in seconds).</span></div> <div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment"></span><span class="comment"> /*! Currently, if exhausted processFactQueue will not perform any more</span></div> <div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"> * reasoning with FULL effor and an incomplete flag is set.</span></div> <div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"> */</span></div> <div class="line"><a name="l00163"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#aa2e429d75afaade7281ed2b370a50dcf"> 163</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="classCVC3_1_1TheoryCore.html#aa2e429d75afaade7281ed2b370a50dcf" title="Time limit (0==unlimited, >0==total available cpu time in seconds).">d_timeBase</a>;</div> <div class="line"><a name="l00164"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a4ad36b717dcce5ed5ad9a4514e39e66f"> 164</a></span>  <span class="keywordtype">unsigned</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a4ad36b717dcce5ed5ad9a4514e39e66f">d_timeLimit</a>;</div> <div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div> <div class="line"><a name="l00166"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#adc61197a61a4a024cdd614a281f8cf0c"> 166</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#adc61197a61a4a024cdd614a281f8cf0c">d_inCheckSATCore</a>;</div> <div class="line"><a name="l00167"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#abf9ffc3f83f262e0acdece359d2d00bd"> 167</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#abf9ffc3f83f262e0acdece359d2d00bd">d_inAddFact</a>;</div> <div class="line"><a name="l00168"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a608590056910229da1a794d0dd5930c4"> 168</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a608590056910229da1a794d0dd5930c4">d_inRegisterAtom</a>;</div> <div class="line"><a name="l00169"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#aac5050e644f0c475d104f4dd3a8ddf32"> 169</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#aac5050e644f0c475d104f4dd3a8ddf32">d_inPP</a>;</div> <div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div> <div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="debug_8h.html#a600cb2d68efe7cc413cccbb5714c7016">IF_DEBUG</a>(<a class="code" href="classCVC3_1_1ExprMap.html">ExprMap<bool></a> d_simpStack;)</div> <div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div> <div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment"></span></div> <div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="comment"> //! So we get notified every time there's a pop</span></div> <div class="line"><a name="l00175"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a6b4c0f704ab77eddaaa6308ad6cf45cd"> 175</a></span> <span class="comment"></span> <span class="keyword">friend</span> <span class="keyword">class</span> <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html">CoreNotifyObj</a>;</div> <div class="line"><a name="l00176"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html"> 176</a></span>  <span class="keyword">class </span><a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html">CoreNotifyObj</a> :<span class="keyword">public</span> <a class="code" href="classCVC3_1_1ContextNotifyObj.html">ContextNotifyObj</a> {</div> <div class="line"><a name="l00177"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html#aafa097cf14b8a2faa0c5c5541d93cdf5"> 177</a></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="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html#aafa097cf14b8a2faa0c5c5541d93cdf5">d_theoryCore</a>;</div> <div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keyword">public</span>:</div> <div class="line"><a name="l00179"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html#a48e1f88390e715e7579dfefe328f0483"> 179</a></span>  <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html#a48e1f88390e715e7579dfefe328f0483">CoreNotifyObj</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>* tc, <a class="code" href="classCVC3_1_1Context.html">Context</a>* context)</div> <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  : <a class="code" href="classCVC3_1_1ContextNotifyObj.html">ContextNotifyObj</a>(context), <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html#aafa097cf14b8a2faa0c5c5541d93cdf5">d_theoryCore</a>(tc) {}</div> <div class="line"><a name="l00181"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html#a2b35c26b9c1286c72381ad8670cf9859"> 181</a></span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html#a2b35c26b9c1286c72381ad8670cf9859">notify</a>() { <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html#aafa097cf14b8a2faa0c5c5541d93cdf5">d_theoryCore</a>-><a class="code" href="classCVC3_1_1Theory.html#abc2e30308c9e1f3cf752cfe8d939df1e" title="Access to ExprManager.">getEM</a>()-><a class="code" href="group__EM__Priv.html#gaba358e1731ad9309e52e64eb9ce60755" title="Invalidate the simplifier's cache tag.">invalidateSimpCache</a>(); }</div> <div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  };</div> <div class="line"><a name="l00183"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ae16ab39bb24e04e3928d693ac3a1bb1e"> 183</a></span>  <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreNotifyObj.html">CoreNotifyObj</a> <a class="code" href="classCVC3_1_1TheoryCore.html#ae16ab39bb24e04e3928d693ac3a1bb1e">d_notifyObj</a>;</div> <div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment"></span></div> <div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment"> //! List of implied literals, based on registered atomic formulas of interest</span></div> <div class="line"><a name="l00186"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a7b531fbcb166cac53d82f74c812d42f6"> 186</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1CDList.html">CDList<Theorem></a> <a class="code" href="classCVC3_1_1TheoryCore.html#a7b531fbcb166cac53d82f74c812d42f6" title="List of implied literals, based on registered atomic formulas of interest.">d_impliedLiterals</a>;</div> <div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment"></span></div> <div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment"> //! Next index in d_impliedLiterals that has not yet been fetched</span></div> <div class="line"><a name="l00189"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a496993a9e180ca584cff84ce9dbdff69"> 189</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1CDO.html">CDO<unsigned></a> <a class="code" href="classCVC3_1_1TheoryCore.html#a496993a9e180ca584cff84ce9dbdff69" title="Next index in d_impliedLiterals that has not yet been fetched.">d_impliedLiteralsIdx</a>;</div> <div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="comment"></span></div> <div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="comment"> //! List of theorems from calls to update()</span></div> <div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="comment"></span> <span class="comment">// These are stored here until the equality lists are finished and then</span></div> <div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="comment">// processed by processUpdates()</span></div> <div class="line"><a name="l00194"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a0813a81e68625ac93111f45a4e81b131"> 194</a></span>  std::vector<Theorem> <a class="code" href="classCVC3_1_1TheoryCore.html#a0813a81e68625ac93111f45a4e81b131" title="List of theorems from calls to update()">d_update_thms</a>;</div> <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="comment"></span></div> <div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment"> //! List of data accompanying above theorems from calls to update()</span></div> <div class="line"><a name="l00197"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a9b774b862908ff097c6aed53bdfdbcd3"> 197</a></span> <span class="comment"></span> std::vector<Expr> <a class="code" href="classCVC3_1_1TheoryCore.html#a9b774b862908ff097c6aed53bdfdbcd3" title="List of data accompanying above theorems from calls to update()">d_update_data</a>;</div> <div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="comment"></span></div> <div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment"> //! Notify list that gets processed on every equality</span></div> <div class="line"><a name="l00200"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a96ce7c2fe3b14e3b8b4661fbe19db290"> 200</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1NotifyList.html">NotifyList</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a96ce7c2fe3b14e3b8b4661fbe19db290" title="Notify list that gets processed on every equality.">d_notifyEq</a>;</div> <div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment"></span></div> <div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"> //! Whether we are in the middle of doing updates</span></div> <div class="line"><a name="l00203"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a966030ae5b96557c9ea5de874a9526ef"> 203</a></span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a966030ae5b96557c9ea5de874a9526ef" title="Whether we are in the middle of doing updates.">d_inUpdate</a>;</div> <div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment"></span></div> <div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"> //! The set of named expressions to evaluate on a GET_ASSIGNMENT request</span></div> <div class="line"><a name="l00206"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ae0a477cb44ee4e9285008f0653b2f366"> 206</a></span> <span class="comment"></span> std::vector< std::pair<Expr, Expr> > <a class="code" href="classCVC3_1_1TheoryCore.html#ae0a477cb44ee4e9285008f0653b2f366" title="The set of named expressions to evaluate on a GET_ASSIGNMENT request.">d_assignment</a>;</div> <div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div> <div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="comment">/***************************************************************************/</span><span class="comment"></span></div> <div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment"> /*!</span></div> <div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment"> *\class CoreSatAPI</span></div> <div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment"> *\brief Interface class for callbacks to SAT from Core</span></div> <div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment"> *</span></div> <div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment"> * Author: Clark Barrett</span></div> <div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"> *</span></div> <div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment"> * Created: Mon Dec 5 18:42:15 2005</span></div> <div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment"> */</span></div> <div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="comment">/***************************************************************************/</span></div> <div class="line"><a name="l00219"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html"> 219</a></span>  <span class="keyword">class </span><a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html" title="Interface class for callbacks to SAT from Core.">CoreSatAPI</a> {</div> <div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keyword">public</span>:</div> <div class="line"><a name="l00221"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html#a84c825e0d6fa2c3ec3f36389b0a48bf5"> 221</a></span>  <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html#a84c825e0d6fa2c3ec3f36389b0a48bf5">CoreSatAPI</a>() {}</div> <div class="line"><a name="l00222"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html#a83e947dd482c742308cc343e7c95ebce"> 222</a></span>  <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html#a83e947dd482c742308cc343e7c95ebce">~CoreSatAPI</a>() {}<span class="comment"></span></div> <div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="comment"> //! Add a new lemma derived by theory core</span></div> <div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html#a01d21bdfe363edfaf6704bd1263fa1fe" title="Add a new lemma derived by theory core.">addLemma</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm, <span class="keywordtype">int</span> priority = 0,</div> <div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordtype">bool</span> atBottomScope = <span class="keyword">false</span>) = 0;<span class="comment"></span></div> <div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment"> //! Add an assumption to the set of assumptions in the current context</span></div> <div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment"></span><span class="comment"> /*! Assumptions have the form e |- e */</span></div> <div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html#ac56278526add1e4e1a92964a5db037bf" title="Add an assumption to the set of assumptions in the current context.">addAssumption</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& assump) = 0;<span class="comment"></span></div> <div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment"> //! Suggest a splitter to the Sat engine</span></div> <div class="line"><a name="l00230"></a><span class="lineno"> 230</span> <span class="comment"></span><span class="comment"> /*! \param e is a literal.</span></div> <div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"> * \param priority is between -10 and 10. A priority above 0 indicates</span></div> <div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment"> * that the splitter should be favored. A priority below 0 indicates that</span></div> <div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment"> * the splitter should be delayed.</span></div> <div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="comment"> */</span></div> <div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html#a241159d6c0886d7e3584c8335d87e38e" title="Suggest a splitter to the Sat engine.">addSplitter</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e, <span class="keywordtype">int</span> priority) = 0;<span class="comment"></span></div> <div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="comment"> //! Check the validity of e in the current context</span></div> <div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html#a80d37ba26c6d5091f2ecf3a3b4d2a484" title="Check the validity of e in the current context.">check</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e) = 0;</div> <div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  };</div> <div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00240"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ae1618a8812ad74a6349ad585bb677354"> 240</a></span>  <a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html" title="Interface class for callbacks to SAT from Core.">CoreSatAPI</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#ae1618a8812ad74a6349ad585bb677354">d_coreSatAPI</a>;</div> <div class="line"><a name="l00241"></a><span class="lineno"> 241</span> </div> <div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="keyword">private</span>:<span class="comment"></span></div> <div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="comment"> //! Private method to get a new theorem producer.</span></div> <div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment"></span><span class="comment"> /*! This method is used ONLY by the TheoryCore constructor. The</span></div> <div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="comment"> only reason to have this method is to separate the trusted part of</span></div> <div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment"> the constructor into a separate .cpp file (Alternative is to make</span></div> <div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="comment"> the entire constructer trusted, which is not very safe).</span></div> <div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="comment"> Method is implemented in core_theorem_producer.cpp */</span></div> <div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <a class="code" href="classCVC3_1_1CoreProofRules.html">CoreProofRules</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#a5b386f16781365b7421e884baaebae41" title="Private method to get a new theorem producer.">createProofRules</a>(<a class="code" href="classCVC3_1_1TheoremManager.html">TheoremManager</a>* tm);</div> <div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div> <div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="comment">// Helper functions</span></div> <div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="comment"></span></div> <div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="comment"> //! Effort level for processFactQueue</span></div> <div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="comment"></span><span class="comment"> /*! LOW means just process facts, don't call theory checkSat methods</span></div> <div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="comment"> NORMAL means call theory checkSat methods without full effort</span></div> <div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="comment"> FULL means call theory checkSat methods with full effort</span></div> <div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="comment"> */</span></div> <div class="line"><a name="l00258"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6ce"> 258</a></span>  <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div> <div class="line"><a name="l00259"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6ceaa35ba8e293104fb62e9163b4c036386b"> 259</a></span>  <a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6ceaa35ba8e293104fb62e9163b4c036386b">LOW</a>,</div> <div class="line"><a name="l00260"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6cea1c0ce47707a6729f337134fc3239ef07"> 260</a></span>  <a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6cea1c0ce47707a6729f337134fc3239ef07">NORMAL</a>,</div> <div class="line"><a name="l00261"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6ceaf927a488bd3f95079d191debe7e93a06"> 261</a></span>  <a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6ceaf927a488bd3f95079d191debe7e93a06">FULL</a></div> <div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  } <a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6ce" title="Effort level for processFactQueue.">EffortLevel</a>;</div> <div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="comment"></span></div> <div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="comment"> //! A helper function for addFact()</span></div> <div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="comment"></span><span class="comment"> /*! Returns true if lemmas were added to search engine, false otherwise */</span></div> <div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a36cd038dd5644d4a2bd6ea56cec2212e" title="A helper function for addFact()">processFactQueue</a>(<a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6ce" title="Effort level for processFactQueue.">EffortLevel</a> effort = <a class="code" href="classCVC3_1_1TheoryCore.html#a9563215d97859a27f661c1517614f6cea1c0ce47707a6729f337134fc3239ef07">NORMAL</a>);<span class="comment"></span></div> <div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="comment"> //! Process a notify list triggered as a result of new theorem e</span></div> <div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a728d9c7d448cc32f58292677e7b5aae2" title="Process a notify list triggered as a result of new theorem e.">processNotify</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e, <a class="code" href="classCVC3_1_1NotifyList.html">NotifyList</a>* L);<span class="comment"></span></div> <div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="comment"> //! Transitive composition of other rewrites with the above</span></div> <div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#ad0643e3175b0c8fd270b044b02999de9" title="Transitive composition of other rewrites with the above.">rewriteCore</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e);<span class="comment"></span></div> <div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="comment"> //! Helper for registerAtom</span></div> <div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#af29a30b97ecc26f0c4b3136531487caf" title="Helper for registerAtom.">setupSubFormulas</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& s, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);<span class="comment"></span></div> <div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="comment"> //! Process updates recorded by calls to update()</span></div> <div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a846416a29d02c4f2615f4de65e042cac" title="Process updates recorded by calls to update()">processUpdates</a>();<span class="comment"></span></div> <div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="comment"> /*! @brief The assumptions for e must be in H or phi. "Core" added</span></div> <div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="comment"> * to avoid conflict with theory interface function name</span></div> <div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="comment"> */</span></div> <div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a3a897e60d6dd1dfd382870054e5ad777" title="The assumptions for e must be in H or phi. "Core" added to avoid conflict with theory interface funct...">assertFactCore</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e);<span class="comment"></span></div> <div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="comment"> //! Process a newly derived formula</span></div> <div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a1f662e7f045032350f2a3bccc63a71d6" title="Process a newly derived formula.">assertFormula</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e);<span class="comment"></span></div> <div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="comment"> //! Check that lhs and rhs of thm have same base type</span></div> <div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="comment"></span> <a class="code" href="debug_8h.html#a600cb2d68efe7cc413cccbb5714c7016">IF_DEBUG</a>(<span class="keywordtype">void</span> checkRewriteType(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);)<span class="comment"></span></div> <div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="comment"> /*! @brief Returns phi |= e = rewriteCore(e). "Core" added to avoid</span></div> <div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="comment"> conflict with theory interface function name */</span></div> <div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#ad0643e3175b0c8fd270b044b02999de9" title="Transitive composition of other rewrites with the above.">rewriteCore</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="comment"></span></div> <div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="comment"> //! Set the find pointer of an atomic formula and notify SearchEngine</span></div> <div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment"></span><span class="comment"> /*! \param thm is a Theorem(phi) or Theorem(NOT phi), where phi is</span></div> <div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="comment"> * an atomic formula to get a find pointer to TRUE or FALSE,</span></div> <div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="comment"> * respectively.</span></div> <div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="comment"> */</span></div> <div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a63e4ccd049c6191c675fe8ad4bf1979f" title="Set the find pointer of an atomic formula and notify SearchEngine.">setFindLiteral</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);<span class="comment"></span></div> <div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="comment"> //! Core rewrites for literals (NOT and EQ)</span></div> <div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a8ba8c93d75329369b8d91f37a463ef09" title="Core rewrites for literals (NOT and EQ)">rewriteLitCore</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);<span class="comment"></span></div> <div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="comment"> //! Enqueue a fact to be sent to the SearchEngine</span></div> <div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="comment"></span> <span class="comment">// void enqueueSE(const Theorem& thm);//yeting</span><span class="comment"></span></div> <div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="comment"> //! Fetch the concrete assignment to the variable during model generation</span></div> <div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#ab360cca9e30af4434130557f6b45f627" title="Enqueue a fact to be sent to the SearchEngine.">getModelValue</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="comment"></span></div> <div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="comment"> //! An auxiliary recursive function to process COND expressions into ITE</span></div> <div class="line"><a name="l00301"></a><span class="lineno"> 301</span> <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_1TheoryCore.html#aabb093a909384e36c8780e433453358a" title="An auxiliary recursive function to process COND expressions into ITE.">processCond</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e, <span class="keywordtype">int</span> i);</div> <div class="line"><a name="l00302"></a><span class="lineno"> 302</span> <span class="comment"></span></div> <div class="line"><a name="l00303"></a><span class="lineno"> 303</span> <span class="comment"> //! Return true if no special parsing is required for this kind</span></div> <div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ac79ad21d2aeee1d50ce53ab7f3a76eba" title="Return true if no special parsing is required for this kind.">isBasicKind</a>(<span class="keywordtype">int</span> kind);</div> <div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="comment"></span></div> <div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="comment"> //! Helper check functions for solve</span></div> <div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a0b0a73410836f7b3a0808a67647ba448" title="Helper check functions for solve.">checkEquation</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);<span class="comment"></span></div> <div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="comment"> //! Helper check functions for solve</span></div> <div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a164ec255c41d187cc87f6996a8a5389a" title="Helper check functions for solve.">checkSolved</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);</div> <div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div> <div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="comment">// Time limit exhausted</span></div> <div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a226706d3c1ddda709f4b09ec2a4b55bb">timeLimitReached</a>();</div> <div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="comment"></span></div> <div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="comment"> //! Print an expression in the shared subset of SMT-LIB v1/v2</span></div> <div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="comment"> //! Should only be called if os.lang() is SMTLIB_LANG or SMTLIB_V2_LANG.</span></div> <div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>& <a class="code" href="classCVC3_1_1TheoryCore.html#a2856680de1938c077d7b25c865992de6">printSmtLibShared</a>(<a class="code" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>& os, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00317"></a><span class="lineno"> 317</span> </div> <div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div> <div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="keyword">public</span>:<span class="comment"></span></div> <div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="comment"> //! Constructor</span></div> <div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1TheoryCore.html#acd5196a42683a0f357560588d4e81817" title="Constructor.">TheoryCore</a>(<a class="code" href="classCVC3_1_1ContextManager.html" title="Manager for multiple contexts. Also holds current context.">ContextManager</a>* cm, <a class="code" href="classCVC3_1_1ExprManager.html">ExprManager</a>* em,</div> <div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <a class="code" href="classCVC3_1_1TheoremManager.html">TheoremManager</a>* tm, <a class="code" href="classCVC3_1_1Translator.html">Translator</a>* tr,</div> <div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keyword">const</span> <a class="code" href="classCVC3_1_1CLFlags.html">CLFlags</a>& flags,</div> <div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <a class="code" href="classCVC3_1_1Statistics.html">Statistics</a>& statistics);<span class="comment"></span></div> <div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="comment"> //! Destructor</span></div> <div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1TheoryCore.html#ad91cca07e2f1e8cd9614a6e88d6dd232" title="Destructor.">~TheoryCore</a>();</div> <div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="comment"></span></div> <div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="comment"> //! Request a unit of resource</span></div> <div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="comment"></span><span class="comment"> /*! It will be subtracted from the resource limit.</span></div> <div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="comment"> *</span></div> <div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="comment"> * \return true if resource unit is granted, false if no more</span></div> <div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="comment"> * resources available.</span></div> <div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="comment"> */</span></div> <div class="line"><a name="l00334"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a1558a9399314632d76c3d086f680d3b7"> 334</a></span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a1558a9399314632d76c3d086f680d3b7" title="Request a unit of resource.">getResource</a>() {</div> <div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <a class="code" href="classCVC3_1_1TheoryCore.html#a7f119c4fa5313b72feca7dd441e045f0">getStatistics</a>().<a class="code" href="classCVC3_1_1Statistics.html#a9b2503d33c8c41b768f40b1a43c2d3bf">counter</a>(<span class="stringliteral">"resource"</span>)++;</div> <div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordflow">if</span> (<a class="code" href="classCVC3_1_1TheoryCore.html#a7040ce9b2fa8d567df0d84a5ceee84bf" title="Resource limit (0==unlimited, 1==no more resources, >=2 - available).">d_resourceLimit</a> > 1) <a class="code" href="classCVC3_1_1TheoryCore.html#a7040ce9b2fa8d567df0d84a5ceee84bf" title="Resource limit (0==unlimited, 1==no more resources, >=2 - available).">d_resourceLimit</a>--;</div> <div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  }</div> <div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="comment"></span></div> <div class="line"><a name="l00339"></a><span class="lineno"> 339</span> <span class="comment"> //! Register a SatAPI for TheoryCore</span></div> <div class="line"><a name="l00340"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#afb6629080bceb44023f1bb3a44f9136f"> 340</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#afb6629080bceb44023f1bb3a44f9136f" title="Register a SatAPI for TheoryCore.">registerCoreSatAPI</a>(<a class="code" href="classCVC3_1_1TheoryCore_1_1CoreSatAPI.html" title="Interface class for callbacks to SAT from Core.">CoreSatAPI</a>* coreSatAPI) { <a class="code" href="classCVC3_1_1TheoryCore.html#ae1618a8812ad74a6349ad585bb677354">d_coreSatAPI</a> = coreSatAPI; }</div> <div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <span class="comment"></span></div> <div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="comment"> //! Register a callback for every equality</span></div> <div class="line"><a name="l00343"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ac317be8457175b3cf458bff7f4cb6e27"> 343</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ac317be8457175b3cf458bff7f4cb6e27" title="Register a callback for every equality.">addNotifyEq</a>(<a class="code" href="classCVC3_1_1Theory.html" title="Base class for theories.">Theory</a>* t, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e) { <a class="code" href="classCVC3_1_1TheoryCore.html#a96ce7c2fe3b14e3b8b4661fbe19db290" title="Notify list that gets processed on every equality.">d_notifyEq</a>.<a class="code" href="classCVC3_1_1NotifyList.html#a48b4004ce9b5f70b698d9e45bc39ab9b">add</a>(t, e); }</div> <div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="comment"></span></div> <div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="comment"> //! Call theory-specific preprocess routines</span></div> <div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a052424ef27a5042f6321db9a8d41bf82" title="Call theory-specific preprocess routines.">callTheoryPreprocess</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00347"></a><span class="lineno"> 347</span> </div> <div class="line"><a name="l00348"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a9377f423f4fd59fdac396794363733a6"> 348</a></span>  <a class="code" href="classCVC3_1_1ContextManager.html" title="Manager for multiple contexts. Also holds current context.">ContextManager</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#a9377f423f4fd59fdac396794363733a6">getCM</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#aa803e0e65fec3e389c9c4d12d8d634a3" title="Context manager.">d_cm</a>; }</div> <div class="line"><a name="l00349"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#af3077cff0601b8ae28e420ef5ce2ea37"> 349</a></span>  <a class="code" href="classCVC3_1_1TheoremManager.html">TheoremManager</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#af3077cff0601b8ae28e420ef5ce2ea37">getTM</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a8b9c81920208ce15dac9eb3bb97b4a2b" title="Theorem manager.">d_tm</a>; }</div> <div class="line"><a name="l00350"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a46b2792a5c24f95ccfc3fbfc0456b09f"> 350</a></span>  <span class="keyword">const</span> <a class="code" href="classCVC3_1_1CLFlags.html">CLFlags</a>& <a class="code" href="classCVC3_1_1TheoryCore.html#a46b2792a5c24f95ccfc3fbfc0456b09f">getFlags</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#adf5b754e1e4732cb0e1946cf0f274885" title="Reference to command line flags.">d_flags</a>; }</div> <div class="line"><a name="l00351"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a7f119c4fa5313b72feca7dd441e045f0"> 351</a></span>  <a class="code" href="classCVC3_1_1Statistics.html">Statistics</a>& <a class="code" href="classCVC3_1_1TheoryCore.html#a7f119c4fa5313b72feca7dd441e045f0">getStatistics</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a053311bcc9681a402ab440bf90447632" title="Reference to statistics.">d_statistics</a>; }</div> <div class="line"><a name="l00352"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#acc963fd43994f06d3647394b731e835c"> 352</a></span>  <a class="code" href="classCVC3_1_1ExprTransform.html">ExprTransform</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#acc963fd43994f06d3647394b731e835c">getExprTrans</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a03b7c799d7ee3b3a4a10f14b2faacfbb" title="Expr Transformer.">d_exprTrans</a>; }</div> <div class="line"><a name="l00353"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a261880d3c6b9b852de5e1d146b9e1731"> 353</a></span>  <a class="code" href="classCVC3_1_1CoreProofRules.html">CoreProofRules</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#a261880d3c6b9b852de5e1d146b9e1731">getCoreRules</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#af28b98269dc8ef40a6fa97d58f414173" title="Core proof rules.">d_rules</a>; }</div> <div class="line"><a name="l00354"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#af21dce6ee9ed152e132a4e77f10323e7"> 354</a></span>  <a class="code" href="classCVC3_1_1Translator.html">Translator</a>* <a class="code" href="classCVC3_1_1TheoryCore.html#af21dce6ee9ed152e132a4e77f10323e7">getTranslator</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#abe21ce53a179720cb3e94293fd6d771f" title="Translator.">d_translator</a>; }</div> <div class="line"><a name="l00355"></a><span class="lineno"> 355</span> <span class="comment"></span></div> <div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="comment"> //! Access to tcc cache (needed by theory_bitvector)</span></div> <div class="line"><a name="l00357"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a1a2ffa9c7365e9f0af36fbd83e2421ed"> 357</a></span> <span class="comment"></span> <a class="code" href="classCVC3_1_1ExprMap.html">ExprMap<Expr></a>& <a class="code" href="classCVC3_1_1TheoryCore.html#a1a2ffa9c7365e9f0af36fbd83e2421ed" title="Access to tcc cache (needed by theory_bitvector)">tccCache</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ab1f589f325461e2bb39f0035c2dfa4bb" title="Cache for tcc's.">d_tccCache</a>; }</div> <div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="comment"></span></div> <div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="comment"> //! Get list of terms</span></div> <div class="line"><a name="l00360"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a605f2eee0d52005dba7450e14d36c002"> 360</a></span> <span class="comment"></span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1CDList.html">CDList<Expr></a>& <a class="code" href="classCVC3_1_1TheoryCore.html#a605f2eee0d52005dba7450e14d36c002" title="Get list of terms.">getTerms</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a9ebcf505b2577cd3a3a29d70a4fd50ae" title="List of all active terms in the system (for quantifier instantiation)">d_terms</a>; }</div> <div class="line"><a name="l00361"></a><span class="lineno"> 361</span> </div> <div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordtype">int</span> <a class="code" href="classCVC3_1_1TheoryCore.html#aac8dbad8636607fa6424b0926c6c1c59">getCurQuantLevel</a>();</div> <div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="comment"></span></div> <div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="comment"> //! Set the flag for the preprocessor</span></div> <div class="line"><a name="l00365"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a2e0118c395ece4dfcfae018628e3b08b"> 365</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a2e0118c395ece4dfcfae018628e3b08b" title="Set the flag for the preprocessor.">setInPP</a>() { <a class="code" href="classCVC3_1_1TheoryCore.html#aac5050e644f0c475d104f4dd3a8ddf32">d_inPP</a> = <span class="keyword">true</span>; }</div> <div class="line"><a name="l00366"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#aeeb68f961407ee80a9762a95e6998cf2"> 366</a></span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#aeeb68f961407ee80a9762a95e6998cf2">clearInPP</a>() { <a class="code" href="classCVC3_1_1TheoryCore.html#aac5050e644f0c475d104f4dd3a8ddf32">d_inPP</a> = <span class="keyword">false</span>; }</div> <div class="line"><a name="l00367"></a><span class="lineno"> 367</span> <span class="comment"></span></div> <div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="comment"> //! Get theorem which was responsible for introducing this term</span></div> <div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#ad072fbeed392b4b7ecb651609acfd9bd" title="Get theorem which was responsible for introducing this term.">getTheoremForTerm</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);<span class="comment"></span></div> <div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="comment"> //! Get quantification level at which this term was introduced</span></div> <div class="line"><a name="l00371"></a><span class="lineno"> 371</span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ae4e1f7bd995e6ef2bff499869d95c177" title="Get quantification level at which this term was introduced.">getQuantLevelForTerm</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);<span class="comment"></span></div> <div class="line"><a name="l00372"></a><span class="lineno"> 372</span> <span class="comment"> //! Get list of predicates</span></div> <div class="line"><a name="l00373"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a2c0a37ab972568b851d69292959eb915"> 373</a></span> <span class="comment"></span> <span class="keyword">const</span> <a class="code" href="classCVC3_1_1CDList.html">CDList<Expr></a>& <a class="code" href="classCVC3_1_1TheoryCore.html#a2c0a37ab972568b851d69292959eb915" title="Get list of predicates.">getPredicates</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a27f2f350452da6f7adca44c342a1f29d" title="List of all active non-equality atomic formulas in the system (for quantifier instantiation)">d_predicates</a>; }<span class="comment"></span></div> <div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="comment"> //! Whether updates are being processed</span></div> <div class="line"><a name="l00375"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ac3c2ee71df31487191401722ea1d235a"> 375</a></span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ac3c2ee71df31487191401722ea1d235a" title="Whether updates are being processed.">inUpdate</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a966030ae5b96557c9ea5de874a9526ef" title="Whether we are in the middle of doing updates.">d_inUpdate</a> > 0; }<span class="comment"></span></div> <div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="comment"> //! Whether its OK to add new facts (for use in rewrites)</span></div> <div class="line"><a name="l00377"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a753057879f8565c504f162c13d0185a2"> 377</a></span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a753057879f8565c504f162c13d0185a2" title="Whether its OK to add new facts (for use in rewrites)">okToEnqueue</a>()</div> <div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#abf9ffc3f83f262e0acdece359d2d00bd">d_inAddFact</a> || <a class="code" href="classCVC3_1_1TheoryCore.html#adc61197a61a4a024cdd614a281f8cf0c">d_inCheckSATCore</a> || <a class="code" href="classCVC3_1_1TheoryCore.html#a608590056910229da1a794d0dd5930c4">d_inRegisterAtom</a> || <a class="code" href="classCVC3_1_1TheoryCore.html#aac5050e644f0c475d104f4dd3a8ddf32">d_inPP</a>; }</div> <div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div> <div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="comment">// Implementation of Theory API</span><span class="comment"></span></div> <div class="line"><a name="l00381"></a><span class="lineno"> 381</span> <span class="comment"> /*! Variables of uninterpreted types may be sent here, and they</span></div> <div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="comment"> should be ignored. */</span></div> <div class="line"><a name="l00383"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#aaf10cf53aae11fb855883f87c29e02e4"> 383</a></span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#aaf10cf53aae11fb855883f87c29e02e4">addSharedTerm</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e) { }</div> <div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a36d46f0d53c3513ea56ee2eba60cd75a" title="Assert a new fact to the decision procedure.">assertFact</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e);</div> <div class="line"><a name="l00385"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a66cdb1662f1608dc95664b41ff90f1e4"> 385</a></span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a66cdb1662f1608dc95664b41ff90f1e4" title="Check for satisfiability in the theory.">checkSat</a>(<span class="keywordtype">bool</span> fullEffort) { }</div> <div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a54bce613a6b49a9a8a1a888ec36346d8" title="Theory-specific rewrite rules.">rewrite</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);<span class="comment"></span></div> <div class="line"><a name="l00387"></a><span class="lineno"> 387</span> <span class="comment"> /*! Only Boolean constants (TRUE and FALSE) and variables of</span></div> <div class="line"><a name="l00388"></a><span class="lineno"> 388</span> <span class="comment"> uninterpreted types should appear here (they come from records and</span></div> <div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="comment"> tuples). Just ignore them. */</span></div> <div class="line"><a name="l00390"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#af4468d5d65b78ac9dc4c89c71c7391f6"> 390</a></span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#af4468d5d65b78ac9dc4c89c71c7391f6">setup</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e) { }</div> <div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a435e2305420c1ed5b2ff1e4758a50dc5">update</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& d);</div> <div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a2128e2419413e5c0455ca3011fa2b2db">solve</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e);</div> <div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div> <div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a3aefb5e53e848ad18a5846d5be42d3d2" title="Recursive simplification step.">simplifyOp</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ada717b1e852018d77f154682a01f6731" title="Check that e is a valid Type expr.">checkType</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <a class="code" href="namespaceCVC3.html#af969e724f8b7016909f5804e8cea3e54" title="Enum for cardinality of types.">Cardinality</a> <a class="code" href="classCVC3_1_1TheoryCore.html#acf724e4b497f7ca829eaaca9007fbae6" title="Compute information related to finiteness of types.">finiteTypeInfo</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e, <a class="code" href="classCVC3_1_1Unsigned.html">Unsigned</a>& n,</div> <div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="keywordtype">bool</span> enumerate, <span class="keywordtype">bool</span> computeSize);</div> <div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a4968c9a9514669bbd9c2e6774f17b743" title="Compute and store the type of e.">computeType</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a624d8ed203fdd666ae97ec10f9859d26" title="Compute the base type of the top-level operator of an arbitrary type.">computeBaseType</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>& t);</div> <div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1TheoryCore.html#acd533616106f9987039cfbd5988d50d5" title="Compute and cache the TCC of e.">computeTCC</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1TheoryCore.html#ab12924c15cb53753ba91d1766282a71e" title="Theory specific computation of the subtyping predicate for type t applied to the expression e...">computeTypePred</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>& t,<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a0cf4d5c76db5be87a848d694adff4dfe" title="Theory-specific parsing implemented by the DP.">parseExprOp</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  <a class="code" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>& <a class="code" href="classCVC3_1_1TheoryCore.html#ab334f07590ad297ad6daa3383c61de5f" title="Theory-specific pretty-printing.">print</a>(<a class="code" href="classCVC3_1_1ExprStream.html" title="Pretty-printing output stream for Expr. READ THE DOCS BEFORE USING!">ExprStream</a>& os, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00404"></a><span class="lineno"> 404</span> <span class="comment"></span></div> <div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment"> //! Calls for other theories to add facts to refine a coutnerexample.</span></div> <div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a6822c229c357d1afcda22bc073d45142" title="Calls for other theories to add facts to refine a coutnerexample.">refineCounterExample</a>();</div> <div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a6822c229c357d1afcda22bc073d45142" title="Calls for other theories to add facts to refine a coutnerexample.">refineCounterExample</a>(<a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);</div> <div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a6edb2212446e43165666dcb7f319985a" title="Assign concrete values to basic-type variables in v.">computeModelBasic</a>(<span class="keyword">const</span> std::vector<Expr>& v);</div> <div class="line"><a name="l00409"></a><span class="lineno"> 409</span> </div> <div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <span class="comment">// User-level API methods</span></div> <div class="line"><a name="l00411"></a><span class="lineno"> 411</span> <span class="comment"></span></div> <div class="line"><a name="l00412"></a><span class="lineno"> 412</span> <span class="comment"> /*! @brief Add a new assertion to the core from the user or a SAT</span></div> <div class="line"><a name="l00413"></a><span class="lineno"> 413</span> <span class="comment"> solver. Do NOT use it in a decision procedure; use</span></div> <div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="comment"> enqueueFact(). */</span><span class="comment"></span></div> <div class="line"><a name="l00415"></a><span class="lineno"> 415</span> <span class="comment"> /*! \sa enqueueFact */</span></div> <div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#aecef2465eb761f7f112ddce77f93d081" title="Add a new assertion to the core from the user or a SAT solver. Do NOT use it in a decision procedure;...">addFact</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e);</div> <div class="line"><a name="l00417"></a><span class="lineno"> 417</span> <span class="comment"></span></div> <div class="line"><a name="l00418"></a><span class="lineno"> 418</span> <span class="comment"> //! Top-level simplifier</span></div> <div class="line"><a name="l00419"></a><span class="lineno"> 419</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a8a66da5ca687474a3a725448a3be8c41" title="Top-level simplifier.">simplify</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00420"></a><span class="lineno"> 420</span> <span class="comment"></span></div> <div class="line"><a name="l00421"></a><span class="lineno"> 421</span> <span class="comment"> //! Check if the current context is inconsistent</span></div> <div class="line"><a name="l00422"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a289340e4457a79f1101f37c3a07a49ed"> 422</a></span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a289340e4457a79f1101f37c3a07a49ed" title="Check if the current context is inconsistent.">inconsistent</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ac44993c5095bc2fda1f6b931060223bf" title="Inconsistent flag.">d_inconsistent</a> ; }<span class="comment"></span></div> <div class="line"><a name="l00423"></a><span class="lineno"> 423</span> <span class="comment"> //! Get the proof of inconsistency for the current context</span></div> <div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <span class="comment"></span><span class="comment"> /*! \return Theorem(FALSE) */</span></div> <div class="line"><a name="l00425"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a5c7d2aa7db5db78829b8558d28560ddf"> 425</a></span>  <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a5c7d2aa7db5db78829b8558d28560ddf" title="Get the proof of inconsistency for the current context.">inconsistentThm</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a1560124d30d8cda4a6cedca4c919f8aa" title="Proof of inconsistent.">d_incThm</a>; }<span class="comment"></span></div> <div class="line"><a name="l00426"></a><span class="lineno"> 426</span> <span class="comment"> /*! @brief To be called by SearchEngine when it believes the context</span></div> <div class="line"><a name="l00427"></a><span class="lineno"> 427</span> <span class="comment"> * is satisfiable.</span></div> <div class="line"><a name="l00428"></a><span class="lineno"> 428</span> <span class="comment"> *</span></div> <div class="line"><a name="l00429"></a><span class="lineno"> 429</span> <span class="comment"> * \return true if definitely consistent or inconsistent and false if</span></div> <div class="line"><a name="l00430"></a><span class="lineno"> 430</span> <span class="comment"> * consistency is unknown.</span></div> <div class="line"><a name="l00431"></a><span class="lineno"> 431</span> <span class="comment"> */</span></div> <div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ae45217f71500d48ef1c4c5118011f254" title="To be called by SearchEngine when it believes the context is satisfiable.">checkSATCore</a>();</div> <div class="line"><a name="l00433"></a><span class="lineno"> 433</span> <span class="comment"></span></div> <div class="line"><a name="l00434"></a><span class="lineno"> 434</span> <span class="comment"> //! Check if the current decision branch is marked as incomplete</span></div> <div class="line"><a name="l00435"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a36571dc56183d89cd36def27939430b0"> 435</a></span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a36571dc56183d89cd36def27939430b0" title="Check if the current decision branch is marked as incomplete.">incomplete</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ae81dae9c186efe8ead153d14e29985bf" title="The set of reasons for incompleteness (empty when we are complete)">d_incomplete</a>.<a class="code" href="classCVC3_1_1CDMap.html#a2cf256af978e1a3bf82407a13ba85c13">size</a>() > 0 ; }<span class="comment"></span></div> <div class="line"><a name="l00436"></a><span class="lineno"> 436</span> <span class="comment"> //! Check if the branch is incomplete, and return the reasons (strings)</span></div> <div class="line"><a name="l00437"></a><span class="lineno"> 437</span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a36571dc56183d89cd36def27939430b0" title="Check if the current decision branch is marked as incomplete.">incomplete</a>(std::vector<std::string>& reasons);</div> <div class="line"><a name="l00438"></a><span class="lineno"> 438</span> <span class="comment"></span></div> <div class="line"><a name="l00439"></a><span class="lineno"> 439</span> <span class="comment"> //! Register an atomic formula of interest.</span></div> <div class="line"><a name="l00440"></a><span class="lineno"> 440</span> <span class="comment"></span><span class="comment"> /*! If e or its negation is later deduced, we will add the implied</span></div> <div class="line"><a name="l00441"></a><span class="lineno"> 441</span> <span class="comment"> literal to d_impliedLiterals */</span></div> <div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ade1177fbf32e95b9433eb608c82857d7" 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>& e, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);</div> <div class="line"><a name="l00443"></a><span class="lineno"> 443</span> <span class="comment"></span></div> <div class="line"><a name="l00444"></a><span class="lineno"> 444</span> <span class="comment"> //! Return the next implied literal (NULL Theorem if none)</span></div> <div class="line"><a name="l00445"></a><span class="lineno"> 445</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a464a49882cbd94a3c48428ed60d3a365" title="Return the next implied literal (NULL Theorem if none)">getImpliedLiteral</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00446"></a><span class="lineno"> 446</span> <span class="comment"></span></div> <div class="line"><a name="l00447"></a><span class="lineno"> 447</span> <span class="comment"> //! Return total number of implied literals</span></div> <div class="line"><a name="l00448"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a2f6f4b38fe4582c8f979f35842284b4c"> 448</a></span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a2f6f4b38fe4582c8f979f35842284b4c" title="Return total number of implied literals.">numImpliedLiterals</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a7b531fbcb166cac53d82f74c812d42f6" title="List of implied literals, based on registered atomic formulas of interest.">d_impliedLiterals</a>.<a class="code" href="classCVC3_1_1CDList.html#adf92d0f391d73e7ac70da57db135af27">size</a>(); }</div> <div class="line"><a name="l00449"></a><span class="lineno"> 449</span> <span class="comment"></span></div> <div class="line"><a name="l00450"></a><span class="lineno"> 450</span> <span class="comment"> //! Return an implied literal by index</span></div> <div class="line"><a name="l00451"></a><span class="lineno"> 451</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#adb97ff20d5c0d9a93d322b347b306f69" title="Return an implied literal by index.">getImpliedLiteralByIndex</a>(<span class="keywordtype">unsigned</span> index);</div> <div class="line"><a name="l00452"></a><span class="lineno"> 452</span> <span class="comment"></span></div> <div class="line"><a name="l00453"></a><span class="lineno"> 453</span> <span class="comment"> //! Parse the generic expression.</span></div> <div class="line"><a name="l00454"></a><span class="lineno"> 454</span> <span class="comment"></span><span class="comment"> /*! This method should be used in parseExprOp() for recursive calls</span></div> <div class="line"><a name="l00455"></a><span class="lineno"> 455</span> <span class="comment"> * to subexpressions, and is the method called by the command</span></div> <div class="line"><a name="l00456"></a><span class="lineno"> 456</span> <span class="comment"> * processor.</span></div> <div class="line"><a name="l00457"></a><span class="lineno"> 457</span> <span class="comment"> */</span></div> <div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a6f367b1f413d7f1275e72381724ca148" title="Parse the generic expression.">parseExpr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);<span class="comment"></span></div> <div class="line"><a name="l00459"></a><span class="lineno"> 459</span> <span class="comment"> //! Top-level call to parseExpr, clears the bound variable stack.</span></div> <div class="line"><a name="l00460"></a><span class="lineno"> 460</span> <span class="comment"></span><span class="comment"> /*! Use it in VCL instead of parseExpr(). */</span></div> <div class="line"><a name="l00461"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ac173889ba81d910884901b3fa32e600c"> 461</a></span>  <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1TheoryCore.html#ac173889ba81d910884901b3fa32e600c" title="Top-level call to parseExpr, clears the bound variable stack.">parseExprTop</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e) {</div> <div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  <a class="code" href="classCVC3_1_1TheoryCore.html#a72592744e8f94ed7c832ad895791a72a" title="Bound variable stack: a vector of pairs <name, var>">d_boundVarStack</a>.clear();</div> <div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  <a class="code" href="classCVC3_1_1TheoryCore.html#af8402b991e938282c87e01120dfd6b99" title="Current cache being used for parser.">d_parseCache</a> = &<a class="code" href="classCVC3_1_1TheoryCore.html#a22825b89097f0baa8348f268317db563" title="Top-level cache for parser.">d_parseCacheTop</a>;</div> <div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a6f367b1f413d7f1275e72381724ca148" title="Parse the generic expression.">parseExpr</a>(e);</div> <div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  }</div> <div class="line"><a name="l00466"></a><span class="lineno"> 466</span> <span class="comment"></span></div> <div class="line"><a name="l00467"></a><span class="lineno"> 467</span> <span class="comment"> //! Assign t a concrete value val. Used in model generation.</span></div> <div class="line"><a name="l00468"></a><span class="lineno"> 468</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a584ebdaddb7e1a51b1740277a0b7098d" title="Assign t a concrete value val. Used in model generation.">assignValue</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& t, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& val);<span class="comment"></span></div> <div class="line"><a name="l00469"></a><span class="lineno"> 469</span> <span class="comment"> //! Record a derived assignment to a variable (LHS).</span></div> <div class="line"><a name="l00470"></a><span class="lineno"> 470</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a584ebdaddb7e1a51b1740277a0b7098d" title="Assign t a concrete value val. Used in model generation.">assignValue</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);</div> <div class="line"><a name="l00471"></a><span class="lineno"> 471</span> <span class="comment"></span></div> <div class="line"><a name="l00472"></a><span class="lineno"> 472</span> <span class="comment"> //! Adds expression to var database</span></div> <div class="line"><a name="l00473"></a><span class="lineno"> 473</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ab810c8fdffa082334e4aa840d1249a39" title="Adds expression to var database.">addToVarDB</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e);<span class="comment"></span></div> <div class="line"><a name="l00474"></a><span class="lineno"> 474</span> <span class="comment"> //! Split compound vars into basic type variables</span></div> <div class="line"><a name="l00475"></a><span class="lineno"> 475</span> <span class="comment"></span><span class="comment"> /*! The results are saved in d_basicModelVars and</span></div> <div class="line"><a name="l00476"></a><span class="lineno"> 476</span> <span class="comment"> * d_simplifiedModelVars. Also, add new basic vars as shared terms</span></div> <div class="line"><a name="l00477"></a><span class="lineno"> 477</span> <span class="comment"> * whenever their type belongs to a different theory than the term</span></div> <div class="line"><a name="l00478"></a><span class="lineno"> 478</span> <span class="comment"> * itself.</span></div> <div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="comment"> */</span></div> <div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a21441c74132e9fcfb53d2b33bd8c622a" title="Split compound vars into basic type variables.">collectBasicVars</a>();<span class="comment"></span></div> <div class="line"><a name="l00481"></a><span class="lineno"> 481</span> <span class="comment"> //! Calls theory specific computeModel, results are placed in map</span></div> <div class="line"><a name="l00482"></a><span class="lineno"> 482</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a6b5123c9d923a076385aa83a0fa37cf5" title="Calls theory specific computeModel, results are placed in map.">buildModel</a>(<a class="code" href="classCVC3_1_1ExprMap.html">ExprMap<Expr></a>& m);</div> <div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a6b5123c9d923a076385aa83a0fa37cf5" title="Calls theory specific computeModel, results are placed in map.">buildModel</a>(<a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);<span class="comment"></span></div> <div class="line"><a name="l00484"></a><span class="lineno"> 484</span> <span class="comment"> //! Recursively build a compound-type variable assignment for e</span></div> <div class="line"><a name="l00485"></a><span class="lineno"> 485</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a48ba4c9731b4be8afdeafdf3eddeb919" title="Recursively build a compound-type variable assignment for e.">collectModelValues</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e, <a class="code" href="classCVC3_1_1ExprMap.html">ExprMap<Expr></a>& m);</div> <div class="line"><a name="l00486"></a><span class="lineno"> 486</span> <span class="comment"></span></div> <div class="line"><a name="l00487"></a><span class="lineno"> 487</span> <span class="comment"> //! Set the resource limit (0==unlimited).</span></div> <div class="line"><a name="l00488"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#a02c9e1bf2f581de6b8f8a8da5cbb5318"> 488</a></span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a02c9e1bf2f581de6b8f8a8da5cbb5318" title="Set the resource limit (0==unlimited).">setResourceLimit</a>(<span class="keywordtype">unsigned</span> limit) { <a class="code" href="classCVC3_1_1TheoryCore.html#a7040ce9b2fa8d567df0d84a5ceee84bf" title="Resource limit (0==unlimited, 1==no more resources, >=2 - available).">d_resourceLimit</a> = limit; }<span class="comment"></span></div> <div class="line"><a name="l00489"></a><span class="lineno"> 489</span> <span class="comment"> //! Get the resource limit</span></div> <div class="line"><a name="l00490"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#ae5f8dd0508305fac921b9475376c4623"> 490</a></span> <span class="comment"></span> <span class="keywordtype">unsigned</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ae5f8dd0508305fac921b9475376c4623" title="Get the resource limit.">getResourceLimit</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a7040ce9b2fa8d567df0d84a5ceee84bf" title="Resource limit (0==unlimited, 1==no more resources, >=2 - available).">d_resourceLimit</a>; }<span class="comment"></span></div> <div class="line"><a name="l00491"></a><span class="lineno"> 491</span> <span class="comment"> //! Return true if resources are exhausted</span></div> <div class="line"><a name="l00492"></a><span class="lineno"><a class="code" href="classCVC3_1_1TheoryCore.html#abf168c0ef6bed9274e49dc2c0576312e"> 492</a></span> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1TheoryCore.html#abf168c0ef6bed9274e49dc2c0576312e" title="Return true if resources are exhausted.">outOfResources</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a7040ce9b2fa8d567df0d84a5ceee84bf" title="Resource limit (0==unlimited, 1==no more resources, >=2 - available).">d_resourceLimit</a> == 1; }</div> <div class="line"><a name="l00493"></a><span class="lineno"> 493</span> <span class="comment"></span></div> <div class="line"><a name="l00494"></a><span class="lineno"> 494</span> <span class="comment"> //! Initialize base time used for !setTimeLimit</span></div> <div class="line"><a name="l00495"></a><span class="lineno"> 495</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#ac5b53deab8186f2c2b48e9916f09801e" title="Initialize base time used for !setTimeLimit.">initTimeLimit</a>();</div> <div class="line"><a name="l00496"></a><span class="lineno"> 496</span> <span class="comment"></span></div> <div class="line"><a name="l00497"></a><span class="lineno"> 497</span> <span class="comment"> //! Set the time limit in seconds (0==unlimited).</span></div> <div class="line"><a name="l00498"></a><span class="lineno"> 498</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a18c6f732488f868d08fb2a0516c2ef33" title="Set the time limit in seconds (0==unlimited).">setTimeLimit</a>(<span class="keywordtype">unsigned</span> limit);</div> <div class="line"><a name="l00499"></a><span class="lineno"> 499</span> <span class="comment"></span></div> <div class="line"><a name="l00500"></a><span class="lineno"> 500</span> <span class="comment"> //! Called by search engine</span></div> <div class="line"><a name="l00501"></a><span class="lineno"> 501</span> <span class="comment"></span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a586e77e855946fd0b5f541ec06f7decd" title="Called by search engine.">rewriteLiteral</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00502"></a><span class="lineno"> 502</span> <span class="comment"></span></div> <div class="line"><a name="l00503"></a><span class="lineno"> 503</span> <span class="comment"> //! Get the value of all :named terms</span></div> <div class="line"><a name="l00504"></a><span class="lineno"> 504</span> <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_1TheoryCore.html#a3875119ce8336e4bb67a5cc6e771f779" title="Get the value of all :named terms.">getAssignment</a>();</div> <div class="line"><a name="l00505"></a><span class="lineno"> 505</span> <span class="comment"></span></div> <div class="line"><a name="l00506"></a><span class="lineno"> 506</span> <span class="comment"> //! Get the value of an arbitrary formula or term</span></div> <div class="line"><a name="l00507"></a><span class="lineno"> 507</span> <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_1TheoryCore.html#a07e62d88f43bc14e3f0fe4805bd99356" title="Get the value of an arbitrary formula or term.">getValue</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> e);</div> <div class="line"><a name="l00508"></a><span class="lineno"> 508</span> </div> <div class="line"><a name="l00509"></a><span class="lineno"> 509</span> <span class="keyword">private</span>:</div> <div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <span class="comment">// Methods provided for benefit of theories. Access is made available through theory.h</span></div> <div class="line"><a name="l00511"></a><span class="lineno"> 511</span> <span class="comment"></span></div> <div class="line"><a name="l00512"></a><span class="lineno"> 512</span> <span class="comment"> //! Assert a system of equations (1 or more).</span></div> <div class="line"><a name="l00513"></a><span class="lineno"> 513</span> <span class="comment"></span><span class="comment"> /*! e is either a single equation, or a conjunction of equations</span></div> <div class="line"><a name="l00514"></a><span class="lineno"> 514</span> <span class="comment"> */</span></div> <div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#aaab0bd52237688848681cdb62c74f14c" title="Assert a system of equations (1 or more).">assertEqualities</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e);</div> <div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="comment"></span></div> <div class="line"><a name="l00517"></a><span class="lineno"> 517</span> <span class="comment"> //! Mark the branch as incomplete</span></div> <div class="line"><a name="l00518"></a><span class="lineno"> 518</span> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a1589ba9f082079a4dce4c9125befcf06" title="Mark the branch as incomplete.">setIncomplete</a>(<span class="keyword">const</span> std::string& reason);</div> <div class="line"><a name="l00519"></a><span class="lineno"> 519</span> <span class="comment"></span></div> <div class="line"><a name="l00520"></a><span class="lineno"> 520</span> <span class="comment"> //! Return a theorem for the type predicate of e</span></div> <div class="line"><a name="l00521"></a><span class="lineno"> 521</span> <span class="comment"></span><span class="comment"> /*! Note: used only by theory_arith */</span></div> <div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1TheoryCore.html#a69cd86a10c207d95ded425684c5527b9" title="Return a theorem for the type predicate of e.">typePred</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e);</div> <div class="line"><a name="l00523"></a><span class="lineno"> 523</span> </div> <div class="line"><a name="l00524"></a><span class="lineno"> 524</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <span class="comment">// TODO: These should be private</span><span class="comment"></span></div> <div class="line"><a name="l00526"></a><span class="lineno"> 526</span> <span class="comment"> //! Enqueue a new fact</span></div> <div class="line"><a name="l00527"></a><span class="lineno"> 527</span> <span class="comment"></span><span class="comment"> /*! not private because used in search_fast.cpp */</span></div> <div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a0ceab59114fc3864bac9a347c61ec444" title="Enqueue a new fact.">enqueueFact</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e);</div> <div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a09a7b1c4878f4ce9150fa89d304ca172" title="Check if the current context is inconsistent.">enqueueSE</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm);<span class="comment">//yeting</span></div> <div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <span class="comment">// Must provide proof of inconsistency</span><span class="comment"></span></div> <div class="line"><a name="l00531"></a><span class="lineno"> 531</span> <span class="comment"> /*! not private because used in search_fast.cpp */</span></div> <div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#a4a87431f344c128dc58d5c2bd9206784">setInconsistent</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e);</div> <div class="line"><a name="l00533"></a><span class="lineno"> 533</span> <span class="comment"></span></div> <div class="line"><a name="l00534"></a><span class="lineno"> 534</span> <span class="comment"> //! Setup additional terms within a theory-specific setup().</span></div> <div class="line"><a name="l00535"></a><span class="lineno"> 535</span> <span class="comment"></span><span class="comment"> /*! not private because used in theory_bitvector.cpp */</span></div> <div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1TheoryCore.html#afbd6dec08ab7f31031ddc2a97d779bd8" title="Setup additional terms within a theory-specific setup().">setupTerm</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e, <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_1Theorem.html">Theorem</a>& thm);</div> <div class="line"><a name="l00537"></a><span class="lineno"> 537</span> </div> <div class="line"><a name="l00538"></a><span class="lineno"> 538</span> </div> <div class="line"><a name="l00539"></a><span class="lineno"> 539</span> };</div> <div class="line"><a name="l00540"></a><span class="lineno"> 540</span> <span class="comment"></span></div> <div class="line"><a name="l00541"></a><span class="lineno"> 541</span> <span class="comment">//! Printing NotifyList class</span></div> <div class="line"><a name="l00542"></a><span class="lineno"> 542</span> <span class="comment"></span>std::ostream& <a class="code" href="namespaceCVC3.html#a6b7e38d3c97da1e91e12a6c9555b8163">operator<<</a>(std::ostream& os, <span class="keyword">const</span> NotifyList& l);</div> <div class="line"><a name="l00543"></a><span class="lineno"> 543</span> </div> <div class="line"><a name="l00544"></a><span class="lineno"> 544</span> }</div> <div class="line"><a name="l00545"></a><span class="lineno"> 545</span> </div> <div class="line"><a name="l00546"></a><span class="lineno"> 546</span> <span class="preprocessor">#endif</span></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Thu May 16 2013 13:25:15 for CVC3 by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.2 </small></address> </body> </html>