Skip to content

Commit

Permalink
Remove unused make_assertions_false
Browse files Browse the repository at this point in the history
This code was introduced in 35b430a and 76d543b, but it seems to
be unused and its purpose is unclear.
  • Loading branch information
tautschnig committed Mar 9, 2022
1 parent daa7996 commit ee16d80
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
18 changes: 0 additions & 18 deletions src/goto-programs/set_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,3 @@ void label_properties(goto_functionst &goto_functions)
it++)
label_properties(it->second.body, property_counters);
}

void make_assertions_false(goto_modelt &goto_model)
{
make_assertions_false(goto_model.goto_functions);
}

void make_assertions_false(
goto_functionst &goto_functions)
{
for(auto &f : goto_functions.function_map)
{
for(auto &i : f.second.body.instructions)
{
if(i.is_assert())
i.set_condition(false_exprt());
}
}
}
3 changes: 0 additions & 3 deletions src/goto-programs/set_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ void set_properties(
goto_modelt &goto_model,
const std::list<std::string> &properties);

void make_assertions_false(goto_functionst &);
void make_assertions_false(goto_modelt &);

void label_properties(goto_functionst &);
void label_properties(goto_programt &);
void label_properties(goto_modelt &);
Expand Down

0 comments on commit ee16d80

Please sign in to comment.