diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-08 19:22:16 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-08 19:22:16 +0200 |
| commit | c2275e4b9625a1a19eb50d0880f70ed583d5c358 (patch) | |
| tree | f1b6798f017dd62ece5b56f05d5c7201ba50ff39 /test/103_gendata_h48 | |
| parent | 66c1c11ec13d362ddfb1b5f6abe8127969c0ad29 (diff) | |
| download | nissy-core-c2275e4b9625a1a19eb50d0880f70ed583d5c358.tar.gz nissy-core-c2275e4b9625a1a19eb50d0880f70ed583d5c358.zip | |
Stats for h48 solver as tool
Diffstat (limited to 'test/103_gendata_h48')
| -rw-r--r-- | test/103_gendata_h48/00_h_0.in | 1 | ||||
| -rw-r--r-- | test/103_gendata_h48/00_h_0.out | 23 | ||||
| -rw-r--r-- | test/103_gendata_h48/01_h_1.in | 1 | ||||
| -rw-r--r-- | test/103_gendata_h48/01_h_1.out | 23 | ||||
| -rw-r--r-- | test/103_gendata_h48/gendata_h48_tests.c | 34 |
5 files changed, 0 insertions, 82 deletions
diff --git a/test/103_gendata_h48/00_h_0.in b/test/103_gendata_h48/00_h_0.in deleted file mode 100644 index 573541a..0000000 --- a/test/103_gendata_h48/00_h_0.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | 0 | ||
diff --git a/test/103_gendata_h48/00_h_0.out b/test/103_gendata_h48/00_h_0.out deleted file mode 100644 index cc5cf9b..0000000 --- a/test/103_gendata_h48/00_h_0.out +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | 59903605 | ||
| 2 | |||
| 3 | cocsepdata: | ||
| 4 | Classes: 3393 | ||
| 5 | Max value: 9 | ||
| 6 | 0: 1 | ||
| 7 | 1: 6 | ||
| 8 | 2: 63 | ||
| 9 | 3: 468 | ||
| 10 | 4: 3068 | ||
| 11 | 5: 15438 | ||
| 12 | 6: 53814 | ||
| 13 | 7: 71352 | ||
| 14 | 8: 8784 | ||
| 15 | 9: 96 | ||
| 16 | |||
| 17 | h48: | ||
| 18 | 0: 1 | ||
| 19 | 1: 1 | ||
| 20 | 2: 4 | ||
| 21 | 3: 34 | ||
| 22 | 4: 329 | ||
| 23 | 5: 3587 | ||
diff --git a/test/103_gendata_h48/01_h_1.in b/test/103_gendata_h48/01_h_1.in deleted file mode 100644 index d00491f..0000000 --- a/test/103_gendata_h48/01_h_1.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | 1 | ||
diff --git a/test/103_gendata_h48/01_h_1.out b/test/103_gendata_h48/01_h_1.out deleted file mode 100644 index bd0931c..0000000 --- a/test/103_gendata_h48/01_h_1.out +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | 118687330 | ||
| 2 | |||
| 3 | cocsepdata: | ||
| 4 | Classes: 3393 | ||
| 5 | Max value: 9 | ||
| 6 | 0: 1 | ||
| 7 | 1: 6 | ||
| 8 | 2: 63 | ||
| 9 | 3: 468 | ||
| 10 | 4: 3068 | ||
| 11 | 5: 15438 | ||
| 12 | 6: 53814 | ||
| 13 | 7: 71352 | ||
| 14 | 8: 8784 | ||
| 15 | 9: 96 | ||
| 16 | |||
| 17 | h48: | ||
| 18 | 0: 1 | ||
| 19 | 1: 1 | ||
| 20 | 2: 4 | ||
| 21 | 3: 34 | ||
| 22 | 4: 375 | ||
| 23 | 5: 4078 | ||
diff --git a/test/103_gendata_h48/gendata_h48_tests.c b/test/103_gendata_h48/gendata_h48_tests.c deleted file mode 100644 index 666f9f6..0000000 --- a/test/103_gendata_h48/gendata_h48_tests.c +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | #define MAXDEPTH 5 | ||
| 4 | #define COCSEPSIZE 1119792 | ||
| 5 | #define ETABLESIZE(h) (((3393 * 495 * 70) >> 1) << (size_t)(h)) | ||
| 6 | |||
| 7 | size_t gendata_h48(void *, uint8_t, uint8_t); | ||
| 8 | |||
| 9 | void run(void) { | ||
| 10 | char str[STRLENMAX]; | ||
| 11 | uint8_t h, i; | ||
| 12 | uint32_t *buf, *h48info; | ||
| 13 | size_t result; | ||
| 14 | |||
| 15 | fgets(str, STRLENMAX, stdin); | ||
| 16 | h = atoi(str); | ||
| 17 | buf = (uint32_t *)malloc(sizeof(uint32_t) * (60000000 << h)); | ||
| 18 | result = gendata_h48(buf, h, MAXDEPTH); | ||
| 19 | h48info = buf + (ETABLESIZE(h) + COCSEPSIZE) / 4; | ||
| 20 | |||
| 21 | printf("%zu\n\n", result); | ||
| 22 | |||
| 23 | printf("cocsepdata:\n"); | ||
| 24 | printf("Classes: %" PRIu32 "\n", buf[COCSEPSIZE/4-12]); | ||
| 25 | printf("Max value: %" PRIu32 "\n", buf[COCSEPSIZE/4-11]); | ||
| 26 | for (i = 0; i < 10; i++) | ||
| 27 | printf("%" PRIu32 ": %" PRIu32 "\n", i, buf[COCSEPSIZE/4-10+i]); | ||
| 28 | |||
| 29 | printf("\nh48:\n"); | ||
| 30 | for (i = 0; i < MAXDEPTH+1; i++) | ||
| 31 | printf("%" PRIu32 ": %" PRIu32 "\n", i, h48info[i+1]); | ||
| 32 | |||
| 33 | free(buf); | ||
| 34 | } | ||
