mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
seq
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e2fab0a555
commit
bd9b5b5735
5 changed files with 133 additions and 54 deletions
|
@ -39,7 +39,10 @@ re2automaton::re2automaton(ast_manager& m): m(m), u(m) {}
|
|||
eautomaton* re2automaton::operator()(expr* e) {
|
||||
eautomaton* r = re2aut(e);
|
||||
if (r) {
|
||||
//display_expr1 disp(m);
|
||||
//r->display(std::cout, disp);
|
||||
r->compress();
|
||||
//r->display(std::cout, disp);
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
@ -61,6 +64,7 @@ eautomaton* re2automaton::re2aut(expr* e) {
|
|||
else if (u.re.is_star(e, e1) && (a = re2aut(e1))) {
|
||||
a->add_final_to_init_moves();
|
||||
a->add_init_to_final_states();
|
||||
|
||||
return a.detach();
|
||||
}
|
||||
else if (u.re.is_plus(e, e1) && (a = re2aut(e1))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue