cprover
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 <cstdint>
13 #include <limits>
14 #include <list>
15 
16 #include <util/irep.h>
17 
18 class cmdlinet;
19 class optionst;
20 
22 {
24  {
25  }
26 
27  explicit object_factory_parameterst(const optionst &options)
28  {
29  set(options);
30  }
31 
32  virtual ~object_factory_parameterst() = default;
33 
36 
39  static_cast<std::size_t>(std::numeric_limits<std::int32_t>::max());
40 
43 
57 
68  size_t min_null_tree_depth = 0;
69 
71  bool string_printable = false;
72 
74  std::list<std::string> string_input_values;
75 
78 
80  void set(const optionst &);
81 };
82 
84 
85 #endif
object_factory_parameterst(const optionst &options)
irep_idt function_id
Function id, used as a prefix for identifiers of temporaries.
virtual ~object_factory_parameterst()=default
std::list< std::string > string_input_values
Force one of finitely many explicitly given input strings.
size_t max_nondet_tree_depth
Maximum depth of pointer chains (that contain recursion) in the nondet generated input objects.
bool string_printable
Force string content to be ASCII printable characters when set to true.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:35
size_t min_null_tree_depth
To force a certain depth of non-null objects.
void parse_object_factory_options(const cmdlinet &, optionst &)
Parse the object factory parameters from a given command line.
size_t max_nondet_array_length
Maximum value for the non-deterministically-chosen length of an array.
size_t max_nondet_string_length
Maximum value for the non-deterministically-chosen length of a string.
size_t min_nondet_string_length
Minimum value for the non-deterministically-chosen length of a string.
void set(const optionst &)
Assigns the parameters from given options.