[llvm-commits] CVS: llvm/tools/bugpoint/Miscompilation.cpp

Misha Brukman brukman at cs.uiuc.edu
Thu Apr 22 15:02:02 PDT 2004


Changes in directory llvm/tools/bugpoint:

Miscompilation.cpp updated: 1.42 -> 1.43

---
Log message:

Add a space before result for readability on the command line.


---
Diffs of the changes:  (+7 -7)

Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.42 llvm/tools/bugpoint/Miscompilation.cpp:1.43
--- llvm/tools/bugpoint/Miscompilation.cpp:1.42	Wed Apr 21 13:36:43 2004
+++ llvm/tools/bugpoint/Miscompilation.cpp	Thu Apr 22 15:02:09 2004
@@ -64,10 +64,10 @@
 
   // Check to see if the finished program matches the reference output...
   if (BD.diffProgram(BytecodeResult, "", true /*delete bytecode*/)) {
-    std::cout << "nope.\n";
-    return KeepSuffix;        // Miscompilation detected!
+    std::cout << " nope.\n";
+    return KeepSuffix;         // Miscompilation detected!
   }
-  std::cout << "yup.\n";      // No miscompilation!
+  std::cout << " yup.\n";      // No miscompilation!
 
   if (Prefix.empty()) return NoFailure;
 
@@ -92,11 +92,11 @@
 
   // If the prefix maintains the predicate by itself, only keep the prefix!
   if (BD.diffProgram(BytecodeResult)) {
-    std::cout << "nope.\n";
+    std::cout << " nope.\n";
     removeFile(BytecodeResult);
     return KeepPrefix;
   }
-  std::cout << "yup.\n";      // No miscompilation!
+  std::cout << " yup.\n";      // No miscompilation!
 
   // Ok, so now we know that the prefix passes work, try running the suffix
   // passes on the result of the prefix passes.
@@ -124,13 +124,13 @@
 
   // Run the result...
   if (BD.diffProgram(BytecodeResult, "", true/*delete bytecode*/)) {
-    std::cout << "nope.\n";
+    std::cout << " nope.\n";
     delete OriginalInput;     // We pruned down the original input...
     return KeepSuffix;
   }
 
   // Otherwise, we must not be running the bad pass anymore.
-  std::cout << "yup.\n";      // No miscompilation!
+  std::cout << " yup.\n";      // No miscompilation!
   delete BD.swapProgramIn(OriginalInput); // Restore orig program & free test
   return NoFailure;
 }





More information about the llvm-commits mailing list