diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-14 21:28:37 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-14 21:28:37 +0200 |
| commit | 61e03f9f4eecf3d5811b11c44c9ef778f0a93bc7 (patch) | |
| tree | a7a6edc2e44689ed62472bdece1d9bf6a300419f /test/103_gendata_h48_h0 | |
| parent | a016aa7f78c86c59bab3ae4970f8cc339186bc91 (diff) | |
| download | nissy-core-61e03f9f4eecf3d5811b11c44c9ef778f0a93bc7.tar.gz nissy-core-61e03f9f4eecf3d5811b11c44c9ef778f0a93bc7.zip | |
Found a sneaky bug (it's all a mess now)
Diffstat (limited to 'test/103_gendata_h48_h0')
| -rw-r--r-- | test/103_gendata_h48_h0/00_h_0.in | 0 | ||||
| -rw-r--r-- | test/103_gendata_h48_h0/00_h_0.out | 23 | ||||
| -rw-r--r-- | test/103_gendata_h48_h0/gendata_h48_tests.c | 33 |
3 files changed, 0 insertions, 56 deletions
diff --git a/test/103_gendata_h48_h0/00_h_0.in b/test/103_gendata_h48_h0/00_h_0.in deleted file mode 100644 index e69de29..0000000 --- a/test/103_gendata_h48_h0/00_h_0.in +++ /dev/null | |||
diff --git a/test/103_gendata_h48_h0/00_h_0.out b/test/103_gendata_h48_h0/00_h_0.out deleted file mode 100644 index cc5cf9b..0000000 --- a/test/103_gendata_h48_h0/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_h0/gendata_h48_tests.c b/test/103_gendata_h48_h0/gendata_h48_tests.c deleted file mode 100644 index e9de3c0..0000000 --- a/test/103_gendata_h48_h0/gendata_h48_tests.c +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | #define MAXDEPTH 5 | ||
| 4 | #define COCSEPSIZE 1119792 | ||
| 5 | #define ETABLESIZE ((3393 * 495 * 70) >> 1) | ||
| 6 | |||
| 7 | int64_t gendata_h48h0k4(void *, uint8_t); | ||
| 8 | |||
| 9 | void run(void) { | ||
| 10 | char str[STRLENMAX]; | ||
| 11 | uint8_t i; | ||
| 12 | uint32_t *buf, *h48info; | ||
| 13 | size_t result; | ||
| 14 | |||
| 15 | fgets(str, STRLENMAX, stdin); | ||
| 16 | buf = (uint32_t *)malloc(sizeof(uint32_t) * 60000000); | ||
| 17 | result = gendata_h48h0k4(buf, MAXDEPTH); | ||
| 18 | h48info = buf + (ETABLESIZE + COCSEPSIZE) / 4; | ||
| 19 | |||
| 20 | printf("%zu\n\n", result); | ||
| 21 | |||
| 22 | printf("cocsepdata:\n"); | ||
| 23 | printf("Classes: %" PRIu32 "\n", buf[COCSEPSIZE/4-12]); | ||
| 24 | printf("Max value: %" PRIu32 "\n", buf[COCSEPSIZE/4-11]); | ||
| 25 | for (i = 0; i < 10; i++) | ||
| 26 | printf("%" PRIu32 ": %" PRIu32 "\n", i, buf[COCSEPSIZE/4-10+i]); | ||
| 27 | |||
| 28 | printf("\nh48:\n"); | ||
| 29 | for (i = 0; i < MAXDEPTH+1; i++) | ||
| 30 | printf("%" PRIu32 ": %" PRIu32 "\n", i, h48info[i+1]); | ||
| 31 | |||
| 32 | free(buf); | ||
| 33 | } | ||
