Skip to content

Commit 6ff61d1

Browse files
fix #4062
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent eb2d7d3 commit 6ff61d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/smt/theory_seq.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,6 +1821,10 @@ void theory_seq::init_search_eh() {
18211821
m_re2aut.reset();
18221822
m_res.reset();
18231823
m_automata.reset();
1824+
auto as = get_context().get_fparams().m_arith_mode;
1825+
if (m_has_seq && as != AS_OLD_ARITH && as != AS_NEW_ARITH) {
1826+
throw default_exception("illegal arithmetic solver used with string solver");
1827+
}
18241828
}
18251829

18261830
void theory_seq::init_model(expr_ref_vector const& es) {

0 commit comments

Comments
 (0)