Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
97e3eb76
Commit
97e3eb76
authored
Jul 03, 2014
by
Alexandre Duret-Lutz
Browse files
* src/priv/countstates.cc: Handle tgba_digraph.
parent
120ce7d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/priv/countstates.cc
View file @
97e3eb76
// -*- coding: utf-8 -*-
// Copyright (C) 2013 Laboratoire de Recherche et Développement
// Copyright (C) 2013
, 2014
Laboratoire de Recherche et Développement
// de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
...
...
@@ -19,23 +19,19 @@
#include
"countstates.hh"
#include
"tgba/tgbaexplicit.hh"
#include
"tgba/tgbagraph.hh"
#include
"tgbaalgos/stats.hh"
namespace
spot
{
unsigned
count_states
(
const
tgba
*
a
)
{
const
sba_explicit_number
*
se
=
dynamic_cast
<
const
sba_explicit_number
*>
(
a
);
if
(
se
)
return
se
->
num_states
();
const
tgba_explicit_number
*
te
=
dynamic_cast
<
const
tgba_explicit_number
*>
(
a
);
if
(
te
)
return
te
->
num_states
();
tgba_statistics
st
=
stats_reachable
(
a
);
return
st
.
states
;
if
(
auto
b
=
dynamic_cast
<
const
tgba_digraph
*>
(
a
))
return
b
->
num_states
();
if
(
auto
b
=
dynamic_cast
<
const
sba_explicit_number
*>
(
a
))
return
b
->
num_states
();
if
(
auto
b
=
dynamic_cast
<
const
tgba_explicit_number
*>
(
a
))
return
b
->
num_states
();
return
stats_reachable
(
a
).
states
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment