summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/inst_match.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2014-05-11 14:36:50 -0500
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2014-05-11 14:36:50 -0500
commit0b2f9943d55152e0958369083649dd71340864c9 (patch)
treecd040f1dd12816c6af37548597bd674cafb45271 /src/theory/quantifiers/inst_match.cpp
parent8ebd49cb903ba19f9330820d02af08e226c9b791 (diff)
More preparation for CASC proofs. Minor fix for sort inference (rewrite new assertions). Bug fix for ambqi : simplify correctly for multi-sorted case. Bug fix for fmc : only do exh-simplification for uninterpreted sorts, ensure reps are enumerated for quantification over Real.
Diffstat (limited to 'src/theory/quantifiers/inst_match.cpp')
-rw-r--r--src/theory/quantifiers/inst_match.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/theory/quantifiers/inst_match.cpp b/src/theory/quantifiers/inst_match.cpp
index 096d0cab2..703a44d03 100644
--- a/src/theory/quantifiers/inst_match.cpp
+++ b/src/theory/quantifiers/inst_match.cpp
@@ -198,18 +198,18 @@ bool InstMatchTrie::addInstMatch( QuantifiersEngine* qe, Node f, std::vector< No
}
}
-void InstMatchTrie::print( const char * c, Node q, std::vector< Node >& terms ) const {
+void InstMatchTrie::print( std::ostream& out, Node q, std::vector< Node >& terms ) const {
if( terms.size()==q[0].getNumChildren() ){
- Trace(c) << " ( ";
+ out << " ( ";
for( unsigned i=0; i<terms.size(); i++ ){
- if( i>0 ) Trace(c) << ", ";
- Trace(c) << terms[i];
+ if( i>0 ) out << ", ";
+ //out << terms[i];
}
- Trace(c) << " )" << std::endl;
+ out << " )" << std::endl;
}else{
for( std::map< Node, InstMatchTrie >::const_iterator it = d_data.begin(); it != d_data.end(); ++it ){
terms.push_back( it->first );
- it->second.print( c, q, terms );
+ it->second.print( out, q, terms );
terms.pop_back();
}
}
@@ -282,19 +282,19 @@ bool CDInstMatchTrie::addInstMatch( QuantifiersEngine* qe, Node f, std::vector<
}
}
-void CDInstMatchTrie::print( const char * c, Node q, std::vector< Node >& terms ) const{
+void CDInstMatchTrie::print( std::ostream& out, Node q, std::vector< Node >& terms ) const{
if( d_valid.get() ){
if( terms.size()==q[0].getNumChildren() ){
- Trace(c) << " ( ";
+ out << " ( ";
for( unsigned i=0; i<terms.size(); i++ ){
- if( i>0 ) Trace(c) << ", ";
- Trace(c) << terms[i];
+ if( i>0 ) out << ", ";
+ //out << terms[i];
}
- Trace(c) << " )" << std::endl;
+ out << " )" << std::endl;
}else{
for( std::map< Node, CDInstMatchTrie* >::const_iterator it = d_data.begin(); it != d_data.end(); ++it ){
terms.push_back( it->first );
- it->second->print( c, q, terms );
+ it->second->print( out, q, terms );
terms.pop_back();
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback