| 32 | } |
| 33 | |
| 34 | std::unique_ptr<luci::Module> MPQSolver::readModule(const std::string &path) |
| 35 | { |
| 36 | luci::ImporterEx importerex; |
| 37 | auto module = importerex.importVerifyModule(path); |
| 38 | if (module.get() == nullptr) |
| 39 | { |
| 40 | throw std::runtime_error("Failed to load model"); |
| 41 | } |
| 42 | |
| 43 | return module; |
| 44 | } |
nothing calls this directly
no test coverage detected