TODO: Make this fail if tiny_setup has not already been called
| 66 | |
| 67 | // TODO: Make this fail if tiny_setup has not already been called |
| 68 | int tiny_codegen(TinySolver* solver, const char* output_dir, int verbose) { |
| 69 | if (!solver) { |
| 70 | std::cout << "Error in tiny_codegen: solver is nullptr" << std::endl; |
| 71 | return 1; |
| 72 | } |
| 73 | int status = 0; |
| 74 | status |= codegen_create_directories(output_dir, verbose); |
| 75 | status |= codegen_data_header(output_dir, verbose); |
| 76 | status |= codegen_data_source(solver, output_dir, verbose); |
| 77 | status |= codegen_example(output_dir, verbose); |
| 78 | |
| 79 | return status; |
| 80 | } |
| 81 | |
| 82 | int tiny_codegen_with_sensitivity(TinySolver* solver, const char* output_dir, |
| 83 | tinyMatrix* dK, tinyMatrix* dP, |
no test coverage detected