| 822 | } |
| 823 | |
| 824 | instruction_ref module::validate() const |
| 825 | { |
| 826 | return std::find_if( |
| 827 | impl->instructions.begin(), impl->instructions.end(), [&](const instruction& i) { |
| 828 | auto inputs = i.inputs(); |
| 829 | bool check_order = std::all_of( |
| 830 | inputs.begin(), inputs.end(), [&](auto in) { return has_instruction(in); }); |
| 831 | return not i.valid(impl->instructions.begin(), check_order); |
| 832 | }); |
| 833 | } |
| 834 | |
| 835 | static bool is_borrowed(instruction_ref ins) |
| 836 | { |
no test coverage detected