Skip to content

Commit

Permalink
z3str3: fail early on non-string sequence terms
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrberzi authored and NikolajBjorner committed Oct 1, 2019
1 parent d70b63c commit fe7a7fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/smt/theory_str.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8483,6 +8483,10 @@ namespace smt {
}
}
} else {
if (u.str.is_non_string_sequence(ex)) {
TRACE("str", tout << "ERROR: Z3str3 does not support non-string sequence terms. Aborting." << std::endl;);
m.raise_exception("Z3str3 does not support non-string sequence terms.");
}
TRACE("str", tout << "setting up axioms for " << mk_ismt2_pp(ex, get_manager()) <<
": expr is of wrong sort, ignoring" << std::endl;);
}
Expand Down

0 comments on commit fe7a7fe

Please sign in to comment.