From e3c229337c1f80534c730cc6ebe5cf8eeb7e73c1 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Sun, 2 Jul 2023 15:56:21 +0200 Subject: [PATCH] debug --- thiersort.h | 2 ++ ypsu.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/thiersort.h b/thiersort.h index 5c6ef11..9e4d5c7 100644 --- a/thiersort.h +++ b/thiersort.h @@ -619,8 +619,10 @@ fprintf(stderr, "p: %d\n", pivotkey.u); TSU32 lefti = arr[left].i; while((left < right) && lt(leftkey, pivotkey, lefti, pivoti, reent_data)) { /* Step */ +if(from == 696203) fprintf(stderr, "L... %d\n", left); ++left; +if(from == 696203) fprintf(stderr, "...L %d\n", left); leftkey = arr[left].key; lefti = arr[left].i; diff --git a/ypsu.cpp b/ypsu.cpp index 9472d28..7925f8e 100644 --- a/ypsu.cpp +++ b/ypsu.cpp @@ -575,7 +575,7 @@ int main(void) { assert(w == expected); */ w = v; - //w = {10, 20, 5, 200, 42, 41, 43, 5}; + w = {10, 20, 20}; measure(inputtype, "qsmine", [&] { thier_quicksort(&w[0], w.size()); }); if(w != expected) { for(uint32_t i = 0; i < n; ++i) {