From: trevor_hansen Date: Thu, 23 Jul 2009 14:03:09 +0000 (+0000) Subject: Fix for: "array_simple_broken.smt" values were incorrectly cached. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=d1c6bfd6be36b534d5651e5248dfbd3bd0ef9330;p=francis%2Fstp.git Fix for: "array_simple_broken.smt" values were incorrectly cached. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@86 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/simplifier/simplifier.cpp b/simplifier/simplifier.cpp index b984687..d1406a5 100644 --- a/simplifier/simplifier.cpp +++ b/simplifier/simplifier.cpp @@ -131,7 +131,7 @@ namespace BEEV { ) return 1; - if(SYMBOL == k1) + if(SYMBOL == k1 && (BVCONST == k2 || TRUE == k2 || FALSE == k2)) return 1; //b is of the form READ(Arr,const), and a is const, or @@ -146,7 +146,7 @@ namespace BEEV { )) return -1; - if(SYMBOL == k2) + if(SYMBOL == k2 && (BVCONST == k1 || TRUE == k1 || FALSE == k1)) return -1; return 0;