@@ -15,17 +15,32 @@ Author: Qinheping Hu
1515
1616#include < goto-programs/read_goto_binary.h>
1717#include < goto-programs/set_properties.h>
18+ #include < goto-programs/show_goto_functions.h>
19+ #include < goto-programs/show_properties.h>
1820#include < goto-programs/write_goto_binary.h>
1921
2022#include < ansi-c/gcc_version.h>
23+ #include < cbmc/cbmc_parse_options.h>
2124#include < goto-instrument/contracts/contracts.h>
2225#include < goto-instrument/nondet_volatile.h>
26+ #include < goto-instrument/reachability_slicer.h>
2327
2428#include " enumerative_loop_contracts_synthesizer.h"
2529
2630#include < fstream>
2731#include < iostream>
2832
33+ goto_synthesizer_parse_optionst::goto_synthesizer_parse_optionst (
34+ int argc,
35+ const char **argv)
36+ : parse_options_baset(
37+ GOTO_SYNTHESIZER_OPTIONS CBMC_OPTIONS,
38+ argc,
39+ argv,
40+ " goto-synthesizer" )
41+ {
42+ }
43+
2944// / invoke main modules
3045int goto_synthesizer_parse_optionst::doit ()
3146{
@@ -58,7 +73,7 @@ int goto_synthesizer_parse_optionst::doit()
5873 configure_gcc (gcc_version);
5974 }
6075
61- // Get options and preprocess `goto_model`.
76+ // Get options for the backend verifier and preprocess `goto_model`.
6277 const auto &options = get_options ();
6378
6479 // Synthesize loop invariants and annotate them into `goto_model`
@@ -231,7 +246,8 @@ void goto_synthesizer_parse_optionst::help()
231246 " \n "
232247 " Main options:\n " HELP_DUMP_LOOP_CONTRACTS HELP_LOOP_CONTRACTS_NO_UNWIND
233248 " \n "
234- " Backend options:\n " HELP_CONFIG_BACKEND HELP_SOLVER
249+ " Accepts all of cbmc's options plus the following backend "
250+ " options:\n " HELP_CONFIG_BACKEND HELP_SOLVER
235251 " \n "
236252 " {y--arrays-uf-never} \t never turn arrays into uninterpreted functions\n "
237253 " {y--arrays-uf-always} \t always turn arrays into uninterpreted"
0 commit comments