diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-18 08:48:13 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-18 08:48:13 +0200 |
| commit | 8b94d135429a9f3253cc7f25a1453b412065c4a0 (patch) | |
| tree | 4a31d6def5421e95fb98505a2bc2653c18fca330 /tools | |
| parent | 30b43f08955158d4f2066f4b50fe8d1241b3177b (diff) | |
| download | nissy-core-8b94d135429a9f3253cc7f25a1453b412065c4a0.tar.gz nissy-core-8b94d135429a9f3253cc7f25a1453b412065c4a0.zip | |
Refactor solver dispatch and checkdata
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/000_gendata/gendata.c | 2 | ||||
| -rw-r--r-- | tools/expected_distributions.h | 2 | ||||
| -rw-r--r-- | tools/nissy_extra.h | 2 | ||||
| -rw-r--r-- | tools/tool.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tools/000_gendata/gendata.c b/tools/000_gendata/gendata.c index cd7fb0f..66c4864 100644 --- a/tools/000_gendata/gendata.c +++ b/tools/000_gendata/gendata.c | |||
| @@ -49,7 +49,7 @@ int main(int argc, char **argv) { | |||
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | solver = argv[1]; | 51 | solver = argv[1]; |
| 52 | parse_h48_solver(solver, &h, &k); | 52 | parse_h48_hk(solver, &h, &k); |
| 53 | expected = expected_h48[h][k]; | 53 | expected = expected_h48[h][k]; |
| 54 | 54 | ||
| 55 | nissy_setlogger(log_stderr, NULL); | 55 | nissy_setlogger(log_stderr, NULL); |
diff --git a/tools/expected_distributions.h b/tools/expected_distributions.h index 12faf1d..1193fb3 100644 --- a/tools/expected_distributions.h +++ b/tools/expected_distributions.h | |||
| @@ -160,7 +160,7 @@ uint64_t expected_dreo[21] = { | |||
| 160 | [4] = 160, | 160 | [4] = 160, |
| 161 | [5] = 1286, | 161 | [5] = 1286, |
| 162 | [6] = 8550, | 162 | [6] = 8550, |
| 163 | [7] = 42512, | 163 | [7] = 42152, |
| 164 | [8] = 90748, | 164 | [8] = 90748, |
| 165 | [9] = 33466, | 165 | [9] = 33466, |
| 166 | [10] = 757, | 166 | [10] = 757, |
diff --git a/tools/nissy_extra.h b/tools/nissy_extra.h index 8b27c3e..9a7df50 100644 --- a/tools/nissy_extra.h +++ b/tools/nissy_extra.h | |||
| @@ -10,5 +10,5 @@ for testing purposes only. | |||
| 10 | #include "../src/solvers/tables.h" | 10 | #include "../src/solvers/tables.h" |
| 11 | 11 | ||
| 12 | size_t gendata_h48_derive(uint8_t, const unsigned char *, unsigned char *); | 12 | size_t gendata_h48_derive(uint8_t, const unsigned char *, unsigned char *); |
| 13 | long long parse_h48_solver(const char *, uint8_t [static 1], uint8_t [static 1]); | 13 | long long parse_h48_hk(const char *, uint8_t [static 1], uint8_t [static 1]); |
| 14 | long long int nissy_datainfo(uint64_t, const unsigned char *); | 14 | long long int nissy_datainfo(uint64_t, const unsigned char *); |
diff --git a/tools/tool.h b/tools/tool.h index 77cdf34..225f789 100644 --- a/tools/tool.h +++ b/tools/tool.h | |||
| @@ -126,7 +126,7 @@ derivetable( | |||
| 126 | goto derivetable_error; | 126 | goto derivetable_error; |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | if (parse_h48_solver(solver_small, &h, &k) != 0) { | 129 | if (parse_h48_hk(solver_small, &h, &k) != NISSY_OK) { |
| 130 | gensize = -3; | 130 | gensize = -3; |
| 131 | goto derivetable_error; | 131 | goto derivetable_error; |
| 132 | } | 132 | } |
