Suppression of "6 numbers" limit. New option to choose tree type.
This commit is contained in:
13
lceb.c
13
lceb.c
@@ -154,19 +154,20 @@ int main(ac, av)
|
||||
stacksize=ac-optind-1;
|
||||
nops=stacksize-1;
|
||||
|
||||
gen_combinations(nops);
|
||||
ncombs=n_combs();
|
||||
for (i=optind+1; i<ac; ++i) {
|
||||
val=atoi(av[i]);
|
||||
push_stack(&inputstack, val);
|
||||
}
|
||||
|
||||
|
||||
gen_stacks(&inputstack);
|
||||
|
||||
gen_combinations(nops);
|
||||
ncombs=n_combs();
|
||||
|
||||
if (treetype==TREE_CATALAN) {
|
||||
gen_tree(intarray, nops, 0, 0);
|
||||
gen_tree(intarray, nops, 0, 0, 0);
|
||||
} else {
|
||||
gen_reduced_trees(nops);
|
||||
gen_tree(intarray, nops, 0, 0, 1);
|
||||
//gen_reduced_trees(nops);
|
||||
}
|
||||
set_target(target);
|
||||
set_intr();
|
||||
|
Reference in New Issue
Block a user