File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,18 @@ void function_call_harness_generatort::handle_option(
196
196
.end ()),
197
197
[](const std::string &opt) -> irep_idt { return irep_idt{opt}; });
198
198
}
199
+ else if (option == COMMON_HARNESS_GENERATOR_FUNCTION_POINTER_CAN_BE_NULL_OPT)
200
+ {
201
+ std::transform (
202
+ values.begin (),
203
+ values.end (),
204
+ std::inserter (
205
+ p_impl->recursive_initialization_config
206
+ .potential_null_function_pointers ,
207
+ p_impl->recursive_initialization_config .potential_null_function_pointers
208
+ .end ()),
209
+ [](const std::string &opt) -> irep_idt { return irep_idt{opt}; });
210
+ }
199
211
else
200
212
{
201
213
throw invalid_command_line_argument_exceptiont{
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Author: Diffblue Ltd.
21
21
#include < util/string2int.h>
22
22
23
23
#include < functional>
24
+ #include < iterator>
24
25
25
26
bool recursive_initialization_configt::handle_option (
26
27
const std::string &option,
@@ -74,6 +75,17 @@ bool recursive_initialization_configt::handle_option(
74
75
COMMON_HARNESS_GENERATOR_MIN_ARRAY_SIZE_OPT, values);
75
76
return true ;
76
77
}
78
+ else if (option == COMMON_HARNESS_GENERATOR_FUNCTION_POINTER_CAN_BE_NULL_OPT)
79
+ {
80
+ std::transform (
81
+ values.begin (),
82
+ values.end (),
83
+ std::inserter (
84
+ potential_null_function_pointers,
85
+ potential_null_function_pointers.end ()),
86
+ [](const std::string &opt) -> irep_idt { return irep_idt{opt}; });
87
+ return true ;
88
+ }
77
89
return false ;
78
90
}
79
91
You can’t perform that action at this time.
0 commit comments