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
f0161618
Commit
f0161618
authored
Aug 08, 2017
by
Alexandre Duret-Lutz
Browse files
* spot/twaalgos/simulation.cc (print_partition): Improve.
parent
59c0f082
Changes
1
Hide whitespace changes
Inline
Side-by-side
spot/twaalgos/simulation.cc
View file @
f0161618
...
...
@@ -305,8 +305,8 @@ namespace spot
nb_po_before
=
po_size_
;
po_size_
=
0
;
update_sig
();
// print_partition();
go_to_next_it
();
// print_partition();
}
update_previous_class
();
...
...
@@ -631,27 +631,34 @@ namespace spot
// where is the new class name.
void
print_partition
()
{
std
::
cerr
<<
"
\n
-----
\n\n
Classes from previous iteration:
\n
"
;
unsigned
ps
=
previous_class_
.
size
();
for
(
unsigned
p
=
0
;
p
<
ps
;
++
p
)
{
std
::
cerr
<<
"- "
<<
a_
->
format_state
(
a_
->
state_from_number
(
p
))
<<
" was in class "
<<
bdd_format_set
(
a_
->
get_dict
(),
previous_class_
[
p
])
<<
'\n'
;
}
std
::
cerr
<<
"
\n
Partition:
\n
"
;
std
::
list
<
bdd
>::
iterator
it_bdd
=
used_var_
.
begin
();
for
(
auto
&
p
:
sorted_classes_
)
{
std
::
cerr
<<
"partition: "
<<
bdd_format_isop
(
a_
->
get_dict
(),
p
->
first
)
<<
std
::
endl
;
std
::
cerr
<<
"- "
;
if
(
p
->
first
!=
bddfalse
)
std
::
cerr
<<
"new class "
<<
*
it_bdd
++
<<
" from "
;
std
::
cerr
<<
"sig "
<<
bdd_format_isop
(
a_
->
get_dict
(),
p
->
first
);
std
::
cerr
<<
'\n'
;
for
(
auto
s
:
p
->
second
)
std
::
cerr
<<
" - "
std
::
cerr
<<
"
- "
<<
a_
->
format_state
(
a_
->
state_from_number
(
s
))
<<
'\n'
;
}
std
::
cerr
<<
"
\n
Class implications:
\n
"
;
for
(
auto
&
p
:
relation_
)
std
::
cerr
<<
" - "
<<
p
.
first
<<
" => "
<<
p
.
second
<<
'\n'
;
std
::
cerr
<<
"
\n
Previous iteration
\n
"
<<
std
::
endl
;
unsigned
ps
=
previous_class_
.
size
();
for
(
unsigned
p
=
0
;
p
<
ps
;
++
p
)
{
std
::
cerr
<<
a_
->
format_state
(
a_
->
state_from_number
(
p
))
<<
" was in "
<<
bdd_format_set
(
a_
->
get_dict
(),
previous_class_
[
p
])
<<
'\n'
;
}
}
protected:
...
...
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