From 5f737d490d506920b8208bee086fb65c77cbfb23 Mon Sep 17 00:00:00 2001 From: trevor_hansen Date: Wed, 21 Oct 2009 03:31:05 +0000 Subject: [PATCH] Important BugFix. r230 introduced an off-by-one error in the left-shift circuit that ignored the value of the least significant bit of the shift amount. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@328 e59a4935-1847-0410-ae03-e826735625c1 --- src/to-sat/BitBlast.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/to-sat/BitBlast.cpp b/src/to-sat/BitBlast.cpp index 42555a3..ff70261 100644 --- a/src/to-sat/BitBlast.cpp +++ b/src/to-sat/BitBlast.cpp @@ -121,7 +121,7 @@ namespace BEEV int shift_amount = 1 << i; - for (signed int j = width - 1; j > 0; j--) + for (signed int j = width - 1; j >= 0; j--) { if (j < shift_amount) { -- 2.47.3