Skip to content

Remove dfcc_utilst::make_map_start_address #7685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
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
8 changes: 0 additions & 8 deletions src/goto-instrument/contracts/dynamic-frames/dfcc_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,6 @@ exprt dfcc_utilst::make_sizeof_expr(const exprt &expr)
return size.value();
}

exprt dfcc_utilst::make_map_start_address(const exprt &expr)
{
return typecast_exprt::conditional_cast(
address_of_exprt(index_exprt(
expr, from_integer(0, to_array_type(expr.type()).index_type()))),
pointer_type(bool_typet()));
}

void dfcc_utilst::inline_function(const irep_idt &function_id)
{
auto &goto_function = goto_model.goto_functions.function_map.at(function_id);
Expand Down
3 changes: 0 additions & 3 deletions src/goto-instrument/contracts/dynamic-frames/dfcc_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ class dfcc_utilst
/// \brief Returns the expression `sizeof(expr)`.
exprt make_sizeof_expr(const exprt &expr);

/// \brief Returns the expression `&expr[0]`
exprt make_map_start_address(const exprt &expr);

/// \brief Inlines the given function, aborts on recursive calls during
/// inlining.
void inline_function(const irep_idt &function_id);
Expand Down