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
26
class
insert_final_assert_falset
27
{
28
public
:
29
explicit
insert_final_assert_falset
(
message_handlert
&_message_handler);
30
bool
operator()
(
goto_modelt
&,
const
std::string &);
31
32
private
:
33
messaget
log
;
34
};
35
44
bool
insert_final_assert_false
(
45
goto_modelt
&goto_model,
46
const
std::string &function_to_instrument,
47
message_handlert
&message_handler);
48
49
// clang-format off
50
#define OPT_INSERT_FINAL_ASSERT_FALSE \
51
"(insert-final-assert-false):"
52
53
#define HELP_INSERT_FINAL_ASSERT_FALSE \
54
" --insert-final-assert-false <function>\n" \
55
/* NOLINTNEXTLINE(whitespace/line_length) */
\
56
" generate assert(false) at end of function\n"
57
// clang-format on
58
59
#endif // CPROVER_GOTO_INSTRUMENT_INSERT_FINAL_ASSERT_FALSE_H
messaget
Class that provides messages with a built-in verbosity 'level'.
Definition:
message.h:154
goto_modelt
Definition:
goto_model.h:25
insert_final_assert_falset::insert_final_assert_falset
insert_final_assert_falset(message_handlert &_message_handler)
Definition:
insert_final_assert_false.cpp:20
insert_final_assert_false
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...
Definition:
insert_final_assert_false.cpp:53
insert_final_assert_falset
Definition:
insert_final_assert_false.h:26
message_handlert
Definition:
message.h:27
insert_final_assert_falset::operator()
bool operator()(goto_modelt &, const std::string &)
Definition:
insert_final_assert_false.cpp:27
insert_final_assert_falset::log
messaget log
Definition:
insert_final_assert_false.h:33
message.h
src
goto-instrument
insert_final_assert_false.h
Generated by
1.8.17