Skip to content

Commit

Permalink
don't flush stream when printing param vals
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Jan 3, 2023
1 parent d449073 commit d30cb55
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/params/bit_blaster_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ struct bit_blaster_params {
#endif

void display(std::ostream & out) const {
out << "m_bb_ext_gates=" << m_bb_ext_gates << std::endl;
out << "m_bb_quantifiers=" << m_bb_quantifiers << std::endl;
out << "m_bb_ext_gates=" << m_bb_ext_gates << '\n';
out << "m_bb_quantifiers=" << m_bb_quantifiers << '\n';
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/params/pattern_inference_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void pattern_inference_params::updt_params(params_ref const & _p) {
m_pi_warnings = p.warnings();
}

#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void pattern_inference_params::display(std::ostream & out) const {
DISPLAY_PARAM(m_pi_max_multi_patterns);
Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/dyn_ack_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void dyn_ack_params::updt_params(params_ref const & _p) {
m_dack_gc_inv_decay = p.dack_gc_inv_decay();
}

#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void dyn_ack_params::display(std::ostream & out) const {
DISPLAY_PARAM((unsigned)m_dack);
Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/preprocessor_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void preprocessor_params::updt_params(params_ref const & p) {
updt_local_params(p);
}

#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void preprocessor_params::display(std::ostream & out) const {
pattern_inference_params::display(out);
Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/qi_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void qi_params::updt_params(params_ref const & _p) {
m_qi_quick_checker = static_cast<quick_checker_mode>(p.qi_quick_checker());
}

#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void qi_params::display(std::ostream & out) const {
DISPLAY_PARAM(m_qi_cost);
Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/smt_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void smt_params::updt_params(context_params const & p) {
m_model = p.m_model;
}

#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void smt_params::display(std::ostream & out) const {
preprocessor_params::display(out);
Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/theory_arith_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void theory_arith_params::updt_params(params_ref const & _p) {
}


#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void theory_arith_params::display(std::ostream & out) const {
DISPLAY_PARAM(m_arith_eq2ineq);
Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/theory_array_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void theory_array_params::updt_params(params_ref const & _p) {
m_array_extensional = p.array_extensional();
}

#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void theory_array_params::display(std::ostream & out) const {
DISPLAY_PARAM(m_array_mode);
Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/theory_bv_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void theory_bv_params::updt_params(params_ref const & _p) {
m_bv_size_reduce = p.bv_size_reduce();
}

#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void theory_bv_params::display(std::ostream & out) const {
DISPLAY_PARAM(m_bv_mode);
Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/theory_datatype_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct theory_datatype_params {
m_dt_lazy_splits = p.dt_lazy_splits();
}

void display(std::ostream & out) const { out << "m_dt_lazy_splits=" << m_dt_lazy_splits << std::endl; }
void display(std::ostream & out) const { out << "m_dt_lazy_splits=" << m_dt_lazy_splits << '\n'; }
};


Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/theory_pb_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void theory_pb_params::updt_params(params_ref const & _p) {
m_pb_learn_complements = p.pb_learn_complements();
}

#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void theory_pb_params::display(std::ostream & out) const {
DISPLAY_PARAM(m_pb_conflict_frequency);
Expand Down
2 changes: 1 addition & 1 deletion src/smt/params/theory_str_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void theory_str_params::updt_params(params_ref const & _p) {
m_FixedLengthNaiveCounterexamples = p.str_fixed_length_naive_cex();
}

#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
#define DISPLAY_PARAM(X) out << #X"=" << X << '\n';

void theory_str_params::display(std::ostream & out) const {
DISPLAY_PARAM(m_StrongArrangements);
Expand Down
2 changes: 1 addition & 1 deletion src/tactic/smtlogics/smt_tactic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Module Name:

tactic * mk_smt_tactic(ast_manager & m, params_ref const & p) {
sat_params sp(p);
if (sp.smt())
if (sp.smt())
return mk_solver2tactic(mk_smt2_solver(m, p));
if (sp.euf())
return mk_sat_tactic(m, p);
Expand Down

0 comments on commit d30cb55

Please sign in to comment.