CBMC
Loading...
Searching...
No Matches
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
#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
ait
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition
ai.h:562
goto_modelt
Definition
goto_model.h:27
insert_final_assert_falset
Definition
insert_final_assert_false.h:27
insert_final_assert_falset::log
messaget log
Definition
insert_final_assert_false.h:33
insert_final_assert_falset::operator()
bool operator()(goto_modelt &, const std::string &)
Definition
insert_final_assert_false.cpp:27
message_handlert
Definition
message.h:27
messaget
Class that provides messages with a built-in verbosity 'level'.
Definition
message.h:154
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
message.h
src
goto-instrument
insert_final_assert_false.h
Generated by
1.9.8