Skip to content

Commit eb5e079

Browse files
author
Daniel Kroening
committed
spaces
1 parent b29de62 commit eb5e079

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

src/cegis/cegis-util/cbmc_runner.cpp

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#include <util/config.h>
22
#include <util/substitute.h>
3+
34
#include <cbmc/cbmc_parse_options.h>
45
#include <cbmc/bmc.h>
6+
57
#include <goto-programs/goto_trace.h>
68
#include <goto-programs/write_goto_binary.h>
79

@@ -45,31 +47,38 @@ class cbmc_runnert: public cbmc_parse_optionst
4547
cbmc_resultt &result;
4648
safety_checkert::resultt bmc_result;
4749
const bool keep_goto_programs;
50+
4851
public:
49-
cbmc_runnert(const symbol_tablet &st, const goto_functionst &gf,
50-
cbmc_resultt &result, const bool keep_goto_programs) :
51-
cbmc_parse_optionst(get_argc(), get_argv()), st(st), gf(gf), result(
52+
cbmc_runnert(
53+
const symbol_tablet &st,
54+
const goto_functionst &gf,
55+
cbmc_resultt &result,
56+
const bool keep_goto_programs) :
57+
cbmc_parse_optionst(get_argc(), get_argv()), st(st), gf(gf), result(
5258
result), bmc_result(safety_checkert::UNSAFE), keep_goto_programs(
5359
keep_goto_programs)
5460
{
5561
}
5662

5763
virtual ~cbmc_runnert()=default;
5864

59-
virtual int get_goto_program(const optionst &options, bmct &bmc,
60-
goto_functionst &goto_functions)
65+
virtual int get_goto_program(
66+
const optionst &options,
67+
bmct &bmc,
68+
goto_functionst &goto_functions)
6169
{
6270
symbol_table.clear();
6371
symbol_table=st;
6472
goto_functions.clear();
6573
goto_functions.copy_from(gf);
66-
if (process_goto_program(options, goto_functions)) return 6;
67-
if (keep_goto_programs)
74+
if(process_goto_program(options, goto_functions)) return 6;
75+
if(keep_goto_programs)
6876
{
6977
const std::string path(get_next_goto_file_name());
7078
message_handlert &msg=get_message_handler();
7179
write_goto_binary(path, symbol_table, goto_functions, msg);
7280
}
81+
7382
return -1;
7483
}
7584

@@ -92,9 +101,11 @@ class cbmc_runnert: public cbmc_parse_optionst
92101
};
93102
}
94103

95-
safety_checkert::resultt run_cbmc(const symbol_tablet &st,
96-
const goto_functionst &gf, cbmc_resultt &cbmc_result,
97-
const bool keep_goto_programs)
104+
safety_checkert::resultt run_cbmc(
105+
const symbol_tablet &st,
106+
const goto_functionst &gf,
107+
cbmc_resultt &cbmc_result,
108+
const bool keep_goto_programs)
98109
{
99110
const temporary_output_blockt disable_output;
100111
cbmc_runnert runner(st, gf, cbmc_result, keep_goto_programs);
@@ -105,9 +116,11 @@ safety_checkert::resultt run_cbmc(const symbol_tablet &st,
105116
return runner.get_bmc_result();
106117
}
107118

108-
safety_checkert::resultt run_cbmc(const symbol_tablet &st,
109-
const goto_functionst &gf, cbmc_resultt &cbmc_result,
110-
const optionst &o)
119+
safety_checkert::resultt run_cbmc(
120+
const symbol_tablet &st,
121+
const goto_functionst &gf,
122+
cbmc_resultt &cbmc_result,
123+
const optionst &o)
111124
{
112125
return run_cbmc(st, gf, cbmc_result, o.get_bool_option(CEGIS_KEEP_GOTO_PROGRAMS));
113126
}

0 commit comments

Comments
 (0)