| 166 | |
| 167 | |
| 168 | auto main() -> int |
| 169 | { |
| 170 | printf("DDS Examples: Par Calculation with SolverContext\n"); |
| 171 | printf("================================================\n"); |
| 172 | |
| 173 | #if defined(__linux) || defined(__APPLE__) |
| 174 | SetMaxThreads(0); |
| 175 | #endif |
| 176 | |
| 177 | // Run examples |
| 178 | example_without_context(); |
| 179 | example_with_context(); |
| 180 | example_mixed_usage(); |
| 181 | print_python_example(); |
| 182 | |
| 183 | printf("\n=== Summary ===\n"); |
| 184 | printf("✓ SolverContext provides resource management\n"); |
| 185 | printf("✓ Backward compatible - traditional API still works\n"); |
| 186 | printf("✓ Python bindings demonstrate context advantages\n"); |
| 187 | printf("✓ Transposition table reuse across operations\n"); |
| 188 | printf("✓ Improved efficiency for batch processing\n"); |
| 189 | |
| 190 | return 0; |
| 191 | } |
| 192 | |
| 193 |
nothing calls this directly
no test coverage detected