introduce count_univbranch_states() and count_univbranch_edges()
Fixes #368, suggested by František Blahoudek. * spot/twaalgos/isdet.cc, spot/twaalgos/isdet.hh (count_univbranch_states(), count_univbranch_edges()): New functions. * bin/common_aoutput.cc, bin/common_aoutput.hh: Add %u and variants. * NEWS: Mention these. * tests/core/alternating.test: Test them.
This commit is contained in:
parent
60296317c7
commit
29e08a1afb
6 changed files with 125 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2014-2017 Laboratoire de Recherche et Développement
|
||||
// Copyright (C) 2014-2018 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -74,6 +74,14 @@ struct printable_automaton final:
|
|||
void print(std::ostream& os, const char* pos) const override;
|
||||
};
|
||||
|
||||
struct printable_univbranch final:
|
||||
public spot::printable_value<spot::const_twa_graph_ptr>
|
||||
{
|
||||
using spot::printable_value<spot::const_twa_graph_ptr>::operator=;
|
||||
void print(std::ostream& os, const char* pos) const override;
|
||||
};
|
||||
|
||||
|
||||
struct printable_timer final: public spot::printable
|
||||
{
|
||||
protected:
|
||||
|
|
@ -169,6 +177,8 @@ private:
|
|||
spot::printable_value<unsigned> haut_complete_;
|
||||
spot::printable_value<const char*> csv_prefix_;
|
||||
spot::printable_value<const char*> csv_suffix_;
|
||||
printable_univbranch haut_univbranch_;
|
||||
printable_univbranch aut_univbranch_;
|
||||
printable_timer timer_;
|
||||
printable_automaton input_aut_;
|
||||
printable_automaton output_aut_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue