mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixing minor last things
This commit is contained in:
+6
-2
@@ -76,6 +76,10 @@ bool CDCL::solve_loop(const uint32_t max_conflicts, CDCL::Model& model, int& sol
|
||||
if (conflictClause)
|
||||
{
|
||||
conflicts++;
|
||||
m_sumConflicts++;
|
||||
if (m_sumConflicts % 1000 == 999) {
|
||||
cout << "c confl: " << m_sumConflicts << std::endl;
|
||||
}
|
||||
if (currentDecisionLevel() == 0)
|
||||
{
|
||||
// cout << "Unsatisfiable" << endl;
|
||||
@@ -96,8 +100,8 @@ bool CDCL::solve_loop(const uint32_t max_conflicts, CDCL::Model& model, int& sol
|
||||
{
|
||||
if (auto variable = nextDecisionVariable())
|
||||
{
|
||||
cout << "Level " << currentDecisionLevel() << " - ";
|
||||
cout << ((m_assignments.size() * 100) / m_variables.size()) << "% of variables assigned." << endl;
|
||||
// cout << "c Level " << currentDecisionLevel() << " - ";
|
||||
// cout << ((m_assignments.size() * 100) / m_variables.size()) << "% of variables assigned." << endl;
|
||||
m_decisionPoints.emplace_back(m_assignmentTrail.size());
|
||||
// cout << "Deciding on " << m_variables.at(*variable) << " @" << currentDecisionLevel() << endl;
|
||||
|
||||
|
||||
@@ -122,6 +122,7 @@ private:
|
||||
std::map<size_t, size_t> m_levelForVariable;
|
||||
/// TODO wolud be good to not have to copy the clauses
|
||||
std::map<Literal, Clause const*> m_reason;
|
||||
uint64_t m_sumConflicts = 0;
|
||||
|
||||
// Var activity
|
||||
Heap<VarOrderLt> order;
|
||||
|
||||
Reference in New Issue
Block a user