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
8903a4b5
Commit
8903a4b5
authored
Jun 19, 2018
by
Thanassis Tsiodras
Browse files
Updated phrasing
parent
281722dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
8903a4b5
Read the following, keeping
these in mind:
Read the following, keeping
in mind that in terms of this discussion...
-
Statement is a complete line of code
-
Conditions and decisions: inside...
-
Any program is basically a series of
*statements*
; instructing the
code to perform any
[
of a list of actions
](
https://msdn.microsoft.com/en-us/library/015az3wz.aspx
)
.
-
As for conditions and decisions, inside this
`if`
's expression...
```
c
if
(
a
>
1
&&
b
==
0
)
{
```
...the
`a > 1`
part is a condition - i.e. a part of
a
decision
...the
`a > 1`
part is a
*
condition
*
- i.e. a part of
the if's
*
decision
*
(which in this case is comprised of two conditions).
-
B
ranch (at least in terms of the discussion that follows - i.e. in terms
-
Finally,
*b
ranch
*
(at least in terms of the discussion that follows - i.e. in terms
of what GCOV describes as a branch) is a condition being checked at object
code level. A branch therefore exists at any instruction like
`ble`
(branch
if less or equal
,
etc
)
if less or equal
on SPARCs) or
`jnz`
(jump if not zero on x86)
etc
.
Given the context above...
...
...
Write
Preview
Supports
Markdown
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