<!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: theorem_producer.cpp 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">theorem_producer.cpp</div> </div> </div> <div class="contents"> <a href="theorem__producer_8cpp.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 theorem_producer.cpp</span> <a name="l00004"></a>00004 <span class="comment"> * \brief See theorem_producer.h file for more information.</span> <a name="l00005"></a>00005 <span class="comment"> * </span> <a name="l00006"></a>00006 <span class="comment"> * Author: Sergey Berezin</span> <a name="l00007"></a>00007 <span class="comment"> * </span> <a name="l00008"></a>00008 <span class="comment"> * Created: Thu Feb 20 16:22:31 2003</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 <a name="l00023"></a><a class="code" href="theorem__producer_8cpp.html#a8663c36bbf15bb5a0dcb01b97897fa95">00023</a> <span class="preprocessor">#define _CVC3_TRUSTED_</span> <a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="theorem__producer_8h.html">theorem_producer.h</a>"</span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="sound__exception_8h.html" title="An exception to be thrown when unsoundness is detected in a proof rule.">sound_exception.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="command__line__flags_8h.html">command_line_flags.h</a>"</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="keyword">using namespace </span>std; <a name="l00030"></a>00030 <span class="keyword">using namespace </span>CVC3; <a name="l00031"></a>00031 <a name="l00032"></a>00032 <a name="l00033"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a8f74c8badd61cf70ebeb05183c00d608">00033</a> <span class="keywordtype">void</span> TheoremProducer::soundError(<span class="keyword">const</span> std::string& file, <span class="keywordtype">int</span> line, <a name="l00034"></a>00034 <span class="keyword">const</span> std::string& cond, <a name="l00035"></a>00035 <span class="keyword">const</span> std::string& msg) <a name="l00036"></a>00036 { <a name="l00037"></a>00037 ostringstream ss; <a name="l00038"></a>00038 ss << <span class="stringliteral">"in "</span> << file << <span class="stringliteral">":"</span> << line << <span class="stringliteral">" ("</span> << cond << <span class="stringliteral">")\n"</span> << msg; <a name="l00039"></a>00039 <span class="keywordflow">throw</span> <a class="code" href="classCVC3_1_1SoundException.html">SoundException</a>(ss.str()); <a name="l00040"></a>00040 } <a name="l00041"></a>00041 <a name="l00042"></a>00042 <a name="l00043"></a>00043 <span class="comment">// Constructor</span> <a name="l00044"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a5b69feb3bf1ce90107295b5731f847d7">00044</a> TheoremProducer::TheoremProducer(<a class="code" href="classCVC3_1_1TheoremManager.html">TheoremManager</a> *tm) <a name="l00045"></a>00045 : d_tm(tm), d_em(tm->getEM()), <a name="l00046"></a>00046 d_checkProofs(&(tm->getFlags()[<span class="stringliteral">"check-proofs"</span>].getBool())), <a name="l00047"></a>00047 <span class="comment">// Proof rule application: will have kids</span> <a name="l00048"></a>00048 d_pfOp(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5baee1a6e6a0705cce09e48dbe8d3f26572">PF_APPLY</a>) <a name="l00049"></a>00049 { <a class="code" href="classCVC3_1_1TheoremProducer.html#aee4a05e25306885dbaa6f67fc92f119d">d_hole</a> = <a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#gacd77df1dbcc429e06a75047e2f609822">newLeafExpr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba2656992cdd2e5b8fd78f595329c1f58f">PF_HOLE</a>); } <a name="l00050"></a>00050 <a name="l00051"></a>00051 <a name="l00052"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#af4bdd16428b49f295b3d21208dffc0cd">00052</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#af4bdd16428b49f295b3d21208dffc0cd" title="Create a new proof label (bound variable) for an assumption (formula)">TheoremProducer::newLabel</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="l00053"></a>00053 { <a name="l00054"></a>00054 <span class="comment">// Counter to generate unique proof labels ('u')</span> <a name="l00055"></a>00055 <span class="keyword">static</span> <span class="keywordtype">int</span> s_counter = 0; <a name="l00056"></a>00056 <span class="keyword">static</span> <span class="keywordtype">string</span> s_prefix = <span class="stringliteral">"assump"</span>; <a name="l00057"></a>00057 ostringstream ss; <a name="l00058"></a>00058 ss << s_counter++; <a name="l00059"></a>00059 <a name="l00060"></a>00060 <span class="keywordflow">if</span> ((<a class="code" href="classCVC3_1_1TheoremProducer.html#a27015759e6bdfced928fc5a2d9877b7d">d_tm</a>-><a class="code" href="classCVC3_1_1TheoremManager.html#aac1a2b8c8dbec2d6e92c08fb0eaf2ec7">getFlags</a>()[<span class="stringliteral">"lfsc-mode"</span>]).getInt()!= 0 ) { <a name="l00061"></a>00061 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">newPf</a>(<span class="stringliteral">"assumptions"</span>, e); <a name="l00062"></a>00062 } <a name="l00063"></a>00063 <span class="keywordflow">else</span> { <a name="l00064"></a>00064 <span class="comment">//TODO: Get rid of hack storing expr in Type field</span> <a name="l00065"></a>00065 <span class="comment">// the following lines are commented by Yeting, for neat proofs</span> <a name="l00066"></a>00066 <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> var = <a class="code" href="classCVC3_1_1TheoremProducer.html#a27015759e6bdfced928fc5a2d9877b7d">d_tm</a>-><a class="code" href="classCVC3_1_1TheoremManager.html#a12fd5db0a56006d3cd4123fec058b2ca">getEM</a>()-><a class="code" href="group__EM__Priv.html#ga22dbb23f716cc73378d4c69d564e38dd">newBoundVarExpr</a>(s_prefix, ss.str(), <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>(e, <span class="keyword">true</span>)); <a name="l00067"></a>00067 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(var); <span class="comment">//by Yeting. </span> <a name="l00068"></a>00068 } <a name="l00069"></a>00069 <a name="l00070"></a>00070 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">newPf</a>(<span class="stringliteral">"assumptions"</span>, e); <a name="l00071"></a>00071 <span class="comment">//return newPf("assumptions", var , e);</span> <a name="l00072"></a>00072 } <a name="l00073"></a>00073 <a name="l00074"></a>00074 <a name="l00075"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">00075</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name) <a name="l00076"></a>00076 { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, <a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name))); } <a name="l00077"></a>00077 <a name="l00078"></a>00078 <a name="l00079"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a4dc7589f2361108f86ba9a39584225c8">00079</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <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="l00080"></a>00080 { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, <a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name), e)); } <a name="l00081"></a>00081 <a name="l00082"></a>00082 <a name="l00083"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a4318ccfdb9a7476428b6bec10218b704">00083</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& pf) <a name="l00084"></a>00084 { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, <a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name), pf.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>())); } <a name="l00085"></a>00085 <a name="l00086"></a>00086 <a name="l00087"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#afde487055921fadaa010a98fcfec3efc">00087</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00088"></a>00088 <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="l00089"></a>00089 { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, <a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name), e1, e2)); } <a name="l00090"></a>00090 <a name="l00091"></a>00091 <a name="l00092"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#ac8fe1de247e929400cdcf8abb05f51d8">00092</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <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="l00093"></a>00093 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& pf) <a name="l00094"></a>00094 { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, <a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name), e, pf.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>())); } <a name="l00095"></a>00095 <a name="l00096"></a>00096 <a name="l00097"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a4442d3e5b304a0d0c26a70f398605c2f">00097</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e1, <a name="l00098"></a>00098 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e2, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e3) { <a name="l00099"></a>00099 vector<Expr> kids; <a name="l00100"></a>00100 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00101"></a>00101 kids.push_back(e1); <a name="l00102"></a>00102 kids.push_back(e2); <a name="l00103"></a>00103 kids.push_back(e3); <a name="l00104"></a>00104 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00105"></a>00105 } <a name="l00106"></a>00106 <a name="l00107"></a>00107 <a name="l00108"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a9635508015efe3b1eee16c42c095d664">00108</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e1, <a name="l00109"></a>00109 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& e2, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& pf) { <a name="l00110"></a>00110 vector<Expr> kids; <a name="l00111"></a>00111 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00112"></a>00112 kids.push_back(e1); <a name="l00113"></a>00113 kids.push_back(e2); <a name="l00114"></a>00114 kids.push_back(pf.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>()); <a name="l00115"></a>00115 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00116"></a>00116 } <a name="l00117"></a>00117 <a name="l00118"></a>00118 <a name="l00119"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#aea760a51b9c828ba13daabb8bb85a059">00119</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00120"></a>00120 <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a> begin, <a name="l00121"></a>00121 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a> &end) { <a name="l00122"></a>00122 vector<Expr> kids; <a name="l00123"></a>00123 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00124"></a>00124 kids.insert(kids.end(), begin, end); <a name="l00125"></a>00125 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00126"></a>00126 } <a name="l00127"></a>00127 <a name="l00128"></a>00128 <a name="l00129"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a64af41f02b0a09e641ddfee381dec928">00129</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <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="l00130"></a>00130 <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a> begin, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a> &end) { <a name="l00131"></a>00131 vector<Expr> kids; <a name="l00132"></a>00132 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00133"></a>00133 kids.push_back(e); <a name="l00134"></a>00134 kids.insert(kids.end(), begin, end); <a name="l00135"></a>00135 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00136"></a>00136 } <a name="l00137"></a>00137 <a name="l00138"></a>00138 <a name="l00139"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a19abffed968792730fc45001a78e2f29">00139</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00140"></a>00140 <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a> begin, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr_1_1iterator.html">Expr::iterator</a> &end, <a name="l00141"></a>00141 <span class="keyword">const</span> vector<Proof>& pfs) { <a name="l00142"></a>00142 vector<Expr> kids; <a name="l00143"></a>00143 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00144"></a>00144 kids.insert(kids.end(), begin, end); <a name="l00145"></a>00145 <span class="keywordflow">for</span>(vector<Proof>::const_iterator i=pfs.begin(), iend=pfs.end(); <a name="l00146"></a>00146 i != iend; ++i) <a name="l00147"></a>00147 kids.push_back(i->getExpr()); <a name="l00148"></a>00148 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00149"></a>00149 } <a name="l00150"></a>00150 <a name="l00151"></a>00151 <a name="l00152"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#afbc79087033fcd7a9c14faca4fee9d34">00152</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00153"></a>00153 <span class="keyword">const</span> vector<Expr>& args) { <a name="l00154"></a>00154 vector<Expr> kids; <a name="l00155"></a>00155 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00156"></a>00156 kids.insert(kids.end(), args.begin(), args.end()); <a name="l00157"></a>00157 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00158"></a>00158 } <a name="l00159"></a>00159 <a name="l00160"></a>00160 <a name="l00161"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a8748ea26e91b5d0046ba28ffaa085935">00161</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00162"></a>00162 <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="l00163"></a>00163 <span class="keyword">const</span> vector<Expr>& args) { <a name="l00164"></a>00164 vector<Expr> kids; <a name="l00165"></a>00165 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00166"></a>00166 kids.push_back(e); <a name="l00167"></a>00167 kids.insert(kids.end(), args.begin(), args.end()); <a name="l00168"></a>00168 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00169"></a>00169 } <a name="l00170"></a>00170 <a name="l00171"></a>00171 <a name="l00172"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a9620645731b7d636c5988319d2b02513">00172</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00173"></a>00173 <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="l00174"></a>00174 <span class="keyword">const</span> vector<Proof>& pfs) { <a name="l00175"></a>00175 vector<Expr> kids; <a name="l00176"></a>00176 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00177"></a>00177 kids.push_back(e); <a name="l00178"></a>00178 <span class="keywordflow">for</span>(vector<Proof>::const_iterator i=pfs.begin(), iend=pfs.end(); <a name="l00179"></a>00179 i != iend; ++i) <a name="l00180"></a>00180 kids.push_back(i->getExpr()); <a name="l00181"></a>00181 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00182"></a>00182 } <a name="l00183"></a>00183 <a name="l00184"></a>00184 <a name="l00185"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a9dd3b2ab2d8230f47795e65d2c48fb04">00185</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00186"></a>00186 <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="l00187"></a>00187 <span class="keyword">const</span> vector<Proof>& pfs) { <a name="l00188"></a>00188 vector<Expr> kids; <a name="l00189"></a>00189 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00190"></a>00190 kids.push_back(e1); <a name="l00191"></a>00191 kids.push_back(e2); <a name="l00192"></a>00192 <span class="keywordflow">for</span>(vector<Proof>::const_iterator i=pfs.begin(), iend=pfs.end(); <a name="l00193"></a>00193 i != iend; ++i) <a name="l00194"></a>00194 kids.push_back(i->getExpr()); <a name="l00195"></a>00195 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00196"></a>00196 } <a name="l00197"></a>00197 <a name="l00198"></a>00198 <a name="l00199"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#ac8ad8684a67b13b361a8569d825b2098">00199</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00200"></a>00200 <span class="keyword">const</span> vector<Proof>& pfs) { <a name="l00201"></a>00201 vector<Expr> kids; <a name="l00202"></a>00202 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00203"></a>00203 <span class="keywordflow">for</span>(vector<Proof>::const_iterator i=pfs.begin(), iend=pfs.end(); <a name="l00204"></a>00204 i != iend; ++i) <a name="l00205"></a>00205 kids.push_back(i->getExpr()); <a name="l00206"></a>00206 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00207"></a>00207 } <a name="l00208"></a>00208 <a name="l00209"></a>00209 <a name="l00210"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a241ecbd26413d976be8cc1d34f7f93e2">00210</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00211"></a>00211 <span class="keyword">const</span> vector<Expr>& args, <a name="l00212"></a>00212 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& pf) { <a name="l00213"></a>00213 vector<Expr> kids; <a name="l00214"></a>00214 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00215"></a>00215 kids.insert(kids.end(), args.begin(), args.end()); <a name="l00216"></a>00216 kids.push_back(pf.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>()); <a name="l00217"></a>00217 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00218"></a>00218 } <a name="l00219"></a>00219 <a name="l00220"></a>00220 <a name="l00221"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#ac903fe293131f805c477a7830956de9a">00221</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>& name, <a name="l00222"></a>00222 <span class="keyword">const</span> vector<Expr>& args, <a name="l00223"></a>00223 <span class="keyword">const</span> vector<Proof>& pfs) { <a name="l00224"></a>00224 vector<Expr> kids; <a name="l00225"></a>00225 kids.push_back(<a class="code" href="classCVC3_1_1TheoremProducer.html#a1b706238281ad141a57363a6890f14a5">d_em</a>-><a class="code" href="group__EM__Priv.html#ga4d52ed373636679c2dd651d10822a3ee">newVarExpr</a>(name)); <a name="l00226"></a>00226 kids.insert(kids.end(), args.begin(), args.end()); <a name="l00227"></a>00227 <span class="keywordflow">for</span>(vector<Proof>::const_iterator i=pfs.begin(), iend=pfs.end(); <a name="l00228"></a>00228 i != iend; ++i) <a name="l00229"></a>00229 kids.push_back(i->getExpr()); <a name="l00230"></a>00230 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#adcb2b6244c679d22b4a684fb39fd3558">d_pfOp</a>, kids)); <a name="l00231"></a>00231 } <a name="l00232"></a>00232 <a name="l00233"></a>00233 <a name="l00234"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#a5703a2ebdbed3225aa886e4476c683ec">00234</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& label, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& frm, <a name="l00235"></a>00235 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& pf) { <a name="l00236"></a>00236 <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> v(label.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>()); <a name="l00237"></a>00237 <a class="code" href="debug_8h.html#a600cb2d68efe7cc413cccbb5714c7016">IF_DEBUG</a>(<a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> tp(frm, <span class="keyword">true</span>);) <a name="l00238"></a>00238 <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(v.isVar() && v.getType() == tp, <a name="l00239"></a>00239 <span class="stringliteral">"TheoremProducer::newPf: bad variable in LAMBDA expression: "</span> <a name="l00240"></a>00240 +v.toString()); <a name="l00241"></a>00241 vector<Expr> u; <a name="l00242"></a>00242 u.push_back(v); <a name="l00243"></a>00243 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#a27015759e6bdfced928fc5a2d9877b7d">d_tm</a>-><a class="code" href="classCVC3_1_1TheoremManager.html#a12fd5db0a56006d3cd4123fec058b2ca">getEM</a>()-><a class="code" href="group__EM__Priv.html#ga0d2ff7603a249b30b2df4e549607ad6e">newClosureExpr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba40176493726a127184ca47ea6352dc1f">LAMBDA</a>, u, pf.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>())); <a name="l00244"></a>00244 } <a name="l00245"></a>00245 <a name="l00246"></a>00246 <a name="l00247"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#ab928d4883eab42df337ce09447c49702">00247</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& label, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& pf) { <a name="l00248"></a>00248 <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> v(label.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>()); <a name="l00249"></a>00249 <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(v.isVar(), <a name="l00250"></a>00250 <span class="stringliteral">"TheoremProducer::newPf: bad variable in LAMBDA expression: "</span> <a name="l00251"></a>00251 +v.toString()); <a name="l00252"></a>00252 vector<Expr> u; <a name="l00253"></a>00253 u.push_back(v); <a name="l00254"></a>00254 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#a27015759e6bdfced928fc5a2d9877b7d">d_tm</a>-><a class="code" href="classCVC3_1_1TheoremManager.html#a12fd5db0a56006d3cd4123fec058b2ca">getEM</a>()-><a class="code" href="group__EM__Priv.html#ga0d2ff7603a249b30b2df4e549607ad6e">newClosureExpr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba40176493726a127184ca47ea6352dc1f">LAMBDA</a>, u, pf.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>())); <a name="l00255"></a>00255 } <a name="l00256"></a>00256 <a name="l00257"></a>00257 <a name="l00258"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#aad2d702b1e1a7e024d1068cbde1b8d77">00258</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> std::vector<Proof>& labels, <a name="l00259"></a>00259 <span class="keyword">const</span> std::vector<Expr>& frms, <a name="l00260"></a>00260 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& pf) { <a name="l00261"></a>00261 std::vector<Expr> u; <a name="l00262"></a>00262 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> i=0; i<labels.size(); i++) { <a name="l00263"></a>00263 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& v = labels[i].getExpr(); <a name="l00264"></a>00264 <a class="code" href="debug_8h.html#a600cb2d68efe7cc413cccbb5714c7016">IF_DEBUG</a>(<a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> tp(frms[i], <span class="keyword">true</span>);) <a name="l00265"></a>00265 <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(v.<a class="code" href="group__ExprPkg.html#ga55b6a203b4375e64598306596851d9ae">isVar</a>(), <a name="l00266"></a>00266 <span class="stringliteral">"TheoremProducer::newPf: bad variable in LAMBDA expression: "</span> <a name="l00267"></a>00267 +v.<a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>()); <a name="l00268"></a>00268 <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(v.<a class="code" href="group__ExprPkg.html#ga42929221eb172250697b72c28af6de07" title="Get the type. Recursively compute if necessary.">getType</a>() == tp, <a name="l00269"></a>00269 <span class="stringliteral">"TheoremProducer::newPf: wrong variable type in "</span> <a name="l00270"></a>00270 <span class="stringliteral">"LAMBDA expression.\nExpected: "</span>+tp.<a class="code" href="classCVC3_1_1Type.html#a0bc1eebf8dbd9d2880e1f18d7804e5c2">getExpr</a>().<a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>() <a name="l00271"></a>00271 +<span class="stringliteral">"\nFound: "</span>+v.<a class="code" href="group__ExprPkg.html#ga42929221eb172250697b72c28af6de07" title="Get the type. Recursively compute if necessary.">getType</a>().<a class="code" href="classCVC3_1_1Type.html#a0bc1eebf8dbd9d2880e1f18d7804e5c2">getExpr</a>().<a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>()); <a name="l00272"></a>00272 u.push_back(v); <a name="l00273"></a>00273 } <a name="l00274"></a>00274 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#a27015759e6bdfced928fc5a2d9877b7d">d_tm</a>-><a class="code" href="classCVC3_1_1TheoremManager.html#a12fd5db0a56006d3cd4123fec058b2ca">getEM</a>()-><a class="code" href="group__EM__Priv.html#ga0d2ff7603a249b30b2df4e549607ad6e">newClosureExpr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba40176493726a127184ca47ea6352dc1f">LAMBDA</a>, u, pf.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>())); <a name="l00275"></a>00275 } <a name="l00276"></a>00276 <a name="l00277"></a>00277 <a name="l00278"></a><a class="code" href="classCVC3_1_1TheoremProducer.html#abe7fac97b88de3346898e955456adc75">00278</a> <a class="code" href="classCVC3_1_1Proof.html">Proof</a> <a class="code" href="classCVC3_1_1TheoremProducer.html#a9a8e67b1fb33d5dfe428a659d8c66651">TheoremProducer::newPf</a>(<span class="keyword">const</span> std::vector<Proof>& labels, <a name="l00279"></a>00279 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>& pf) { <a name="l00280"></a>00280 std::vector<Expr> u; <a name="l00281"></a>00281 <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> i=0; i<labels.size(); i++) { <a name="l00282"></a>00282 <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>& v = labels[i].getExpr(); <a name="l00283"></a>00283 <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(v.<a class="code" href="group__ExprPkg.html#ga55b6a203b4375e64598306596851d9ae">isVar</a>(), <a name="l00284"></a>00284 <span class="stringliteral">"TheoremProducer::newPf: bad variable in LAMBDA expression: "</span> <a name="l00285"></a>00285 +v.<a class="code" href="group__ExprPkg.html#gaf3028bb1619f8cc69b66ec712e1adb54" title="Print the expression to a string.">toString</a>()); <a name="l00286"></a>00286 u.push_back(v); <a name="l00287"></a>00287 } <a name="l00288"></a>00288 <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1Proof.html">Proof</a>(<a class="code" href="classCVC3_1_1TheoremProducer.html#a27015759e6bdfced928fc5a2d9877b7d">d_tm</a>-><a class="code" href="classCVC3_1_1TheoremManager.html#a12fd5db0a56006d3cd4123fec058b2ca">getEM</a>()-><a class="code" href="group__EM__Priv.html#ga0d2ff7603a249b30b2df4e549607ad6e">newClosureExpr</a>(<a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba40176493726a127184ca47ea6352dc1f">LAMBDA</a>, u, pf.<a class="code" href="classCVC3_1_1Proof.html#a20cd8a5db4f7f07155464880300fb4c9">getExpr</a>())); <a name="l00289"></a>00289 } </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>