| 927 | } |
| 928 | |
| 929 | std::vector<instruction_ref> |
| 930 | module::get_inputs(const std::unordered_map<instruction_ref, instruction_ref>& map_ins) const |
| 931 | { |
| 932 | std::vector<instruction_ref> inputs; |
| 933 | auto params = this->get_parameters(); |
| 934 | sort_params(params); |
| 935 | |
| 936 | std::transform(params.begin(), |
| 937 | params.end(), |
| 938 | std::back_inserter(inputs), |
| 939 | [&](instruction_ref param) { return map_ins.at(param); }); |
| 940 | |
| 941 | return inputs; |
| 942 | } |
| 943 | |
| 944 | static std::vector<instruction_ref> |
| 945 | select_params(const std::vector<instruction_ref>& instructions, |