Skip to content

Commit c06ccf1

Browse files
committed
Removes unused methods from contracts module
Signed-off-by: Felipe R. Monteiro <[email protected]>
1 parent fba232b commit c06ccf1

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/goto-instrument/contracts/contracts.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -666,19 +666,6 @@ goto_functionst &code_contractst::get_goto_functions()
666666
return goto_functions;
667667
}
668668

669-
exprt code_contractst::create_alias_expression(
670-
const exprt &lhs,
671-
std::vector<exprt> &aliasable_references)
672-
{
673-
exprt::operandst operands;
674-
operands.reserve(aliasable_references.size());
675-
for(auto aliasable : aliasable_references)
676-
{
677-
operands.push_back(equal_exprt(lhs, typecast_exprt(aliasable, lhs.type())));
678-
}
679-
return disjunction(operands);
680-
}
681-
682669
void code_contractst::instrument_assign_statement(
683670
goto_programt::instructionst::iterator &instruction_iterator,
684671
goto_programt &program,

src/goto-instrument/contracts/contracts.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,6 @@ class code_contractst
174174
goto_programt &,
175175
assigns_clauset &);
176176

177-
/// Creates a boolean expression which is true when there exists an expression
178-
/// in aliasable_references with the same pointer object and pointer offset as
179-
/// the address of lhs.
180-
exprt create_alias_expression(
181-
const exprt &lhs,
182-
std::vector<exprt> &aliasable_references);
183-
184177
/// Apply loop contracts, whenever available, to all loops in `function`.
185178
/// Loop invariants, loop variants, and loop assigns clauses.
186179
void apply_loop_contract(

0 commit comments

Comments
 (0)