Skip to content

Commit 54734ff

Browse files
author
Daniel Kroening
committed
status code on --show-loops and --show-goto-functions is now zero; fixes #178
1 parent 79df5ce commit 54734ff

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/cbmc/cbmc_parse_options.cpp

+15-15
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,21 @@ int cbmc_parse_optionst::get_goto_program(
742742

743743
if(process_goto_program(options, goto_functions))
744744
return 6;
745+
746+
// show it?
747+
if(cmdline.isset("show-loops"))
748+
{
749+
show_loop_ids(get_ui(), goto_functions);
750+
return 0;
751+
}
752+
753+
// show it?
754+
if(cmdline.isset("show-goto-functions"))
755+
{
756+
namespacet ns(symbol_table);
757+
show_goto_functions(ns, get_ui(), goto_functions);
758+
return 0;
759+
}
745760
}
746761

747762
catch(const char *e)
@@ -961,21 +976,6 @@ bool cbmc_parse_optionst::process_goto_program(
961976
// remove skips
962977
remove_skip(goto_functions);
963978
goto_functions.update();
964-
965-
// show it?
966-
if(cmdline.isset("show-loops"))
967-
{
968-
show_loop_ids(get_ui(), goto_functions);
969-
return true;
970-
}
971-
972-
// show it?
973-
if(cmdline.isset("show-goto-functions"))
974-
{
975-
namespacet ns(symbol_table);
976-
show_goto_functions(ns, get_ui(), goto_functions);
977-
return true;
978-
}
979979
}
980980

981981
catch(const char *e)

0 commit comments

Comments
 (0)