@@ -39,7 +39,7 @@ bool recursive_initialization_configt::handle_option(
3939 string2optional<std::size_t >(value, 10 );
4040 if (user_min_null_tree_depth.has_value ())
4141 {
42- min_null_tree_depth = user_min_null_tree_depth. value () ;
42+ min_null_tree_depth = * user_min_null_tree_depth;
4343 }
4444 else
4545 {
@@ -57,7 +57,7 @@ bool recursive_initialization_configt::handle_option(
5757 string2optional<std::size_t >(value, 10 );
5858 if (user_max_nondet_tree_depth.has_value ())
5959 {
60- max_nondet_tree_depth = user_max_nondet_tree_depth. value () ;
60+ max_nondet_tree_depth = * user_max_nondet_tree_depth;
6161 }
6262 else
6363 {
@@ -203,7 +203,7 @@ void recursive_initializationt::initialize(
203203 if (size_var.has_value ())
204204 {
205205 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 ();
207207 body.add (code_function_callt{
208208 fun_symbol.symbol_expr (),
209209 {depth, address_of_exprt{lhs}, address_of_exprt{size_symbol}}});
@@ -304,7 +304,7 @@ irep_idt recursive_initializationt::build_constructor(const exprt &expr)
304304 {
305305 expr_name = to_symbol_expr (expr).get_identifier ();
306306 is_nullable = initialization_config.potential_null_function_pointers .count (
307- expr_name. value () );
307+ * expr_name);
308308 if (should_be_treated_as_array (*expr_name))
309309 {
310310 size_var = get_associated_size_variable (*expr_name);
0 commit comments