3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-10-29 12:10:00 -07:00
parent 0de3149634
commit 601ba2a361
2 changed files with 5 additions and 3 deletions

View file

@ -432,7 +432,8 @@ namespace smt {
unsigned context::display_lemma_as_smt_problem(unsigned num_antecedents, literal const * antecedents, literal consequent, symbol const& logic) const {
std::stringstream strm;
strm << "lemma_" << (++m_lemma_id) << ".smt2";
std::thread::id this_id = std::this_thread::get_id();
strm << "lemma_" << this_id << "." << (++m_lemma_id) << ".smt2";
std::ofstream out(strm.str());
TRACE("lemma", tout << strm.str() << "\n";);
display_lemma_as_smt_problem(out, num_antecedents, antecedents, consequent, logic);
@ -474,7 +475,8 @@ namespace smt {
unsigned num_eq_antecedents, enode_pair const * eq_antecedents,
literal consequent, symbol const& logic) const {
std::stringstream strm;
strm << "lemma_" << (++m_lemma_id) << ".smt2";
std::thread::id this_id = std::this_thread::get_id();
strm << "lemma_" << this_id << "." << (++m_lemma_id) << ".smt2";
std::ofstream out(strm.str());
TRACE("lemma", tout << strm.str() << "\n";
display_lemma_as_smt_problem(tout, num_antecedents, antecedents, num_eq_antecedents, eq_antecedents, consequent, logic);

View file

@ -1136,7 +1136,7 @@ bool theory_arith<Ext>::get_polynomial_info(buffer<coeff_expr> const & p, sbuffe
if (m_util.is_numeral(m)) {
continue;
}
else if (m_util.is_add(m))
else if (false && m_util.is_add(m)) // introduced by #4532, disabled for #4765
return false;
else if (ctx.e_internalized(m) && !is_pure_monomial(m))
add_occ(m);