File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -531,6 +531,9 @@ void cbmc_parse_optionst::get_command_line_options(optionst &options)
531
531
options.set_option (" show-points-to-sets" , true );
532
532
533
533
PARSE_OPTIONS_GOTO_TRACE (cmdline, options);
534
+
535
+ // Options for process_goto_program
536
+ options.set_option (" rewrite-union" , true );
534
537
}
535
538
536
539
// / invoke main modules
@@ -958,7 +961,8 @@ bool cbmc_parse_optionst::process_goto_program(
958
961
remove_returns (goto_model);
959
962
remove_vector (goto_model);
960
963
remove_complex (goto_model);
961
- rewrite_union (goto_model);
964
+ if (options.get_bool_option (" rewrite-union" ))
965
+ rewrite_union (goto_model);
962
966
963
967
// add generic checks
964
968
log .status () << " Generic Property Instrumentation" << messaget::eom;
Original file line number Diff line number Diff line change 41
41
#include < goto-programs/remove_returns.h>
42
42
#include < goto-programs/remove_vector.h>
43
43
#include < goto-programs/remove_virtual_functions.h>
44
+ #include < goto-programs/rewrite_union.h>
44
45
#include < goto-programs/set_properties.h>
45
46
#include < goto-programs/show_properties.h>
46
47
#include < goto-programs/show_symbol_table.h>
@@ -610,6 +611,7 @@ int goto_analyzer_parse_optionst::doit()
610
611
611
612
// Perserve backwards compatability in processing
612
613
options.set_option (" partial-inline" , true );
614
+ options.set_option (" rewrite-union" , false );
613
615
614
616
if (process_goto_program (options))
615
617
return CPROVER_EXIT_INTERNAL_ERROR;
@@ -919,6 +921,8 @@ bool goto_analyzer_parse_optionst::process_goto_program(
919
921
remove_returns (goto_model);
920
922
remove_vector (goto_model);
921
923
remove_complex (goto_model);
924
+ if (options.get_bool_option (" rewrite-union" ))
925
+ rewrite_union (goto_model);
922
926
923
927
#if 0
924
928
// add generic checks
Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ void goto_diff_parse_optionst::get_command_line_options(optionst &options)
169
169
}
170
170
171
171
options.set_option (" show-properties" , cmdline.isset (" show-properties" ));
172
+
173
+ // Options for process_goto_program
174
+ options.set_option (" rewrite-union" , true );
172
175
}
173
176
174
177
// / invoke main modules
@@ -313,7 +316,8 @@ bool goto_diff_parse_optionst::process_goto_program(
313
316
remove_returns (goto_model);
314
317
remove_vector (goto_model);
315
318
remove_complex (goto_model);
316
- rewrite_union (goto_model);
319
+ if (options.get_bool_option (" rewrite-union" ))
320
+ rewrite_union (goto_model);
317
321
318
322
// add generic checks
319
323
log .status () << " Generic Property Instrumentation" << messaget::eom;
You can’t perform that action at this time.
0 commit comments