]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix a couple of apparent precedence problems in AST (pointed out by
authorsmccam <smccam@e59a4935-1847-0410-ae03-e826735625c1>
Fri, 31 Oct 2008 18:38:37 +0000 (18:38 +0000)
committersmccam <smccam@e59a4935-1847-0410-ae03-e826735625c1>
Fri, 31 Oct 2008 18:38:37 +0000 (18:38 +0000)
GCC warnings). Interestingly, these don't seem to change any regression
results.

git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@34 e59a4935-1847-0410-ae03-e826735625c1

AST/AST.cpp
AST/ToSAT.cpp

index d0cf3c2278c190c7fa894425ccc91a884113b981..bfb350c38e80e088f26a90c1cc4c73cd152fe715 100644 (file)
@@ -797,7 +797,7 @@ namespace BEEV {
     //number of bits in unsigned long. The variable "copied" keeps
     //track of the number of chunks copied so far
 
-    while(copied + sizeof(unsigned long)<<3 < width){
+    while(copied + (sizeof(unsigned long)<<3) < width){
       CONSTANTBV::BitVector_Chunk_Store(bv, sizeof(unsigned long)<<3,copied,c_val);
       bvconst = bvconst >> (sizeof(unsigned long) << 3);
       c_val = (0x00000000ffffffffLL) & bvconst;
index 80bc6dd2d6c50e3ee6faf69ae64de5a1746cc9be..9e8623ef724e5a49e05658e4ae76ef6fba745332 100644 (file)
@@ -924,7 +924,7 @@ namespace BEEV {
 
        //cout << "debugging: " << ss;
        size_t pos = ss.find('_',0);
-       if(!(0< pos < ss.size()))
+       if(!((0 < pos) && (pos < ss.size())))
          continue;
 
        //get the associated length