Debian Codegraph @

llvm/test/tools/llvm-cov/Inputs/mcdc-const.cpp

raw
1 #include <stdio.h>
2
3
4
5
6
7
8
9
10 void test(bool a, bool b, bool c, bool d) {
11
12 if ((a && 1) || (0 && d) || 0)
13 printf("test1 decision true\n");
14 }
15
16 int main()
17 {
18 test(true,false,true,false);
19 test(true,false,true,true);
20 test(true,true,false,false);
21 test(false,true,true,false);
22
23 test(true,false,false,false);
24
25 return 0;
26 }