Sophie

Sophie

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

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: records_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&#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">records_theorem_producer.h</div>  </div>
</div>
<div class="contents">
<a href="records__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 records_theorem_producer.h</span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * Author: Daniel Wichs</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Created: Jul 22 22:59:07 GMT 2003</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * License to use, copy, modify, sell and/or distribute this software</span>
<a name="l00012"></a>00012 <span class="comment"> * and its documentation for any purpose is hereby granted without</span>
<a name="l00013"></a>00013 <span class="comment"> * royalty, subject to the terms and conditions defined in the \ref</span>
<a name="l00014"></a>00014 <span class="comment"> * LICENSE file provided with this distribution.</span>
<a name="l00015"></a>00015 <span class="comment"> * </span>
<a name="l00016"></a>00016 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00017"></a>00017 <span class="comment"> * </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="preprocessor">#ifndef _cvc3__records_theorem_producer_h_</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define _cvc3__records_theorem_producer_h_</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="records__proof__rules_8h.html">records_proof_rules.h</a>&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="theorem__producer_8h.html">theorem_producer.h</a>&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="theory__records_8h.html">theory_records.h</a>&quot;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">namespace </span>CVC3 {
<a name="l00028"></a>00028   
<a name="l00029"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html">00029</a>   <span class="keyword">class </span><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html">RecordsTheoremProducer</a>: <span class="keyword">public</span> <a class="code" href="classCVC3_1_1RecordsProofRules.html">RecordsProofRules</a>,
<a name="l00030"></a>00030     <span class="keyword">public</span> <a class="code" href="classCVC3_1_1TheoremProducer.html">TheoremProducer</a> {
<a name="l00031"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">00031</a>       <a class="code" href="classCVC3_1_1TheoryRecords.html" title="This theory handles records.">TheoryRecords</a>* <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>;
<a name="l00032"></a>00032 
<a name="l00033"></a>00033     <span class="keyword">public</span>:
<a name="l00034"></a>00034     <span class="comment">// Constructor</span>
<a name="l00035"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ae3c59db05725732c5cd94761d9e58862">00035</a>       <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ae3c59db05725732c5cd94761d9e58862">RecordsTheoremProducer</a>(<a class="code" href="classCVC3_1_1TheoremManager.html">TheoremManager</a>* tm, <a class="code" href="classCVC3_1_1TheoryRecords.html" title="This theory handles records.">TheoryRecords</a>* t):
<a name="l00036"></a>00036   <a class="code" href="classCVC3_1_1TheoremProducer.html">TheoremProducer</a>(tm), <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>(t) { }
<a name="l00037"></a>00037       <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a6daf5a4886315133bf830d52c6fb010d" title="==&gt; (SELECT (LITERAL v1 ... vi ...) fi) = vi">rewriteLitSelect</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 name="l00038"></a>00038       <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#aa5d335a5684178e3553a9ce69a265046" title="==&gt; (RECORD_SELECT (RECORD_UPDATE r fi vi) fj) = vi">rewriteUpdateSelect</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 name="l00039"></a>00039       <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ae794bafd39256699bda95e85e01ffd39" title="==&gt; (RECORD_UPDATE (RECORD (f1 v1) ... (fi vi) ...) fi v&#39;) =(RECORD (f1 v1) ... (fi v&#39;) ...">rewriteLitUpdate</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 name="l00040"></a>00040       <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ab544bdb188ab71aee6632e22cd1e1384" title="From T|- e = e&#39; return T|- AND (e.i = e&#39;.i) for all i.">expandEq</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; eqThrm);
<a name="l00041"></a>00041       <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#abf649085219bc8a7d787cb6dff3faa02" title="From T|- NOT e=e&#39; return T|- NOT AND (e.i = e&#39;.i) for all i.">expandNeq</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; neqThrm);
<a name="l00042"></a>00042       <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#af56c2526f560cb39a139abe6cf2ac695" title="Expand a record into a literal: |- e = (# f1:=e.f1, ..., fn:=e.fn #)">expandRecord</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 name="l00043"></a>00043       <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a01aaea1cec3e1ccdbbdf15b597d966f4" title="Expand a tuple into a literal: |- e = (e.0, ..., e.n-1)">expandTuple</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 name="l00044"></a>00044 
<a name="l00045"></a>00045       <span class="comment">// Expr creation functions</span><span class="comment"></span>
<a name="l00046"></a>00046 <span class="comment">      //! Test whether expr is a record type</span>
<a name="l00047"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a58c96735d0cf8932a162fe1a4a206f37">00047</a> <span class="comment"></span>      <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a58c96735d0cf8932a162fe1a4a206f37" title="Test whether expr is a record type.">isRecordType</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 name="l00048"></a>00048   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a71dfd95cef55ec88b9c2a29297542ab0" title="Test whether expr is a record type.">isRecordType</a>(e); }<span class="comment"></span>
<a name="l00049"></a>00049 <span class="comment">      //! Test whether Type is a record type</span>
<a name="l00050"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a4977723bfdf10e344ed1c516fd946cdb">00050</a> <span class="comment"></span>      <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a58c96735d0cf8932a162fe1a4a206f37" title="Test whether expr is a record type.">isRecordType</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a>&amp; t)
<a name="l00051"></a>00051   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a71dfd95cef55ec88b9c2a29297542ab0" title="Test whether expr is a record type.">isRecordType</a>(t); }<span class="comment"></span>
<a name="l00052"></a>00052 <span class="comment">      //! Test whether expr is a record select/update subclass</span>
<a name="l00053"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ae68b804354e94823df645f71e03b9a62">00053</a> <span class="comment"></span>      <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ae68b804354e94823df645f71e03b9a62" title="Test whether expr is a record select/update subclass.">isRecordAccess</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 name="l00054"></a>00054   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a09dac099c2d70610b91e30cd21e00fe1" title="Test whether expr is a record select/update subclass.">isRecordAccess</a>(e); }<span class="comment"></span>
<a name="l00055"></a>00055 <span class="comment">      //! Create a record literal</span>
<a name="l00056"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a3ab7c99b6e0525c7cbc0d3793819b2ff">00056</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_1RecordsTheoremProducer.html#a3ab7c99b6e0525c7cbc0d3793819b2ff" title="Create a record literal.">recordExpr</a>(<span class="keyword">const</span> std::vector&lt;std::string&gt;&amp; fields,
<a name="l00057"></a>00057           <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; kids)
<a name="l00058"></a>00058   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#aa5a9cbcd30ed23792c030d70181483d3" title="Create a record literal.">recordExpr</a>(fields, kids); }<span class="comment"></span>
<a name="l00059"></a>00059 <span class="comment">      //! Create a record literal</span>
<a name="l00060"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a616604275fb8ec78e77d7124cf11cc4c">00060</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_1RecordsTheoremProducer.html#a3ab7c99b6e0525c7cbc0d3793819b2ff" title="Create a record literal.">recordExpr</a>(<span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; fields,
<a name="l00061"></a>00061           <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; kids)
<a name="l00062"></a>00062   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#aa5a9cbcd30ed23792c030d70181483d3" title="Create a record literal.">recordExpr</a>(fields, kids); }<span class="comment"></span>
<a name="l00063"></a>00063 <span class="comment">      //! Create a record type</span>
<a name="l00064"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#abb8b17796882d077d7e5f7c948092c99">00064</a> <span class="comment"></span>      <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#abb8b17796882d077d7e5f7c948092c99" title="Create a record type.">recordType</a>(<span class="keyword">const</span> std::vector&lt;std::string&gt;&amp; fields,
<a name="l00065"></a>00065           <span class="keyword">const</span> std::vector&lt;Type&gt;&amp; types)
<a name="l00066"></a>00066   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a4b298f0e7a25449c945480544996d105" title="Create a record type.">recordType</a>(fields, types); }<span class="comment"></span>
<a name="l00067"></a>00067 <span class="comment">      //! Create a record type (field types are given as a vector of Expr)</span>
<a name="l00068"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#aa979f814d7a6a303db5dc7df37e55d37">00068</a> <span class="comment"></span>      <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#abb8b17796882d077d7e5f7c948092c99" title="Create a record type.">recordType</a>(<span class="keyword">const</span> std::vector&lt;std::string&gt;&amp; fields,
<a name="l00069"></a>00069           <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; types)
<a name="l00070"></a>00070   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a4b298f0e7a25449c945480544996d105" title="Create a record type.">recordType</a>(fields, types); }<span class="comment"></span>
<a name="l00071"></a>00071 <span class="comment">      //! Create a record field select expression</span>
<a name="l00072"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#aed507ebecfef1025611db992ab56f742">00072</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_1RecordsTheoremProducer.html#aed507ebecfef1025611db992ab56f742" title="Create a record field select expression.">recordSelect</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; r, <span class="keyword">const</span> std::string&amp; field)
<a name="l00073"></a>00073   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a6123e229d2eac24364f4cf1b30927f0c" title="Create a record field select expression.">recordSelect</a>(r, field); }<span class="comment"></span>
<a name="l00074"></a>00074 <span class="comment">      //! Create a record field update expression</span>
<a name="l00075"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#af3aa58710dd1e1adda7e9d44034a1c59">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_1RecordsTheoremProducer.html#af3aa58710dd1e1adda7e9d44034a1c59" title="Create a record field update expression.">recordUpdate</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; r, <span class="keyword">const</span> std::string&amp; field,
<a name="l00076"></a>00076       <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; val)
<a name="l00077"></a>00077   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#ad6d5734bb5b21cada7e7958c6840e2c4" title="Create a record field update expression.">recordUpdate</a>(r, field, val); }<span class="comment"></span>
<a name="l00078"></a>00078 <span class="comment">      //! Get the list of fields from a record literal</span>
<a name="l00079"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a08633fbeae1c47829a4c9bdd7a41fe7d">00079</a> <span class="comment"></span>      <span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a08633fbeae1c47829a4c9bdd7a41fe7d" title="Get the list of fields from a record literal.">getFields</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; r)
<a name="l00080"></a>00080   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#aaf09fd297eafe6e114863581c558f163" title="Get the list of fields from a record literal.">getFields</a>(r); }<span class="comment"></span>
<a name="l00081"></a>00081 <span class="comment">      //! Get the i-th field name from the record literal or type</span>
<a name="l00082"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#aa2c1c602fa7852e2763a302a762e603a">00082</a> <span class="comment"></span>      <span class="keyword">const</span> std::string&amp; <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#aa2c1c602fa7852e2763a302a762e603a" title="Get the i-th field name from the record literal or type.">getField</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, <span class="keywordtype">int</span> i)
<a name="l00083"></a>00083   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#ac45307e001d2f373bdf4116416c84b77" title="Get the i-th field name from the record literal or type.">getField</a>(e, i); }<span class="comment"></span>
<a name="l00084"></a>00084 <span class="comment">      //! Get the field index in the record literal or type</span>
<a name="l00085"></a>00085 <span class="comment"></span><span class="comment">      /*! The field must be present in the record; otherwise it&#39;s an error. */</span>
<a name="l00086"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a9f85306f8dae0320b9e40ff28b01c9bc">00086</a>       <span class="keywordtype">int</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a9f85306f8dae0320b9e40ff28b01c9bc" title="Get the field index in the record literal or type.">getFieldIndex</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, <span class="keyword">const</span> std::string&amp; field)
<a name="l00087"></a>00087   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a8b8cf0a921555538ec1b91c08600e721" title="Get the field index in the record literal or type.">getFieldIndex</a>(e, field); }<span class="comment"></span>
<a name="l00088"></a>00088 <span class="comment">      //! Get the field name from the record select and update expressions</span>
<a name="l00089"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a6a0dfc215413b8abc6ec4ff7e7cd12d1">00089</a> <span class="comment"></span>      <span class="keyword">const</span> std::string&amp; <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#aa2c1c602fa7852e2763a302a762e603a" title="Get the i-th field name from the record literal or type.">getField</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 name="l00090"></a>00090   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#ac45307e001d2f373bdf4116416c84b77" title="Get the i-th field name from the record literal or type.">getField</a>(e); }<span class="comment"></span>
<a name="l00091"></a>00091 <span class="comment">      //! Create a tuple literal</span>
<a name="l00092"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a960fee8c9325fad718a8be238875d5b8">00092</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_1RecordsTheoremProducer.html#a960fee8c9325fad718a8be238875d5b8" title="Create a tuple literal.">tupleExpr</a>(<span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; kids)
<a name="l00093"></a>00093   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a6633d0d5b34ebfaf5d6a42f72c8d4818" title="Create a tuple literal.">tupleExpr</a>(kids); }<span class="comment"></span>
<a name="l00094"></a>00094 <span class="comment">      //! Create a tuple type</span>
<a name="l00095"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a413511978f60a7e1f54cd186bca87442">00095</a> <span class="comment"></span>      <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a413511978f60a7e1f54cd186bca87442" title="Create a tuple type.">tupleType</a>(<span class="keyword">const</span> std::vector&lt;Type&gt;&amp; types)
<a name="l00096"></a>00096   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a4ab484efb75ef41b5a29d5e598ab91a1" title="Create a tuple type.">tupleType</a>(types); }<span class="comment"></span>
<a name="l00097"></a>00097 <span class="comment">      //! Create a tuple type (types of components are given as Exprs)</span>
<a name="l00098"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a3ad57212a5d742b61ecb5070241e77b4">00098</a> <span class="comment"></span>      <a class="code" href="classCVC3_1_1Type.html" title="MS C++ specific settings.">Type</a> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a413511978f60a7e1f54cd186bca87442" title="Create a tuple type.">tupleType</a>(<span class="keyword">const</span> std::vector&lt;Expr&gt;&amp; types)
<a name="l00099"></a>00099   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a4ab484efb75ef41b5a29d5e598ab91a1" title="Create a tuple type.">tupleType</a>(types); }<span class="comment"></span>
<a name="l00100"></a>00100 <span class="comment">      //! Create a tuple index selector expression</span>
<a name="l00101"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a24701af52ba0f642726415dde80b76a0">00101</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_1RecordsTheoremProducer.html#a24701af52ba0f642726415dde80b76a0" title="Create a tuple index selector expression.">tupleSelect</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; tup, <span class="keywordtype">int</span> i)
<a name="l00102"></a>00102   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#ada5d6a109788e70405af2adee937c379" title="Create a tuple index selector expression.">tupleSelect</a>(tup, i); }<span class="comment"></span>
<a name="l00103"></a>00103 <span class="comment">      //! Create a tuple index update expression</span>
<a name="l00104"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a406e3f4f7bb74f88a15a6dd0c0b840fe">00104</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_1RecordsTheoremProducer.html#a406e3f4f7bb74f88a15a6dd0c0b840fe" title="Create a tuple index update expression.">tupleUpdate</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; tup, <span class="keywordtype">int</span> i, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; val)
<a name="l00105"></a>00105   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a7ca579aacef4b87f4b2235da4ef1ec47" title="Create a tuple index update expression.">tupleUpdate</a>(tup, i, val); }<span class="comment"></span>
<a name="l00106"></a>00106 <span class="comment">      //! Get the index from the tuple select and update expressions</span>
<a name="l00107"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a7bff3a1cf4d8a59fe856fdcc03ac001b">00107</a> <span class="comment"></span>      <span class="keywordtype">int</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a7bff3a1cf4d8a59fe856fdcc03ac001b" title="Get the index from the tuple select and update expressions.">getIndex</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 name="l00108"></a>00108   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#ab228944f5113535c5859cbaa2de0d811" title="Get the index from the tuple select and update expressions.">getIndex</a>(e); }<span class="comment"></span>
<a name="l00109"></a>00109 <span class="comment">      //! Test whether expr is a tuple select/update subclass</span>
<a name="l00110"></a><a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a89194281ebd13904ef0a1ca3af913768">00110</a> <span class="comment"></span>      <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#a89194281ebd13904ef0a1ca3af913768" title="Test whether expr is a tuple select/update subclass.">isTupleAccess</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 name="l00111"></a>00111   { <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1RecordsTheoremProducer.html#ac6f50b4b5349eeb108350de0a0a4d966">d_theoryRecords</a>-&gt;<a class="code" href="classCVC3_1_1TheoryRecords.html#a8524c2c102a95e757b3c990b44e9576d" title="Test whether expr is a tuple select/update subclass.">isTupleAccess</a>(e); }
<a name="l00112"></a>00112     };
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 } 
<a name="l00115"></a>00115 
<a name="l00116"></a>00116 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Sep 7 2011 for CVC3 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>