Skip to content

Commit d6da5dd

Browse files
committed
Do not shadow local variables solvers, pc
Instead rename the outer variant to initial_solvers, initial_pc.
1 parent e24e948 commit d6da5dd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

unit/path_strategies.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,16 @@ void _check_with_strategy(
376376
ret = cbmc_parse_optionst::get_goto_program(gm, opts, cmdline, log, mh);
377377
REQUIRE(ret == -1);
378378

379-
cbmc_solverst solvers(opts, gm.get_symbol_table(), mh, false);
380-
std::unique_ptr<cbmc_solverst::solvert> cbmc_solver = solvers.get_solver();
381-
prop_convt &pc = cbmc_solver->prop_conv();
379+
cbmc_solverst initial_solvers(opts, gm.get_symbol_table(), mh, false);
380+
std::unique_ptr<cbmc_solverst::solvert> cbmc_solver =
381+
initial_solvers.get_solver();
382+
prop_convt &initial_pc = cbmc_solver->prop_conv();
382383
std::function<bool(void)> callback = []() { return false; };
383384

384385
safety_checkert::resultt overall_result = safety_checkert::resultt::SAFE;
385386
std::size_t expected_results_cnt = 0;
386387

387-
bmct bmc(opts, gm.get_symbol_table(), mh, pc, *worklist, callback);
388+
bmct bmc(opts, gm.get_symbol_table(), mh, initial_pc, *worklist, callback);
388389
safety_checkert::resultt tmp_result = bmc.run(gm);
389390

390391
if(tmp_result != safety_checkert::resultt::PAUSED)

0 commit comments

Comments
 (0)