On Fri, 05 Jul 2024, David Gibson wrote: I may be missing something subtle, but is j intended to be used twice here, rather than k?+ +static void check_all_orders(void) +{ + int norders = sizeof(orders) / sizeof(orders[0]); + int i, j, k, l; + + for (i = 0; i < norders; i++) + for (j = 0; j < norders; j++) + for (k = 0; k < norders; k++) + for (l = 0; l < norders; l++) + check_one_order(orders[i], orders[j], + orders[j], orders[l]);--------------------------------------------------------^^^^^^^^^+}-- David Taylor