25 const std::string &lambda_method_ref)
27 typedef java_bytecode_parse_treet::classt::lambda_method_handle_mapt::
28 value_type lambda_method_entryt;
30 INFO(
"Looking for entry with lambda_method_ref: " << lambda_method_ref);
31 const irep_idt method_ref_with_prefix =
34 std::vector<lambda_method_entryt> matches;
38 back_inserter(matches),
39 [&method_ref_with_prefix](
const lambda_method_entryt &entry) {
41 entry.second.get_method_descriptor().get_identifier() ==
42 method_ref_with_prefix);
44 REQUIRE(matches.size() == 1);
45 return matches.at(0).second;
56 const auto method = std::find_if(
60 return method.name == method_name;
63 INFO(
"Looking for method: " << method_name);
64 std::ostringstream found_methods;
65 for(
const auto &entry : parsed_class.
methods)
67 found_methods <<
id2string(entry.name) << std::endl;
69 INFO(
"Found methods:\n" << found_methods.str());
71 REQUIRE(method != parsed_class.
methods.end());
83 REQUIRE(instructions.size() == expected_instructions.size());
84 auto actual_instruction_it = instructions.begin();
85 for(
const auto &expected_instruction : expected_instructions)
87 expected_instruction.require_instructions_equal(*actual_instruction_it);
88 ++actual_instruction_it;
100 auto actual_arg_it = actual_instruction.
args.begin();
101 for(
const exprt &expected_arg : actual_instruction.
args)
103 INFO(
"Expected argument" << expected_arg.
pretty());
104 INFO(
"Actual argument" << actual_arg_it->pretty());
105 REQUIRE(*actual_arg_it == expected_arg);