mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Added facilities for dumping smt_params for debugging purposes
This commit is contained in:
parent
fad1dffbf0
commit
8bde7b8a4c
24 changed files with 300 additions and 2 deletions
|
@ -30,3 +30,18 @@ void pattern_inference_params::updt_params(params_ref const & _p) {
|
|||
m_pi_pull_quantifiers = p.pull_quantifiers();
|
||||
m_pi_warnings = p.warnings();
|
||||
}
|
||||
|
||||
#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
|
||||
|
||||
void pattern_inference_params::display(std::ostream & out) const {
|
||||
DISPLAY_PARAM(m_pi_max_multi_patterns);
|
||||
DISPLAY_PARAM(m_pi_block_loop_patterns);
|
||||
DISPLAY_PARAM(m_pi_arith);
|
||||
DISPLAY_PARAM(m_pi_use_database);
|
||||
DISPLAY_PARAM(m_pi_arith_weight);
|
||||
DISPLAY_PARAM(m_pi_non_nested_arith_weight);
|
||||
DISPLAY_PARAM(m_pi_pull_quantifiers);
|
||||
DISPLAY_PARAM(m_pi_nopat_weight);
|
||||
DISPLAY_PARAM(m_pi_avoid_skolems);
|
||||
DISPLAY_PARAM(m_pi_warnings);
|
||||
}
|
|
@ -46,6 +46,8 @@ struct pattern_inference_params {
|
|||
}
|
||||
|
||||
void updt_params(params_ref const & _p);
|
||||
|
||||
void display(std::ostream & out) const;
|
||||
};
|
||||
|
||||
#endif /* PATTERN_INFERENCE_PARAMS_H_ */
|
||||
|
|
|
@ -22,7 +22,7 @@ Revision History:
|
|||
struct bit_blaster_params {
|
||||
bool m_bb_ext_gates;
|
||||
bool m_bb_quantifiers;
|
||||
bit_blaster_params():
|
||||
bit_blaster_params() :
|
||||
m_bb_ext_gates(false),
|
||||
m_bb_quantifiers(false) {
|
||||
}
|
||||
|
@ -32,6 +32,11 @@ struct bit_blaster_params {
|
|||
p.register_bool_param("bb_quantifiers", m_bb_quantifiers, "convert bit-vectors to Booleans in quantifiers");
|
||||
}
|
||||
#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;
|
||||
}
|
||||
};
|
||||
|
||||
#endif /* BIT_BLASTER_PARAMS_H_ */
|
||||
|
|
|
@ -24,3 +24,10 @@ void arith_simplifier_params::updt_params(params_ref const & _p) {
|
|||
m_arith_expand_eqs = p.arith_expand_eqs();
|
||||
m_arith_process_all_eqs = p.arith_process_all_eqs();
|
||||
}
|
||||
|
||||
#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
|
||||
|
||||
void arith_simplifier_params::display(std::ostream & out) const {
|
||||
DISPLAY_PARAM(m_arith_expand_eqs);
|
||||
DISPLAY_PARAM(m_arith_process_all_eqs);
|
||||
}
|
|
@ -30,6 +30,8 @@ struct arith_simplifier_params {
|
|||
}
|
||||
|
||||
void updt_params(params_ref const & _p);
|
||||
|
||||
void display(std::ostream & out) const;
|
||||
};
|
||||
|
||||
#endif /* ARITH_SIMPLIFIER_PARAMS_H_ */
|
||||
|
|
|
@ -27,3 +27,10 @@ void bv_simplifier_params::updt_params(params_ref const & _p) {
|
|||
m_bv2int_distribute = p.bv_bv2int_distribute();
|
||||
|
||||
}
|
||||
|
||||
#define DISPLAY_PARAM(X) out << #X"=" << X << std::endl;
|
||||
|
||||
void bv_simplifier_params::display(std::ostream & out) const {
|
||||
DISPLAY_PARAM(m_hi_div0);
|
||||
DISPLAY_PARAM(m_bv2int_distribute);
|
||||
}
|
|
@ -30,6 +30,8 @@ struct bv_simplifier_params {
|
|||
}
|
||||
|
||||
void updt_params(params_ref const & _p);
|
||||
|
||||
void display(std::ostream & out) const;
|
||||
};
|
||||
|
||||
#endif /* BV_SIMPLIFIER_PARAMS_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue