]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix grammar. Extra assertion.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 23 Jun 2010 14:02:20 +0000 (14:02 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 23 Jun 2010 14:02:20 +0000 (14:02 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@864 e59a4935-1847-0410-ae03-e826735625c1

src/simplifier/bvsolver.cpp

index a227b1e2d1acb3a61b8994c25cefcb4c4e80b2d6..1496b7ef74a877dd1dcb4384bf2b09f588f2ca4f 100644 (file)
@@ -941,7 +941,7 @@ namespace BEEV
        // This builds a reduced version of a graph, where there
     // is only a new node if the number of non-array SYMBOLS
     // in the descendents changes. For example (EXTRACT 0 1 n)
-    // will have the same "Symbols" node as n, because there is
+    // will have the same "Symbols" node as n, because
     // no new symbols are introduced.
        Symbols* BVSolver::BuildSymbolGraph(const ASTNode& n)
        {
@@ -1012,6 +1012,8 @@ namespace BEEV
 
          bool BVSolver::VarSeenInTerm(const ASTNode& var, const ASTNode& term)
          {
+                 // This only returns true if we are searching for variables that aren't arrays.
+                 assert(var.GetKind() == SYMBOL && var.GetIndexWidth() == 0);
                  BuildSymbolGraph(term);
                  return VarSeenInTerm(var,symbol_graph[term]);
          }