File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,12 @@ int goto_analyzer_parse_optionst::doit()
406
406
if (process_goto_program (options))
407
407
return CPROVER_EXIT_INTERNAL_ERROR;
408
408
409
+ if (cmdline.isset (" validate-goto-model" ))
410
+ {
411
+ const namespacet ns (goto_model.symbol_table );
412
+ goto_model.validate (ns, validation_modet::INVARIANT);
413
+ }
414
+
409
415
// show it?
410
416
if (cmdline.isset (" show-symbol-table" ))
411
417
{
@@ -875,6 +881,9 @@ void goto_analyzer_parse_optionst::help()
875
881
HELP_GOTO_CHECK
876
882
" \n "
877
883
" Other options:\n "
884
+ // NOLINTNEXTLINE(whitespace/line_length)
885
+ " --validate-goto-model enable additional well-formedness checks on the\n "
886
+ " goto program\n "
878
887
" --version show version and exit\n "
879
888
HELP_FLUSH
880
889
HELP_TIMESTAMP
Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ class optionst;
148
148
" (show)(verify)(simplify):" \
149
149
" (location-sensitive)(concurrent)" \
150
150
" (no-simplify-slicing)" \
151
+ " (validate-goto-model)" \
151
152
// clang-format on
152
153
153
154
class goto_analyzer_parse_optionst :
You can’t perform that action at this time.
0 commit comments