Skip to content

Commit 1f62596

Browse files
Clean-up get_return_lhs
Useless assertion removed
1 parent 26781a6 commit 1f62596

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/analyses/flow_insensitive_analysis.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,13 @@ exprt flow_insensitive_abstract_domain_baset::get_guard(
4040
exprt flow_insensitive_abstract_domain_baset::get_return_lhs(locationt to) const
4141
{
4242
// get predecessor of "to"
43-
4443
to--;
4544

4645
if(to->is_end_function())
4746
return static_cast<const exprt &>(get_nil_irep());
4847

4948
// must be the function call
50-
assert(to->is_function_call());
51-
52-
const code_function_callt &code = to_code_function_call(to->code);
53-
54-
return code.lhs();
49+
return to_code_function_call(to->code).lhs();
5550
}
5651

5752
void flow_insensitive_analysis_baset::operator()(

0 commit comments

Comments
 (0)