| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include <iostream> | ||
| 2 | |||
| 3 | 1 | int print(int test) | |
| 4 | { | ||
| 5 |
1/2✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
|
1 | if ( ! test ) |
| 6 | 1 | return 1; | |
| 7 | else | ||
| 8 | ✗ | return 2; | |
| 9 |
2/4✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
|
4 | } |
| 10 |