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
99c1b607
Commit
99c1b607
authored
Mar 26, 2010
by
Felix Abecassis
Committed by
Alexandre Duret-Lutz
Jan 05, 2011
Browse files
* src/tgbaalgos/minimize.cc: Now use register_anonymous_variables.
parent
52090e48
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
99c1b607
2010-03-26 Felix Abecassis <abecassis@lrde.epita.fr>
* src/tgbaalgos/minimize.cc: Now use register_anonymous_variables.
2010-03-20 Felix Abecassis <abecassis@lrde.epita.fr>
Small fixes.
...
...
src/tgbaalgos/minimize.cc
View file @
99c1b607
...
...
@@ -143,10 +143,14 @@ namespace spot
hash_set
*
final
=
new
hash_set
;
hash_set
*
non_final
=
new
hash_set
;
hash_map
state_set_map
;
bdd_dict
*
dict
=
det_a
->
get_dict
();
std
::
list
<
const
state
*>::
iterator
li
;
for
(
li
=
acc_list
.
begin
();
li
!=
acc_list
.
end
();
++
li
)
final
->
insert
(
*
li
);
init_sets
(
det_a
,
*
final
,
*
non_final
,
state_set_map
);
// Size of det_a
unsigned
size
=
final
->
size
()
+
non_final
->
size
();
unsigned
bdd_offset
=
dict
->
register_anonymous_variables
(
size
,
det_a
);
hash_set
*
final_copy
=
new
hash_set
(
*
final
);
if
(
final
->
size
()
>
1
)
todo
.
push
(
final
);
...
...
@@ -178,7 +182,7 @@ namespace spot
const
state
*
dst
=
si
->
current_state
();
unsigned
dst_set
=
state_set_map
[
dst
];
delete
dst
;
f
|=
(
bdd_ithvar
(
dst_set
)
&
si
->
current_condition
());
f
|=
(
bdd_ithvar
(
bdd_offset
+
dst_set
)
&
si
->
current_condition
());
}
delete
si
;
bdd_states_map
::
iterator
bsi
;
...
...
@@ -227,6 +231,7 @@ namespace spot
// Build the result.
tgba_explicit_number
*
res
=
build_result
(
det_a
,
done
,
final_copy
);
dict
->
unregister_variable
(
bdd_offset
,
det_a
);
// Free all the allocated memory.
delete
final_copy
;
hash_map
::
iterator
hit
;
...
...
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