<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/78453>78453</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Wrong MC/DC code generation with ternary operator
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
evodius96
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
chapuni
</td>
</tr>
</table>
<pre>
(https://godbolt.org/z/qYKKnvbva)
```
bool foo(bool a, bool b, bool c, bool d, bool e) {
return (a || b ? c && d : e);
}
```
This is not rejected (as unsupported) but wrong code is generated.
CoverageGen emits a couple of decisions but CodeGen emits weird code.
Finally, `llvm-cov` crashes with unexpected test vector.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUk2PnDoQ_DXNpbUjT_M5Bw67jHiH1bs96SlHY_eAI8Ym_mCy-fURDNpEUSQEhe2uri6XDMGMlrmF8g2IeHXapHCpgAjKayZTnJxv1SSXZE02OP3RAjVTjEuA_BWoB-pHpwc3x5PzI1D_A6j_9uX93a7DKoEuIK4gXqESx7P_Ds7NeHMOqNmhBOpwR8MnUp9IfyIGuiDUb08WRETPMXmLQI1EqDuoOxwQ8h4VAlVAFWqE_HWvhPwohPr6V1nP93-TCWgCWhfR81dWkfXeIGCyIS2L85H1pmRIER_e2RGV07zVjGzZy8j69OTq3MpejvwPW-S7iQElKpeWmdHdULMywTgbdqbO6d_OPdh4vfMeVL2xcp4_Ni-gEvO83l-UW6ESqLwMEwd8mDhhsvx9eWqOHCKurKLzp0y3ub7kF5lxe65FWQqqqiabWjkIld_qm5KKSZYlNUJUdVHQLVd5kZeZaUlQIc7n-lwUBTWn5nwmTaQqri4V1SUUgu_SzKdN05aCzISQuK2bosyzWQ48hyNflh-4bx758u0-x5DGAIWYTYjhF0s0ceb2_93ffzug_to9fT5MNs4-R47srfQf6JZt2fks-bn9I6MmTmk4KXcH6rcOx-dl8W67YaB-1xWA-l33zwAAAP__Ivj1LQ">