Skip to content

Commit

Permalink
Abort on byte_update(pointer)
Browse files Browse the repository at this point in the history
Just ignoring them would yield unsound results.
  • Loading branch information
tautschnig committed Apr 3, 2018
1 parent a695814 commit 8300147
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/solvers/flattening/bv_pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,12 @@ bvt bv_pointerst::convert_pointer_type(const exprt &expr)
{
return SUB::convert_byte_extract(to_byte_extract_expr(expr));
}
else if(
expr.id() == ID_byte_update_little_endian ||
expr.id() == ID_byte_update_big_endian)
{
throw "byte-wise updates of pointers are unsupported";
}

return conversion_failed(expr);
}
Expand Down

0 comments on commit 8300147

Please sign in to comment.