File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Author: Qinheping Hu
16
16
#include < goto-programs/set_properties.h>
17
17
#include < goto-programs/write_goto_binary.h>
18
18
19
+ #include < ansi-c/gcc_version.h>
19
20
#include < goto-instrument/contracts/contracts.h>
20
21
#include < goto-instrument/nondet_volatile.h>
21
22
@@ -52,6 +53,14 @@ int goto_synthesizer_parse_optionst::doit()
52
53
if (result_get_goto_program != CPROVER_EXIT_SUCCESS)
53
54
return result_get_goto_program;
54
55
56
+ // configure gcc, if required -- get_goto_program will have set the config
57
+ if (config.ansi_c .preprocessor == configt::ansi_ct::preprocessort::GCC)
58
+ {
59
+ gcc_versiont gcc_version;
60
+ gcc_version.get (" gcc" );
61
+ configure_gcc (gcc_version);
62
+ }
63
+
55
64
// Synthesize loop invariants and annotate them into `goto_model`
56
65
enumerative_loop_contracts_synthesizert synthesizer (goto_model, log);
57
66
const auto &invariant_map = synthesizer.synthesize_all ();
You can’t perform that action at this time.
0 commit comments