mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove error output.
This commit is contained in:
parent
bfc9c91539
commit
1e9206e01a
@ -306,7 +306,7 @@ void BooleanLPSolver::addAssertion(Expression const& _expr)
|
||||
else
|
||||
{
|
||||
cerr << _expr.toString() << endl;
|
||||
cerr << "Expected linear arguments." << endl;
|
||||
cerr << "; Expected linear arguments." << endl;
|
||||
solAssert(false);
|
||||
}
|
||||
}
|
||||
@ -372,7 +372,7 @@ void BooleanLPSolver::addAssertion(Expression const& _expr)
|
||||
}
|
||||
else
|
||||
{
|
||||
cerr << "Unknown operator " << _expr.name << endl;
|
||||
cerr << "; Unknown operator " << _expr.name << endl;
|
||||
solAssert(false);
|
||||
}
|
||||
}
|
||||
@ -558,7 +558,7 @@ Literal BooleanLPSolver::negate(Literal const& _lit)
|
||||
Literal BooleanLPSolver::parseLiteralOrReturnEqualBoolean(Expression const& _expr)
|
||||
{
|
||||
if (_expr.sort->kind != Kind::Bool)
|
||||
cerr << "expected bool: " << _expr.toString() << endl;
|
||||
cerr << "; expected bool: " << _expr.toString() << endl;
|
||||
solAssert(_expr.sort->kind == Kind::Bool);
|
||||
// TODO when can this fail?
|
||||
if (optional<Literal> literal = parseLiteral(_expr))
|
||||
|
@ -84,10 +84,12 @@ bool CDCL::solve_loop(const uint32_t max_conflicts, CDCL::Model& model, int& sol
|
||||
if (conflictClause)
|
||||
{
|
||||
conflicts++;
|
||||
#ifdef DEBUG
|
||||
m_sumConflicts++;
|
||||
if (m_sumConflicts % 1000 == 999) {
|
||||
cerr << "c confl: " << m_sumConflicts << std::endl;
|
||||
}
|
||||
#endif
|
||||
if (currentDecisionLevel() == 0)
|
||||
{
|
||||
// cout << "Unsatisfiable" << endl;
|
||||
|
@ -124,7 +124,9 @@ 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;
|
||||
#ifdef DEBUG
|
||||
uint64_t m_sumConflicts = 0;
|
||||
#endif
|
||||
|
||||
// Var activity
|
||||
Heap<VarOrderLt> order;
|
||||
|
@ -266,7 +266,9 @@ void SolSMT::run()
|
||||
}
|
||||
else if (cmd == "define-fun")
|
||||
{
|
||||
#ifdef DEBUG
|
||||
cerr << "Ignoring 'define-fun'" << endl;
|
||||
#endif
|
||||
}
|
||||
else if (cmd == "assert")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user