]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix build. Remove some casts that I don't need on my machine.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Tue, 10 Apr 2012 07:04:29 +0000 (07:04 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Tue, 10 Apr 2012 07:04:29 +0000 (07:04 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1638 e59a4935-1847-0410-ae03-e826735625c1

src/util/test_cbitp.cpp

index 1c5198850a7ba96ca3763ef0596a273cfadfa322..42ff75671a8f2cb745e7f8aa1af3bbdac11f3bc8 100644 (file)
@@ -342,7 +342,7 @@ namespace simplifier
 
           {
 
-          for (long j = 0; j < pow((double)3, totalLength); j++)
+          for (long j = 0; j < pow(3, totalLength); j++)
             {
             FixedBits output(resultLength, signature.resultType == BOOL_TYPE);
 
@@ -413,7 +413,7 @@ namespace simplifier
           imprecise = true;
         checkEqual(children, output, transfer, kind, imprecise,d);
 
-        assert(!d.conflicts);
+        assert(!d.conflict);
 
         initial += d.initial;
         transferC += d.transferFixed;
@@ -465,7 +465,7 @@ namespace simplifier
       lengths.push_back(resultLength);
       totalLength += resultLength;
 
-      for (long j = 0; j < pow((double)3, totalLength); j++)
+      for (long j = 0; j < pow(3, totalLength); j++)
         {
         int current = j;
 
@@ -560,10 +560,10 @@ exhaustively_check(const int bitwidth, Result (*transfer)(vector<FixedBits*>&, F
   const int numberOfInputParams = 2;
 
   assert(numberOfInputParams >0);
-  const int mask = pow((double)2, bitwidth) - 1;
+  const int mask = pow(2, bitwidth) - 1;
 
   // Create all the possible inputs, and apply the function.
-  for (int i = 0; i < pow((double)2, bitwidth * numberOfInputParams); i++)
+  for (int i = 0; i < pow(2, bitwidth * numberOfInputParams); i++)
     {
     D d;
     d.a = i & mask;
@@ -598,7 +598,7 @@ exhaustively_check(const int bitwidth, Result (*transfer)(vector<FixedBits*>&, F
   FixedBits empty(bitwidth, false);
   FixedBits c_a(bitwidth, false), c_b(bitwidth, false), c_o(bitwidth, false);
 
-  const int to_iterate = pow((double)3, totalLength);
+  const int to_iterate = pow(3, totalLength);
   for (long j = 0; j < to_iterate; j++)
     {
     int current = j;