3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-20 03:53:10 +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:
Nikolaj Bjorner 2025-02-10 11:57:14 -08:00
parent 62126fd6e2
commit c2b7b58c78
8 changed files with 62 additions and 6 deletions

View file

@ -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);