]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Output quick statistics if enabled, and exiting after generating the CNF.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 10 Jul 2010 04:54:09 +0000 (04:54 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 10 Jul 2010 04:54:09 +0000 (04:54 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@944 e59a4935-1847-0410-ae03-e826735625c1

src/to-sat/AIG/BBNodeAIG.h
src/to-sat/AIG/ToSATAIG.cpp

index 425325eaa6d8d8c829925f7d3925382c2cc3a99a..f9fec0a01124331656b6e59918a38613db50adc5 100644 (file)
 #define BBNODEAIG_H_
 
 #include "../../extlib-abc/aig.h"
+#include <iostream>
 
 namespace BEEV
 {
+  using std::cerr;
+  using std::endl;
 
   // This class wraps around a pointer to an AIG (provided by the ABC tool).
   // uses the default copy constructor and assignment operator.
index 386ba0470853b1eddfe91142932bbc649a7b0517..33a15dc83950dcf8aabc6999c65db5911c566d18 100644 (file)
@@ -75,7 +75,11 @@ namespace BEEV
       Cnf_DataFree(cnfData);
 
       if (bm->UserFlags.exit_after_CNF)
+      {
+        if (bm->UserFlags.quick_statistics_flag)
+          bm->GetRunTimes()->print();
         exit(0);
+      }
 
       // cryptominisat treats simplify() as protected.
 #ifndef CRYPTOMINISAT2