From 6112e47d0d93b675fe220438c3828b5b6025dde6 Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Thu, 30 Jan 2020 14:47:35 -0600 Subject: Eliminate spurious postprocessing step for single invocation (#3674) --- .../quantifiers/sygus/ce_guided_single_inv.cpp | 28 ---------------------- .../quantifiers/sygus/ce_guided_single_inv.h | 1 - 2 files changed, 29 deletions(-) (limited to 'src') diff --git a/src/theory/quantifiers/sygus/ce_guided_single_inv.cpp b/src/theory/quantifiers/sygus/ce_guided_single_inv.cpp index b6750c5da..0e7606276 100644 --- a/src/theory/quantifiers/sygus/ce_guided_single_inv.cpp +++ b/src/theory/quantifiers/sygus/ce_guided_single_inv.cpp @@ -437,33 +437,6 @@ struct sortSiInstanceIndices { } }; -Node CegSingleInv::postProcessSolution(Node n) -{ - bool childChanged = false; - Kind k = n.getKind(); - if( n.getKind()==INTS_DIVISION_TOTAL ){ - k = INTS_DIVISION; - childChanged = true; - }else if( n.getKind()==INTS_MODULUS_TOTAL ){ - k = INTS_MODULUS; - childChanged = true; - } - std::vector< Node > children; - for( unsigned i=0; imkNode( k, children ); - }else{ - return n; - } -} - Node CegSingleInv::getSolution(unsigned sol_index, TypeNode stn, int& reconstructed, @@ -584,7 +557,6 @@ Node CegSingleInv::reconstructToSyntax(Node s, d_qe->getTermDatabaseSygus()->getExtRewriter()->extendedRewrite( d_solution); } - d_solution = postProcessSolution( d_solution ); if( prev!=d_solution ){ Trace("csi-sol") << "Solution (after post process) : " << d_solution << std::endl; } diff --git a/src/theory/quantifiers/sygus/ce_guided_single_inv.h b/src/theory/quantifiers/sygus/ce_guided_single_inv.h index 0d5af327e..19caa4c79 100644 --- a/src/theory/quantifiers/sygus/ce_guided_single_inv.h +++ b/src/theory/quantifiers/sygus/ce_guided_single_inv.h @@ -49,7 +49,6 @@ class CegSingleInv std::vector< Node >& terms, std::map< Node, std::vector< Node > >& teq, Node n, std::vector< Node >& conj ); - Node postProcessSolution(Node n); private: /** pointer to the quantifiers engine */ QuantifiersEngine* d_qe; -- cgit v1.2.3