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
40c4476c
Commit
40c4476c
authored
Aug 18, 2008
by
Alexandre Duret-Lutz
Browse files
Keep track of the number of inclusions detected in ssp_semi
parent
35bf9b53
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
40c4476c
2008-08-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* iface/gspn/ssp.cc (numbered_state_heap_ssp_semi): Keep track
of the number of inclusions detected.
2008-08-07 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* bench/gspn-ssp/Makefile.am, bench/gspn-ssp/trans2prop.pl: New files.
...
...
iface/gspn/ssp.cc
View file @
40c4476c
...
...
@@ -657,6 +657,11 @@ namespace spot
class
numbered_state_heap_ssp_semi
:
public
numbered_state_heap
{
public:
numbered_state_heap_ssp_semi
()
:
numbered_state_heap
(),
inclusions
(
0
)
{
}
virtual
~
numbered_state_heap_ssp_semi
()
{
...
...
@@ -700,7 +705,10 @@ namespace spot
if
(
old_state
->
left
()
&&
new_state
->
left
()
&&
spot_inclusion
(
new_state
->
left
(),
old_state
->
left
()))
break
;
{
++
inclusions
;
break
;
}
}
if
(
j
!=
l
.
end
())
{
...
...
@@ -772,7 +780,10 @@ namespace spot
if
(
old_state
->
left
()
&&
new_state
->
left
()
&&
spot_inclusion
(
new_state
->
left
(),
old_state
->
left
()))
break
;
{
++
inclusions
;
break
;
}
}
if
(
j
!=
l
.
end
())
{
...
...
@@ -897,6 +908,8 @@ namespace spot
friend
class
numbered_state_heap_ssp_const_iterator
;
friend
class
couvreur99_check_shy_ssp
;
friend
class
couvreur99_check_shy_semi_ssp
;
mutable
unsigned
inclusions
;
};
...
...
@@ -1250,27 +1263,41 @@ namespace spot
:
couvreur99_check_shy
(
a
,
option_map
(),
numbered_state_heap_ssp_factory_semi
::
instance
()),
in
clusion
_count
(
0
)
f
in
d
_count
(
0
)
{
onepass_
=
true
;
stats
[
"find_state count"
]
=
static_cast
<
spot
::
unsigned_statistics
::
unsigned_fun
>
(
&
couvreur99_check_shy_semi_ssp
::
get_in
clusion
_count
);
(
&
couvreur99_check_shy_semi_ssp
::
get_
f
in
d
_count
);
stats
[
"contained map size"
]
=
static_cast
<
spot
::
unsigned_statistics
::
unsigned_fun
>
(
&
couvreur99_check_shy_semi_ssp
::
get_contained_map_size
);
stats
[
"inclusion count"
]
=
static_cast
<
spot
::
unsigned_statistics
::
unsigned_fun
>
(
&
couvreur99_check_shy_semi_ssp
::
get_inclusion_count
);
//dynamic_cast<numbered_state_heap_ssp_semi*>(ecs_->h)->stats = this;
}
private:
unsigned
in
clusion
_count
;
unsigned
f
in
d
_count
;
protected:
unsigned
get_find_count
()
const
{
return
find_count
;
};
unsigned
get_inclusion_count
()
const
{
return
inclusion_count
;
return
dynamic_cast
<
numbered_state_heap_ssp_semi
*>
(
ecs_
->
h
)
->
inclusions
;
};
unsigned
get_contained_map_size
()
const
{
...
...
@@ -1281,7 +1308,7 @@ namespace spot
virtual
numbered_state_heap
::
state_index_p
find_state
(
const
state
*
s
)
{
++
in
clusion
_count
;
++
f
in
d
_count
;
return
couvreur99_check_shy
::
find_state
(
s
);
}
};
...
...
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