aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorMarvin Borner2024-01-21 12:32:30 +0100
committerMarvin Borner2024-01-21 12:32:30 +0100
commit95e390fa271a0b911a5e0475f24f2fee55f3edec (patch)
treec7e35d975f0a7f3a0fe24110a3fa9ec7e3cfd8cd /src/main.c
parent076d528bfaa55b71f9653c0579723ff565db5e7f (diff)
Configurable minimum tree sizeHEADmain
For cool optimizer in blocade, hint hint :)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8a47a44..f217cf7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -17,6 +17,9 @@
// automatically generated using gengetopt
#include "cmdline.h"
+// min size for a term to be considered for deduplication
+size_t min_size = 0;
+
#define BUF_SIZE 1024
static char *read_stdin(void)
{
@@ -179,6 +182,9 @@ int main(int argc, char **argv)
if (!input)
return 1;
+ min_size = args.min_size_arg;
+ debug("min tree size: %lu\n", min_size);
+
if (args.test_flag && args.from_blc_flag && !args.from_bloc_flag) {
test(input);
return 0;