diff --git a/unit/path_strategies.cpp b/unit/path_strategies.cpp index f10489563e4..be46c93d033 100644 --- a/unit/path_strategies.cpp +++ b/unit/path_strategies.cpp @@ -377,8 +377,9 @@ void _check_with_strategy( ret = cbmc_parse_optionst::get_goto_program(gm, opts, cmdline, log, mh); REQUIRE(ret == -1); - solver_factoryt solvers(opts, gm.get_symbol_table(), mh, false); - std::unique_ptr cbmc_solver = solvers.get_solver(); + solver_factoryt initial_solvers(opts, gm.get_symbol_table(), mh, false); + std::unique_ptr cbmc_solver = + initial_solvers.get_solver(); prop_convt &initial_pc = cbmc_solver->prop_conv(); std::function callback = []() { return false; }; diff --git a/unit/util/range.cpp b/unit/util/range.cpp index f1277473f24..4ab3c6f5a70 100644 --- a/unit/util/range.cpp +++ b/unit/util/range.cpp @@ -19,10 +19,10 @@ SCENARIO("range tests", "[core][util][range]") list.emplace_back("abc"); list.emplace_back("cdef"); list.emplace_back("acdef"); - auto range = make_range(list); - std::size_t total_length = 0; THEN("Use range-for to compute the total length") { + auto range = make_range(list); + std::size_t total_length = 0; for(const auto &s : range) total_length += s.length(); REQUIRE(total_length == 12);