mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +00:00
#7468 - add option (get-info :parameters) to display solver parameters that were updated globally and distinct from defaults
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
62126fd6e2
commit
c2b7b58c78
8 changed files with 62 additions and 6 deletions
|
@ -225,6 +225,18 @@ void solver::collect_param_descrs(param_descrs & r) {
|
|||
insert_ctrl_c(r);
|
||||
}
|
||||
|
||||
std::ostream& solver::display_parameters(std::ostream& out) {
|
||||
//
|
||||
// this is a partial patch.
|
||||
// The modules should be present in 'p'.
|
||||
// if p has smt parameters that are updated, they may be visible.
|
||||
// parameters within sub-solvers will / may not be visible at this level.
|
||||
//
|
||||
auto const& p = get_params();
|
||||
gparams::display_updated_parameters(out, p);
|
||||
return out;
|
||||
}
|
||||
|
||||
void solver::reset_params(params_ref const & p) {
|
||||
m_params.append(p);
|
||||
solver_params sp(m_params);
|
||||
|
|
|
@ -81,6 +81,11 @@ public:
|
|||
*/
|
||||
virtual void collect_param_descrs(param_descrs & r);
|
||||
|
||||
/**
|
||||
* \brief display parameters
|
||||
*/
|
||||
std::ostream& display_parameters(std::ostream& out);
|
||||
|
||||
/**
|
||||
\brief Push a parameter state. It is restored upon pop.
|
||||
Only a single scope of push is supported.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue