stats: use %g to print the (generic) acceptance condition
* src/tgbaalgos/stats.cc, src/tgbaalgos/stats.hh: Implement %g. * src/bin/common_aoutput.cc, src/bin/common_aoutput.hh: Document it, and also implement %G. * src/tgbatest/acc2.test: New file. * src/tgbatest/Makefile.am: Add it.
This commit is contained in:
parent
33c496a4bb
commit
de586dd2f0
6 changed files with 57 additions and 2 deletions
|
|
@ -21,6 +21,7 @@
|
|||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include "tgba/tgba.hh"
|
||||
#include "stats.hh"
|
||||
#include "reachiter.hh"
|
||||
|
|
@ -147,6 +148,7 @@ namespace spot
|
|||
declare('d', &deterministic_);
|
||||
declare('e', &edges_);
|
||||
declare('f', &form_);
|
||||
declare('g', &gen_acc_);
|
||||
declare('n', &nondetstates_);
|
||||
declare('p', &complete_);
|
||||
declare('r', &run_time_);
|
||||
|
|
@ -202,6 +204,13 @@ namespace spot
|
|||
complete_ = is_complete(aut);
|
||||
}
|
||||
|
||||
if (has('g'))
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << aut->get_acceptance();
|
||||
gen_acc_ = os.str();
|
||||
}
|
||||
|
||||
return format(format_);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2008, 2011, 2012, 2013, 2014 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
// Copyright (C) 2008, 2011, 2012, 2013, 2014, 2015 Laboratoire de
|
||||
// Recherche et Développement de l'Epita (LRDE).
|
||||
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// et Marie Curie.
|
||||
|
|
@ -101,6 +101,7 @@ namespace spot
|
|||
printable_value<unsigned> deterministic_;
|
||||
printable_value<unsigned> complete_;
|
||||
printable_value<double> run_time_;
|
||||
printable_value<std::string> gen_acc_;
|
||||
};
|
||||
|
||||
/// @}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue