Skip to content

Commit f8cd000

Browse files
committed
Adding more information to clause about current restart
1 parent 9182b66 commit f8cd000

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

cmsat_tablestructure.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ CREATE TABLE `clauseStats` (
150150
`backtrack_level` int(20) NOT NULL,
151151
`decision_level` int(20) NOT NULL,
152152
`trail_depth_level` int(20) NOT NULL,
153+
`cur_restart_type` char(20) NOT NULL,
154+
`cur_confl_in_restart` int(20) NOT NULL,
153155

154156
`atedecents_binIrred` int(20) NOT NULL,
155157
`atedecents_binRed` int(20) NOT NULL,

src/searcher.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,6 +1486,8 @@ void Searcher::dump_sql_clause_data(
14861486
, decisionLevel()
14871487
, trail.size()
14881488
, params.conflictsDoneThisRestart
1489+
, restart_type_to_short_string(params.rest_type)
1490+
, stats
14891491
, hist
14901492
);
14911493
}

src/sqlitestats.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,8 @@ void SQLiteStats::init_clause_stats_STMT()
944944
<< " `backtrack_level`,"
945945
<< " `decision_level`,"
946946
<< " `trail_depth_level`,"
947+
<< " `cur_restart_type` ,"
948+
<< " `cur_confl_in_restart` ,"
947949

948950
<< " `atedecents_binIrred`,"
949951
<< " `atedecents_binRed`,"
@@ -1015,6 +1017,8 @@ void SQLiteStats::dump_clause_stats(
10151017
, size_t decision_level
10161018
, size_t trail_depth
10171019
, uint64_t conflicts_this_restart
1020+
, const std::string& restart_type
1021+
, const SearchStats& stats
10181022
, const SearchHist& hist
10191023
) {
10201024
uint32_t num_overlap_literals = antec_data.sum_size()-(antec_data.num()-1)-size;
@@ -1042,6 +1046,8 @@ void SQLiteStats::dump_clause_stats(
10421046
sqlite3_bind_int(stmt_clause_stats, bindAt++, backtrack_level);
10431047
sqlite3_bind_int64(stmt_clause_stats, bindAt++, decision_level);
10441048
sqlite3_bind_int64(stmt_clause_stats, bindAt++, trail_depth);
1049+
sqlite3_bind_text(stmt_clause_stats, bindAt++, restart_type.c_str(), -1, NULL);
1050+
sqlite3_bind_int64(stmt_clause_stats, bindAt++, stats.conflStats.numConflicts);
10451051

10461052
sqlite3_bind_int(stmt_clause_stats, bindAt++, antec_data.binIrred);
10471053
sqlite3_bind_int(stmt_clause_stats, bindAt++, antec_data.binRed);

src/sqlitestats.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ class SQLiteStats: public SQLStats
8989
, size_t decision_level
9090
, size_t trail_depth
9191
, uint64_t conflicts_this_restart
92+
, const std::string& rest_type
93+
, const SearchStats& stats
9294
, const SearchHist& hist
9395
) override;
9496

src/sqlstats.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ class SQLStats
9191
, size_t decision_level
9292
, size_t trail_depth
9393
, uint64_t conflicts_this_restart
94+
, const std::string& rest_type
95+
, const SearchStats& stats
9496
, const SearchHist& hist
9597
) = 0;
9698

0 commit comments

Comments
 (0)