aboutsummaryrefslogtreecommitdiff
path: root/tools/001_derive_h48
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-10-10 14:30:39 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-10-10 14:30:39 +0200
commitf8d247c53c3c3bd94fed645b5b47a9096cadc123 (patch)
tree7a62cc7322ea8175a7df9b655d4a9d5e026a004a /tools/001_derive_h48
parent2e93de4ad102973961cb24d5b91f0c299763299f (diff)
downloadnissy-core-f8d247c53c3c3bd94fed645b5b47a9096cadc123.tar.gz
nissy-core-f8d247c53c3c3bd94fed645b5b47a9096cadc123.zip
Removed "options" from solver selection
Now the solver name fully determines the solver (and options) to be used. For example, now one must specify "h48h0k4" as the name of the solver. This PR also fixes a couple of things in tools.
Diffstat (limited to 'tools/001_derive_h48')
-rw-r--r--tools/001_derive_h48/derive_h48.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/001_derive_h48/derive_h48.c b/tools/001_derive_h48/derive_h48.c
index ba282ff..c5f28c8 100644
--- a/tools/001_derive_h48/derive_h48.c
+++ b/tools/001_derive_h48/derive_h48.c
@@ -11,25 +11,25 @@ edit the base value in the source code and recompile.
11 11
12#include "../tool.h" 12#include "../tool.h"
13 13
14char *opts_large, *opts_small, *filename_large, *filename_small; 14char *solver_large, *solver_small, *filename_large, *filename_small;
15 15
16void run(void) { 16void run(void) {
17 derivedata_run(opts_large, opts_small, filename_large, filename_small); 17 derivedata_run(solver_large, solver_small, filename_large, filename_small);
18} 18}
19 19
20int main(int argc, char **argv) { 20int main(int argc, char **argv) {
21 if (argc < 5) { 21 if (argc < 5) {
22 fprintf(stderr, 22 fprintf(stderr,
23 "Error: not enough arguments. Required:\n" 23 "Error: not enough arguments. Required:\n"
24 "1. Options for large table\n" 24 "1. Solver name for large table\n"
25 "2. Options for derived table\n" 25 "2. Solver name for derived table\n"
26 "3. Filename containing large table\n" 26 "3. Filename containing large table\n"
27 "4. Filename for saving derived table\n"); 27 "4. Filename for saving derived table\n");
28 return 1; 28 return 1;
29 } 29 }
30 30
31 opts_large = argv[1]; 31 solver_large = argv[1];
32 opts_small = argv[2]; 32 solver_small = argv[2];
33 filename_large = argv[3]; 33 filename_large = argv[3];
34 filename_small = argv[4]; 34 filename_small = argv[4];
35 35

Generated with cgit - Back to sebastiano.tronto.net