]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix for: "array_simple_broken.smt" values were incorrectly cached.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Thu, 23 Jul 2009 14:03:09 +0000 (14:03 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Thu, 23 Jul 2009 14:03:09 +0000 (14:03 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@86 e59a4935-1847-0410-ae03-e826735625c1

simplifier/simplifier.cpp

index b984687ce9371b69b3efc99426827033bef4c5de..d1406a5c649206fc10ecd994fe14f33c3f328ab2 100644 (file)
@@ -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;