Fix printing statistics in case of signals. (#2267)
authorMathias Preiner <mathias.preiner@gmail.com>
Fri, 3 Aug 2018 12:59:23 +0000 (05:59 -0700)
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>
Fri, 3 Aug 2018 12:59:23 +0000 (07:59 -0500)
src/util/statistics.cpp

index a6b20934c3d47de65becd340085775a10874a256..e5bb6e532e60b3a0bab36687912a64183a2843bd 100644 (file)
@@ -113,7 +113,6 @@ void StatisticsBase::flushInformation(std::ostream &out) const {
     }
     s->flushStat(out);
   }
-  out << std::endl;
 #endif /* CVC4_STATISTICS_ON */
 }
 
@@ -126,8 +125,8 @@ void StatisticsBase::safeFlushInformation(int fd) const {
       safe_print(fd, s_regDelim);
     }
     s->safeFlushStat(fd);
+    safe_print(fd, "\n");
   }
-  safe_print(fd, "\n");
 #endif /* CVC4_STATISTICS_ON */
 }