mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 16:25:48 +00:00
isolating elim_term_ite inside smt module
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
ed5d154f78
commit
3e50a65dfc
2 changed files with 0 additions and 0 deletions
50
src/smt/elim_term_ite.h
Normal file
50
src/smt/elim_term_ite.h
Normal file
|
@ -0,0 +1,50 @@
|
|||
/*++
|
||||
Copyright (c) 2006 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
elim_term_ite.h
|
||||
|
||||
Abstract:
|
||||
|
||||
<abstract>
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2008-06-12.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
#ifndef _ELIM_TERM_ITE_H_
|
||||
#define _ELIM_TERM_ITE_H_
|
||||
|
||||
#include"simplifier.h"
|
||||
#include"defined_names.h"
|
||||
|
||||
class elim_term_ite : public simplifier {
|
||||
defined_names & m_defined_names;
|
||||
proof_ref_vector m_coarse_proofs;
|
||||
expr_ref_vector * m_new_defs;
|
||||
proof_ref_vector * m_new_def_proofs;
|
||||
void reduce_core(expr * n);
|
||||
bool visit_children(expr * n);
|
||||
void reduce1(expr * n);
|
||||
void reduce1_app(app * n);
|
||||
void reduce1_quantifier(quantifier * q);
|
||||
public:
|
||||
elim_term_ite(ast_manager & m, defined_names & d):simplifier(m), m_defined_names(d), m_coarse_proofs(m) {
|
||||
m_use_oeq = true;
|
||||
enable_ac_support(false);
|
||||
}
|
||||
virtual ~elim_term_ite() {}
|
||||
void operator()(expr * n, // [IN]
|
||||
expr_ref_vector & new_defs, // [OUT] new definitions
|
||||
proof_ref_vector & new_def_proofs, // [OUT] proofs of the new definitions
|
||||
expr_ref & r, // [OUT] resultant expression
|
||||
proof_ref & pr // [OUT] proof for (~ n r)
|
||||
);
|
||||
};
|
||||
|
||||
#endif /* _ELIM_TERM_ITE_H_ */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue