mirror of
https://github.com/Z3Prover/z3
synced 2026-03-17 18:43:45 +00:00
Convert der tactic to simplifier: add der_simplifier.h and update der_tactic.h
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
30784ecaa9
commit
c78b3d872d
2 changed files with 54 additions and 0 deletions
|
|
@ -49,12 +49,24 @@ equality resolution rule takes the form:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include "tactic/dependent_expr_state_tactic.h"
|
||||
#include "ast/simplifiers/der_simplifier.h"
|
||||
|
||||
class ast_manager;
|
||||
class tactic;
|
||||
|
||||
tactic * mk_der_tactic(ast_manager & m);
|
||||
|
||||
inline tactic * mk_der2_tactic(ast_manager & m, params_ref const & p = params_ref()) {
|
||||
return alloc(dependent_expr_state_tactic, m, p,
|
||||
[](auto& m, auto& p, auto& s) -> dependent_expr_simplifier* {
|
||||
return alloc(der_simplifier, m, p, s);
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
ADD_TACTIC("der", "destructive equality resolution.", "mk_der_tactic(m)")
|
||||
ADD_TACTIC("der2", "destructive equality resolution.", "mk_der2_tactic(m, p)")
|
||||
ADD_SIMPLIFIER("der", "destructive equality resolution.", "alloc(der_simplifier, m, p, s)")
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue