projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LICENSE: add newline at end of file
[model-checker.git]
/
main.cc
diff --git
a/main.cc
b/main.cc
index d2d8d4ab835a5d44d35789f1075f8f7d55a09063..8416a79c88db8b35b5d706413d36da8160b3afc0 100644
(file)
--- a/
main.cc
+++ b/
main.cc
@@
-35,6
+35,7
@@
static void param_defaults(struct model_params *params)
static void print_usage(const char *program_name, struct model_params *params)
{
static void print_usage(const char *program_name, struct model_params *params)
{
+ ModelVector<TraceAnalysis *> * registeredanalysis=getRegisteredTraceAnalysis();
/* Reset defaults before printing */
param_defaults(params);
/* Reset defaults before printing */
param_defaults(params);
@@
-45,7
+46,7
@@
static void print_usage(const char *program_name, struct model_params *params)
"\n"
"Usage: %s [MODEL-CHECKER OPTIONS] -- [PROGRAM ARGS]\n"
"\n"
"\n"
"Usage: %s [MODEL-CHECKER OPTIONS] -- [PROGRAM ARGS]\n"
"\n"
-"MOD
LE
-CHECKER OPTIONS can be any of the model-checker options listed below. Arguments\n"
+"MOD
EL
-CHECKER OPTIONS can be any of the model-checker options listed below. Arguments\n"
"provided after the `--' (the PROGRAM ARGS) are passed to the user program.\n"
"\n"
"Model-checker options:\n"
"provided after the `--' (the PROGRAM ARGS) are passed to the user program.\n"
"\n"
"Model-checker options:\n"
@@
-74,12
+75,15
@@
static void print_usage(const char *program_name, struct model_params *params)
" Default: %d\n"
"-b, --bound=MAX Upper length bound.\n"
" Default: %d\n"
" Default: %d\n"
"-b, --bound=MAX Upper length bound.\n"
" Default: %d\n"
-"-v, --verbose Print verbose execution information.\n"
+"-v[NUM], --verbose[=NUM] Print verbose execution information. NUM is optional:\n"
+" 0 is quiet; 1 is noisy; 2 is noisier.\n"
+" Default: %d\n"
"-u, --uninitialized=VALUE Return VALUE any load which may read from an\n"
" uninitialized atomic.\n"
" Default: %u\n"
"-u, --uninitialized=VALUE Return VALUE any load which may read from an\n"
" uninitialized atomic.\n"
" Default: %u\n"
-"-t, --analysis=NAME Use Trace Analysis.\n"
-"-o, --options=NAME Options.\n"
+"-t, --analysis=NAME Use Analysis Plugin.\n"
+"-o, --options=NAME Option for previous analysis plugin. \n"
+" -o help for a list of options\n"
" -- Program arguments follow.\n\n",
program_name,
params->maxreads,
" -- Program arguments follow.\n\n",
program_name,
params->maxreads,
@@
-91,7
+95,13
@@
static void print_usage(const char *program_name, struct model_params *params)
params->fairwindow,
params->enabledcount,
params->bound,
params->fairwindow,
params->enabledcount,
params->bound,
+ params->verbose,
params->uninitvalue);
params->uninitvalue);
+ model_print("Analysis plugins:\n");
+ for(unsigned int i=0;i<registeredanalysis->size();i++) {
+ TraceAnalysis * analysis=(*registeredanalysis)[i];
+ model_print("%s\n", analysis->name());
+ }
exit(EXIT_SUCCESS);
}
exit(EXIT_SUCCESS);
}