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
bb47e31b
Commit
bb47e31b
authored
Feb 15, 2006
by
Alexandre Duret-Lutz
Browse files
* src/tgbaalgos/gtec/gtec.cc, src/tgbaalgos/gtec/gtec.hh:
Count the number of removed components.
parent
857f0ac5
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
bb47e31b
2006-02-15 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/tgbaalgos/gtec/gtec.cc, src/tgbaalgos/gtec/gtec.hh:
Count the number of removed components.
2006-02-14 Alexandre Duret-Lutz <adl@src.lip6.fr>
Soheib Baarir <Souheib.Baarir@lip6.fr>
...
...
src/tgbaalgos/gtec/gtec.cc
View file @
bb47e31b
...
...
@@ -32,10 +32,14 @@ namespace spot
couvreur99_check
::
couvreur99_check
(
const
tgba
*
a
,
option_map
o
,
const
numbered_state_heap_factory
*
nshf
)
:
emptiness_check
(
a
,
o
)
:
emptiness_check
(
a
,
o
),
removed_components
(
0
)
{
poprem_
=
o
.
get
(
"poprem"
,
1
);
ecs_
=
new
couvreur99_check_status
(
a
,
nshf
);
stats
[
"removed components"
]
=
static_cast
<
spot
::
unsigned_statistics
::
unsigned_fun
>
(
&
couvreur99_check
::
get_removed_components
);
}
couvreur99_check
::~
couvreur99_check
()
...
...
@@ -43,9 +47,16 @@ namespace spot
delete
ecs_
;
}
unsigned
couvreur99_check
::
get_removed_components
()
const
{
return
removed_components
;
}
void
couvreur99_check
::
remove_component
(
const
state
*
from
)
{
++
removed_components
;
// If rem has been updated, removing states is very easy.
if
(
poprem_
)
{
...
...
src/tgbaalgos/gtec/gtec.hh
View file @
bb47e31b
...
...
@@ -180,6 +180,9 @@ namespace spot
/// Whether to store the state to be removed.
bool
poprem_
;
/// Number of dead SCC removed by the algorithm.
unsigned
removed_components
;
unsigned
get_removed_components
()
const
;
};
/// \brief A version of spot::couvreur99_check that tries to visit
...
...
@@ -231,8 +234,7 @@ namespace spot
void
clear_todo
();
// Whether successors should be grouped for states in the same
// SCC.
/// Whether successors should be grouped for states in the same SCC.
bool
group_
;
// If the "group2" option is set (it implies "group"), we
// reprocess the successor states of SCC that have been merged.
...
...
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