|
CBMC
|
#include "insert_final_assert_false.h"#include <goto-programs/goto_model.h>#include <util/irep.h>#include <iterator>#include <list>
Include dependency graph for insert_final_assert_false.cpp:Go to the source code of this file.
Functions | |
| bool | insert_final_assert_false (goto_modelt &goto_model, const std::string &function_to_instrument, message_handlert &message_handler) |
Transform a goto program by inserting assert(false) at the end of a given function function_to_instrument. More... | |
Insert final assert false into a function
Definition in file insert_final_assert_false.cpp.
| bool insert_final_assert_false | ( | goto_modelt & | goto_model, |
| const std::string & | function_to_instrument, | ||
| message_handlert & | message_handler | ||
| ) |
Transform a goto program by inserting assert(false) at the end of a given function function_to_instrument.
The instrumented assert is expected to fail. If it does not then this may indicate inconsistent assumptions.
| goto_model | The goto program to modify. |
| function_to_instrument | Name of the function to instrument. |
| message_handler | Handles logging. |
Definition at line 53 of file insert_final_assert_false.cpp.