| 19 | |
| 20 | |
| 21 | auto main() -> int |
| 22 | { |
| 23 | DdTableResults DDtable; |
| 24 | ParResults pres; |
| 25 | |
| 26 | int res; |
| 27 | char line[80]; |
| 28 | bool match; |
| 29 | |
| 30 | #if defined(__linux) || defined(__APPLE__) |
| 31 | SetMaxThreads(0); |
| 32 | #endif |
| 33 | |
| 34 | for (int handno = 0; handno < 3; handno++) |
| 35 | { |
| 36 | set_table(&DDtable, handno); |
| 37 | |
| 38 | res = Par(&DDtable, &pres, vulnerability_[handno]); |
| 39 | |
| 40 | if (res != RETURN_NO_FAULT) |
| 41 | { |
| 42 | ErrorMessage(res, line); |
| 43 | printf("DDS error: %s\n", line); |
| 44 | } |
| 45 | |
| 46 | match = compare_par(&pres, handno); |
| 47 | |
| 48 | printf("Par, hand %d: %s\n\n", |
| 49 | handno + 1, (match ? "OK" : "ERROR")); |
| 50 | |
| 51 | print_table(&DDtable); |
| 52 | |
| 53 | print_par(&pres); |
| 54 | } |
| 55 | } |
nothing calls this directly
no test coverage detected