expert-option waitToJoin --wait-to-join bool :default true
wait for other threads to join before quitting
+expert-option periodicStatsInterval --periodic-stats int :default 0
+ print total time we have been running every N decisions
+
endmodule
#include "prop/minisat/minisat.h"
#include "prop/options.h"
#include "util/output.h"
+#include "util/periodic_statistics.h"
#include "expr/command.h"
#include "proof/proof_manager.h"
#include "proof/sat_proof.h"
{
Lit nextLit;
+ // Every so-many-decisions print the total time
+ if(options::periodicStatsInterval() && decisions % options::periodicStatsInterval() == 0) {
+ PeriodicStatistic::print("sat::decisions", decisions);
+ PeriodicStatistic::print("sat::conflicts", conflicts);
+ PeriodicStatistic::print("sat::propagations", propagations);
+ }
+
#ifdef CVC4_REPLAY
nextLit = MinisatSatSolver::toMinisatLit(proxy->getNextReplayDecision());
CheckArgument(a.tv_nsec >= 0 && a.tv_nsec < nsec_per_sec, a);
CheckArgument(b.tv_nsec >= 0 && b.tv_nsec < nsec_per_sec, b);
a.tv_sec -= b.tv_sec;
- long nsec = a.tv_nsec - b.tv_nsec;
+ long nsec = long(a.tv_nsec) - long(b.tv_nsec);
if(nsec < 0) {
nsec += nsec_per_sec;
--a.tv_sec;
inline std::ostream& operator<<(std::ostream& os, const timespec& t) {
// assumes t.tv_nsec is in range
return os << t.tv_sec << "."
- << std::setfill('0') << std::setw(8) << std::right << t.tv_nsec;
+ << std::setfill('0') << std::setw(9) << std::right << t.tv_nsec;
}
namespace CVC4 {