Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Thanassis Tsiodras
condition-decision-mcdc
Commits
5a84ccc5
Commit
5a84ccc5
authored
Oct 03, 2017
by
Thanassis Tsiodras
Browse files
All good.
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
0 → 100644
View file @
5a84ccc5
all
:
gcc
-g
-O0
-fprofile-arcs
-ftest-coverage
coverage_demo.c
report
:
gcov
-pcb
coverage_demo.c
cat
coverage_demo.c.gcov
clean
:
rm
-f
coverage_demo.c.gcov coverage_demo.gcda coverage_demo.gcno a.out
coverage_demo.c
0 → 100644
View file @
5a84ccc5
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int
main
(
int
argc
,
char
*
argv
[])
{
uint32_t
t1
=
atoi
(
argv
[
1
]);
uint32_t
t2
=
t1
<
8
&&
t1
>
2
;
if
(
t1
<
7
&&
t1
>
3
)
printf
(
"3<%d<7 was true
\n
"
,
t1
);
else
printf
(
"3<%d<7 was false
\n
"
,
t1
);
return
0
;
}
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