cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
c_test_input_generator.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: Test Input Generator for C
4
5
Author: Daniel Kroening, Peter Schrammel
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_CBMC_C_TEST_INPUT_GENERATOR_H
13
#define CPROVER_CBMC_C_TEST_INPUT_GENERATOR_H
14
15
#include <iosfwd>
16
17
#include <
util/xml.h
>
18
19
class
goto_tracet
;
20
class
goto_trace_storaget
;
21
class
json_objectt
;
22
class
namespacet
;
23
class
optionst
;
24
class
ui_message_handlert
;
25
26
class
test_inputst
27
{
28
public
:
30
void
output_plain_text
(
31
std::ostream &out,
32
const
namespacet
&ns,
33
const
goto_tracet
&goto_trace)
const
;
34
37
json_objectt
to_json
(
38
const
namespacet
&ns,
39
const
goto_tracet
&goto_trace,
40
bool
print_trace)
const
;
41
44
xmlt
to_xml
(
45
const
namespacet
&ns,
46
const
goto_tracet
&goto_trace,
47
bool
print_trace)
const
;
48
};
49
50
class
c_test_input_generatort
51
{
52
public
:
53
c_test_input_generatort
(
54
ui_message_handlert
&
ui_message_handler
,
55
const
optionst
&
options
);
56
58
void
operator()
(
const
goto_trace_storaget
&);
59
60
protected
:
61
ui_message_handlert
&
ui_message_handler
;
62
const
optionst
&
options
;
63
65
test_inputst
operator()
(
const
goto_tracet
&goto_trace,
const
namespacet
&ns);
66
};
67
68
#endif
// CPROVER_CBMC_C_TEST_INPUT_GENERATOR_H
c_test_input_generatort::c_test_input_generatort
c_test_input_generatort(ui_message_handlert &ui_message_handler, const optionst &options)
Definition
c_test_input_generator.cpp:31
c_test_input_generatort::ui_message_handler
ui_message_handlert & ui_message_handler
Definition
c_test_input_generator.h:61
c_test_input_generatort::operator()
void operator()(const goto_trace_storaget &)
Extracts test inputs for all traces and outputs them.
Definition
c_test_input_generator.cpp:132
c_test_input_generatort::options
const optionst & options
Definition
c_test_input_generator.h:62
goto_trace_storaget
Definition
goto_trace_storage.h:22
goto_tracet
Trace of a GOTO program.
Definition
goto_trace.h:177
json_objectt
Definition
json.h:298
namespacet
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition
namespace.h:91
optionst
Definition
options.h:23
test_inputst
Definition
c_test_input_generator.h:27
test_inputst::to_xml
xmlt to_xml(const namespacet &ns, const goto_tracet &goto_trace, bool print_trace) const
Returns the test inputs in XML format including the trace if desired.
Definition
c_test_input_generator.cpp:90
test_inputst::output_plain_text
void output_plain_text(std::ostream &out, const namespacet &ns, const goto_tracet &goto_trace) const
Outputs the test inputs in plain text format.
Definition
c_test_input_generator.cpp:38
test_inputst::to_json
json_objectt to_json(const namespacet &ns, const goto_tracet &goto_trace, bool print_trace) const
Returns the test inputs in JSON format including the trace if desired.
Definition
c_test_input_generator.cpp:54
ui_message_handlert
Definition
ui_message.h:22
xmlt
Definition
xml.h:21
xml.h
cbmc
c_test_input_generator.h
Generated by
1.17.0