mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
add parameter validation to tactic parameters
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4ea3ed7e27
commit
335f9a9be1
3 changed files with 64 additions and 9 deletions
|
@ -1229,6 +1229,9 @@ class using_params_tactical : public unary_tactical {
|
|||
params_ref m_params;
|
||||
public:
|
||||
using_params_tactical(tactic * t, params_ref const & p):unary_tactical(t), m_params(p) {
|
||||
param_descrs r;
|
||||
collect_param_descrs(r);
|
||||
p.validate(r);
|
||||
t->updt_params(p);
|
||||
}
|
||||
|
||||
|
@ -1276,7 +1279,7 @@ public:
|
|||
model_converter_ref & mc,
|
||||
proof_converter_ref & pc,
|
||||
expr_dependency_ref & core) {
|
||||
if (m_p->operator()(*(in.get())).is_true())
|
||||
if (m_p->operator()(*(in.get())).is_true())
|
||||
m_t1->operator()(in, result, mc, pc, core);
|
||||
else
|
||||
m_t2->operator()(in, result, mc, pc, core);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue