You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
booltest1(bool a, bool b)
{
return (a | b) ? (a ^ b) : (a & b);
}
booltest2(bool a, bool b)
{
return (a | b) ? (a & b) : (a ^ b);
}
booltest3(bool a, bool b)
{
return (a & b) ? (a | b) : (a ^ b);
}
booltest4(bool a, bool b)
{
return (a & b) ? (a ^ b) : (a | b);
}
booltest5(bool a, bool b)
{
return (a ^ b) ? (a | b) : (a & b);
}
booltest6(bool a, bool b)
{
return (a ^ b) ? (a & b) : (a | b);
}
Clang13 can simplify four of these, test1, test2, test3 and test4, while Clang trunk cannot. Neither Clang13 nor Clang trunk can simplify test5 and test6.