| 1498 | void module::print_cpp(std::ostream& os) const { this->print_cpp(os, this->name(), {}); } |
| 1499 | |
| 1500 | void module::annotate(std::ostream& os, std::function<void(instruction_ref)> a) const |
| 1501 | { |
| 1502 | this->print([&](auto ins, const auto& ins_names) { |
| 1503 | instruction::print(os, ins, ins_names); |
| 1504 | a(ins); |
| 1505 | os << std::endl; |
| 1506 | }); |
| 1507 | } |
| 1508 | |
| 1509 | std::vector<module_ref> module::get_sub_modules(bool shallow) const |
| 1510 | { |