File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -401,13 +401,13 @@ int janalyzer_parse_optionst::doit()
401
401
log.status () << " Generating GOTO Program" << messaget::eom;
402
402
lazy_goto_model.load_all_functions ();
403
403
404
- std::unique_ptr<abstract_goto_modelt > goto_model_ptr =
404
+ std::unique_ptr<goto_modelt > goto_model_ptr =
405
405
lazy_goto_modelt::process_whole_model_and_freeze (
406
406
std::move (lazy_goto_model));
407
407
if (goto_model_ptr == nullptr )
408
408
return CPROVER_EXIT_INTERNAL_ERROR;
409
409
410
- goto_modelt &goto_model = dynamic_cast <goto_modelt &>( *goto_model_ptr) ;
410
+ goto_modelt &goto_model = *goto_model_ptr;
411
411
412
412
// show it?
413
413
if (cmdline.isset (" show-symbol-table" ))
Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ int jbmc_parse_optionst::doit()
474
474
stub_objects_are_not_null =
475
475
options.get_bool_option (" java-assume-inputs-non-null" );
476
476
477
- std::unique_ptr<abstract_goto_modelt > goto_model_ptr;
477
+ std::unique_ptr<goto_modelt > goto_model_ptr;
478
478
int get_goto_program_ret = get_goto_program (goto_model_ptr, options);
479
479
if (get_goto_program_ret != -1 )
480
480
return get_goto_program_ret;
@@ -594,7 +594,7 @@ int jbmc_parse_optionst::doit()
594
594
}
595
595
596
596
int jbmc_parse_optionst::get_goto_program (
597
- std::unique_ptr<abstract_goto_modelt > &goto_model_ptr,
597
+ std::unique_ptr<goto_modelt > &goto_model_ptr,
598
598
const optionst &options)
599
599
{
600
600
if (options.is_set (" context-include" ) || options.is_set (" context-exclude" ))
@@ -633,7 +633,7 @@ int jbmc_parse_optionst::get_goto_program(
633
633
if (goto_model_ptr == nullptr )
634
634
return CPROVER_EXIT_INTERNAL_ERROR;
635
635
636
- goto_modelt &goto_model = dynamic_cast <goto_modelt &>( *goto_model_ptr) ;
636
+ goto_modelt &goto_model = *goto_model_ptr;
637
637
638
638
if (cmdline.isset (" validate-goto-model" ))
639
639
{
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ class jbmc_parse_optionst : public parse_options_baset
127
127
128
128
void get_command_line_options (optionst &);
129
129
int get_goto_program (
130
- std::unique_ptr<abstract_goto_modelt > &goto_model,
130
+ std::unique_ptr<goto_modelt > &goto_model,
131
131
const optionst &);
132
132
bool show_loaded_functions (const abstract_goto_modelt &goto_model);
133
133
bool show_loaded_symbols (const abstract_goto_modelt &goto_model);
You can’t perform that action at this time.
0 commit comments