Sophie

Sophie

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

cvc3-doc-2.4.1-1.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>CVC3: LFSCLraProof.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&#160;<span id="projectnumber">2.4.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">LFSCLraProof.cpp</div>  </div>
</div>
<div class="contents">
<a href="LFSCLraProof_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &quot;<a class="code" href="LFSCLraProof_8h.html">LFSCLraProof.h</a>&quot;</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">//LFSCLraAdd ...</span>
<a name="l00004"></a>00004 
<a name="l00005"></a><a class="code" href="classLFSCLraAdd.html#a606f0a1297b4cce586f3111c1598808b">00005</a> <span class="keywordtype">void</span> <a class="code" href="classLFSCLraAdd.html#a606f0a1297b4cce586f3111c1598808b">LFSCLraAdd::print_pf</a>( std::ostream&amp; s, <span class="keywordtype">int</span> ind )
<a name="l00006"></a>00006 {
<a name="l00007"></a>00007   s&lt;&lt;<span class="stringliteral">&quot;(lra_add_&quot;</span>;
<a name="l00008"></a>00008   s &lt;&lt;<a class="code" href="Util_8cpp.html#af0ed1bf9d4012011aa2b42be9c26a0b5">kind_to_str</a>(<a class="code" href="classLFSCLraAdd.html#afb25f59c4b8a73e1b4bea1f43d4b42c8">d_op1</a>);
<a name="l00009"></a>00009   s &lt;&lt;<span class="stringliteral">&quot;_&quot;</span>;
<a name="l00010"></a>00010   s &lt;&lt; <a class="code" href="Util_8cpp.html#af0ed1bf9d4012011aa2b42be9c26a0b5">kind_to_str</a>(<a class="code" href="classLFSCLraAdd.html#a08bbcfafa29abbc7aafbfca31bafc878">d_op2</a>);
<a name="l00011"></a>00011   s &lt;&lt;<span class="stringliteral">&quot; _ _ _ &quot;</span>;
<a name="l00012"></a>00012   <a class="code" href="classLFSCLraAdd.html#ac6719308cb218ceb7298c05c26bc9eca">d_children</a>[0]-&gt;print(s, ind+1);
<a name="l00013"></a>00013   s&lt;&lt;<span class="stringliteral">&quot; &quot;</span>;
<a name="l00014"></a>00014   <a class="code" href="classLFSCLraAdd.html#ac6719308cb218ceb7298c05c26bc9eca">d_children</a>[1]-&gt;print(s, ind+1);
<a name="l00015"></a>00015   s&lt;&lt;<span class="stringliteral">&quot;)&quot;</span>;
<a name="l00016"></a>00016 }
<a name="l00017"></a><a class="code" href="classLFSCLraAdd.html#aa1d14054914f4333c90cf53a0d23de76">00017</a> <a class="code" href="classLFSCProof.html">LFSCProof</a>* <a class="code" href="classLFSCLraAdd.html#aa1d14054914f4333c90cf53a0d23de76">LFSCLraAdd::Make</a>(<a class="code" href="classLFSCProof.html">LFSCProof</a>* pf1, <a class="code" href="classLFSCProof.html">LFSCProof</a>* pf2, <span class="keywordtype">int</span> op1, <span class="keywordtype">int</span> op2)
<a name="l00018"></a>00018 {
<a name="l00019"></a>00019   <span class="keywordflow">if</span>( pf1-&gt;<a class="code" href="classLFSCProof.html#a094c8c12bcb8ee3b1ec7a51b5568c355">isTrivial</a>() )
<a name="l00020"></a>00020     <span class="keywordflow">return</span> pf2;
<a name="l00021"></a>00021   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( pf2-&gt;<a class="code" href="classLFSCProof.html#a094c8c12bcb8ee3b1ec7a51b5568c355">isTrivial</a>() )
<a name="l00022"></a>00022     <span class="keywordflow">return</span> pf1;
<a name="l00023"></a>00023   <span class="keywordflow">else</span>{
<a name="l00024"></a>00024     op1 = pf1-&gt;<a class="code" href="classLFSCProof.html#a8bb7d43de0773db524227b1c2af54bb0">checkOp</a>()!=-1 ? pf1-&gt;<a class="code" href="classLFSCProof.html#a8bb7d43de0773db524227b1c2af54bb0">checkOp</a>() : op1;
<a name="l00025"></a>00025     op2 = pf2-&gt;<a class="code" href="classLFSCProof.html#a8bb7d43de0773db524227b1c2af54bb0">checkOp</a>()!=-1 ? pf2-&gt;<a class="code" href="classLFSCProof.html#a8bb7d43de0773db524227b1c2af54bb0">checkOp</a>() : op2;
<a name="l00026"></a>00026     <span class="keywordflow">if</span>( <a class="code" href="Util_8cpp.html#a0372a92d5751b352ddaec681fd16ec03">get_knd_order</a>( op1 )&gt;<a class="code" href="Util_8cpp.html#a0372a92d5751b352ddaec681fd16ec03">get_knd_order</a>( op2 ) )
<a name="l00027"></a>00027       <span class="keywordflow">return</span> <a class="code" href="classLFSCLraAdd.html#aa1d14054914f4333c90cf53a0d23de76">Make</a>( pf2, pf1, op2, op1 );
<a name="l00028"></a>00028     <span class="keywordflow">else</span>
<a name="l00029"></a>00029       <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classLFSCLraAdd.html#a9724d04ec280ff9130b332f76a6051d1">LFSCLraAdd</a>( pf1, pf2, op1, op2 );
<a name="l00030"></a>00030   }
<a name="l00031"></a>00031 }
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="comment">// LFSCLraAxiom ...</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <a class="code" href="classRefPtr.html">RefPtr&lt; LFSCProof &gt;</a> <a class="code" href="classLFSCLraAxiom.html#a0ca69fa241c154902481aca414233c63">LFSCLraAxiom::eq</a>;
<a name="l00036"></a>00036 
<a name="l00037"></a><a class="code" href="classLFSCLraAxiom.html#aa66e0ed64485094885554d14f6129112">00037</a> <a class="code" href="classLFSCProof.html">LFSCProof</a>* <a class="code" href="classLFSCLraAxiom.html#aa66e0ed64485094885554d14f6129112">LFSCLraAxiom::MakeEq</a>(){ 
<a name="l00038"></a>00038   <span class="keywordflow">if</span>( !<a class="code" href="classLFSCLraAxiom.html#a0ca69fa241c154902481aca414233c63">eq</a>.<a class="code" href="classRefPtr.html#a2b987fbb75b20a1da1bd959325635e7e">get</a>() ){
<a name="l00039"></a>00039     <a class="code" href="classLFSCLraAxiom.html#a0ca69fa241c154902481aca414233c63">eq</a> = <span class="keyword">new</span> <a class="code" href="classLFSCLraAxiom.html#a6fab77061a7a774bac25d9c85bd0c051">LFSCLraAxiom</a>( <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba9efdc855f3c1477957fb50affec07f8f">EQ</a> ); 
<a name="l00040"></a>00040   }
<a name="l00041"></a>00041   <span class="keywordflow">return</span> <a class="code" href="classLFSCLraAxiom.html#a0ca69fa241c154902481aca414233c63">eq</a>.<a class="code" href="classRefPtr.html#a2b987fbb75b20a1da1bd959325635e7e">get</a>();
<a name="l00042"></a>00042 }
<a name="l00043"></a>00043 
<a name="l00044"></a><a class="code" href="classLFSCLraAxiom.html#a48603e9301acbd8b355ac92a6c4db0cd">00044</a> <span class="keywordtype">void</span> <a class="code" href="classLFSCLraAxiom.html#a48603e9301acbd8b355ac92a6c4db0cd">LFSCLraAxiom::print_pf</a>( std::ostream&amp; s, <span class="keywordtype">int</span> ind )
<a name="l00045"></a>00045 {
<a name="l00046"></a>00046   s&lt;&lt;<span class="stringliteral">&quot;(lra_axiom_&quot;</span> &lt;&lt; <a class="code" href="Util_8cpp.html#af0ed1bf9d4012011aa2b42be9c26a0b5">kind_to_str</a>(<a class="code" href="classLFSCLraAxiom.html#aac2856c31f86b81c01c047a0767ec915">d_op</a>);
<a name="l00047"></a>00047   <span class="keywordflow">if</span>( <a class="code" href="classLFSCLraAxiom.html#aac2856c31f86b81c01c047a0767ec915">d_op</a>!= <a class="code" href="kinds_8h.html#aa10c9e8951b8ccf714a59ec321bdac5ba9efdc855f3c1477957fb50affec07f8f">EQ</a> ){
<a name="l00048"></a>00048     s &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;
<a name="l00049"></a>00049     <a class="code" href="Util_8cpp.html#a64021a0f1532b0f4dfb19867114c6efb">print_rational</a>( <a class="code" href="classLFSCLraAxiom.html#a47d22d436209e94a4f609a22ef3e9169">d_r</a>, s );
<a name="l00050"></a>00050   }
<a name="l00051"></a>00051   s&lt;&lt;<span class="stringliteral">&quot;)&quot;</span>;
<a name="l00052"></a>00052 }
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="comment">//LFSCLraMulC ...</span>
<a name="l00055"></a>00055 
<a name="l00056"></a><a class="code" href="classLFSCLraMulC.html#a2bf14817557003c1c3f07b7e6bc61796">00056</a> <span class="keywordtype">void</span> <a class="code" href="classLFSCLraMulC.html#a2bf14817557003c1c3f07b7e6bc61796">LFSCLraMulC::print_pf</a>( std::ostream&amp; s, <span class="keywordtype">int</span> ind )
<a name="l00057"></a>00057 {
<a name="l00058"></a>00058   s &lt;&lt;<span class="stringliteral">&quot;(lra_mul_c_&quot;</span>&lt;&lt;<a class="code" href="Util_8cpp.html#af0ed1bf9d4012011aa2b42be9c26a0b5">kind_to_str</a>(<a class="code" href="classLFSCLraMulC.html#a23906851fdc8d8093a1e01fa6d2ba2cc">d_op</a>)&lt;&lt;<span class="stringliteral">&quot; _ _ &quot;</span>;
<a name="l00059"></a>00059   <a class="code" href="Util_8cpp.html#a64021a0f1532b0f4dfb19867114c6efb">print_rational</a>( <a class="code" href="classLFSCLraMulC.html#a490a2ef1271a491509ab625033fd9713">d_r</a>, s );
<a name="l00060"></a>00060   s &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;
<a name="l00061"></a>00061   <a class="code" href="classLFSCLraMulC.html#aed28c2bba2487f155b4f536526603047">d_pf</a>-&gt;print( s, ind+1 );
<a name="l00062"></a>00062   s &lt;&lt; <span class="stringliteral">&quot;)&quot;</span>;
<a name="l00063"></a>00063 }
<a name="l00064"></a>00064 
<a name="l00065"></a><a class="code" href="classLFSCLraMulC.html#ab2262ccc40a6212bbc9182700a2b0e73">00065</a> <a class="code" href="classLFSCProof.html">LFSCProof</a>* <a class="code" href="classLFSCLraMulC.html#ab2262ccc40a6212bbc9182700a2b0e73">LFSCLraMulC::Make</a>(<a class="code" href="classLFSCProof.html">LFSCProof</a>* pf, <a class="code" href="classCVC3_1_1Rational.html">Rational</a> r, <span class="keywordtype">int</span> op)
<a name="l00066"></a>00066 {
<a name="l00067"></a>00067   <span class="keywordflow">if</span>( pf-&gt;<a class="code" href="classLFSCProof.html#a094c8c12bcb8ee3b1ec7a51b5568c355">isTrivial</a>() || r==1 )
<a name="l00068"></a>00068     <span class="keywordflow">return</span> pf;
<a name="l00069"></a>00069   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( pf-&gt;<a class="code" href="classLFSCProof.html#a87f99538036f96fd800bc97049478af2">AsLFSCLraMulC</a>() ){
<a name="l00070"></a>00070     <a class="code" href="classCVC3_1_1Rational.html">Rational</a> rt = r*pf-&gt;<a class="code" href="classLFSCProof.html#a87f99538036f96fd800bc97049478af2">AsLFSCLraMulC</a>()-&gt;<a class="code" href="classLFSCLraMulC.html#a490a2ef1271a491509ab625033fd9713">d_r</a>;
<a name="l00071"></a>00071     <span class="keywordflow">if</span>( rt==1 )
<a name="l00072"></a>00072       <span class="keywordflow">return</span> pf-&gt;<a class="code" href="classLFSCProof.html#a87f99538036f96fd800bc97049478af2">AsLFSCLraMulC</a>()-&gt;<a class="code" href="classLFSCLraMulC.html#aed28c2bba2487f155b4f536526603047">d_pf</a>.<a class="code" href="classRefPtr.html#a2b987fbb75b20a1da1bd959325635e7e">get</a>();
<a name="l00073"></a>00073     <span class="keywordflow">else</span>
<a name="l00074"></a>00074       <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classLFSCLraMulC.html#ac6b96c5fd8fbc5099b751b373edc7141">LFSCLraMulC</a>( pf-&gt;<a class="code" href="classLFSCProof.html#a87f99538036f96fd800bc97049478af2">AsLFSCLraMulC</a>()-&gt;<a class="code" href="classLFSCLraMulC.html#aed28c2bba2487f155b4f536526603047">d_pf</a>.<a class="code" href="classRefPtr.html#a2b987fbb75b20a1da1bd959325635e7e">get</a>(), rt, op );
<a name="l00075"></a>00075   }<span class="keywordflow">else</span>
<a name="l00076"></a>00076     <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classLFSCLraMulC.html#ac6b96c5fd8fbc5099b751b373edc7141">LFSCLraMulC</a>( pf, r, op );
<a name="l00077"></a>00077 }
<a name="l00078"></a>00078 
<a name="l00079"></a>00079 <span class="comment">//LFSCLraSub ...</span>
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="classLFSCLraSub.html#a636294ce853f360b1813b6547cb8d37c">00081</a> <span class="keywordtype">void</span> <a class="code" href="classLFSCLraSub.html#a636294ce853f360b1813b6547cb8d37c">LFSCLraSub::print_pf</a>( std::ostream&amp; s, <span class="keywordtype">int</span> ind ){
<a name="l00082"></a>00082   s &lt;&lt;<span class="stringliteral">&quot;(lra_sub_&quot;</span>&lt;&lt;<a class="code" href="Util_8cpp.html#af0ed1bf9d4012011aa2b42be9c26a0b5">kind_to_str</a>(<a class="code" href="classLFSCLraSub.html#acfa4dc578e51efaa96bdae49830879a1">d_op1</a>)&lt;&lt;<span class="stringliteral">&quot;_&quot;</span>&lt;&lt;<a class="code" href="Util_8cpp.html#af0ed1bf9d4012011aa2b42be9c26a0b5">kind_to_str</a>(<a class="code" href="classLFSCLraSub.html#a59044704622ff8cf4a328f2561e5739f">d_op2</a>)&lt;&lt;<span class="stringliteral">&quot; _ _ _ &quot;</span>;
<a name="l00083"></a>00083   <a class="code" href="classLFSCLraSub.html#ad94dea36a4e215e4f6d6ffc8c773ff69">d_children</a>[0]-&gt;print(s, ind+1);
<a name="l00084"></a>00084   s &lt;&lt;<span class="stringliteral">&quot; &quot;</span>;
<a name="l00085"></a>00085   <a class="code" href="classLFSCLraSub.html#ad94dea36a4e215e4f6d6ffc8c773ff69">d_children</a>[1]-&gt;print(s, ind+1);
<a name="l00086"></a>00086   s &lt;&lt;<span class="stringliteral">&quot;)&quot;</span>;
<a name="l00087"></a>00087 }
<a name="l00088"></a>00088 
<a name="l00089"></a><a class="code" href="classLFSCLraSub.html#a66b3327a7dadc49a0e072b6d1f6f6289">00089</a> <a class="code" href="classLFSCProof.html">LFSCProof</a>* <a class="code" href="classLFSCLraSub.html#a66b3327a7dadc49a0e072b6d1f6f6289">LFSCLraSub::Make</a>(<a class="code" href="classLFSCProof.html">LFSCProof</a>* pf1, <a class="code" href="classLFSCProof.html">LFSCProof</a>* pf2, <span class="keywordtype">int</span> op1, <span class="keywordtype">int</span> op2){
<a name="l00090"></a>00090   <span class="keywordflow">if</span>( pf2-&gt;<a class="code" href="classLFSCProof.html#a094c8c12bcb8ee3b1ec7a51b5568c355">isTrivial</a>() )
<a name="l00091"></a>00091     <span class="keywordflow">return</span> pf1;
<a name="l00092"></a>00092   <span class="keywordflow">else</span> <span class="keywordflow">if</span>( pf1-&gt;<a class="code" href="classLFSCProof.html#a094c8c12bcb8ee3b1ec7a51b5568c355">isTrivial</a>() ){
<a name="l00093"></a>00093     <a class="code" href="classCVC3_1_1Rational.html">Rational</a> r = <a class="code" href="classCVC3_1_1Rational.html">Rational</a>( -1 );
<a name="l00094"></a>00094     <span class="keywordflow">return</span> <a class="code" href="classLFSCLraSub.html#a66b3327a7dadc49a0e072b6d1f6f6289">LFSCLraMulC::Make</a>( pf2, r, op2 );
<a name="l00095"></a>00095   }<span class="keywordflow">else</span>
<a name="l00096"></a>00096     <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classLFSCLraSub.html#afd42d8df24158087e418c8b948caa0b1">LFSCLraSub</a>( pf1, pf2, op1, op2 );
<a name="l00097"></a>00097 }
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="comment">//LFSCLraPoly ...</span>
<a name="l00100"></a>00100 
<a name="l00101"></a><a class="code" href="classLFSCLraPoly.html#a94af3dd8672407e26643aaec09e7bc49">00101</a> <span class="keywordtype">void</span> <a class="code" href="classLFSCLraPoly.html#a94af3dd8672407e26643aaec09e7bc49">LFSCLraPoly::print_pf</a>( std::ostream&amp; s, <span class="keywordtype">int</span> ind ){
<a name="l00102"></a>00102   <span class="keywordflow">if</span>( <a class="code" href="classLFSCLraPoly.html#a29115b181eddb84f4958b9b729a13990">d_var</a>&lt;0 ){
<a name="l00103"></a>00103     s &lt;&lt; <span class="stringliteral">&quot;(lra_not_&quot;</span> &lt;&lt; <a class="code" href="Util_8cpp.html#af0ed1bf9d4012011aa2b42be9c26a0b5">kind_to_str</a>(<a class="code" href="Util_8cpp.html#a667a5939ed7f0fba1d9a06f52a674832">get_normalized</a>( <a class="code" href="classLFSCLraPoly.html#a5ce29cb2c6cb3955220e54be0a5d91af">d_op</a> ));
<a name="l00104"></a>00104     s &lt;&lt; <span class="stringliteral">&quot;_to_&quot;</span> &lt;&lt; <a class="code" href="Util_8cpp.html#af0ed1bf9d4012011aa2b42be9c26a0b5">kind_to_str</a>(<a class="code" href="Util_8cpp.html#a667a5939ed7f0fba1d9a06f52a674832">get_normalized</a>( <a class="code" href="Util_8cpp.html#a796942d5524726336add29080f902785">get_not</a>( <a class="code" href="classLFSCLraPoly.html#a5ce29cb2c6cb3955220e54be0a5d91af">d_op</a> ) ));
<a name="l00105"></a>00105     s &lt;&lt; <span class="stringliteral">&quot; _ _&quot;</span>;
<a name="l00106"></a>00106   }
<a name="l00107"></a>00107   s &lt;&lt; <span class="stringliteral">&quot; (poly_form&quot;</span>;
<a name="l00108"></a>00108   <span class="keywordflow">if</span>( <a class="code" href="classLFSCLraPoly.html#a29115b181eddb84f4958b9b729a13990">d_var</a>&lt;0 )
<a name="l00109"></a>00109     s &lt;&lt; <span class="stringliteral">&quot;_not&quot;</span>;
<a name="l00110"></a>00110   s &lt;&lt; <span class="stringliteral">&quot; _ _ @pn&quot;</span> &lt;&lt; <a class="code" href="namespaceCVC3.html#a39fc111339d6dffdc98d6a25b68dff0e">abs</a>( <a class="code" href="classLFSCLraPoly.html#a29115b181eddb84f4958b9b729a13990">d_var</a> ) &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;
<a name="l00111"></a>00111   <a class="code" href="classLFSCLraPoly.html#a088b97fe13460e7ab5240f6484606033">d_pf</a>-&gt;print( s, ind );
<a name="l00112"></a>00112   s &lt;&lt; <span class="stringliteral">&quot;)&quot;</span>;
<a name="l00113"></a>00113   <span class="keywordflow">if</span>( <a class="code" href="classLFSCLraPoly.html#a29115b181eddb84f4958b9b729a13990">d_var</a>&lt;0 )
<a name="l00114"></a>00114     s &lt;&lt; <span class="stringliteral">&quot;)&quot;</span>;
<a name="l00115"></a>00115 }
<a name="l00116"></a>00116 
<a name="l00117"></a><a class="code" href="classLFSCLraPoly.html#ae2ca7c3166c207c584a5c8888d5d2ad8">00117</a> <a class="code" href="classLFSCProof.html">LFSCProof</a>* <a class="code" href="classLFSCLraPoly.html#ac525239ecb136141bfa7e2b2f2b0391d">LFSCLraPoly::Make</a>( <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e, <a class="code" href="classLFSCProof.html">LFSCProof</a>* p )
<a name="l00118"></a>00118 {
<a name="l00119"></a>00119   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> e1 = <a class="code" href="classLFSCObj.html#a024a42781132867e23a7f6e65e6d0f98">queryAtomic</a>( e );
<a name="l00120"></a>00120   <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> eb = <a class="code" href="classLFSCObj.html#a024a42781132867e23a7f6e65e6d0f98">queryAtomic</a>( e, <span class="keyword">true</span> );
<a name="l00121"></a>00121   <span class="keywordflow">if</span>( <a class="code" href="Util_8cpp.html#a5462f02c7d83367f4d9e1b99f1975cb7">is_eq_kind</a>( e1.<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() ) )
<a name="l00122"></a>00122   {
<a name="l00123"></a>00123     <span class="keywordtype">int</span> m = <a class="code" href="classLFSCObj.html#ab0f17f592443a6a15fe2cb7446308e65">queryM</a>( e );
<a name="l00124"></a>00124     <span class="comment">//get the required term that is needed to normalize</span>
<a name="l00125"></a>00125     <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a> et;
<a name="l00126"></a>00126     <span class="keywordflow">if</span>( <a class="code" href="Util_8cpp.html#a1b08319c48e19ef89eb32d27801c9bfb">is_opposite</a>( eb.<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() )  )
<a name="l00127"></a>00127       et = <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>( <a class="code" href="namespaceCVC3.html#a32d50a30de0e9e5bc4c2451de0107024aba18e0accfb91ddb34f4dcc79c626ec5">MINUS</a>, eb[1], eb[0] );
<a name="l00128"></a>00128     <span class="keywordflow">else</span>
<a name="l00129"></a>00129       et = <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>( <a class="code" href="namespaceCVC3.html#a32d50a30de0e9e5bc4c2451de0107024aba18e0accfb91ddb34f4dcc79c626ec5">MINUS</a>, eb[0], eb[1] );
<a name="l00130"></a>00130 
<a name="l00131"></a>00131     <span class="comment">//et.print();</span>
<a name="l00132"></a>00132 
<a name="l00133"></a>00133     <span class="comment">//get the polynomial normalization proof number</span>
<a name="l00134"></a>00134     <span class="keywordtype">int</span> valT = <a class="code" href="classLFSCObj.html#a4ce15858a0bfeca1b9fdd86b0315005d">queryMt</a>( et );
<a name="l00135"></a>00135     <span class="comment">//store it in d_pn_form (this will setup the proper pn*)</span>
<a name="l00136"></a>00136     <a class="code" href="classLFSCObj.html#aa4fa55b8acd57b674418c69dee792fd7">d_pn_form</a>[eb] = valT;
<a name="l00137"></a>00137 
<a name="l00138"></a>00138     p = <a class="code" href="classLFSCLraPoly.html#ac525239ecb136141bfa7e2b2f2b0391d">LFSCLraPoly::Make</a>( p, m, eb.<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() );
<a name="l00139"></a>00139     p-&gt;<a class="code" href="classLFSCProof.html#a5152d42d473b2305cae68012da611208">setChOp</a>( <a class="code" href="Util_8cpp.html#a667a5939ed7f0fba1d9a06f52a674832">get_normalized</a>( e1.<a class="code" href="group__ExprPkg.html#ga7814e4f55f65c7ca860c637413df5f4d">getKind</a>() ) );
<a name="l00140"></a>00140     <span class="keywordflow">return</span> p;
<a name="l00141"></a>00141     <span class="comment">//if( m&lt;0 )</span>
<a name="l00142"></a>00142     <span class="comment">//{</span>
<a name="l00143"></a>00143     <span class="comment">//  os &lt;&lt; &quot;(lra_not_&quot; &lt;&lt; kind_to_str(get_normalized( eb.getKind() ));</span>
<a name="l00144"></a>00144     <span class="comment">//  os &lt;&lt; &quot;_to_&quot; &lt;&lt; kind_to_str(get_normalized( get_not( eb.getKind() ) ));</span>
<a name="l00145"></a>00145     <span class="comment">//  os &lt;&lt; &quot; _ _&quot;;</span>
<a name="l00146"></a>00146     <span class="comment">//  os2 &lt;&lt; &quot;)&quot;;</span>
<a name="l00147"></a>00147     <span class="comment">//}</span>
<a name="l00148"></a>00148     <span class="comment">//os &lt;&lt; &quot; (poly_form&quot;;</span>
<a name="l00149"></a>00149     <span class="comment">//if( m&lt;0 )</span>
<a name="l00150"></a>00150     <span class="comment">//  os &lt;&lt; &quot;_not&quot;;</span>
<a name="l00151"></a>00151     <span class="comment">//os &lt;&lt; &quot; _ _ @pn&quot; &lt;&lt; abs( m ) &lt;&lt; &quot; &quot;;</span>
<a name="l00152"></a>00152     <span class="comment">//os2 &lt;&lt; &quot;)&quot;;</span>
<a name="l00153"></a>00153   }
<a name="l00154"></a>00154   <span class="keywordflow">else</span>
<a name="l00155"></a>00155   {
<a name="l00156"></a>00156     ostringstream ose;
<a name="l00157"></a>00157     ose &lt;&lt; <span class="stringliteral">&quot;ERROR:make_polynomial_proof: Trying to make non-atomic &quot;</span> &lt;&lt; e1 &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; e.<a class="code" href="group__ExprPkg.html#ga1a898858ccadce833df5a294c7740f11">isNot</a>() &lt;&lt; <a class="code" href="group__ExprStream__Manip.html#ga05b0ea7353ec24fa8e7e272d7a7875d8" title="Print the end-of-line.">std::endl</a>;
<a name="l00158"></a>00158     ose &lt;&lt; e &lt;&lt; <a class="code" href="group__ExprStream__Manip.html#ga05b0ea7353ec24fa8e7e272d7a7875d8" title="Print the end-of-line.">std::endl</a>;
<a name="l00159"></a>00159     <a class="code" href="classObj.html#a7a13d6281d09d895f9db31157fe62f0d">print_error</a>( ose.str().c_str(), cout );
<a name="l00160"></a>00160     <span class="keywordflow">return</span> NULL;
<a name="l00161"></a>00161   }
<a name="l00162"></a>00162 }
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Sep 7 2011 for CVC3 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>