16 if(options.
is_set(
"max-nondet-array-length"))
21 if(options.
is_set(
"max-nondet-tree-depth"))
26 if(options.
is_set(
"min-null-tree-depth"))
31 if(options.
is_set(
"max-nondet-string-length"))
36 if(options.
is_set(
"string-printable"))
40 if(options.
is_set(
"string-input-value"))
44 if(options.
is_set(
"min-nondet-string-length"))
56 if(cmdline.
isset(
"max-nondet-array-length"))
59 "max-nondet-array-length", cmdline.
get_value(
"max-nondet-array-length"));
61 if(cmdline.
isset(
"max-nondet-tree-depth"))
64 "max-nondet-tree-depth", cmdline.
get_value(
"max-nondet-tree-depth"));
66 if(cmdline.
isset(
"min-null-tree-depth"))
69 "min-null-tree-depth", cmdline.
get_value(
"min-null-tree-depth"));
71 if(cmdline.
isset(
"max-nondet-string-length"))
74 "max-nondet-string-length",
75 cmdline.
get_value(
"max-nondet-string-length"));
77 if(cmdline.
isset(
"string-printable"))
81 if(cmdline.
isset(
"string-non-empty"))
83 options.
set_option(
"min-nondet-string-length", 1);
85 if(cmdline.
isset(
"string-input-value"))
88 "string-input-value", cmdline.
get_values(
"string-input-value"));
std::string get_value(char option) const
virtual bool isset(char option) const
const std::list< std::string > & get_values(const std::string &option) const
unsigned int get_unsigned_int_option(const std::string &option) const
bool is_set(const std::string &option) const
N.B. opts.is_set("foo") does not imply opts.get_bool_option("foo")
bool get_bool_option(const std::string &option) const
void set_option(const std::string &option, const bool value)
const value_listt & get_list_option(const std::string &option) const
void parse_object_factory_options(const cmdlinet &cmdline, optionst &options)
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.
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.
size_t min_null_tree_depth
To force a certain depth of non-null objects.
bool string_printable
Force string content to be ASCII printable characters when set to true.
size_t max_nondet_string_length
Maximum value for the non-deterministically-chosen length of a string.
void set(const optionst &)
Assigns the parameters from given options.
size_t min_nondet_string_length
Minimum value for the non-deterministically-chosen length of a string.