mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 20:38:43 +00:00
fix #6023
This commit is contained in:
parent
97af3a6120
commit
1e7a9e3e61
|
@ -34,6 +34,7 @@ public:
|
|||
virtual void init_pdescrs(cmd_context & ctx, param_descrs & d) = 0;
|
||||
param_descrs const & pdescrs(cmd_context & ctx) const;
|
||||
params_ref const & ps() const { return m_params; }
|
||||
void reset_params() { m_params.reset(); }
|
||||
virtual char const * get_main_descr() const = 0;
|
||||
char const * get_descr(cmd_context & ctx) const override;
|
||||
unsigned get_arity() const override { return VAR_ARITY; }
|
||||
|
|
|
@ -105,6 +105,7 @@ public:
|
|||
get_opt(ctx, m_opt).add_soft_constraint(m_formula, weight, id);
|
||||
ctx.print_success();
|
||||
reset(ctx);
|
||||
reset_params();
|
||||
}
|
||||
|
||||
void finalize(cmd_context & ctx) override {
|
||||
|
|
Loading…
Reference in a new issue