Skip to content

Commit

Permalink
fix #4060
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Apr 23, 2020
1 parent 886f4cb commit c7878e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast/rewriter/seq_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ br_status seq_rewriter::mk_seq_index(expr* a, expr* b, expr* c, expr_ref& result
unsigned i = 0;
if (m_autil.is_numeral(c, r)) {
i = 0;
while (r.is_pos() && m_util.str.is_unit(as.get(i))) {
while (r.is_pos() && i < as.size() && m_util.str.is_unit(as.get(i))) {
r -= rational(1);
++i;
}
Expand Down

0 comments on commit c7878e3

Please sign in to comment.