NAKAMURA Takumi ae36790be4
test/llvm-cov: Regenerate MC/DC tests (#80610)
* Revise instructions for regeneration, not to create executables.
* Add instructions to regenerate both object files and test vectors
(except for `mcdc-general-none.proftext`)
* Reformat
2024-02-05 07:43:18 +09:00

37 lines
551 B
C++

#include <stdio.h>
void test(bool a, bool b, bool c, bool d) {
if ((a && b) || (c && d))
printf("test1 decision true\n");
if (b && c) if (a && d)
printf("test2 decision true\n");
if ((c && d) &&
(a && b))
printf("test3 decision true\n");
}
int main()
{
test(false,false,false,false);
test(true,false,true,false);
test(true,false,true,true);
test(true,true,false,false);
test(true,false,false,false);
test(true,true,true,true);
test(false,true,true,false);
(void)0;
return 0;
}