Skip to content

Commit 4193f02

Browse files
committed
Remove unused parameters message_handler, ns
1 parent cdb7e52 commit 4193f02

6 files changed

+5
-19
lines changed

jbmc/src/janalyzer/janalyzer_parse_options.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ int janalyzer_parse_optionst::perform_analysis(const optionst &options)
588588
if(options.get_bool_option("show"))
589589
{
590590
result = static_show_domain(
591-
goto_model, *analyzer, options, get_message_handler(), out);
591+
goto_model, *analyzer, options, out);
592592
}
593593
else if(options.get_bool_option("verify"))
594594
{
@@ -603,17 +603,17 @@ int janalyzer_parse_optionst::perform_analysis(const optionst &options)
603603
else if(options.get_bool_option("unreachable-instructions"))
604604
{
605605
result = static_unreachable_instructions(
606-
goto_model, *analyzer, options, get_message_handler(), out);
606+
goto_model, *analyzer, options, out);
607607
}
608608
else if(options.get_bool_option("unreachable-functions"))
609609
{
610610
result = static_unreachable_functions(
611-
goto_model, *analyzer, options, get_message_handler(), out);
611+
goto_model, *analyzer, options, out);
612612
}
613613
else if(options.get_bool_option("reachable-functions"))
614614
{
615615
result = static_reachable_functions(
616-
goto_model, *analyzer, options, get_message_handler(), out);
616+
goto_model, *analyzer, options, out);
617617
}
618618
else
619619
{

src/goto-analyzer/goto_analyzer_parse_options.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ int goto_analyzer_parse_optionst::perform_analysis(const optionst &options)
629629
result = static_show_domain(goto_model,
630630
*analyzer,
631631
options,
632-
get_message_handler(),
633632
out);
634633
}
635634
else if(options.get_bool_option("verify"))
@@ -653,23 +652,20 @@ int goto_analyzer_parse_optionst::perform_analysis(const optionst &options)
653652
result = static_unreachable_instructions(goto_model,
654653
*analyzer,
655654
options,
656-
get_message_handler(),
657655
out);
658656
}
659657
else if(options.get_bool_option("unreachable-functions"))
660658
{
661659
result = static_unreachable_functions(goto_model,
662660
*analyzer,
663661
options,
664-
get_message_handler(),
665662
out);
666663
}
667664
else if(options.get_bool_option("reachable-functions"))
668665
{
669666
result = static_reachable_functions(goto_model,
670667
*analyzer,
671668
options,
672-
get_message_handler(),
673669
out);
674670
}
675671
else

src/goto-analyzer/static_show_domain.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ Author: Martin Brain, [email protected]
1616
/// \param goto_model: the program analyzed
1717
/// \param ai: the abstract interpreter after it has been run to fix point
1818
/// \param options: the parsed user options
19-
/// \param message_handler: the system message handler
2019
/// \param out: output stream for the printing
2120
/// \return: false on success with the domain printed to out
2221
bool static_show_domain(
2322
const goto_modelt &goto_model,
2423
const ai_baset &ai,
2524
const optionst &options,
26-
message_handlert &message_handler,
2725
std::ostream &out)
2826
{
2927
if(options.get_bool_option("json"))

src/goto-analyzer/static_show_domain.h

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ bool static_show_domain(
2020
const goto_modelt &,
2121
const ai_baset &,
2222
const optionst &,
23-
message_handlert &,
2423
std::ostream &);
2524

2625
#endif // CPROVER_GOTO_ANALYZER_STATIC_SHOW_DOMAIN_H

src/goto-analyzer/unreachable_instructions.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static void output_dead_plain(
8484
}
8585

8686
static void add_to_xml(
87-
const namespacet &ns,
8887
const goto_programt &goto_program,
8988
const dead_mapt &dead_map,
9089
xmlt &dest)
@@ -206,7 +205,6 @@ bool static_unreachable_instructions(
206205
const goto_modelt &goto_model,
207206
const ai_baset &ai,
208207
const optionst &options,
209-
message_handlert &message_handler,
210208
std::ostream &out)
211209
{
212210
json_arrayt json_result;
@@ -231,7 +229,7 @@ bool static_unreachable_instructions(
231229
}
232230
else if(options.get_bool_option("xml"))
233231
{
234-
add_to_xml(ns, f_it->second.body, dead_map, xml_result);
232+
add_to_xml(f_it->second.body, dead_map, xml_result);
235233
}
236234
else
237235
{
@@ -431,7 +429,6 @@ bool static_unreachable_functions(
431429
const goto_modelt &goto_model,
432430
const ai_baset &ai,
433431
const optionst &options,
434-
message_handlert &message_handler,
435432
std::ostream &out)
436433
{
437434
std::unordered_set<irep_idt> called =
@@ -446,7 +443,6 @@ bool static_reachable_functions(
446443
const goto_modelt &goto_model,
447444
const ai_baset &ai,
448445
const optionst &options,
449-
message_handlert &message_handler,
450446
std::ostream &out)
451447
{
452448
std::unordered_set<irep_idt> called =

src/goto-analyzer/unreachable_instructions.h

-3
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,18 @@ bool static_unreachable_instructions(
4040
const goto_modelt &,
4141
const ai_baset &,
4242
const optionst &,
43-
message_handlert &,
4443
std::ostream &);
4544

4645
bool static_unreachable_functions(
4746
const goto_modelt &,
4847
const ai_baset &,
4948
const optionst &,
50-
message_handlert &,
5149
std::ostream &);
5250

5351
bool static_reachable_functions(
5452
const goto_modelt &,
5553
const ai_baset &,
5654
const optionst &,
57-
message_handlert &,
5855
std::ostream &);
5956

6057
#endif // CPROVER_GOTO_ANALYZER_UNREACHABLE_INSTRUCTIONS_H

0 commit comments

Comments
 (0)