File tree Expand file tree Collapse file tree 5 files changed +16
-9
lines changed Expand file tree Collapse file tree 5 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -1753,10 +1753,11 @@ void goto_checkt::goto_check(
1753
1753
void goto_check (
1754
1754
const namespacet &ns,
1755
1755
const optionst &options,
1756
+ const irep_idt &mode,
1756
1757
goto_functionst::goto_functiont &goto_function)
1757
1758
{
1758
1759
goto_checkt goto_check (ns, options);
1759
- goto_check.goto_check (goto_function, irep_idt () );
1760
+ goto_check.goto_check (goto_function, mode );
1760
1761
}
1761
1762
1762
1763
void goto_check (
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ void goto_check(
26
26
void goto_check (
27
27
const namespacet &ns,
28
28
const optionst &options,
29
+ const irep_idt &mode,
29
30
goto_functionst::goto_functiont &goto_function);
30
31
31
32
void goto_check (
Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ class lazy_goto_modelt
51
51
message_handlert &message_handler)
52
52
{
53
53
return lazy_goto_modelt (
54
- [&handler] (goto_model_functiont &function)
54
+ [&handler, &options ] (goto_model_functiont &function)
55
55
{
56
- handler.process_goto_function (function);
56
+ handler.process_goto_function (function, options );
57
57
},
58
58
[&handler, &options] (goto_modelt &goto_model) -> bool
59
59
{
Original file line number Diff line number Diff line change @@ -636,7 +636,8 @@ int jbmc_parse_optionst::get_goto_program(
636
636
}
637
637
638
638
void jbmc_parse_optionst::process_goto_function (
639
- goto_model_functiont &function)
639
+ goto_model_functiont &function,
640
+ const optionst &options)
640
641
{
641
642
symbol_tablet &symbol_table = function.get_symbol_table ();
642
643
goto_functionst::goto_functiont &goto_function = function.get_goto_function ();
@@ -675,6 +676,13 @@ void jbmc_parse_optionst::process_goto_function(
675
676
function,
676
677
get_message_handler (),
677
678
factory_params);
679
+
680
+ // add generic checks
681
+ goto_check (
682
+ namespacet (function.get_symbol_table ()),
683
+ options,
684
+ ID_java,
685
+ function.get_goto_function ());
678
686
}
679
687
680
688
catch (const char *e)
@@ -712,10 +720,6 @@ bool jbmc_parse_optionst::process_goto_functions(
712
720
// instrument library preconditions
713
721
instrument_preconditions (goto_model);
714
722
715
- // add generic checks
716
- status () << " Generic Property Instrumentation" << eom;
717
- goto_check (options, goto_model);
718
-
719
723
// checks don't know about adjusted float expressions
720
724
adjust_float_expressions (goto_model);
721
725
Original file line number Diff line number Diff line change @@ -80,7 +80,8 @@ class jbmc_parse_optionst:
80
80
const char **argv,
81
81
const std::string &extra_options);
82
82
83
- void process_goto_function (goto_model_functiont &function);
83
+ void process_goto_function (
84
+ goto_model_functiont &function, const optionst &options);
84
85
bool process_goto_functions (goto_modelt &goto_model, const optionst &options);
85
86
86
87
protected:
You can’t perform that action at this time.
0 commit comments