cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
object_factory_parameters.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module:
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
9
#ifndef CPROVER_UTIL_OBJECT_FACTORY_PARAMETERS_H
10
#define CPROVER_UTIL_OBJECT_FACTORY_PARAMETERS_H
11
12
#include <list>
13
14
#include <
util/irep.h
>
15
#include <
util/magic.h
>
16
17
class
cmdlinet
;
18
class
optionst
;
19
20
struct
object_factory_parameterst
21
{
22
object_factory_parameterst
()
23
{
24
}
25
26
explicit
object_factory_parameterst
(
const
optionst
&options)
27
{
28
set
(options);
29
}
30
31
virtual
~object_factory_parameterst
() =
default
;
32
34
size_t
max_nondet_array_length
= 5;
35
41
size_t
max_nondet_string_length
=
MAX_CONCRETE_STRING_SIZE
- 1;
42
44
size_t
min_nondet_string_length
= 0;
45
58
size_t
max_nondet_tree_depth = 5;
59
70
size_t
min_null_tree_depth
= 0;
71
73
bool
string_printable
=
false
;
74
76
std::list<std::string>
string_input_values
;
77
79
irep_idt
function_id
;
80
82
void
set
(
const
optionst
&);
83
};
84
85
void
parse_object_factory_options
(
const
cmdlinet
&,
optionst
&);
86
87
#endif
cmdlinet
Definition
cmdline.h:20
optionst
Definition
options.h:23
irep.h
magic.h
Magic numbers used throughout the codebase.
MAX_CONCRETE_STRING_SIZE
const std::size_t MAX_CONCRETE_STRING_SIZE
Definition
magic.h:14
parse_object_factory_options
void parse_object_factory_options(const cmdlinet &, optionst &)
Parse the object factory parameters from a given command line.
Definition
object_factory_parameters.cpp:54
object_factory_parameterst::function_id
irep_idt function_id
Function id, used as a prefix for identifiers of temporaries.
Definition
object_factory_parameters.h:79
object_factory_parameterst::object_factory_parameterst
object_factory_parameterst(const optionst &options)
Definition
object_factory_parameters.h:26
object_factory_parameterst::max_nondet_array_length
size_t max_nondet_array_length
Maximum value for the non-deterministically-chosen length of an array.
Definition
object_factory_parameters.h:34
object_factory_parameterst::string_input_values
std::list< std::string > string_input_values
Force one of finitely many explicitly given input strings.
Definition
object_factory_parameters.h:76
object_factory_parameterst::min_null_tree_depth
size_t min_null_tree_depth
Maximum depth of pointer chains (that contain recursion) in the nondet generated input objects.
Definition
object_factory_parameters.h:70
object_factory_parameterst::string_printable
bool string_printable
Force string content to be ASCII printable characters when set to true.
Definition
object_factory_parameters.h:73
object_factory_parameterst::object_factory_parameterst
object_factory_parameterst()
Definition
object_factory_parameters.h:22
object_factory_parameterst::max_nondet_string_length
size_t max_nondet_string_length
Maximum value for the non-deterministically-chosen length of a string.
Definition
object_factory_parameters.h:41
object_factory_parameterst::set
void set(const optionst &)
Assigns the parameters from given options.
Definition
object_factory_parameters.cpp:14
object_factory_parameterst::min_nondet_string_length
size_t min_nondet_string_length
Minimum value for the non-deterministically-chosen length of a string.
Definition
object_factory_parameters.h:44
object_factory_parameterst::~object_factory_parameterst
virtual ~object_factory_parameterst()=default
irep_idt
dstringt irep_idt
Definition
verification_result.h:16
util
object_factory_parameters.h
Generated by
1.17.0