mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
more rewrites
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4fe0e07080
commit
40e9e4c7f8
4 changed files with 98 additions and 12 deletions
|
@ -355,3 +355,12 @@ bool seq_decl_plugin::is_value(app* e) const {
|
|||
app* seq_util::str::mk_string(symbol const& s) {
|
||||
return u.seq.mk_string(s);
|
||||
}
|
||||
|
||||
void seq_util::str::get_concat(expr* e, ptr_vector<expr>& es) const {
|
||||
expr* e1, *e2;
|
||||
while (is_concat(e, e1, e2)) {
|
||||
get_concat(e1, es);
|
||||
e = e2;
|
||||
}
|
||||
es.push_back(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue