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
cf455393
Commit
cf455393
authored
Oct 29, 2004
by
Alexandre Duret-Lutz
Browse files
* src/tgbaalgos/replayrun.cc (replay_tgba_run): Verify the run is
accepting.
parent
434475db
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
cf455393
2004-10-29 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/tgbaalgos/replayrun.cc (replay_tgba_run): Verify the run is
accepting.
* src/tgbaalgos/gtec/ce.cc (couvreur99_check_result::accepting_path):
Initialize best_end to remove a spurious warning.
...
...
src/tgbaalgos/replayrun.cc
View file @
cf455393
...
...
@@ -33,6 +33,9 @@ namespace spot
int
serial
=
1
;
const
tgba_run
::
steps
*
l
;
std
::
string
in
;
bdd
all_acc
=
bddfalse
;
bdd
expected_all_acc
=
a
->
all_acceptance_conditions
();
bool
all_acc_seen
=
false
;
if
(
run
->
prefix
.
empty
())
{
...
...
@@ -135,8 +138,31 @@ namespace spot
<<
" and acc="
<<
bdd_format_accset
(
a
->
get_dict
(),
acc
)
<<
std
::
endl
;
delete
j
;
// Sum acceptance conditions.
if
(
l
==
&
run
->
cycle
&&
i
!=
l
->
begin
())
{
all_acc
|=
acc
;
if
(
!
all_acc_seen
&&
all_acc
==
expected_all_acc
)
{
all_acc_seen
=
true
;
os
<<
"all acceptance conditions ("
<<
bdd_format_accset
(
a
->
get_dict
(),
all_acc
)
<<
") have been seen"
<<
std
::
endl
;
}
}
}
delete
s
;
if
(
all_acc
!=
expected_all_acc
)
{
os
<<
"ERROR: The cycle's acceptance conditions ("
<<
bdd_format_accset
(
a
->
get_dict
(),
all_acc
)
<<
") do not"
<<
"match those of the automata ("
<<
bdd_format_accset
(
a
->
get_dict
(),
expected_all_acc
)
<<
std
::
endl
;
return
false
;
}
return
true
;
}
}
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