From: trevor_hansen Date: Tue, 10 Aug 2010 05:39:33 +0000 (+0000) Subject: Cleanup. Remove experimental (not active) code. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=8fc7908d294994ad1111b905b4fb03add25b5934;p=francis%2Fstp.git Cleanup. Remove experimental (not active) code. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@977 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/to-sat/BitBlaster.cpp b/src/to-sat/BitBlaster.cpp index 69c4208..603d50b 100644 --- a/src/to-sat/BitBlaster.cpp +++ b/src/to-sat/BitBlaster.cpp @@ -26,9 +26,9 @@ namespace BEEV { * BVPLUS or BVXOR (or a BV variable or constant). A formula (form) * represents a boolean value, such as EQ or BVLE. Bit blasting a * term representing an n-bit bitvector with BBTerm yields a vector - * of n boolean formulas (returning ASTVec). Bit blasting a formula - * returns a single boolean formula (type ASTNode). A bitblasted - * term is a vector of ASTNodes for formulas. The 0th element of + * of n boolean formulas (returning BBNodeVec). Bit blasting a formula + * returns a single boolean formula (type BBNode). A bitblasted + * term is a vector of BBNodes for formulas. The 0th element of * the vector corresponds to bit 0 -- the low-order bit. ********************************************************************/ @@ -842,35 +842,6 @@ void pushP(stack *products, const int start, const BBNodeVec& y, const B const bool debug_multiply = false; -template -BBNodeVec BitBlaster::pairWiseAdd(stack* products, - const int bitWidth) -{ - const BBNode& BBFalse = nf->getFalse(); - BBNodeVec prod = BBfill(bitWidth, BBFalse); - - bool finished = false; - while (!finished) { - finished = true; - BBNodeVec a; - for (int i = 0; i < bitWidth; i++) - { - if (products[i].empty()) - a.push_back(BBFalse); - else - { - BBNode t = products[i].top(); - a.push_back(t); - products[i].pop(); - finished = false; - } - } - BBPlus2(prod, a, nf->getFalse()); - } - - return prod; -} - /* Cryptominisat2. 5641x5693.smt. SAT Solving time only! * adder_variant1 = true. Solving: 12.3s, 12.1s * adder_variant1 = false. Solving: 26.5s, 26.0s @@ -938,6 +909,8 @@ BBNodeVec BitBlaster::buildAdditionNetworkResult(stack::BBMult(const BBNodeVec& x, const BB const int bitWidth = x.size(); stack products[bitWidth]; mult_Booth(x, y, support,xN,yN,products); - //return pairWiseAdd(products,bitWidth); return buildAdditionNetworkResult(products,bitWidth); } diff --git a/src/to-sat/BitBlaster.h b/src/to-sat/BitBlaster.h index 4729b2b..5be0579 100644 --- a/src/to-sat/BitBlaster.h +++ b/src/to-sat/BitBlaster.h @@ -75,10 +75,6 @@ class BitBlaster { void mult_Booth(const vector& x_i, const vector& y_i, set& support, const BEEV::ASTNode& xN, const BEEV::ASTNode& yN, stack * products); vector mult_normal(const vector& x, const vector& y, set& support); - - vector pairWiseAdd(stack* products, - const int bitWidth); - vector buildAdditionNetworkResult(stack* products, const int bitWidth); vector BBAndBit(const vector& y, BBNode b);