mirror of
https://github.com/Z3Prover/z3
synced 2025-10-04 06:53:58 +00:00
theory_str Replace method
This commit is contained in:
parent
fb20951064
commit
5b3c868c90
6 changed files with 118 additions and 11 deletions
|
@ -116,6 +116,7 @@ namespace smt {
|
|||
ptr_vector<enode> m_axiom_Indexof2_todo;
|
||||
ptr_vector<enode> m_axiom_LastIndexof_todo;
|
||||
ptr_vector<enode> m_axiom_Substr_todo;
|
||||
ptr_vector<enode> m_axiom_Replace_todo;
|
||||
|
||||
// hashtable of all exprs for which we've already set up term-specific axioms --
|
||||
// this prevents infinite recursive descent with respect to axioms that
|
||||
|
@ -202,6 +203,8 @@ namespace smt {
|
|||
bool is_LastIndexof(enode const * n) const { return is_LastIndexof(n->get_owner()); }
|
||||
bool is_Substr(app const * a) const { return a->is_app_of(get_id(), OP_STR_SUBSTR); }
|
||||
bool is_Substr(enode const * n) const { return is_Substr(n->get_owner()); }
|
||||
bool is_Replace(app const * a) const { return a->is_app_of(get_id(), OP_STR_REPLACE); }
|
||||
bool is_Replace(enode const * n) const { return is_Replace(n->get_owner()); }
|
||||
|
||||
void instantiate_concat_axiom(enode * cat);
|
||||
void instantiate_basic_string_axioms(enode * str);
|
||||
|
@ -215,6 +218,7 @@ namespace smt {
|
|||
void instantiate_axiom_Indexof2(enode * e);
|
||||
void instantiate_axiom_LastIndexof(enode * e);
|
||||
void instantiate_axiom_Substr(enode * e);
|
||||
void instantiate_axiom_Replace(enode * e);
|
||||
|
||||
void set_up_axioms(expr * ex);
|
||||
void handle_equality(expr * lhs, expr * rhs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue