| 9 | namespace { |
| 10 | int failures = 0; |
| 11 | void check(bool ok, const char* what) { |
| 12 | if (!ok) { |
| 13 | std::fprintf(stderr, "FAIL: %s\n", what); |
| 14 | ++failures; |
| 15 | } |
| 16 | } |
| 17 | const char* run(const int* rows, const long long* p, int S, int n_slots, int max_t, int hbase, bool handoff) { |
| 18 | int64_t pos[8]; |
| 19 | for (int t = 0; t < S; ++t) pos[t] = p[t]; |