Skip to content

Commit d970673

Browse files
Move show-loops in the right place in goto-diff
Goto-diff does not yet properly use initialize_goto_model. Will require further fixes.
1 parent e1227ef commit d970673

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/goto-diff/goto_diff_parse_options.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@ int goto_diff_parse_optionst::doit()
280280
if(get_goto_program_ret!=-1)
281281
return get_goto_program_ret;
282282

283+
if(cmdline.isset("show-loops"))
284+
{
285+
show_loop_ids(get_ui(), goto_model1);
286+
show_loop_ids(get_ui(), goto_model2);
287+
return true;
288+
}
289+
283290
if(
284291
cmdline.isset("show-goto-functions") ||
285292
cmdline.isset("list-goto-functions"))
@@ -438,13 +445,6 @@ bool goto_diff_parse_optionst::process_goto_program(
438445

439446
// add loop ids
440447
goto_functions.compute_loop_numbers();
441-
442-
// show it?
443-
if(cmdline.isset("show-loops"))
444-
{
445-
show_loop_ids(get_ui(), goto_model);
446-
return true;
447-
}
448448
}
449449

450450
catch(const char *e)

0 commit comments

Comments
 (0)