| 45 | } |
| 46 | |
| 47 | void sort_params(std::vector<instruction_ref>& params) |
| 48 | { |
| 49 | std::sort(params.begin(), params.end(), by(std::less<>{}, [](instruction_ref ins) { |
| 50 | const auto& param = any_cast<const builtin::param&>(ins->get_operator()); |
| 51 | return param.parameter; |
| 52 | })); |
| 53 | } |
| 54 | |
| 55 | template <class F> |
| 56 | static std::vector<instruction_ref> |
no test coverage detected