postproc: introduce -x merge-states-min

* spot/twaalgos/postproc.cc, spot/twaalgos/postproc.hh: Introduce a
merge-states-min option.
* bin/spot-x.cc: Document it.
* spot/gen/automata.cc, spot/gen/automata.hh, bin/genaut.cc: Add
option to generate cyclist test cases.
* NEWS: Document the above.
* tests/core/included.test: Add test cases that used to be too slow.
This commit is contained in:
Alexandre Duret-Lutz 2022-09-13 13:53:59 +02:00
parent d9248e2e97
commit b3b22388c9
8 changed files with 99 additions and 8 deletions

View file

@ -89,6 +89,7 @@ namespace spot
wdba_minimize_ = opt->get("wdba-minimize", -1);
gen_reduce_parity_ = opt->get("gen-reduce-parity", 1);
simul_max_ = opt->get("simul-max", 4096);
merge_states_min_ = opt->get("merge-states-min", 128);
wdba_det_max_ = opt->get("wdba-det-max", 4096);
simul_trans_pruning_ = opt->get("simul-trans-pruning", 512);
@ -118,6 +119,9 @@ namespace spot
{
if (opt == 0)
return a;
if (merge_states_min_ > 0
&& static_cast<unsigned>(merge_states_min_) < a->num_states())
a->merge_states();
if (simul_max_ > 0 && static_cast<unsigned>(simul_max_) < a->num_states())
return a;

View file

@ -1,5 +1,5 @@
// -*- coding: utf-8 -*-
// Copyright (C) 2012-2021 Laboratoire de Recherche et Développement
// Copyright (C) 2012-2022 Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
@ -268,6 +268,7 @@ namespace spot
bool state_based_ = false;
int wdba_minimize_ = -1;
int simul_max_ = 4096;
int merge_states_min_ = 128;
int wdba_det_max_ = 4096;
};
/// @}