CBMC
jbmc_parse_options.cpp
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: JBMC Command Line Option Processing
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
11 
12 #include "jbmc_parse_options.h"
13 
14 #include <util/config.h>
15 #include <util/exit_codes.h>
16 #include <util/invariant.h>
17 #include <util/make_unique.h>
18 #include <util/version.h>
19 #include <util/xml.h>
20 
25 #include <goto-programs/loop_ids.h>
34 
35 #include <ansi-c/ansi_c_language.h>
57 #include <langapi/language.h>
58 #include <langapi/mode.h>
61 
62 #include <cstdlib> // exit()
63 #include <iostream>
64 #include <memory>
65 
66 jbmc_parse_optionst::jbmc_parse_optionst(int argc, const char **argv)
69  argc,
70  argv,
71  std::string("JBMC ") + CBMC_VERSION)
72 {
75 }
76 
78  int argc,
79  const char **argv,
80  const std::string &extra_options)
82  JBMC_OPTIONS + extra_options,
83  argc,
84  argv,
85  std::string("JBMC ") + CBMC_VERSION)
86 {
89 }
90 
92 {
93  // Default true
94  options.set_option("assertions", true);
95  options.set_option("assumptions", true);
96  options.set_option("built-in-assertions", true);
97  options.set_option("propagation", true);
98  options.set_option("refine-strings", true);
99  options.set_option("simple-slice", true);
100  options.set_option("simplify", true);
101  options.set_option("show-goto-symex-steps", false);
102 
103  // Other default
104  options.set_option("arrays-uf", "auto");
105  options.set_option("depth", UINT32_MAX);
106 }
107 
109 {
110  if(config.set(cmdline))
111  {
112  usage_error();
113  exit(1); // should contemplate EX_USAGE from sysexits.h
114  }
115 
117 
118  if(cmdline.isset("function"))
119  options.set_option("function", cmdline.get_value("function"));
120 
123 
124  if(cmdline.isset("max-field-sensitivity-array-size"))
125  {
126  options.set_option(
127  "max-field-sensitivity-array-size",
128  cmdline.get_value("max-field-sensitivity-array-size"));
129  }
130 
131  if(cmdline.isset("no-array-field-sensitivity"))
132  {
133  if(cmdline.isset("max-field-sensitivity-array-size"))
134  {
135  log.error()
136  << "--no-array-field-sensitivity and --max-field-sensitivity-array-size"
137  << " must not be given together" << messaget::eom;
139  }
140  options.set_option("no-array-field-sensitivity", true);
141  }
142 
143  if(cmdline.isset("show-symex-strategies"))
144  {
146  exit(CPROVER_EXIT_SUCCESS);
147  }
148 
150 
151  if(cmdline.isset("program-only"))
152  options.set_option("program-only", true);
153 
154  if(cmdline.isset("show-vcc"))
155  options.set_option("show-vcc", true);
156 
157  if(cmdline.isset("nondet-static"))
158  options.set_option("nondet-static", true);
159 
160  if(cmdline.isset("no-simplify"))
161  options.set_option("simplify", false);
162 
163  if(cmdline.isset("stop-on-fail") ||
164  cmdline.isset("dimacs") ||
165  cmdline.isset("outfile"))
166  options.set_option("stop-on-fail", true);
167 
168  if(
169  cmdline.isset("trace") || cmdline.isset("compact-trace") ||
170  cmdline.isset("stack-trace") || cmdline.isset("stop-on-fail") ||
172  !cmdline.isset("cover")))
173  {
174  options.set_option("trace", true);
175  }
176 
177  if(cmdline.isset("validate-trace"))
178  {
179  options.set_option("validate-trace", true);
180  options.set_option("trace", true);
181  }
182 
183  if(cmdline.isset("localize-faults"))
184  options.set_option("localize-faults", true);
185 
186  if(cmdline.isset("symex-complexity-limit"))
187  {
188  options.set_option(
189  "symex-complexity-limit", cmdline.get_value("symex-complexity-limit"));
190  }
191 
192  if(cmdline.isset("symex-complexity-failed-child-loops-limit"))
193  {
194  options.set_option(
195  "symex-complexity-failed-child-loops-limit",
196  cmdline.get_value("symex-complexity-failed-child-loops-limit"));
197  }
198 
199  if(cmdline.isset("unwind"))
200  options.set_option("unwind", cmdline.get_value("unwind"));
201 
202  if(cmdline.isset("depth"))
203  options.set_option("depth", cmdline.get_value("depth"));
204 
205  if(cmdline.isset("unwindset"))
206  {
207  options.set_option(
208  "unwindset", cmdline.get_comma_separated_values("unwindset"));
209  }
210 
211  // constant propagation
212  if(cmdline.isset("no-propagation"))
213  options.set_option("propagation", false);
214 
215  // transform self loops to assumptions
216  options.set_option(
217  "self-loops-to-assumptions",
218  !cmdline.isset("no-self-loops-to-assumptions"));
219 
220  // unwind loops in java enum static initialization
221  if(cmdline.isset("java-unwind-enum-static"))
222  options.set_option("java-unwind-enum-static", true);
223 
224  // check assertions
225  if(cmdline.isset("no-assertions"))
226  options.set_option("assertions", false);
227 
228  // use assumptions
229  if(cmdline.isset("no-assumptions"))
230  options.set_option("assumptions", false);
231 
232  // generate unwinding assertions
233  if(cmdline.isset("unwinding-assertions"))
234  options.set_option("unwinding-assertions", true);
235 
236  // generate unwinding assumptions otherwise
237  options.set_option(
238  "partial-loops",
239  cmdline.isset("partial-loops"));
240 
241  // remove unused equations
242  options.set_option(
243  "slice-formula",
244  cmdline.isset("slice-formula"));
245 
246  if(cmdline.isset("arrays-uf-always"))
247  options.set_option("arrays-uf", "always");
248  else if(cmdline.isset("arrays-uf-never"))
249  options.set_option("arrays-uf", "never");
250 
251  if(cmdline.isset("no-refine-strings"))
252  options.set_option("refine-strings", false);
253 
254  if(cmdline.isset("string-printable") && cmdline.isset("no-refine-strings"))
255  {
257  "cannot use --string-printable with --no-refine-strings",
258  "--string-printable");
259  }
260 
261  if(cmdline.isset("string-input-value") && cmdline.isset("no-refine-strings"))
262  {
264  "cannot use --string-input-value with --no-refine-strings",
265  "--string-input-value");
266  }
267 
268  if(
269  cmdline.isset("no-refine-strings") &&
270  cmdline.isset("max-nondet-string-length"))
271  {
273  "cannot use --max-nondet-string-length with --no-refine-strings",
274  "--max-nondet-string-length");
275  }
276 
277  if(cmdline.isset("graphml-witness"))
278  {
279  options.set_option("graphml-witness", cmdline.get_value("graphml-witness"));
280  options.set_option("stop-on-fail", true);
281  options.set_option("trace", true);
282  }
283 
284  if(cmdline.isset("symex-coverage-report"))
285  options.set_option(
286  "symex-coverage-report",
287  cmdline.get_value("symex-coverage-report"));
288 
289  if(cmdline.isset("validate-ssa-equation"))
290  {
291  options.set_option("validate-ssa-equation", true);
292  }
293 
294  if(cmdline.isset("validate-goto-model"))
295  {
296  options.set_option("validate-goto-model", true);
297  }
298 
299  options.set_option(
300  "symex-cache-dereferences", cmdline.isset("symex-cache-dereferences"));
301 
303 
304  if(cmdline.isset("symex-driven-lazy-loading"))
305  {
306  options.set_option("symex-driven-lazy-loading", true);
307  for(const char *opt :
308  { "nondet-static",
309  "full-slice",
310  "reachability-slice",
311  "reachability-slice-fb" })
312  {
313  if(cmdline.isset(opt))
314  {
315  throw std::string("Option ") + opt +
316  " can't be used with --symex-driven-lazy-loading";
317  }
318  }
319  }
320 
321  // The 'allow-pointer-unsoundness' option prevents symex from throwing an
322  // exception when it encounters pointers that are shared across threads.
323  // This is unsound but given that pointers are ubiquitous in java this check
324  // must be disabled in order to support the analysis of multithreaded java
325  // code.
326  if(cmdline.isset("java-threading"))
327  options.set_option("allow-pointer-unsoundness", true);
328 
329  if(cmdline.isset("show-goto-symex-steps"))
330  options.set_option("show-goto-symex-steps", true);
331 
332  if(cmdline.isset("smt1"))
333  {
334  log.error() << "--smt1 is no longer supported" << messaget::eom;
336  }
337 
338  parse_solver_options(cmdline, options);
339 }
340 
343 {
344  if(cmdline.isset("version"))
345  {
346  std::cout << CBMC_VERSION << '\n';
347  return CPROVER_EXIT_SUCCESS;
348  }
349 
352 
353  //
354  // command line options
355  //
356 
357  optionst options;
358  get_command_line_options(options);
359 
361 
362  // output the options
363  switch(ui_message_handler.get_ui())
364  {
367  log.debug(), [&options](messaget::mstreamt &debug_stream) {
368  debug_stream << "\nOptions: \n";
369  options.output(debug_stream);
370  debug_stream << messaget::eom;
371  });
372  break;
374  {
375  json_objectt json_options{{"options", options.to_json()}};
376  log.debug() << json_options;
377  break;
378  }
380  log.debug() << options.to_xml();
381  break;
382  }
383 
386 
387  if(!((cmdline.isset("jar") && cmdline.args.empty()) ||
388  (cmdline.isset("gb") && cmdline.args.empty()) ||
389  (!cmdline.isset("jar") && !cmdline.isset("gb") &&
390  (cmdline.args.size() == 1))))
391  {
392  log.error() << "Please give exactly one class name, "
393  << "and/or use -jar jarfile or --gb goto-binary"
394  << messaget::eom;
396  }
397 
398  if((cmdline.args.size() == 1) && !cmdline.isset("show-parse-tree"))
399  {
400  std::string main_class = cmdline.args[0];
401  // `java` accepts slashes and dots as package separators
402  std::replace(main_class.begin(), main_class.end(), '/', '.');
403  config.java.main_class = main_class;
404  cmdline.args.pop_back();
405  }
406 
407  if(cmdline.isset("jar"))
408  {
409  cmdline.args.push_back(cmdline.get_value("jar"));
410  }
411 
412  if(cmdline.isset("gb"))
413  {
414  cmdline.args.push_back(cmdline.get_value("gb"));
415  }
416 
417  // Shows the parse tree of the main class
418  if(cmdline.isset("show-parse-tree"))
419  {
420  std::unique_ptr<languaget> language = get_language_from_mode(ID_java);
421  CHECK_RETURN(language != nullptr);
422  language->set_language_options(options);
424 
425  log.status() << "Parsing ..." << messaget::eom;
426 
427  if(static_cast<java_bytecode_languaget *>(language.get())->parse())
428  {
429  log.error() << "PARSING ERROR" << messaget::eom;
431  }
432 
433  language->show_parse(std::cout);
434  return CPROVER_EXIT_SUCCESS;
435  }
436 
437  object_factory_params.set(options);
438 
440  options.get_bool_option("java-assume-inputs-non-null");
441 
442  std::unique_ptr<abstract_goto_modelt> goto_model_ptr;
443  int get_goto_program_ret = get_goto_program(goto_model_ptr, options);
444  if(get_goto_program_ret != -1)
445  return get_goto_program_ret;
446 
447  if(
448  options.get_bool_option("program-only") ||
449  options.get_bool_option("show-vcc") ||
450  (options.get_bool_option("symex-driven-lazy-loading") &&
451  (cmdline.isset("show-symbol-table") || cmdline.isset("list-symbols") ||
452  cmdline.isset("show-goto-functions") ||
453  cmdline.isset("list-goto-functions") ||
454  cmdline.isset("show-properties") || cmdline.isset("show-loops"))))
455  {
456  if(options.get_bool_option("paths"))
457  {
459  options, ui_message_handler, *goto_model_ptr);
460  (void)verifier();
461  }
462  else
463  {
465  options, ui_message_handler, *goto_model_ptr);
466  (void)verifier();
467  }
468 
469  if(options.get_bool_option("symex-driven-lazy-loading"))
470  {
471  // We can only output these after goto-symex has run.
472  (void)show_loaded_symbols(*goto_model_ptr);
473  (void)show_loaded_functions(*goto_model_ptr);
474  }
475 
476  return CPROVER_EXIT_SUCCESS;
477  }
478 
479  if(
480  options.get_bool_option("dimacs") || !options.get_option("outfile").empty())
481  {
482  if(options.get_bool_option("paths"))
483  {
485  options, ui_message_handler, *goto_model_ptr);
486  (void)verifier();
487  }
488  else
489  {
491  options, ui_message_handler, *goto_model_ptr);
492  (void)verifier();
493  }
494 
495  return CPROVER_EXIT_SUCCESS;
496  }
497 
498  std::unique_ptr<goto_verifiert> verifier = nullptr;
499 
500  if(
501  options.get_bool_option("stop-on-fail") && options.get_bool_option("paths"))
502  {
503  verifier =
504  util_make_unique<stop_on_fail_verifiert<java_single_path_symex_checkert>>(
505  options, ui_message_handler, *goto_model_ptr);
506  }
507  else if(
508  options.get_bool_option("stop-on-fail") &&
509  !options.get_bool_option("paths"))
510  {
511  if(options.get_bool_option("localize-faults"))
512  {
513  verifier =
516  options, ui_message_handler, *goto_model_ptr);
517  }
518  else
519  {
520  verifier = util_make_unique<
522  options, ui_message_handler, *goto_model_ptr);
523  }
524  }
525  else if(
526  !options.get_bool_option("stop-on-fail") &&
527  options.get_bool_option("paths"))
528  {
531  options, ui_message_handler, *goto_model_ptr);
532  }
533  else if(
534  !options.get_bool_option("stop-on-fail") &&
535  !options.get_bool_option("paths"))
536  {
537  if(options.get_bool_option("localize-faults"))
538  {
539  verifier =
542  options, ui_message_handler, *goto_model_ptr);
543  }
544  else
545  {
548  options, ui_message_handler, *goto_model_ptr);
549  }
550  }
551  else
552  {
553  UNREACHABLE;
554  }
555 
556  const resultt result = (*verifier)();
557  verifier->report();
558  return result_to_exit_code(result);
559 }
560 
562  std::unique_ptr<abstract_goto_modelt> &goto_model_ptr,
563  const optionst &options)
564 {
565  if(options.is_set("context-include") || options.is_set("context-exclude"))
566  method_context = get_context(options);
567  lazy_goto_modelt lazy_goto_model =
569  lazy_goto_model.initialize(cmdline.args, options);
570 
572  util_make_unique<class_hierarchyt>(lazy_goto_model.symbol_table);
573 
574  // Show the class hierarchy
575  if(cmdline.isset("show-class-hierarchy"))
576  {
578  return CPROVER_EXIT_SUCCESS;
579  }
580 
581  // Add failed symbols for any symbol created prior to loading any
582  // particular function:
583  add_failed_symbols(lazy_goto_model.symbol_table);
584 
585  if(!options.get_bool_option("symex-driven-lazy-loading"))
586  {
587  log.status() << "Generating GOTO Program" << messaget::eom;
588  lazy_goto_model.load_all_functions();
589 
590  // show symbol table or list symbols
591  if(show_loaded_symbols(lazy_goto_model))
592  return CPROVER_EXIT_SUCCESS;
593 
594  // Move the model out of the local lazy_goto_model
595  // and into the caller's goto_model
597  std::move(lazy_goto_model));
598  if(goto_model_ptr == nullptr)
600 
601  goto_modelt &goto_model = dynamic_cast<goto_modelt &>(*goto_model_ptr);
602 
603  if(cmdline.isset("validate-goto-model"))
604  {
605  goto_model.validate();
606  }
607 
608  if(show_loaded_functions(goto_model))
609  return CPROVER_EXIT_SUCCESS;
610 
611  if(cmdline.isset("property"))
612  ::set_properties(goto_model, cmdline.get_values("property"));
613  }
614  else
615  {
616  // The precise wording of this error matches goto-symex's complaint when no
617  // __CPROVER_start exists (if we just go ahead and run it anyway it will
618  // trip an invariant when it tries to load it)
620  {
621  log.error() << "the program has no entry point" << messaget::eom;
623  }
624 
625  if(cmdline.isset("validate-goto-model"))
626  {
627  lazy_goto_model.validate();
628  }
629 
630  goto_model_ptr =
631  util_make_unique<lazy_goto_modelt>(std::move(lazy_goto_model));
632  }
633 
635 
636  return -1; // no error, continue
637 }
638 
640  goto_model_functiont &function,
641  const abstract_goto_modelt &model,
642  const optionst &options)
643 {
644  journalling_symbol_tablet &symbol_table = function.get_symbol_table();
645  namespacet ns(symbol_table);
646  goto_functionst::goto_functiont &goto_function = function.get_goto_function();
647 
648  bool using_symex_driven_loading =
649  options.get_bool_option("symex-driven-lazy-loading");
650 
651  // Removal of RTTI inspection:
653  function.get_function_id(),
654  goto_function,
655  symbol_table,
658  // Java virtual functions -> explicit dispatch tables:
660 
661  auto function_is_stub = [&symbol_table, &model](const irep_idt &id) {
662  return symbol_table.lookup_ref(id).value.is_nil() &&
663  !model.can_produce_function(id);
664  };
665 
666  remove_returns(function, function_is_stub);
667 
668  replace_java_nondet(function);
669 
670  // Similar removal of java nondet statements:
672 
673  if(using_symex_driven_loading)
674  {
675  // remove exceptions
676  // If using symex-driven function loading we need to do this now so that
677  // symex doesn't have to cope with exception-handling constructs; however
678  // the results are slightly worse than running it in whole-program mode
679  // (e.g. dead catch sites will be retained)
681  function.get_function_id(),
682  goto_function.body,
683  symbol_table,
684  *class_hierarchy.get(),
686  }
687 
688  transform_assertions_assumptions(options, function.get_goto_function().body);
689 
690  // Replace Java new side effects
692  function.get_function_id(),
693  goto_function,
694  symbol_table,
696 
697  // checks don't know about adjusted float expressions
698  adjust_float_expressions(goto_function, ns);
699 
700  // add failed symbols for anything created relating to this particular
701  // function (note this means subsequent passes mustn't create more!):
703  symbol_table.get_inserted();
704  for(const irep_idt &new_symbol_name : new_symbols)
705  {
707  symbol_table.lookup_ref(new_symbol_name), symbol_table);
708  }
709 
710  // If using symex-driven function loading we must label the assertions
711  // now so symex sees its targets; otherwise we leave this until
712  // process_goto_functions, as we haven't run remove_exceptions yet, and that
713  // pass alters the CFG.
714  if(using_symex_driven_loading)
715  {
716  // label the assertions
717  label_properties(function.get_function_id(), goto_function.body);
718 
719  goto_function.body.update();
720  function.compute_location_numbers();
721  goto_function.body.compute_loop_numbers();
722  }
723 }
724 
726  const abstract_goto_modelt &goto_model)
727 {
728  if(cmdline.isset("show-symbol-table"))
729  {
731  return true;
732  }
733  else if(cmdline.isset("list-symbols"))
734  {
736  return true;
737  }
738 
739  return false;
740 }
741 
743  const abstract_goto_modelt &goto_model)
744 {
745  if(cmdline.isset("show-loops"))
746  {
748  return true;
749  }
750 
751  if(
752  cmdline.isset("show-goto-functions") ||
753  cmdline.isset("list-goto-functions"))
754  {
755  namespacet ns(goto_model.get_symbol_table());
757  ns,
759  goto_model.get_goto_functions(),
760  cmdline.isset("list-goto-functions"));
761  return true;
762  }
763 
764  if(cmdline.isset("show-properties"))
765  {
766  namespacet ns(goto_model.get_symbol_table());
768  return true;
769  }
770 
771  return false;
772 }
773 
775  goto_modelt &goto_model,
776  const optionst &options)
777 {
778  log.status() << "Running GOTO functions transformation passes"
779  << messaget::eom;
780 
781  bool using_symex_driven_loading =
782  options.get_bool_option("symex-driven-lazy-loading");
783 
784  // When using symex-driven lazy loading, *all* relevant processing is done
785  // during process_goto_function, so we have nothing to do here.
786  if(using_symex_driven_loading)
787  return false;
788 
789  // remove catch and throw
791 
792  // instrument library preconditions
793  instrument_preconditions(goto_model);
794 
795  // ignore default/user-specified initialization
796  // of variables with static lifetime
797  if(cmdline.isset("nondet-static"))
798  {
799  log.status() << "Adding nondeterministic initialization "
800  "of static/global variables"
801  << messaget::eom;
802  nondet_static(goto_model);
803  }
804 
805  // recalculate numbers, etc.
806  goto_model.goto_functions.update();
807 
808  if(cmdline.isset("drop-unused-functions"))
809  {
810  // Entry point will have been set before and function pointers removed
811  log.status() << "Removing unused functions" << messaget::eom;
813  }
814 
815  // remove skips such that trivial GOTOs are deleted
816  remove_skip(goto_model);
817 
818  // label the assertions
819  // This must be done after adding assertions and
820  // before using the argument of the "property" option.
821  // Do not re-label after using the property slicer because
822  // this would cause the property identifiers to change.
823  label_properties(goto_model);
824 
825  // reachability slice?
826  if(cmdline.isset("reachability-slice-fb"))
827  {
828  if(cmdline.isset("reachability-slice"))
829  {
830  log.error() << "--reachability-slice and --reachability-slice-fb "
831  << "must not be given together" << messaget::eom;
832  return true;
833  }
834 
835  log.status() << "Performing a forwards-backwards reachability slice"
836  << messaget::eom;
837  if(cmdline.isset("property"))
838  {
840  goto_model, cmdline.get_values("property"), true, ui_message_handler);
841  }
842  else
843  reachability_slicer(goto_model, true, ui_message_handler);
844  }
845 
846  if(cmdline.isset("reachability-slice"))
847  {
848  log.status() << "Performing a reachability slice" << messaget::eom;
849  if(cmdline.isset("property"))
850  {
852  goto_model, cmdline.get_values("property"), ui_message_handler);
853  }
854  else
856  }
857 
858  // full slice?
859  if(cmdline.isset("full-slice"))
860  {
861  log.status() << "Performing a full slice" << messaget::eom;
862  if(cmdline.isset("property"))
863  property_slicer(goto_model, cmdline.get_values("property"));
864  else
865  full_slicer(goto_model);
866  }
867 
868  // remove any skips introduced
869  remove_skip(goto_model);
870 
871  return false;
872 }
873 
875 {
876  static const irep_idt initialize_id = INITIALIZE_FUNCTION;
877 
878  return name != goto_functionst::entry_point() && name != initialize_id;
879 }
880 
882  const irep_idt &function_name,
883  symbol_table_baset &symbol_table,
884  goto_functiont &function,
885  bool body_available)
886 {
887  // Provide a simple stub implementation for any function we don't have a
888  // bytecode implementation for:
889 
890  if(
891  body_available &&
892  (!method_context || (*method_context)(id2string(function_name))))
893  return false;
894 
895  if(!can_generate_function_body(function_name))
896  return false;
897 
898  if(symbol_table.lookup_ref(function_name).mode == ID_java)
899  {
901  function_name,
902  symbol_table,
906 
907  goto_convert_functionst converter(symbol_table, ui_message_handler);
908  converter.convert_function(function_name, function);
909 
910  return true;
911  }
912  else
913  {
914  return false;
915  }
916 }
917 
920 {
921  // clang-format off
922  std::cout << '\n' << banner_string("JBMC", CBMC_VERSION) << '\n'
923  << align_center_with_border("Copyright (C) 2001-2018") << '\n'
924  << align_center_with_border("Daniel Kroening, Edmund Clarke") << '\n' // NOLINT(*)
925  << align_center_with_border("Carnegie Mellon University, Computer Science Department") << '\n' // NOLINT(*)
926  << align_center_with_border("kroening@kroening.com") << '\n'
927  << "\n"
928  "Usage: Purpose:\n"
929  "\n"
930  " jbmc [-?] [-h] [--help] show help\n"
931  " jbmc\n"
933  " jbmc\n"
935  " jbmc\n"
937  " jbmc\n"
939  "\n"
942  "\n"
943  "Analysis options:\n"
945  " --symex-coverage-report f generate a Cobertura XML coverage report in f\n" // NOLINT(*)
946  " --property id only check one specific property\n"
947  " --trace give a counterexample trace for failed properties\n" //NOLINT(*)
948  " --stop-on-fail stop analysis once a failed property is detected\n" // NOLINT(*)
949  " (implies --trace)\n"
950  " --localize-faults localize faults (experimental)\n"
952  "\n"
953  "Platform options:\n"
955  "\n"
956  "Program representations:\n"
957  " --show-parse-tree show parse tree\n"
958  " --show-symbol-table show loaded symbol table\n"
959  " --list-symbols list symbols with type information\n"
961  " --drop-unused-functions drop functions trivially unreachable\n"
962  " from main function\n"
964  "\n"
965  "Program instrumentation options:\n"
966  " --no-assertions ignore user assertions\n"
967  " --no-assumptions ignore user assumptions\n"
968  " --mm MM memory consistency model for concurrent programs\n" // NOLINT(*)
971  " --full-slice run full slicer (experimental)\n" // NOLINT(*)
972  "\n"
973  "Java Bytecode frontend options:\n"
975  // This one is handled by jbmc_parse_options not by the Java frontend,
976  // hence its presence here:
977  " --java-threading enable java multi-threading support (experimental)\n" // NOLINT(*)
978  " --java-unwind-enum-static unwind loops in static initialization of enums\n" // NOLINT(*)
979  // Currently only supported in the JBMC frontend:
980  " --symex-driven-lazy-loading only load functions when first entered by symbolic\n" // NOLINT(*)
981  " execution. Note that --show-symbol-table,\n"
982  " --show-goto-functions/properties output\n"
983  " will be restricted to loaded methods in this case,\n" // NOLINT(*)
984  " and only output after the symex phase.\n"
985  "\n"
986  "Semantic transformations:\n"
987  // NOLINTNEXTLINE(whitespace/line_length)
988  " --nondet-static add nondeterministic initialization of variables with static lifetime\n"
989  "\n"
990  "BMC options:\n"
991  HELP_BMC
992  "\n"
993  "Backend options:\n"
997  " --arrays-uf-never never turn arrays into uninterpreted functions\n" // NOLINT(*)
998  " --arrays-uf-always always turn arrays into uninterpreted functions\n" // NOLINT(*)
999  "\n"
1000  "Other options:\n"
1001  " --version show version and exit\n"
1006  HELP_FLUSH
1007  " --verbosity # verbosity level\n"
1009  "\n";
1010  // clang-format on
1011 }
cmdlinet::args
argst args
Definition: cmdline.h:145
UNREACHABLE
#define UNREACHABLE
This should be used to mark dead code.
Definition: invariant.h:503
convert_java_nondet.h
abstract_goto_modelt::can_produce_function
virtual bool can_produce_function(const irep_idt &id) const =0
Determines if this model can produce a body for the given function.
symbol_table_baset::has_symbol
bool has_symbol(const irep_idt &name) const
Check whether a symbol exists in the symbol table.
Definition: symbol_table_base.h:87
dstringt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition: dstring.h:36
HELP_REACHABILITY_SLICER
#define HELP_REACHABILITY_SLICER
Definition: reachability_slicer.h:48
HELP_BMC
#define HELP_BMC
Definition: bmc_util.h:200
HELP_SHOW_GOTO_FUNCTIONS
#define HELP_SHOW_GOTO_FUNCTIONS
Definition: show_goto_functions.h:25
lazy_goto_modelt::symbol_table
symbol_tablet & symbol_table
Reference to symbol_table in the internal goto_model.
Definition: lazy_goto_model.h:260
languaget::show_parse
virtual void show_parse(std::ostream &out)=0
configt::object_bits_info
std::string object_bits_info()
Definition: config.cpp:1339
symbol_table_baset::lookup_ref
const symbolt & lookup_ref(const irep_idt &name) const
Find a symbol in the symbol table for read-only access.
Definition: symbol_table_base.h:104
configt::javat::main_class
irep_idt main_class
Definition: config.h:328
lazy_goto_modelt::validate
void validate(const validation_modet vm=validation_modet::INVARIANT, const goto_model_validation_optionst &goto_model_validation_options=goto_model_validation_optionst{}) const override
Check that the goto model is well-formed.
Definition: lazy_goto_model.h:247
abstract_goto_modelt::get_symbol_table
virtual const symbol_tablet & get_symbol_table() const =0
Accessor to get the symbol table.
jbmc_parse_optionst::get_command_line_options
void get_command_line_options(optionst &)
Definition: jbmc_parse_options.cpp:108
HELP_GOTO_TRACE
#define HELP_GOTO_TRACE
Definition: goto_trace.h:277
parse_options_baset::ui_message_handler
ui_message_handlert ui_message_handler
Definition: parse_options.h:45
parse_options_baset
Definition: parse_options.h:19
java_bytecode_language.h
JAVA_BYTECODE_LANGUAGE_OPTIONS_HELP
#define JAVA_BYTECODE_LANGUAGE_OPTIONS_HELP
Definition: java_bytecode_language.h:53
parse_java_language_options
void parse_java_language_options(const cmdlinet &cmd, optionst &options)
Parse options that are java bytecode specific.
Definition: java_bytecode_language.cpp:55
resultt
resultt
The result of goto verifying.
Definition: properties.h:44
cmdlinet::isset
virtual bool isset(char option) const
Definition: cmdline.cpp:30
stop_on_fail_verifiert
Stops when the first failing property is found.
Definition: stop_on_fail_verifier.h:22
nondet_static
static void nondet_static(const namespacet &ns, goto_functionst &goto_functions, const irep_idt &fct_name)
Nondeterministically initializes global scope variables in a goto-function.
Definition: nondet_static.cpp:80
ui_message_handlert::uit::XML_UI
@ XML_UI
jbmc_parse_optionst::process_goto_functions
bool process_goto_functions(goto_modelt &goto_model, const optionst &options)
Definition: jbmc_parse_options.cpp:774
optionst
Definition: options.h:22
parse_solver_options
void parse_solver_options(const cmdlinet &cmdline, optionst &options)
Parse solver-related command-line parameters in cmdline and set corresponding values in options.
Definition: solver_factory.cpp:537
CHECK_RETURN
#define CHECK_RETURN(CONDITION)
Definition: invariant.h:495
show_class_hierarchy
void show_class_hierarchy(const class_hierarchyt &hierarchy, ui_message_handlert &message_handler, bool children_only)
Output the class hierarchy.
Definition: class_hierarchy.cpp:262
all_properties_verifiert
Definition: all_properties_verifier.h:22
optionst::get_option
const std::string get_option(const std::string &option) const
Definition: options.cpp:67
messaget::M_STATISTICS
@ M_STATISTICS
Definition: message.h:171
messaget::status
mstreamt & status() const
Definition: message.h:414
show_properties
void show_properties(const namespacet &ns, const irep_idt &identifier, message_handlert &message_handler, ui_message_handlert::uit ui, const goto_programt &goto_program)
Definition: show_properties.cpp:44
HELP_FUNCTIONS
#define HELP_FUNCTIONS
Definition: rebuild_goto_start_function.h:27
instrument_preconditions.h
lazy_goto_modelt::process_whole_model_and_freeze
static std::unique_ptr< goto_modelt > process_whole_model_and_freeze(lazy_goto_modelt &&model)
The model returned here has access to the functions we've already loaded but is frozen in the sense t...
Definition: lazy_goto_model.h:198
jbmc_parse_optionst::process_goto_function
void process_goto_function(goto_model_functiont &function, const abstract_goto_modelt &, const optionst &)
Definition: jbmc_parse_options.cpp:639
remove_skip
void remove_skip(goto_programt &goto_program, goto_programt::targett begin, goto_programt::targett end)
remove unnecessary skip statements
Definition: remove_skip.cpp:87
HELP_CONFIG_PLATFORM
#define HELP_CONFIG_PLATFORM
Definition: config.h:84
goto_convert_functionst::convert_function
void convert_function(const irep_idt &identifier, goto_functionst::goto_functiont &result)
Definition: goto_convert_functions.cpp:142
replace
void replace(const union_find_replacet &replace_map, string_not_contains_constraintt &constraint)
Definition: string_constraint.cpp:70
new_java_bytecode_language
std::unique_ptr< languaget > new_java_bytecode_language()
Definition: java_bytecode_language.cpp:1524
get_language_from_mode
std::unique_ptr< languaget > get_language_from_mode(const irep_idt &mode)
Get the language corresponding to the given mode.
Definition: mode.cpp:51
invariant.h
remove_virtual_functions.h
HELP_SHOW_CLASS_HIERARCHY
#define HELP_SHOW_CLASS_HIERARCHY
Definition: class_hierarchy.h:28
remove_virtual_functions
void remove_virtual_functions(symbol_table_baset &symbol_table, goto_functionst &goto_functions)
Remove virtual function calls from all functions in the specified list and replace them with their mo...
Definition: remove_virtual_functions.cpp:728
goto_modelt
Definition: goto_model.h:25
show_goto_functions.h
mode.h
show_loop_ids
void show_loop_ids(ui_message_handlert::uit ui, const goto_modelt &goto_model)
Definition: loop_ids.cpp:21
all_properties_verifier.h
optionst::set_option
void set_option(const std::string &option, const bool value)
Definition: options.cpp:28
HELP_JAVA_GOTO_BINARY
#define HELP_JAVA_GOTO_BINARY
Definition: java_bytecode_language.h:173
parse_options_baset::log_version_and_architecture
void log_version_and_architecture(const std::string &front_end)
Write version and system architecture to log.status().
Definition: parse_options.cpp:152
messaget::eom
static eomt eom
Definition: message.h:297
jbmc_parse_optionst::generate_function_body
bool generate_function_body(const irep_idt &function_name, symbol_table_baset &symbol_table, goto_functiont &function, bool body_available)
Definition: jbmc_parse_options.cpp:881
jbmc_parse_optionst::object_factory_params
java_object_factory_parameterst object_factory_params
Definition: jbmc_parse_options.h:123
JBMC_OPTIONS
#define JBMC_OPTIONS
Definition: jbmc_parse_options.h:41
show_symbol_table
void show_symbol_table(const symbol_tablet &symbol_table, ui_message_handlert &ui)
Definition: show_symbol_table.cpp:242
version.h
remove_unused_functions
void remove_unused_functions(goto_modelt &goto_model, message_handlert &message_handler)
Definition: remove_unused_functions.cpp:18
nondet_static.h
lazy_goto_model.h
Author: Diffblue Ltd.
HELP_REACHABILITY_SLICER_FB
#define HELP_REACHABILITY_SLICER_FB
Definition: reachability_slicer.h:55
xml.h
simple_method_stubbing.h
stop_on_fail_verifier_with_fault_localization.h
label_properties
void label_properties(goto_modelt &goto_model)
Definition: set_properties.cpp:45
path_storage.h
Storage of symbolic execution paths to resume.
jbmc_parse_optionst::stub_objects_are_not_null
bool stub_objects_are_not_null
Definition: jbmc_parse_options.h:124
languaget::set_language_options
virtual void set_language_options(const optionst &)
Set language-specific options.
Definition: language.h:41
java_object_factory_parameterst::set
void set(const optionst &)
Assigns the parameters from given options.
Definition: java_object_factory_parameters.cpp:15
cmdlinet::get_comma_separated_values
std::list< std::string > get_comma_separated_values(const char *option) const
Collect all occurrences of option option and split their values on each comma, merging them into a si...
Definition: cmdline.cpp:121
HELP_JAVA_JAR
#define HELP_JAVA_JAR
Definition: java_bytecode_language.h:161
remove_instanceof
void remove_instanceof(const irep_idt &function_identifier, goto_programt::targett target, goto_programt &goto_program, symbol_table_baset &symbol_table, const class_hierarchyt &class_hierarchy, message_handlert &message_handler)
Replace an instanceof in the expression or guard of the passed instruction of the given function body...
Definition: remove_instanceof.cpp:306
HELP_JAVA_TRACE_VALIDATION
#define HELP_JAVA_TRACE_VALIDATION
Definition: java_trace_validation.h:29
parse_path_strategy_options
void parse_path_strategy_options(const cmdlinet &cmdline, optionst &options, message_handlert &message_handler)
add paths and exploration-strategy option, suitable to be invoked from front-ends.
Definition: path_storage.cpp:137
json_objectt
Definition: json.h:299
HELP_JSON_INTERFACE
#define HELP_JSON_INTERFACE
Definition: json_interface.h:45
ui_message_handlert::get_ui
virtual uit get_ui() const
Definition: ui_message.h:33
parse_options_baset::usage_error
virtual void usage_error()
Definition: parse_options.cpp:49
namespacet
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:90
util_make_unique
std::unique_ptr< T > util_make_unique(Ts &&... ts)
Definition: make_unique.h:19
set_properties.h
lazy_goto_modelt::from_handler_object
static lazy_goto_modelt from_handler_object(THandler &handler, const optionst &options, message_handlert &message_handler)
Create a lazy_goto_modelt from a object that defines function/module pass handlers.
Definition: lazy_goto_model.h:153
optionst::to_json
json_objectt to_json() const
Returns the options as JSON key value pairs.
Definition: options.cpp:93
convert_nondet
void convert_nondet(const irep_idt &function_identifier, goto_programt &goto_program, symbol_table_baset &symbol_table, message_handlert &message_handler, const java_object_factory_parameterst &user_object_factory_parameters, const irep_idt &mode)
For each instruction in the goto program, checks if it is an assignment from nondet and replaces it w...
Definition: convert_java_nondet.cpp:165
full_slicer
void full_slicer(goto_functionst &goto_functions, const namespacet &ns, const slicing_criteriont &criterion)
Definition: full_slicer.cpp:348
jbmc_parse_optionst::doit
virtual int doit() override
invoke main modules
Definition: jbmc_parse_options.cpp:342
CBMC_VERSION
const char * CBMC_VERSION
parse_java_object_factory_options
void parse_java_object_factory_options(const cmdlinet &cmdline, optionst &options)
Parse the java object factory parameters from a given command line.
Definition: java_object_factory_parameters.cpp:42
symbolt::mode
irep_idt mode
Language mode.
Definition: symbol.h:49
show_symbol_table_brief
void show_symbol_table_brief(const symbol_tablet &symbol_table, ui_message_handlert &ui)
Definition: show_symbol_table.cpp:269
make_unique.h
messaget::error
mstreamt & error() const
Definition: message.h:399
all_properties_verifier_with_trace_storage.h
jbmc_parse_optionst::can_generate_function_body
bool can_generate_function_body(const irep_idt &name)
Definition: jbmc_parse_options.cpp:874
HELP_STRING_REFINEMENT
#define HELP_STRING_REFINEMENT
Definition: string_refinement.h:39
banner_string
std::string banner_string(const std::string &front_end, const std::string &version)
Definition: parse_options.cpp:174
id2string
const std::string & id2string(const irep_idt &d)
Definition: irep.h:47
ui_message_handlert::uit::JSON_UI
@ JSON_UI
lazy_goto_modelt
A GOTO model that produces function bodies on demand.
Definition: lazy_goto_model.h:42
remove_exceptions
void remove_exceptions(symbol_table_baset &symbol_table, goto_functionst &goto_functions, const class_hierarchyt &class_hierarchy, message_handlert &message_handler)
removes throws/CATCH-POP/CATCH-PUSH
Definition: remove_exceptions.cpp:691
instrument_preconditions
void instrument_preconditions(const goto_modelt &goto_model, goto_programt &goto_program)
Definition: instrument_preconditions.cpp:99
jbmc_parse_optionst::show_loaded_symbols
bool show_loaded_symbols(const abstract_goto_modelt &goto_model)
Definition: jbmc_parse_options.cpp:725
optionst::is_set
bool is_set(const std::string &option) const
N.B. opts.is_set("foo") does not imply opts.get_bool_option("foo")
Definition: options.cpp:62
symbol_table_baset
The symbol table base class interface.
Definition: symbol_table_base.h:21
property_slicer
void property_slicer(goto_functionst &goto_functions, const namespacet &ns, const std::list< std::string > &properties)
Definition: full_slicer.cpp:371
goto_convert_functionst
Definition: goto_convert_functions.h:40
show_properties.h
java_single_path_symex_checker.h
get_context
prefix_filtert get_context(const optionst &options)
Definition: java_bytecode_language.cpp:116
jbmc_parse_optionst::class_hierarchy
std::unique_ptr< class_hierarchyt > class_hierarchy
Definition: jbmc_parse_options.h:126
INITIALIZE_FUNCTION
#define INITIALIZE_FUNCTION
Definition: static_lifetime_init.h:22
cmdlinet::get_value
std::string get_value(char option) const
Definition: cmdline.cpp:48
show_symbol_table.h
language.h
messaget::set_message_handler
virtual void set_message_handler(message_handlert &_message_handler)
Definition: message.h:179
journalling_symbol_tablet::changesett
std::unordered_set< irep_idt > changesett
Definition: journalling_symbol_table.h:38
HELP_SHOW_PROPERTIES
#define HELP_SHOW_PROPERTIES
Definition: show_properties.h:30
all_properties_verifier_with_trace_storaget
Definition: all_properties_verifier_with_trace_storage.h:24
HELP_JAVA_CLASS_NAME
#define HELP_JAVA_CLASS_NAME
Definition: java_bytecode_language.h:151
java_bytecode_languaget::parse
virtual bool parse()
We set the main class (i.e. class to start the class loading analysis, see java_class_loadert) when w...
Definition: java_bytecode_language.cpp:369
xml_interface
void xml_interface(cmdlinet &cmdline, message_handlert &message_handler)
Parse XML-formatted commandline options from stdin.
Definition: xml_interface.cpp:47
show_goto_functions
void show_goto_functions(const namespacet &ns, ui_message_handlert &ui_message_handler, const goto_functionst &goto_functions, bool list_only)
Definition: show_goto_functions.cpp:20
transform_assertions_assumptions
static void transform_assertions_assumptions(goto_programt &goto_program, bool enable_assertions, bool enable_built_in_assertions, bool enable_assumptions)
Definition: goto_check.cpp:19
irept::is_nil
bool is_nil() const
Definition: irep.h:376
json_interface
void json_interface(cmdlinet &cmdline, message_handlert &message_handler)
Parses the JSON-formatted command line from stdin.
Definition: json_interface.cpp:88
goto_functiont
A goto function, consisting of function body (see body) and parameter identifiers (see parameter_iden...
Definition: goto_function.h:23
lazy_goto_modelt::initialize
void initialize(const std::vector< std::string > &files, const optionst &options)
Performs initial symbol table and language_filest initialization from a given commandline and parsed ...
Definition: lazy_goto_model.cpp:114
java_single_path_symex_checkert
Definition: java_single_path_symex_checker.h:19
goto_check.h
HELP_SOLVER
#define HELP_SOLVER
Definition: solver_factory.h:119
remove_java_new
void remove_java_new(const irep_idt &function_identifier, goto_programt::targett target, goto_programt &goto_program, symbol_table_baset &symbol_table, message_handlert &message_handler)
Replace every java_new or java_new_array by a malloc side-effect and zero initialization.
Definition: remove_java_new.cpp:437
all_properties_verifier_with_fault_localization.h
CPROVER_EXIT_INCORRECT_TASK
#define CPROVER_EXIT_INCORRECT_TASK
The command line is correctly structured but cannot be carried out due to missing files,...
Definition: exit_codes.h:49
full_slicer.h
HELP_JAVA_METHOD_NAME
#define HELP_JAVA_METHOD_NAME
Definition: java_bytecode_language.h:146
goto_verifiert::report
virtual void report()=0
Report results.
remove_returns.h
remove_exceptions.h
remove_unused_functions.h
config
configt config
Definition: config.cpp:25
remove_instanceof.h
goto_functionst::goto_functiont
::goto_functiont goto_functiont
Definition: goto_functions.h:27
parse_options_baset::log
messaget log
Definition: parse_options.h:46
jbmc_parse_optionst::help
virtual void help() override
display command line help
Definition: jbmc_parse_options.cpp:919
abstract_goto_modelt::get_goto_functions
virtual const goto_functionst & get_goto_functions() const =0
Accessor to get a raw goto_functionst.
symbolt::value
exprt value
Initial value of symbol.
Definition: symbol.h:34
java_generate_simple_method_stub
void java_generate_simple_method_stub(const irep_idt &function_name, symbol_table_baset &symbol_table, bool assume_non_null, const java_object_factory_parameterst &object_factory_parameters, message_handlert &message_handler)
Definition: simple_method_stubbing.cpp:275
result_to_exit_code
int result_to_exit_code(resultt result)
Definition: properties.cpp:147
register_language
void register_language(language_factoryt factory)
Register a language Note: registering a language is required for using the functions in language_util...
Definition: mode.cpp:39
jbmc_parse_options.h
goto_modelt::goto_functions
goto_functionst goto_functions
GOTO functions.
Definition: goto_model.h:33
ansi_c_language.h
ui_message_handlert::uit::PLAIN
@ PLAIN
stop_on_fail_verifier.h
configt::set
bool set(const cmdlinet &cmdline)
Definition: config.cpp:798
java_multi_path_symex_checkert
Definition: java_multi_path_symex_checker.h:19
HELP_JAVA_CLASSPATH
#define HELP_JAVA_CLASSPATH
Definition: java_bytecode_language.h:136
exit_codes.h
jbmc_parse_optionst::get_goto_program
int get_goto_program(std::unique_ptr< abstract_goto_modelt > &goto_model, const optionst &)
Definition: jbmc_parse_options.cpp:561
optionst::get_bool_option
bool get_bool_option(const std::string &option) const
Definition: options.cpp:44
add_failed_symbol_if_needed
void add_failed_symbol_if_needed(const symbolt &symbol, symbol_table_baset &symbol_table)
Create a failed-dereference symbol for the given base symbol if it is pointer-typed,...
Definition: add_failed_symbols.cpp:63
remove_returns
void remove_returns(symbol_table_baset &symbol_table, goto_functionst &goto_functions)
removes returns
Definition: remove_returns.cpp:255
messaget::conditional_output
void conditional_output(mstreamt &mstream, const std::function< void(mstreamt &)> &output_generator) const
Generate output to message_stream using output_generator if the configured verbosity is at least as h...
Definition: message.cpp:139
new_ansi_c_language
std::unique_ptr< languaget > new_ansi_c_language()
Definition: ansi_c_language.cpp:150
CPROVER_EXIT_USAGE_ERROR
#define CPROVER_EXIT_USAGE_ERROR
A usage error is returned when the command line is invalid or conflicting.
Definition: exit_codes.h:33
goto_functionst::update
void update()
Definition: goto_functions.h:83
configt::java
struct configt::javat java
show_path_strategies
std::string show_path_strategies()
suitable for displaying as a front-end help message
Definition: path_storage.cpp:111
config.h
replace_java_nondet
static void replace_java_nondet(goto_programt &goto_program)
Checks each instruction in the goto program to see whether it is a method returning nondet.
Definition: replace_java_nondet.cpp:312
goto_modelt::validate
void validate(const validation_modet vm=validation_modet::INVARIANT, const goto_model_validation_optionst &goto_model_validation_options=goto_model_validation_optionst{}) const override
Check that the goto model is well-formed.
Definition: goto_model.h:98
loop_ids.h
reachability_slicer.h
messaget::mstreamt
Definition: message.h:223
jbmc_parse_optionst::set_default_options
static void set_default_options(optionst &)
Set the options that have default values.
Definition: jbmc_parse_options.cpp:91
PARSE_OPTIONS_GOTO_TRACE
#define PARSE_OPTIONS_GOTO_TRACE(cmdline, options)
Definition: goto_trace.h:285
abstract_goto_modelt
Abstract interface to eager or lazy GOTO models.
Definition: abstract_goto_model.h:20
adjust_float_expressions
void adjust_float_expressions(exprt &expr, const exprt &rounding_mode)
Replaces arithmetic operations and typecasts involving floating point numbers with their equivalent f...
Definition: adjust_float_expressions.cpp:85
remove_java_new.h
HELP_CONFIG_BACKEND
#define HELP_CONFIG_BACKEND
Definition: config.h:111
java_multi_path_symex_checker.h
lazy_goto_modelt::load_all_functions
void load_all_functions() const
Eagerly loads all functions from the symbol table.
Definition: lazy_goto_model.cpp:187
messaget::debug
mstreamt & debug() const
Definition: message.h:429
stop_on_fail_verifier_with_fault_localizationt
Stops when the first failing property is found and localizes the fault Requires an incremental goto c...
Definition: stop_on_fail_verifier_with_fault_localization.h:25
optionst::to_xml
xmlt to_xml() const
Returns the options in XML format.
Definition: options.cpp:104
add_failed_symbols.h
goto_functionst::entry_point
static irep_idt entry_point()
Get the identifier of the entry point to a goto model.
Definition: goto_functions.h:92
journalling_symbol_tablet::get_inserted
const changesett & get_inserted() const
Definition: journalling_symbol_table.h:146
CPROVER_EXIT_INTERNAL_ERROR
#define CPROVER_EXIT_INTERNAL_ERROR
An error has been encountered during processing the requested analysis.
Definition: exit_codes.h:45
jbmc_parse_optionst::jbmc_parse_optionst
jbmc_parse_optionst(int argc, const char **argv)
Definition: jbmc_parse_options.cpp:66
goto_convert_functions.h
add_failed_symbols
void add_failed_symbols(symbol_table_baset &symbol_table)
Create a failed-dereference symbol for all symbols in the given table that need one (i....
Definition: add_failed_symbols.cpp:78
static_lifetime_init.h
CPROVER_EXIT_SUCCESS
#define CPROVER_EXIT_SUCCESS
Success indicates the required analysis has been performed without error.
Definition: exit_codes.h:16
messaget::eval_verbosity
static unsigned eval_verbosity(const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest.
Definition: message.cpp:105
java_single_path_symex_only_checker.h
remove_skip.h
java_bytecode_languaget
Definition: java_bytecode_language.h:274
adjust_float_expressions.h
all_properties_verifier_with_fault_localizationt
Requires an incremental goto checker that is a goto_trace_providert and fault_localization_providert.
Definition: all_properties_verifier_with_fault_localization.h:27
invalid_command_line_argument_exceptiont
Thrown when users pass incorrect command line arguments, for example passing no files to analysis or ...
Definition: exception_utils.h:50
cmdlinet::get_values
const std::list< std::string > & get_values(const std::string &option) const
Definition: cmdline.cpp:109
java_multi_path_symex_only_checker.h
parse_options_baset::cmdline
cmdlinet cmdline
Definition: parse_options.h:28
jbmc_parse_optionst::show_loaded_functions
bool show_loaded_functions(const abstract_goto_modelt &goto_model)
Definition: jbmc_parse_options.cpp:742
set_properties
void set_properties(goto_programt &goto_program, std::unordered_set< irep_idt > &property_set)
Definition: set_properties.cpp:21
journalling_symbol_tablet
A symbol table wrapper that records which entries have been updated/removed.
Definition: journalling_symbol_table.h:35
align_center_with_border
std::string align_center_with_border(const std::string &text)
Utility for displaying help centered messages borderered by "* *".
Definition: parse_options.cpp:161
journalling_symbol_tablet::get_symbol_table
virtual const symbol_tablet & get_symbol_table() const override
Definition: journalling_symbol_table.h:75
goto_model_functiont
Interface providing access to a single function in a GOTO model, plus its associated symbol table.
Definition: goto_model.h:182
HELP_XML_INTERFACE
#define HELP_XML_INTERFACE
Definition: xml_interface.h:39
HELP_TIMESTAMP
#define HELP_TIMESTAMP
Definition: timestamper.h:14
HELP_FLUSH
#define HELP_FLUSH
Definition: ui_message.h:108
reachability_slicer
void reachability_slicer(goto_modelt &goto_model, const bool include_forward_reachability, message_handlert &message_handler)
Perform reachability slicing on goto_model, with respect to the criterion given by all properties.
Definition: reachability_slicer.cpp:397
replace_java_nondet.h
HELP_VALIDATE
#define HELP_VALIDATE
Definition: validation_interface.h:16
jbmc_parse_optionst::method_context
optionalt< prefix_filtert > method_context
See java_bytecode_languaget::method_context.
Definition: jbmc_parse_options.h:138
CPROVER_EXIT_PARSE_ERROR
#define CPROVER_EXIT_PARSE_ERROR
An error during parsing of the input program.
Definition: exit_codes.h:37