CBMC
insert_final_assert_false.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Insert assert(false) at end of entry function
4 
5 Author: Nathan Chong, Kareem Khazem
6 
7 \*******************************************************************/
8 
11 
16 
17 #ifndef CPROVER_GOTO_INSTRUMENT_INSERT_FINAL_ASSERT_FALSE_H
18 #define CPROVER_GOTO_INSTRUMENT_INSERT_FINAL_ASSERT_FALSE_H
19 
20 #include <string>
21 
22 #include <util/message.h>
23 
24 class goto_modelt;
25 
27 {
28 public:
29  explicit insert_final_assert_falset(message_handlert &_message_handler);
30  bool operator()(goto_modelt &, const std::string &);
31 
32 private:
34 };
35 
45  goto_modelt &goto_model,
46  const std::string &function_to_instrument,
47  message_handlert &message_handler);
48 
49 #define OPT_INSERT_FINAL_ASSERT_FALSE \
50  "(insert-final-assert-false):"
51 
52 #define HELP_INSERT_FINAL_ASSERT_FALSE \
53  " {y--insert-final-assert-false} {ufunction} \t " \
54  "generate assert(false) at end of function {ufunction}\n"
55 
56 #endif // CPROVER_GOTO_INSTRUMENT_INSERT_FINAL_ASSERT_FALSE_H
bool operator()(goto_modelt &, const std::string &)
insert_final_assert_falset(message_handlert &_message_handler)
Class that provides messages with a built-in verbosity 'level'.
Definition: message.h:154
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_instru...