diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-08-17 14:18:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-17 14:18:16 -0500 |
commit | 6d65aa41a7e218469e99f476259cccb08c4c46c1 (patch) | |
tree | 5c627f7bfd37f81bf0dcbf095e7def2a82f9fba2 /src/theory/quantifiers/quantifiers_rewriter.cpp | |
parent | 58ee4bc13c37bf25ddafd07bc09c8d975dc6d62d (diff) |
Remove miscellaneous unused code (#2333)
Diffstat (limited to 'src/theory/quantifiers/quantifiers_rewriter.cpp')
-rw-r--r-- | src/theory/quantifiers/quantifiers_rewriter.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/theory/quantifiers/quantifiers_rewriter.cpp b/src/theory/quantifiers/quantifiers_rewriter.cpp index 37451b776..cff14e0c3 100644 --- a/src/theory/quantifiers/quantifiers_rewriter.cpp +++ b/src/theory/quantifiers/quantifiers_rewriter.cpp @@ -32,25 +32,6 @@ namespace CVC4 { namespace theory { namespace quantifiers { -bool QuantifiersRewriter::isClause( Node n ){ - if( isLiteral( n ) ){ - return true; - }else if( n.getKind()==NOT ){ - return isCube( n[0] ); - }else if( n.getKind()==OR ){ - for( int i=0; i<(int)n.getNumChildren(); i++ ){ - if( !isClause( n[i] ) ){ - return false; - } - } - return true; - }else if( n.getKind()==IMPLIES ){ - return isCube( n[0] ) && isClause( n[1] ); - }else{ - return false; - } -} - bool QuantifiersRewriter::isLiteral( Node n ){ switch( n.getKind() ){ case NOT: @@ -73,23 +54,6 @@ bool QuantifiersRewriter::isLiteral( Node n ){ return true; } -bool QuantifiersRewriter::isCube( Node n ){ - if( isLiteral( n ) ){ - return true; - }else if( n.getKind()==NOT ){ - return isClause( n[0] ); - }else if( n.getKind()==AND ){ - for( int i=0; i<(int)n.getNumChildren(); i++ ){ - if( !isCube( n[i] ) ){ - return false; - } - } - return true; - }else{ - return false; - } -} - void QuantifiersRewriter::addNodeToOrBuilder( Node n, NodeBuilder<>& t ){ if( n.getKind()==OR ){ for( int i=0; i<(int)n.getNumChildren(); i++ ){ |