MCPcopy Create free account
hub / github.com/dds-bridge/dds / main

Function main

examples/par.cpp:21–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21auto 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}

Callers

nothing calls this directly

Calls 7

SetMaxThreadsFunction · 0.85
set_tableFunction · 0.85
ParFunction · 0.85
ErrorMessageFunction · 0.85
compare_parFunction · 0.85
print_tableFunction · 0.85
print_parFunction · 0.85

Tested by

no test coverage detected