3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

tune for unit test, delay initialize re-solver

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-05-13 11:49:33 -07:00
parent f2bee7f16a
commit 1e143971c3
4 changed files with 9 additions and 6 deletions

View file

@ -238,8 +238,7 @@ theory_seq::~theory_seq() {
}
void theory_seq::init(context* ctx) {
theory::init(ctx);
m_mk_aut.set_solver(alloc(seq_expr_solver, m, get_context().get_fparams()));
theory::init(ctx);
}
final_check_status theory_seq::final_check_eh() {
@ -4168,6 +4167,9 @@ eautomaton* theory_seq::get_automaton(expr* re) {
if (m_re2aut.find(re, result)) {
return result;
}
if (!m_mk_aut.has_solver()) {
m_mk_aut.set_solver(alloc(seq_expr_solver, m, get_context().get_fparams()));
}
result = m_mk_aut(re);
if (result) {
display_expr disp(m);