Skip to content

Commit 18bbc32

Browse files
authored
Merge pull request #7685 from tautschnig/cleanup/remove-make_map_start_address
Remove dfcc_utilst::make_map_start_address
2 parents 221022f + 71cc488 commit 18bbc32

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/goto-instrument/contracts/dynamic-frames/dfcc_utils.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,6 @@ exprt dfcc_utilst::make_sizeof_expr(const exprt &expr)
457457
return size.value();
458458
}
459459

460-
exprt dfcc_utilst::make_map_start_address(const exprt &expr)
461-
{
462-
return typecast_exprt::conditional_cast(
463-
address_of_exprt(index_exprt(
464-
expr, from_integer(0, to_array_type(expr.type()).index_type()))),
465-
pointer_type(bool_typet()));
466-
}
467-
468460
void dfcc_utilst::inline_function(const irep_idt &function_id)
469461
{
470462
auto &goto_function = goto_model.goto_functions.function_map.at(function_id);

src/goto-instrument/contracts/dynamic-frames/dfcc_utils.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ class dfcc_utilst
195195
/// \brief Returns the expression `sizeof(expr)`.
196196
exprt make_sizeof_expr(const exprt &expr);
197197

198-
/// \brief Returns the expression `&expr[0]`
199-
exprt make_map_start_address(const exprt &expr);
200-
201198
/// \brief Inlines the given function, aborts on recursive calls during
202199
/// inlining.
203200
void inline_function(const irep_idt &function_id);

0 commit comments

Comments
 (0)