Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/solvers/smt2/smt2_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,10 @@ void smt2_convt::walk_array_tree(
// Recurse
walk_array_tree(operands_map, src.get_sub()[1], type);
const auto index_expr = parse_rec(src.get_sub()[2], type.size().type());
if(!index_expr.is_constant())
// Non-constant index (e.g. an unbounded / non-integer-keyed heap array
// from Strata's `Map Ref _`): skip this store in model reconstruction.
return;
Comment on lines +640 to +643
Comment on lines +640 to +643
const constant_exprt index_constant = to_constant_expr(index_expr);
mp_integer tempint;
bool failure = to_integer(index_constant, tempint);
Expand Down
Loading