Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Spot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
117
Issues
117
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spot
Spot
Commits
9a1e4115
Commit
9a1e4115
authored
Dec 01, 2016
by
Maximilien Colange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly time computations of accepting runs in randtgba.
* tests/core/randtgba.cc: do not time statistics.
parent
2b073262
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
24 deletions
+23
-24
tests/core/randtgba.cc
tests/core/randtgba.cc
+23
-24
No files found.
tests/core/randtgba.cc
View file @
9a1e4115
...
...
@@ -987,44 +987,43 @@ main(int argc, char** argv)
if
(
opt_replay
)
{
spot
::
twa_run_ptr
run
;
bool
done
=
false
;
tm_ar
.
start
(
algo
);
for
(
int
count
=
opt_R
;;)
{
run
=
res
->
accepting_run
();
const
spot
::
unsigned_statistics
*
s
=
res
->
statistics
();
if
(
opt_z
&&
!
done
)
{
// Count only the first run (the
// other way would be to divide
// the stats by opt_R).
done
=
true
;
sc_arc
.
count
(
algo
,
s
);
arc_ratio_stats
.
count
(
algo
,
s
);
}
if
(
stop_on_first_difference
&&
s
)
if
(
!
ostats_arc
.
seteq
(
*
s
))
{
std
::
cout
<<
"DIFFERING STATS for "
<<
"accepting runs,"
<<
" halting... "
;
opt_ec
=
n_alg
=
opt_F
=
0
;
break
;
}
if
(
count
--
<=
0
||
!
run
)
break
;
}
if
(
!
run
)
tm_ar
.
cancel
(
algo
);
else
tm_ar
.
stop
(
algo
);
const
spot
::
unsigned_statistics
*
s
=
res
->
statistics
();
if
(
opt_z
)
{
// Count only the last run (the
// other way would be to divide
// the stats by opt_R).
sc_arc
.
count
(
algo
,
s
);
arc_ratio_stats
.
count
(
algo
,
s
);
}
if
(
stop_on_first_difference
&&
s
)
if
(
!
ostats_arc
.
seteq
(
*
s
))
{
std
::
cout
<<
"DIFFERING STATS for "
<<
"accepting runs,"
<<
" halting... "
;
opt_ec
=
n_alg
=
opt_F
=
0
;
}
if
(
!
run
)
{
tm_ar
.
cancel
(
algo
);
if
(
!
opt_paper
)
std
::
cout
<<
" exists, not computed"
;
}
else
{
tm_ar
.
stop
(
algo
);
std
::
ostringstream
s
;
if
(
!
run
->
replay
(
s
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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