<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>CVC3: arith_theorem_producer.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">CVC3 <span id="projectnumber">2.4.1</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main 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 class="header"> <div class="headertitle"> <div class="title">arith_theorem_producer.h</div> </div> </div> <div class="contents"> <a href="arith__theorem__producer_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************************/</span><span class="comment"></span> <a name="l00002"></a>00002 <span class="comment">/*!</span> <a name="l00003"></a>00003 <span class="comment"> * \file arith_theorem_producer.h</span> <a name="l00004"></a>00004 <span class="comment"> * \brief TRUSTED implementation of arithmetic proof rules</span> <a name="l00005"></a>00005 <span class="comment"> * </span> <a name="l00006"></a>00006 <span class="comment"> * Author: Vijay Ganesh, Sergey Berezin</span> <a name="l00007"></a>00007 <span class="comment"> * </span> <a name="l00008"></a>00008 <span class="comment"> * Created: Dec 13 02:09:04 GMT 2002</span> <a name="l00009"></a>00009 <span class="comment"> *</span> <a name="l00010"></a>00010 <span class="comment"> * <hr></span> <a name="l00011"></a>00011 <span class="comment"> *</span> <a name="l00012"></a>00012 <span class="comment"> * License to use, copy, modify, sell and/or distribute this software</span> <a name="l00013"></a>00013 <span class="comment"> * and its documentation for any purpose is hereby granted without</span> <a name="l00014"></a>00014 <span class="comment"> * royalty, subject to the terms and conditions defined in the \ref</span> <a name="l00015"></a>00015 <span class="comment"> * LICENSE file provided with this distribution.</span> <a name="l00016"></a>00016 <span class="comment"> * </span> <a name="l00017"></a>00017 <span class="comment"> * <hr></span> <a name="l00018"></a>00018 <span class="comment"> * </span> <a name="l00019"></a>00019 <span class="comment"> */</span> <a name="l00020"></a>00020 <span class="comment">/*****************************************************************************/</span> <a name="l00021"></a>00021 <a name="l00022"></a>00022 <span class="preprocessor">#ifndef _cvc3__arith_theorem_producer_h_</span> <a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _cvc3__arith_theorem_producer_h_</span> <a name="l00024"></a>00024 <span class="preprocessor"></span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="arith__proof__rules_8h.html" title="Arithmetic proof rules.">arith_proof_rules.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="theorem__producer_8h.html">theorem_producer.h</a>"</span> <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="theory__arith__new_8h.html">theory_arith_new.h</a>"</span> <a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="keyword">namespace </span>CVC3 { <a name="l00030"></a>00030 <span class="keyword">class </span>TheoryArithNew; <a name="l00031"></a>00031 <a name="l00032"></a><a class="code" href="classCVC3_1_1ArithTheoremProducer.html">00032</a> <span class="keyword">class </span><a class="code" href="classCVC3_1_1ArithTheoremProducer.html">ArithTheoremProducer</a>: <span class="keyword">public</span> <a class="code" href="classCVC3_1_1ArithProofRules.html">ArithProofRules</a>, <span class="keyword">public</span> <a class="code" href="classCVC3_1_1TheoremProducer.html">TheoremProducer</a> { <a name="l00033"></a><a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad2c70acba668e2582f0ebd9533646338">00033</a> <a class="code" href="classCVC3_1_1TheoryArithNew.html">TheoryArithNew</a>* <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad2c70acba668e2582f0ebd9533646338">d_theoryArith</a>; <a name="l00034"></a>00034 <span class="keyword">private</span>:<span class="comment"></span> <a name="l00035"></a>00035 <span class="comment"> /*! \name Auxiliary functions for eqElimIntRule()</span> <a name="l00036"></a>00036 <span class="comment"> * Methods that compute the subterms used in eqElimIntRule()</span> <a name="l00037"></a>00037 <span class="comment"> *@{</span> <a name="l00038"></a>00038 <span class="comment"> */</span><span class="comment"></span> <a name="l00039"></a>00039 <span class="comment"> //! Compute the special modulus: i - m*floor(i/m+1/2)</span> <a name="l00040"></a>00040 <span class="comment"></span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a3cb8580c7627250ffe999de9a1b2c8c3" title="Compute the special modulus: i - m*floor(i/m+1/2)">modEq</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& i, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& m);<span class="comment"></span> <a name="l00041"></a>00041 <span class="comment"> //! Create the term 't'. See eqElimIntRule().</span> <a name="l00042"></a>00042 <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_1ArithTheoremProducer.html#a47a517c15b57ba19b7759a4ba925e306" title="Create the term 't'. See eqElimIntRule().">create_t</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& eqn);<span class="comment"></span> <a name="l00043"></a>00043 <span class="comment"> //! Create the term 't2'. See eqElimIntRule().</span> <a name="l00044"></a>00044 <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_1ArithTheoremProducer.html#ab20380e74e431d9956c588d45d5121a4" title="Create the term 't2'. See eqElimIntRule().">create_t2</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& lhs, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& rhs, <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="comment"></span> <a name="l00045"></a>00045 <span class="comment"> //! Create the term 't3'. See eqElimIntRule().</span> <a name="l00046"></a>00046 <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_1ArithTheoremProducer.html#a77e9c5681a02ab61f1311628e843d3db" title="Create the term 't3'. See eqElimIntRule().">create_t3</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& lhs, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& rhs, <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="comment"></span> <a name="l00047"></a>00047 <span class="comment"> /*! @brief Takes sum = a_0 + a_1*x_1+...+a_n*x_n and returns the</span> <a name="l00048"></a>00048 <span class="comment"> * vector of similar monomials (in 'summands') with coefficients</span> <a name="l00049"></a>00049 <span class="comment"> * mod(a_i, m). If divide flag is true, the coefficients will be</span> <a name="l00050"></a>00050 <span class="comment"> * mod(a_i,m)/m.</span> <a name="l00051"></a>00051 <span class="comment"> */</span> <a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a10c569edc893a67b42af659633b3f20d" title="Takes sum = a_0 + a_1*x_1+...+a_n*x_n and returns the vector of similar monomials (in 'summands') wit...">sumModM</a>(std::vector<Expr>& summands, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& sum, <a name="l00053"></a>00053 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& m, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& divisor); <a name="l00054"></a>00054 <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a69adf7d70a6a71e5c0e3489535a18108" title="Compute the special modulus: i - m*floor(i/m+1/2)">monomialModM</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 name="l00055"></a>00055 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& m, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& divisor); <a name="l00056"></a>00056 <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a32e61136df79a76fe1ed853ee6b8dc2e" title="Compute the special modulus: i - m*floor(i/m+1/2)">sumMulF</a>(std::vector<Expr>& summands, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& sum, <a name="l00057"></a>00057 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& m, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& divisor); <a name="l00058"></a>00058 <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a41da83b4624daa43a84bc049b5b7d836" title="Compute the special modulus: i - m*floor(i/m+1/2)">monomialMulF</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 name="l00059"></a>00059 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& m, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& divisor);<span class="comment"></span> <a name="l00060"></a>00060 <span class="comment"> //! Compute floor(i/m+1/2) + mod(i,m)</span> <a name="l00061"></a>00061 <span class="comment"></span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad727620082aea32b487863ac5888eb1b" title="Compute floor(i/m+1/2) + mod(i,m)">f</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& i, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& m); <a name="l00062"></a>00062 <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a073ec1476668043be44ae96519eae36d" title="Compute the special modulus: i - m*floor(i/m+1/2)">substitute</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& term, <a class="code" href="classCVC3_1_1ExprMap.html">ExprMap<Expr></a>& eMap); <a name="l00063"></a>00063 <span class="comment"></span> <a name="l00064"></a>00064 <span class="comment"> /*@}*/</span> <a name="l00065"></a>00065 <span class="keyword">public</span>:<span class="comment"></span> <a name="l00066"></a>00066 <span class="comment"> //! Constructor</span> <a name="l00067"></a><a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a8216db52c44de1ba9a50ca6dfea24720">00067</a> <span class="comment"></span> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a8216db52c44de1ba9a50ca6dfea24720" title="Constructor.">ArithTheoremProducer</a>(<a class="code" href="classCVC3_1_1TheoremManager.html">TheoremManager</a>* tm, <a class="code" href="classCVC3_1_1TheoryArithNew.html">TheoryArithNew</a>* theoryArith): <a name="l00068"></a>00068 <a class="code" href="classCVC3_1_1TheoremProducer.html">TheoremProducer</a>(tm), <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad2c70acba668e2582f0ebd9533646338">d_theoryArith</a>(theoryArith) { } <a name="l00069"></a>00069 <span class="comment"></span> <a name="l00070"></a>00070 <span class="comment"> //! Create Expr from Rational (for convenience)</span> <a name="l00071"></a><a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ae0d46b17ef012eabbbe62cac026bfab9">00071</a> <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_1ArithTheoremProducer.html#ae0d46b17ef012eabbbe62cac026bfab9" title="Create Expr from Rational (for convenience)">rat</a>(<a class="code" href="classCVC3_1_1Rational.html">Rational</a> r) { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga18423a42ce6557dc33287d3979ccc3c6">newRatExpr</a>(r); } <a name="l00072"></a><a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a4606a94098ae94cdae1b924dc7f7b4ae">00072</a> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a4606a94098ae94cdae1b924dc7f7b4ae">realType</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad2c70acba668e2582f0ebd9533646338">d_theoryArith</a>-><a class="code" href="classCVC3_1_1TheoryArith.html#a03fa81194322b92c488033695bec7204">realType</a>(); } <a name="l00073"></a><a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a8b33391347e9741339b674abd5c4fbf2">00073</a> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a8b33391347e9741339b674abd5c4fbf2">intType</a>() { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad2c70acba668e2582f0ebd9533646338">d_theoryArith</a>-><a class="code" href="classCVC3_1_1TheoryArith.html#ad3e47bba6c50745ad194cf273aa1d146">intType</a>(); }<span class="comment"></span> <a name="l00074"></a>00074 <span class="comment"> //! Construct the dark shadow expression representing lhs <= rhs</span> <a name="l00075"></a><a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a9dfab0a471e7a705264be04007ac61e5">00075</a> <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_1ArithTheoremProducer.html#a9dfab0a471e7a705264be04007ac61e5" title="Construct the dark shadow expression representing lhs <= rhs.">darkShadow</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& lhs, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& rhs) { <a name="l00076"></a>00076 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad2c70acba668e2582f0ebd9533646338">d_theoryArith</a>-><a class="code" href="classCVC3_1_1TheoryArith.html#abee62d97b0c60a1a44b7ede3c60b11b6" title="Construct the dark shadow expression representing lhs <= rhs.">darkShadow</a>(lhs, rhs); <a name="l00077"></a>00077 }<span class="comment"></span> <a name="l00078"></a>00078 <span class="comment"> //! Construct the gray shadow expression representing c1 <= v - e <= c2</span> <a name="l00079"></a>00079 <span class="comment"></span><span class="comment"> /*! Alternatively, v = e + i for some i s.t. c1 <= i <= c2</span> <a name="l00080"></a>00080 <span class="comment"> */</span> <a name="l00081"></a><a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a1684298bef4bf1efdccb7078f5a6c96f">00081</a> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a1684298bef4bf1efdccb7078f5a6c96f" title="Construct the gray shadow expression representing c1 <= v - e <= c2.">grayShadow</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& v, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e, <a name="l00082"></a>00082 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& c1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& c2) { <a name="l00083"></a>00083 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad2c70acba668e2582f0ebd9533646338">d_theoryArith</a>-><a class="code" href="classCVC3_1_1TheoryArith.html#ae7d59b8b9bff1ae3cbb1b67a0baa3463" title="Construct the gray shadow expression representing c1 <= v - e <= c2.">grayShadow</a>(v, e, c1, c2); <a name="l00084"></a>00084 } <a name="l00085"></a>00085 <span class="comment"></span> <a name="l00086"></a>00086 <span class="comment"> ////////////////////////////////////////////////////////////////////</span> <a name="l00087"></a>00087 <span class="comment"></span> <span class="comment">// Canonization rules</span><span class="comment"></span> <a name="l00088"></a>00088 <span class="comment"> ////////////////////////////////////////////////////////////////////</span> <a name="l00089"></a>00089 <span class="comment"></span> <a name="l00090"></a>00090 <span class="comment">// ==> x = 1 * x</span> <a name="l00091"></a>00091 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a7568925b6c26f1c7ba882893f596d214" title="==> e = 1 * e">varToMult</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 name="l00092"></a>00092 <a name="l00093"></a>00093 <span class="comment">// ==> -(e) = (-1) * e</span> <a name="l00094"></a>00094 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aaafdbe9dcc49728cc2bf16b43045c193" title="==> -(e) = (-1) * e">uMinusToMult</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 name="l00095"></a>00095 <a name="l00096"></a>00096 <span class="comment">// ==> x - y = x + (-1) * y</span> <a name="l00097"></a>00097 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ab369e518fc2ee411503253fa0b1515d6" title="==> x - y = x + (-1) * y">minusToPlus</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& x, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& y); <a name="l00098"></a>00098 <a name="l00099"></a>00099 <span class="comment">// Rule for unary minus: it just converts it to division by -1,</span> <a name="l00100"></a>00100 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a4671174ae8ff61c52f16ddd53a3cdd27">canonUMinusToDivide</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 name="l00101"></a>00101 <a name="l00102"></a>00102 <span class="comment">// Rules for division by constant 'd'</span> <a name="l00103"></a>00103 <span class="comment">// (c) / d ==> (c/d), takes c and d</span> <a name="l00104"></a>00104 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a515e5d076ed135a6d943c2f5d5e34188" title="(c) / d ==> (c/d), takes c and d">canonDivideConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& c, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& d); <a name="l00105"></a>00105 <span class="comment">// (c * x) / d ==> (c/d) * x, takes (c*x) and d</span> <a name="l00106"></a>00106 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a4d2d8da9de6d6faaa07758c01e3a9fe8" title="(c * x) / d ==> (c/d) * x, takes (c*x) and d">canonDivideMult</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& cx, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& d); <a name="l00107"></a>00107 <span class="comment">// (+ c ...)/d ==> push division to all the coefficients.</span> <a name="l00108"></a>00108 <span class="comment">// The result is not canonical, but canonizing the summands will</span> <a name="l00109"></a>00109 <span class="comment">// make it canonical.</span> <a name="l00110"></a>00110 <span class="comment">// Takes (+ c ...) and d</span> <a name="l00111"></a>00111 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a4338b85f1dd0fca0cc58e6b7259a20b4" title="(+ c ...)/d ==> push division to all the coefficients.">canonDividePlus</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_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& d); <a name="l00112"></a>00112 <span class="comment">// x / d ==> (1/d) * x, takes x and d</span> <a name="l00113"></a>00113 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aa651eb7a4d20a77135efa2d3e984c355" title="x / d ==> (1/d) * x, takes x and d">canonDivideVar</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e2); <a name="l00114"></a>00114 <a name="l00115"></a>00115 <span class="comment">// Canon Rules for multiplication</span> <a name="l00116"></a>00116 <a name="l00117"></a>00117 <span class="comment">// TODO Deepak:</span> <a name="l00118"></a>00118 <span class="comment">// t1 * t2 where t1 and t2 are canonized expressions, i.e. it can be a</span> <a name="l00119"></a>00119 <span class="comment">// 1) Rational constant</span> <a name="l00120"></a>00120 <span class="comment">// 2) Arithmetic Leaf (var or term from another theory)</span> <a name="l00121"></a>00121 <span class="comment">// 3) (POW rational leaf)</span> <a name="l00122"></a>00122 <span class="comment">// 4) (MULT rational mterm'_1 ...) where each mterm' is of type (2) or (3)</span> <a name="l00123"></a>00123 <span class="comment">// 5) (PLUS rational sterm_1 sterm_2 ...) where each sterm is of </span> <a name="l00124"></a>00124 <span class="comment">// type (2) or (3) or (4) </span> <a name="l00125"></a>00125 <a name="l00126"></a>00126 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a23faa6b30e4b01d7540ac1e22e6e06ce">greaterthan</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> &, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> &); <a name="l00127"></a>00127 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#af24b2bc3bc03bc320707362f2460dd0e">simplifiedMultExpr</a>(std::vector<Expr> & mulKids); <a name="l00128"></a>00128 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a10ebfab26aa4ee1a147f08d8f6b94c45">canonMultConstMult</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & c, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e); <a name="l00129"></a>00129 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a48b21552a97a3a75ae469fb48c155e51">canonMultConstPlus</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e2); <a name="l00130"></a>00130 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aebf0a0b539104e2190b53351efc6116b">canonMultPowPow</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e2); <a name="l00131"></a>00131 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aabc24cdaf5d3a390f9880937bac17311">canonMultPowLeaf</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e2); <a name="l00132"></a>00132 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aae1bc41d54f8b148ce5cf9425ac688af">canonMultLeafLeaf</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e2); <a name="l00133"></a>00133 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a05b2608fd280890cb49bf4534a54e304">canonMultLeafOrPowMult</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e2); <a name="l00134"></a>00134 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a9548361051bb6febc314faa107d2c2f5">canonCombineLikeTerms</a>(<span class="keyword">const</span> std::vector<Expr> & sumExprs); <a name="l00135"></a>00135 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a name="l00136"></a>00136 <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a0b344f367f01d240d997df7edfe1a12c">canonMultLeafOrPowOrMultPlus</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e2); <a name="l00137"></a>00137 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ac0363ff2f51ad1173ed1e46046b0654a">canonMultPlusPlus</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> & e2); <a name="l00138"></a>00138 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ab5166b206f49897a6a49ba0014c0b808">canonMultMtermMterm</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 name="l00139"></a>00139 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a41f7000c783a82e9a86cad823b06bff4" title="Canonize (PLUS t1 ... tn)">canonPlus</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 name="l00140"></a>00140 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a7b07ab799dbdf80254df3ec7fc35d36d">canonInvertConst</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 name="l00141"></a>00141 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#afb0c2a89f3373dcb26cd516714d0e49a">canonInvertLeaf</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 name="l00142"></a>00142 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a6a829cb16f960f9e7c2f25ea4906eaba">canonInvertPow</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 name="l00143"></a>00143 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a70a381c22184655fb6d4f3b621bf216b">canonInvertMult</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 name="l00144"></a>00144 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a7c7c860b193ec63a776dd13613aeca25" title="==> 1/e = e' where e' is canonical; takes e.">canonInvert</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 name="l00145"></a>00145 <span class="comment"></span> <a name="l00146"></a>00146 <span class="comment"> /**</span> <a name="l00147"></a>00147 <span class="comment"> * Transform e = (SUM r t1 ... tn) @ 0 into (SUM t1 ... tn) @ -r. The first </span> <a name="l00148"></a>00148 <span class="comment"> * sum term (r) must be a rational and t1 ... tn terms must be canonised.</span> <a name="l00149"></a>00149 <span class="comment"> * </span> <a name="l00150"></a>00150 <span class="comment"> * @param e the expression to transform </span> <a name="l00151"></a>00151 <span class="comment"> * @return rewrite theorem representing the transformation </span> <a name="l00152"></a>00152 <span class="comment"> */</span> <a name="l00153"></a>00153 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a77b99e94956d407e5cd20701e6771120">moveSumConstantRight</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 name="l00154"></a>00154 <span class="comment"></span> <a name="l00155"></a>00155 <span class="comment"> /** e[0]/e[1] ==> e[0]*(e[1])^-1 */</span> <a name="l00156"></a>00156 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a92540cc58f6203c2904fc2bd197190da">canonDivide</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 name="l00157"></a>00157 <span class="comment"></span> <a name="l00158"></a>00158 <span class="comment"> /** Multiply out the operands of the multiplication (each of them is expected to be canonised */</span> <a name="l00159"></a>00159 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a9bd77385dd0cbaac271aaab4b6c6ec09">canonMult</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 name="l00160"></a>00160 <a name="l00161"></a>00161 <span class="comment">// t*c ==> c*t, takes constant c and term t</span> <a name="l00162"></a>00162 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#af6ba91fa47c4c9139c4d93fe3de0112f" title="t*c ==> c*t, takes constant c and term t">canonMultTermConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& c, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& t); <a name="l00163"></a>00163 <span class="comment">// t1*t2 ==> Error, takes t1 and t2 where both are non-constants</span> <a name="l00164"></a>00164 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a529fe89fea243d932879a1a74e9d36a7" title="t1*t2 ==> Error, takes t1 and t2 where both are non-constants">canonMultTerm1Term2</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& t1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& t2); <a name="l00165"></a>00165 <span class="comment">// 0*t ==> 0, takes 0*t</span> <a name="l00166"></a>00166 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a55ec89d6cf310694e9f4b1013a795ce2" title="0*t ==> 0, takes 0*t">canonMultZero</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 name="l00167"></a>00167 <span class="comment">// 1*t ==> t, takes 1*t</span> <a name="l00168"></a>00168 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ae5a6e1b2c7b9239b7e53027c51a2dc7e" title="1*t ==> t, takes 1*t">canonMultOne</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 name="l00169"></a>00169 <span class="comment">// c1*c2 ==> c', takes constant c1*c2 </span> <a name="l00170"></a>00170 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#affbdf02016310d8cd6a9037fdd9eddc6" title="c1*c2 ==> c', takes constant c1*c2">canonMultConstConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& c1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& c2); <a name="l00171"></a>00171 <span class="comment">// c1*(c2*t) ==> c'*t, takes c1 and c2 and t</span> <a name="l00172"></a>00172 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a name="l00173"></a>00173 <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad51f0d5c3232b6c247939a10e253f53d" title="c1*(c2*t) ==> c'*t, takes c1 and c2 and t">canonMultConstTerm</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& c1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& c2, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&t); <a name="l00174"></a>00174 <span class="comment">// c1*(+ c2 v1 ...) ==> (+ c' c1v1 ...), takes c1 and the sum</span> <a name="l00175"></a>00175 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ab0e0e14c71501a9f8208963c54010fe4" title="c1*(+ c2 v1 ...) ==> (+ c' c1v1 ...), takes c1 and the sum">canonMultConstSum</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& c1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& sum); <a name="l00176"></a>00176 <span class="comment">// c^n = c' (compute the constant power expression)</span> <a name="l00177"></a>00177 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#af673275ae1c3dc606b29979b60df35c5" title="c^n = c' (compute the constant power expression)">canonPowConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& <a class="code" href="namespaceCVC3.html#a28fc84bed3f9bc91ca9967de0f9cfa00" title="Raise 'base' into the power of 'pow' (pow must be an integer)">pow</a>); <a name="l00178"></a>00178 <a name="l00179"></a>00179 <span class="comment">// Rules for addition</span> <a name="l00180"></a>00180 <span class="comment">// flattens the input. accepts a PLUS expr</span> <a name="l00181"></a>00181 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a19964269c705bafbe69cb1052fe7bec8" title="flattens the input. accepts a PLUS expr">canonFlattenSum</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 name="l00182"></a>00182 <a name="l00183"></a>00183 <span class="comment">// Rules for addition</span> <a name="l00184"></a>00184 <span class="comment">// combine like terms. accepts a flattened PLUS expr</span> <a name="l00185"></a>00185 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ac9ee451992ab00f200ee8aee26e99e0c" title="combine like terms. accepts a flattened PLUS expr">canonComboLikeTerms</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 name="l00186"></a>00186 <a name="l00187"></a>00187 <span class="comment">// 0 = (* e1 e2 ...) <=> 0 = e1 OR 0 = e2 OR ...</span> <a name="l00188"></a>00188 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a0040d5d848f7040df940b92d95a75930">multEqZero</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr); <a name="l00189"></a>00189 <a name="l00190"></a>00190 <span class="comment">// 0 = (^ c x) <=> false if c <=0</span> <a name="l00191"></a>00191 <span class="comment">// <=> 0 = x if c > 0</span> <a name="l00192"></a>00192 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a9cd618abf322c0389f1fc40f274059c2">powEqZero</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr); <a name="l00193"></a>00193 <a name="l00194"></a>00194 <span class="comment">// x^n = y^n <=> x = y (if n is odd)</span> <a name="l00195"></a>00195 <span class="comment">// x^n = y^n <=> x = y OR x = -y (if n is even)</span> <a name="l00196"></a>00196 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a3c454b863142345e1093663fbb89d306">elimPower</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr); <a name="l00197"></a>00197 <a name="l00198"></a>00198 <span class="comment">// x^n = c <=> x = root (if n is odd and root^n = c)</span> <a name="l00199"></a>00199 <span class="comment">// x^n = c <=> x = root OR x = -root (if n is even and root^n = c)</span> <a name="l00200"></a>00200 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a21456f49d3a6711f21e3c13fb3c0d34a">elimPowerConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& root); <a name="l00201"></a>00201 <a name="l00202"></a>00202 <span class="comment">// x^n = c <=> false (if n is even and c is negative)</span> <a name="l00203"></a>00203 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#afbf059903de8b1e87aef9a4a75340d6c">evenPowerEqNegConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr); <a name="l00204"></a>00204 <a name="l00205"></a>00205 <span class="comment">// x^n = c <=> false (if x is an integer and c is not a perfect n power)</span> <a name="l00206"></a>00206 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aa3838fe1c003a9f47f3ec8344d192dea">intEqIrrational</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="namespaceCVC3.html#a8b193cc1fee34cb43707171b2ae6471e">isInt</a>); <a name="l00207"></a>00207 <a name="l00208"></a>00208 <span class="comment">// e[0] kind e[1] <==> true when e[0] kind e[1],</span> <a name="l00209"></a>00209 <span class="comment">// false when e[0] !kind e[1], for constants only</span> <a name="l00210"></a>00210 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a621015d4894231ecd9ab465494e9c9c8" title="e0 @ e1 <==> true | false, where @ is {=,<,<=,>,>=}">constPredicate</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 name="l00211"></a>00211 <a name="l00212"></a>00212 <span class="comment">// e[0] kind e[1] <==> 0 kind e[1] - e[0]</span> <a name="l00213"></a>00213 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a3eb1309c184247837239c098d9c9100a" title="e[0] @ e[1] <==> 0 @ e[1] - e[0], where @ is {=,<,<=,>,>=}">rightMinusLeft</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 name="l00214"></a>00214 <a name="l00215"></a>00215 <span class="comment">// e[0] kind e[1] <==> e[0] - e[1] kind 0</span> <a name="l00216"></a>00216 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a8196042ba713a7c782ee4b5eb4c69ccc" title="e[0] @ e[1] <==> e[0] - e[1] @ 0, where @ is {=,<,<=,>,>=}">leftMinusRight</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 name="l00217"></a>00217 <a name="l00218"></a>00218 <span class="comment">// x kind y <==> x + z kind y + z</span> <a name="l00219"></a>00219 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a3c3041eb3b0144e21d72ffe6999953e2" title="x @ y <==> x + z @ y + z, where @ is {=,<,<=,>,>=} (given as 'kind')">plusPredicate</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& x, <a name="l00220"></a>00220 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& y, <a name="l00221"></a>00221 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& z, <span class="keywordtype">int</span> kind); <a name="l00222"></a>00222 <a name="l00223"></a>00223 <span class="comment">// x = y <==> x * z = y * z</span> <a name="l00224"></a>00224 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ae66ddbc1457e3c032ea9059625059992" title="x = y <==> x * z = y * z, where z is a non-zero constant">multEqn</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& x, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& y, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& z); <a name="l00225"></a>00225 <a name="l00226"></a>00226 <span class="comment">// x = y <==> z=0 OR x * 1/z = y * 1/z</span> <a name="l00227"></a>00227 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aa371616db9ac1a4a9c7a4b1ce0f2a05c">divideEqnNonConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& x, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& y, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& z); <a name="l00228"></a>00228 <a name="l00229"></a>00229 <span class="comment">// if z is +ve, return e[0] LT|LE|GT|GE e[1] <==> e[0]*z LT|LE|GT|GE e[1]*z</span> <a name="l00230"></a>00230 <span class="comment">// if z is -ve, return e[0] LT|LE|GT|GE e[1] <==> e[1]*z LT|LE|GT|GE e[0]*z</span> <a name="l00231"></a>00231 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a3d245f36a2e42684ec2fd9356d89111f" title="Multiplying inequation by a non-zero constant.">multIneqn</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_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& z); <a name="l00232"></a>00232 <a name="l00233"></a>00233 <span class="comment">// x = y ==> x <= y and x >= y</span> <a name="l00234"></a>00234 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a517d45514aefcab0dc6aabb400f149fd" title="x = y ==> x <= y and x >= y">eqToIneq</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 name="l00235"></a>00235 <a name="l00236"></a>00236 <span class="comment">// "op1 GE|GT op2" <==> op2 LE|LT op1</span> <a name="l00237"></a>00237 <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#af069fc1b320c0455ec7cde192668884b" title=""op1 GE|GT op2" <==> op2 LE|LT op1">flipInequality</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 name="l00238"></a>00238 <a name="l00239"></a>00239 <span class="comment">// NOT (op1 LT op2) <==> (op1 GE op2)</span> <a name="l00240"></a>00240 <span class="comment">// NOT (op1 LE op2) <==> (op1 GT op2)</span> <a name="l00241"></a>00241 <span class="comment">// NOT (op1 GT op2) <==> (op1 LE op2)</span> <a name="l00242"></a>00242 <span class="comment">// NOT (op1 GE op2) <==> (op1 LT op2)</span> <a name="l00243"></a>00243 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a07368f8a2e12b5c189645a99bc934102" title="Propagating negation over <,<=,>,>=.">negatedInequality</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 name="l00244"></a>00244 <a name="l00245"></a>00245 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a8092c96a87d952fc1e572bb9237ff994" title="Real shadow: a <(=) t, t <(=) b ==> a <(=) b.">realShadow</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& alphaLTt, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& tLTbeta); <a name="l00246"></a>00246 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a6e14251c516153e14539a34598daca04" title="alpha <= t <= alpha ==> t = alpha">realShadowEq</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& alphaLEt, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& tLEalpha); <a name="l00247"></a>00247 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a7f4c82e18e7a3ed3b5b22a6ce7d7cf27" title="Finite interval for integers: a <= t <= a + c ==> G(t, a, 0, c)">finiteInterval</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& aLEt, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& tLEac, <a name="l00248"></a>00248 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isInta, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntt); <a name="l00249"></a>00249 <a name="l00250"></a>00250 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aef6fd1261bea182d4554d0423803b05e" title="Dark & Gray shadows when a <= b.">darkGrayShadow2ab</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& betaLEbx, <a name="l00251"></a>00251 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& axLEalpha, <a name="l00252"></a>00252 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntAlpha, <a name="l00253"></a>00253 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntBeta, <a name="l00254"></a>00254 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="theory__quant_8cpp.html#ac9940420b1f3427ebe821902adbb578d">isIntx</a>); <a name="l00255"></a>00255 <a name="l00256"></a>00256 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aaf64935bb620ab79fd7383f1913bd8b8" title="Dark & Gray shadows when b <= a.">darkGrayShadow2ba</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& betaLEbx, <a name="l00257"></a>00257 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& axLEalpha, <a name="l00258"></a>00258 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntAlpha, <a name="l00259"></a>00259 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntBeta, <a name="l00260"></a>00260 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="theory__quant_8cpp.html#ac9940420b1f3427ebe821902adbb578d">isIntx</a>); <a name="l00261"></a>00261 <a name="l00262"></a>00262 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#aafadfc6ae6013ab18a7b4ee570cce16a">expandDarkShadow</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a9dfab0a471e7a705264be04007ac61e5" title="Construct the dark shadow expression representing lhs <= rhs.">darkShadow</a>); <a name="l00263"></a>00263 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ac8a2c0a97ace8f17153ad784c87ba5a2" title="GRAY_SHADOW(v, e, c, c) ==> v=e+c.">expandGrayShadow0</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a1684298bef4bf1efdccb7078f5a6c96f" title="Construct the gray shadow expression representing c1 <= v - e <= c2.">grayShadow</a>); <a name="l00264"></a>00264 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a14af8b5ecbfaaee4600453bd9d681838" title="G(x, e, c1, c2) ==> (G1 or G2) and (!G1 or !G2)">splitGrayShadow</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a1684298bef4bf1efdccb7078f5a6c96f" title="Construct the gray shadow expression representing c1 <= v - e <= c2.">grayShadow</a>); <a name="l00265"></a>00265 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#acaa835c8569f6667fa26bfedb0502cf1">splitGrayShadowSmall</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a1684298bef4bf1efdccb7078f5a6c96f" title="Construct the gray shadow expression representing c1 <= v - e <= c2.">grayShadow</a>); <a name="l00266"></a>00266 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ac6714d4922aea3413f9aeed742bc645e" title="G(x, e, c1, c2) ==> e+c1 <= x AND x <= e+c2.">expandGrayShadow</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a1684298bef4bf1efdccb7078f5a6c96f" title="Construct the gray shadow expression representing c1 <= v - e <= c2.">grayShadow</a>); <a name="l00267"></a>00267 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#af091e13254c983370c46707a03b1ad30" title="Optimized rules: GRAY_SHADOW(a*x, c, c1, c2) ==> [expansion].">expandGrayShadowConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a1684298bef4bf1efdccb7078f5a6c96f" title="Construct the gray shadow expression representing c1 <= v - e <= c2.">grayShadow</a>); <a name="l00268"></a>00268 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#af0070c5da95d33029e54b1d669d5b1f0" title="|- G(ax, c, c1, c2) ==> |- G(x, 0, ceil((c1+c)/a), floor((c2+c)/a))">grayShadowConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& g); <a name="l00269"></a>00269 <span class="comment"></span> <a name="l00270"></a>00270 <span class="comment"> //! Implements j(c,b,a)</span> <a name="l00271"></a>00271 <span class="comment"></span><span class="comment"> /*! accepts 3 integers a,b,c and returns</span> <a name="l00272"></a>00272 <span class="comment"> * (b > 0)? (c+b) mod a : (a - (c+b)) mod a</span> <a name="l00273"></a>00273 <span class="comment"> */</span> <a name="l00274"></a>00274 <a class="code" href="classCVC3_1_1Rational.html">Rational</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a529e92e59e9009e3330a8592c9cb56fe" title="Implements j(c,b,a)">constRHSGrayShadow</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& c, <a name="l00275"></a>00275 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& b, <a name="l00276"></a>00276 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& a); <a name="l00277"></a>00277 <a name="l00278"></a>00278 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ac5d4056f00cee80d73b5b46f63bd5b3d">lessThanToLE</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& less, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntLHS, <a name="l00279"></a>00279 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntRHS, <span class="keywordtype">bool</span> changeRight); <a name="l00280"></a>00280 <a name="l00281"></a>00281 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#af55c5d0a2626f955b0843381ca8b50f3">lessThanToLERewrite</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& ineq, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntLHS, <a name="l00282"></a>00282 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntRHS, <span class="keywordtype">bool</span> changeRight); <a name="l00283"></a>00283 <a name="l00284"></a>00284 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a92936e3de514c430659486b00e84b0a9">intVarEqnConst</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& eqn, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="theory__quant_8cpp.html#ac9940420b1f3427ebe821902adbb578d">isIntx</a>); <a name="l00285"></a>00285 <a name="l00286"></a>00286 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a85e9c7d93d6d1433fea606b0c3878e25">IsIntegerElim</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="theory__quant_8cpp.html#ac9940420b1f3427ebe821902adbb578d">isIntx</a>); <a name="l00287"></a>00287 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a49d6559f50d51cde3c2e723c2a254cff" title="Equality elimination rule for integers: See the detailed description for explanations.">eqElimIntRule</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& eqn, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& <a class="code" href="theory__quant_8cpp.html#ac9940420b1f3427ebe821902adbb578d">isIntx</a>, <a name="l00288"></a>00288 <span class="keyword">const</span> std::vector<Theorem>& isIntVars); <a name="l00289"></a>00289 <a name="l00290"></a>00290 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#af1baf70d6108dc52cbb9704e2a8889ec" title="return e <=> TRUE/FALSE for e == IS_INTEGER(c), where c is a constant">isIntConst</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 name="l00291"></a>00291 <a name="l00292"></a>00292 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a512f22a4a025477ced8c27f3d62809d7">equalLeaves1</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e); <a name="l00293"></a>00293 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a77ae567431bf98e20cc08903deb2ec99">equalLeaves2</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e); <a name="l00294"></a>00294 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a8de6b6b44c60cf495b455b980a7c681b">equalLeaves3</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e); <a name="l00295"></a>00295 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a97768870957319cdc68eb94694a37dc5">equalLeaves4</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& e); <a name="l00296"></a>00296 <a name="l00297"></a>00297 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a3d6e1d8668360c20b5a6a47e3fcc4612" title="x /= y ==> (x < y) OR (x > y)">diseqToIneq</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& diseq); <a name="l00298"></a>00298 <a name="l00299"></a>00299 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a753c339b31e38915ae6f06e0fe6e48da">dummyTheorem</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 name="l00300"></a>00300 <a name="l00301"></a>00301 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a23051d23d509f9cda35c64d4a5ff1dbf">oneElimination</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& x); <a name="l00302"></a>00302 <a name="l00303"></a>00303 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad4513630a9eec6c841b527222a79ea1d">clashingBounds</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& lowerBound, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& upperBound); <a name="l00304"></a>00304 <a name="l00305"></a>00305 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a3b2bea72cd9163daa7c41388037bca29">addInequalities</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& thm2); <a name="l00306"></a>00306 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a3b2bea72cd9163daa7c41388037bca29">addInequalities</a>(<span class="keyword">const</span> std::vector<Theorem>& thms); <a name="l00307"></a>00307 <a name="l00308"></a>00308 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a364ef37224bae3afb4f62a5c0f75d02c">implyWeakerInequality</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr2); <a name="l00309"></a>00309 <a name="l00310"></a>00310 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a1bf4d45330b587882e726daa9117cdfb">implyNegatedInequality</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr2); <a name="l00311"></a>00311 <a name="l00312"></a>00312 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ab9395a2ee958d70c780df2514e517320">integerSplit</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& intVar, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Rational.html">Rational</a>& intPoint); <a name="l00313"></a>00313 <a name="l00314"></a>00314 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a43fa5f7c8c3ad3915de7f068ac8cefbd">trustedRewrite</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& expr2); <a name="l00315"></a>00315 <a name="l00316"></a>00316 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a4b28aa17702ca3f9703e61ca012ca236">rafineStrictInteger</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntConstrThm, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& constr); <a name="l00317"></a>00317 <a name="l00318"></a>00318 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#afd5bca9b136254b904b931680180ac83">simpleIneqInt</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& ineq, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntRHS); <a name="l00319"></a>00319 <a name="l00320"></a>00320 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ad5f121b6b7d6b8ae951dfb4cce064575">intEqualityRationalConstant</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& isIntConstrThm, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& constr); <a name="l00321"></a>00321 <a name="l00322"></a>00322 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a0111aa5645658dbd6a4bc030178edb94">cycleConflict</a>(<span class="keyword">const</span> std::vector<Theorem>& inequalitites); <a name="l00323"></a>00323 <a name="l00324"></a>00324 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#abb8aff055ea56ad8de2b66fd9a7aeba9">implyEqualities</a>(<span class="keyword">const</span> std::vector<Theorem>& inequalities); <a name="l00325"></a>00325 <a name="l00326"></a>00326 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ae3a7aa0ebe8e84b806efaa59278ea75e">implyWeakerInequalityDiffLogic</a>(<span class="keyword">const</span> std::vector<Theorem>& antecedentThms, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& implied); <a name="l00327"></a>00327 <a name="l00328"></a>00328 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ab794c1f9d6e971ac56e0063f409b4774">implyNegatedInequalityDiffLogic</a>(<span class="keyword">const</span> std::vector<Theorem>& antecedentThms, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& implied); <a name="l00329"></a>00329 <a name="l00330"></a>00330 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a84a9652acc5908e5d1ead5c54c1f2d90">expandGrayShadowRewrite</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& theShadow); <a name="l00331"></a>00331 <a name="l00332"></a>00332 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#ae43400e7e4c9e3695a75da3bd5718eda">compactNonLinearTerm</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& nonLinear); <a name="l00333"></a>00333 <a name="l00334"></a>00334 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a9edd8b9ee6a8b4d14e9a2f967b78d52f">nonLinearIneqSignSplit</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>& ineqThm); <a name="l00335"></a>00335 <a name="l00336"></a>00336 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a45d8f89bdb0e57ddbaec273a24bf34b4">implyDiffLogicBothBounds</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& x, std::vector<Theorem>& c1_le_x, <a class="code" href="classCVC3_1_1Rational.html">Rational</a> c1, <a name="l00337"></a>00337 std::vector<Theorem>& x_le_c2, <a class="code" href="classCVC3_1_1Rational.html">Rational</a> c2); <a name="l00338"></a>00338 <a name="l00339"></a>00339 <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1ArithTheoremProducer.html#a0433b1ba53a33275015c26450acb09d0">powerOfOne</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 name="l00340"></a>00340 <a name="l00341"></a>00341 }; <span class="comment">// end of class ArithTheoremProducer</span> <a name="l00342"></a>00342 <a name="l00343"></a>00343 } <span class="comment">// end of namespace CVC3</span> <a name="l00344"></a>00344 <a name="l00345"></a>00345 <span class="preprocessor">#endif</span> </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Wed Sep 7 2011 for CVC3 by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>