]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix the method to count the number of instances in an expression. Previously it was...
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sun, 30 May 2010 13:05:21 +0000 (13:05 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sun, 30 May 2010 13:05:21 +0000 (13:05 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@811 e59a4935-1847-0410-ae03-e826735625c1

src/simplifier/CountOfSymbols.h
src/simplifier/bvsolver.cpp

index 244e44ad13f8ede0dbceeb44a5104ba835a6e272..3c10ab0332763140de1bf14476c2be7c6732cf3d 100644 (file)
@@ -42,7 +42,7 @@ class CountOfSymbols {
                case SYMBOL:
                        //cerr << "debugging: symbol added: " << term << endl;
                        Vars[term]++;
-                       break;
+                       return;
                case READ:
                        //skip the arrayname, provided the arrayname is a SYMBOL
                        //But we don't skip it if it's a WRITE function??
index 76e009806330197b0c392cc3e743ce856aa2716f..e0a80f6d3541d09c45667b51cae5fb2fc8839af5 100644 (file)
@@ -202,7 +202,7 @@ namespace BEEV
       case SYMBOL:
         //cerr << "debugging: symbol added: " << term << endl;
         Vars.insert(term);
-        break;
+        return;
       case READ:
         //skip the arrayname, provided the arrayname is a SYMBOL
         if (SYMBOL == term[0].GetKind())