3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +00:00
z3/src/tactic/core/simplify_tactic.h
Nikolaj Bjorner c513f3ca09 merge with master
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2018-03-25 14:57:01 -07:00

57 lines
1.3 KiB
C++

/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
simplify_tactic.h
Abstract:
Apply simplification and rewriting rules.
Author:
Leonardo (leonardo) 2011-11-20
Notes:
--*/
#ifndef SIMPLIFY_TACTIC_H_
#define SIMPLIFY_TACTIC_H_
#include "tactic/tactic.h"
#include "tactic/tactical.h"
class simplify_tactic : public tactic {
struct imp;
imp * m_imp;
params_ref m_params;
public:
simplify_tactic(ast_manager & m, params_ref const & ref = params_ref());
~simplify_tactic() override;
void updt_params(params_ref const & p) override;
static void get_param_descrs(param_descrs & r);
void collect_param_descrs(param_descrs & r) override { get_param_descrs(r); }
void operator()(goal_ref const & in, goal_ref_buffer & result) override;
void cleanup() override;
unsigned get_num_steps() const;
tactic * translate(ast_manager & m) override { return alloc(simplify_tactic, m, m_params); }
};
tactic * mk_simplify_tactic(ast_manager & m, params_ref const & p = params_ref());
tactic * mk_elim_and_tactic(ast_manager & m, params_ref const & p = params_ref());
/*
ADD_TACTIC("simplify", "apply simplification rules.", "mk_simplify_tactic(m, p)")
ADD_TACTIC("elim-and", "convert (and a b) into (not (or (not a) (not b))).", "mk_elim_and_tactic(m, p)")
*/
#endif