72
72
sec_driver_parse_optionst::sec_driver_parse_optionst (int argc, const char **argv):
73
73
parse_options_baset(SEC_DRIVER_OPTIONS, argc, argv),
74
74
language_uit(cmdline, ui_message_handler),
75
- ui_message_handler(cmdline, " Diffblue Security Analyzer " CBMC_VERSION )
75
+ ui_message_handler(cmdline, " Diffblue Security Analyzer " SEC_DRIVER_VERSION )
76
76
{
77
77
}
78
78
@@ -134,11 +134,14 @@ static irep_idt get_cprover_start_main_callee(const goto_modelt &goto_model)
134
134
// / invoke main modules
135
135
int sec_driver_parse_optionst::doit ()
136
136
{
137
+ // Print a banner
138
+ status () << " Diffblue Security Analyzer version " SEC_DRIVER_VERSION " "
139
+ << sizeof (void *) * 8 << " -bit "
140
+ << config.this_architecture () << " "
141
+ << config.this_operating_system () << eom;
142
+
137
143
if (cmdline.isset (" version" ))
138
- {
139
- std::cout << CBMC_VERSION << std::endl;
140
144
return CPROVER_EXIT_SUCCESS;
141
- }
142
145
143
146
//
144
147
// command line options
@@ -156,14 +159,6 @@ int sec_driver_parse_optionst::doit()
156
159
get_command_line_options (options);
157
160
eval_verbosity ();
158
161
159
- //
160
- // Print a banner
161
- //
162
- status () << " Diffblue Security Analyzer version " CBMC_VERSION " "
163
- << sizeof (void *)*8 << " -bit "
164
- << config.this_architecture () << " "
165
- << config.this_operating_system () << eom;
166
-
167
162
register_languages ();
168
163
register_evs_pretty_printer ();
169
164
@@ -536,78 +531,49 @@ bool sec_driver_parse_optionst::process_goto_functions(
536
531
// / display command line help
537
532
void sec_driver_parse_optionst::help ()
538
533
{
539
- std::cout <<
540
- " \n "
541
- " * * Diffblue Security Analyzer " CBMC_VERSION " - Copyright (C) 2016 " ;
542
-
543
- std::cout << " (" << (sizeof (void *)*8 ) << " -bit version)" ;
544
-
545
- std::cout << " * *\n " ;
546
-
547
- std::cout <<
548
- " * * Daniel Kroening, Diffblue * *\n "
549
-
550
- " \n "
534
+ std::cout
535
+ << " \n Diffblue Security Analyzer " SEC_DRIVER_VERSION " ("
536
+ << (sizeof (void *) * 8 ) << " -bit version)\n "
537
+ " Copyright © 2016–2018\n\n "
551
538
" Usage: Purpose:\n "
552
539
" \n "
553
- " sec-driver [-h] [--help] show help\n "
554
- " sec-driver file.c ... source file names\n "
540
+ " security-analyzer [-h] [--help] show help\n "
541
+ " security-analyzer file.class ... source file names\n "
555
542
" \n "
556
543
" Analyses:\n "
557
544
" \n "
558
- " --security-scanner file_name perform taint analysis using configuration "
559
- " in given JSON file\n "
560
- " --unreachable-instructions list dead code\n "
561
- " --intervals interval analysis\n "
562
- " --non-null non-null analysis\n "
545
+ " --security-scanner config.json perform taint analysis using configuration\n "
546
+ " in given JSON file\n "
547
+ " --local-value-set-analysis perform local value set analysis only\n "
548
+ " --unreachable-instructions list dead code\n "
549
+ " --intervals interval analysis\n "
550
+ " --non-null non-null analysis\n "
563
551
" \n "
564
552
" Analysis options:\n "
565
- " --json file_name output results in JSON format to given file\n "
566
- " --xml file_name output results in XML format to given file\n "
567
- " --function set main function name\n "
568
- " \n "
569
- " C/C++ frontend options:\n "
570
- " -I path set include path (C/C++)\n "
571
- " -D macro define preprocessor macro (C/C++)\n "
572
- " --arch X set architecture (default: "
573
- << configt::this_architecture () << " )\n "
574
- " --os set operating system (default: "
575
- << configt::this_operating_system () << " )\n "
576
- " --c89/99/11 set C language standard (default: "
577
- << (configt::ansi_ct::default_c_standard ()==
578
- configt::ansi_ct::c_standardt::C89?" c89" :
579
- configt::ansi_ct::default_c_standard ()==
580
- configt::ansi_ct::c_standardt::C99?" c99" :
581
- configt::ansi_ct::default_c_standard ()==
582
- configt::ansi_ct::c_standardt::C11?" c11" :" " ) << " )\n "
583
- " --cpp98/03/11 set C++ language standard (default: "
584
- << (configt::cppt::default_cpp_standard ()==
585
- configt::cppt::cpp_standardt::CPP98?" cpp98" :
586
- configt::cppt::default_cpp_standard ()==
587
- configt::cppt::cpp_standardt::CPP03?" cpp03" :
588
- configt::cppt::default_cpp_standard ()==
589
- configt::cppt::cpp_standardt::CPP11?" cpp11" :" " ) << " )\n "
590
- #ifdef _WIN32
591
- " --gcc use GCC as preprocessor\n "
592
- #endif
593
- " --no-library disable built-in abstract C library\n "
553
+ " --json file_name output results in JSON format to given file\n "
554
+ " --xml file_name output results in XML format to given file\n "
555
+ " --function set main function name\n "
556
+ " --lvsa-function set function to analyze with LVSA\n "
557
+ " --lvsa-summary-directory directory to store LVSA summaries\n "
594
558
" \n "
595
559
" Java Bytecode frontend options:\n "
596
- " --classpath dir/jar set the classpath\n "
597
- " --main-class class-name set the name of the main class\n "
560
+ " --classpath dir/jar set the classpath\n "
561
+ " --main-class class-name set the name of the main class\n "
598
562
JAVA_BYTECODE_LANGUAGE_OPTIONS_HELP
599
563
" \n "
600
564
" Program representations:\n "
601
- " --show-parse-tree show parse tree\n "
602
- " --show-symbol-table show symbol table\n "
603
- " --show-goto-functions show goto program\n "
604
- " --show-properties show the properties, but don't run analysis\n "
605
- " --dump-html-program dump goto program in HTML format into\n "
606
- " a directory. Pass a non existing directory\n "
607
- " path-name with this option. The directory\n "
608
- " will be created with the dumped program.\n "
565
+ " --show-parse-tree show parse tree\n "
566
+ " --show-symbol-table show symbol table\n "
567
+ " --show-goto-functions show goto program\n "
568
+ " --show-properties show the properties, but don't run analysis\n "
569
+ " --show-value-sets show value set for entry point\n "
570
+ " --show-value-sets-all show all value sets\n "
571
+ " --dump-html-program dump goto program in HTML format into\n "
572
+ " a directory. Pass a non existing directory\n "
573
+ " path-name with this option. The directory\n "
574
+ " will be created with the dumped program.\n "
609
575
" \n "
610
576
" Other options:\n "
611
- " --version show version and exit\n "
577
+ " --version show version and exit\n "
612
578
" \n " ;
613
579
}
0 commit comments