#define CHECK(expected, actual, msg) \
  fprintf(stderr, "Checking '%s': ", msg); if (expected!=actual) {  fprintf(stderr, " failed, Expected: %d  Got: %d\n", expected, actual); failures++; } else { printf ("OK\n");successes++; }


