@@ -39,7 +39,7 @@ bool recursive_initialization_configt::handle_option(
39
39
string2optional<std::size_t >(value, 10 );
40
40
if (user_min_null_tree_depth.has_value ())
41
41
{
42
- min_null_tree_depth = user_min_null_tree_depth. value () ;
42
+ min_null_tree_depth = * user_min_null_tree_depth;
43
43
}
44
44
else
45
45
{
@@ -57,7 +57,7 @@ bool recursive_initialization_configt::handle_option(
57
57
string2optional<std::size_t >(value, 10 );
58
58
if (user_max_nondet_tree_depth.has_value ())
59
59
{
60
- max_nondet_tree_depth = user_max_nondet_tree_depth. value () ;
60
+ max_nondet_tree_depth = * user_max_nondet_tree_depth;
61
61
}
62
62
else
63
63
{
@@ -203,7 +203,7 @@ void recursive_initializationt::initialize(
203
203
if (size_var.has_value ())
204
204
{
205
205
const symbol_exprt &size_symbol =
206
- goto_model.symbol_table .lookup_ref (size_var. value () ).symbol_expr ();
206
+ goto_model.symbol_table .lookup_ref (* size_var).symbol_expr ();
207
207
body.add (code_function_callt{
208
208
fun_symbol.symbol_expr (),
209
209
{depth, address_of_exprt{lhs}, address_of_exprt{size_symbol}}});
@@ -304,7 +304,7 @@ irep_idt recursive_initializationt::build_constructor(const exprt &expr)
304
304
{
305
305
expr_name = to_symbol_expr (expr).get_identifier ();
306
306
is_nullable = initialization_config.potential_null_function_pointers .count (
307
- expr_name. value () );
307
+ * expr_name);
308
308
if (should_be_treated_as_array (*expr_name))
309
309
{
310
310
size_var = get_associated_size_variable (*expr_name);
0 commit comments