Skip to content

Commit b36e1de

Browse files
author
Daniel Kroening
committed
expose remove_preconditions
1 parent 1bca129 commit b36e1de

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/goto-programs/instrument_preconditions.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,9 @@ void instrument_preconditions(goto_modelt &goto_model)
146146
for(auto &f_it : goto_model.goto_functions.function_map)
147147
remove_preconditions(f_it.second.body);
148148
}
149+
150+
void remove_preconditions(goto_modelt &goto_model)
151+
{
152+
for(auto &f_it : goto_model.goto_functions.function_map)
153+
remove_preconditions(f_it.second.body);
154+
}

src/goto-programs/instrument_preconditions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ Date: September 2017
1515
#include <goto-programs/goto_model.h>
1616

1717
void instrument_preconditions(goto_modelt &);
18+
void remove_preconditions(goto_modelt &);
1819

1920
#endif // CPROVER_GOTO_PROGRAMS_INSTRUMENT_PRECONDITIONS_H

0 commit comments

Comments
 (0)