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
SWIFT
SWIFTsim
Commits
b98aa3f3
Commit
b98aa3f3
authored
Oct 20, 2017
by
lhausamm
Browse files
Remove test t->type
parent
949e6bcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scheduler.c
View file @
b98aa3f3
...
...
@@ -1596,7 +1596,6 @@ void scheduler_print_tasks(const struct scheduler *s, const char *fileName) {
const
int
nr_tasks
=
s
->
nr_tasks
,
*
tid
=
s
->
tasks_ind
;
struct
task
*
t
,
*
tasks
=
s
->
tasks
;
int
test_type
;
FILE
*
file
=
fopen
(
fileName
,
"w"
);
...
...
@@ -1604,8 +1603,7 @@ void scheduler_print_tasks(const struct scheduler *s, const char *fileName) {
for
(
int
k
=
nr_tasks
-
1
;
k
>=
0
;
k
--
)
{
t
=
&
tasks
[
tid
[
k
]];
test_type
=
1
<<
t
->
type
;
if
(
!
(
test_type
)
||
t
->
skip
)
continue
;
if
(
t
->
skip
)
continue
;
fprintf
(
file
,
"%d %s %s %d %d
\n
"
,
k
,
taskID_names
[
t
->
type
],
subtaskID_names
[
t
->
subtype
],
t
->
nr_unlock_tasks
,
t
->
wait
);
}
...
...
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