<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57820>57820</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy 15.0.0: readability-simplify-boolean-expr
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ThomasHuetsch
      </td>
    </tr>
</table>

<pre>
    Applying the readability-simplify-boolean-expr to the following function
`bool bar(double x, bool cond) { return !(12. < x && cond); }`
reafactors it to 
`bool bar(double x, bool cond) { return 12. >= x || !cond; }` 
which seems perfectly reasonable at first glance. In case of the x = NaN it changes the behaviour of the function. 
I guess this problem is related to all comparison operations that have no strong ordering.
This should at least be mentioned in the documentation
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUstupDAQ_BpzaQ0CE2A4cJhkdrW55JQf8KMBR8ZGtkkyf79tktk9rrSSJdx2uaq6Gun1bbxsm70ZN0NaEAIKLaSxJt1O0aybNdPtJL23KNwJP7cAyR_AyVvrP_KzaXcqGe9YdWXVhXVVhoMUgfGz9ru0CJ-MP8FxrLzTjA_A-kfSSntwwHhNyJqXwJon-KS6o3VHsuaRwFei_eIng5NQyYcIJmUz_yv7JfiDNdes2T_RylYO5B_Nb_aPxagFIuIaYcMwoUr2lrOK3omsJBJMJsQEsxVOYQnPDpSICH460iIF0nkRL9m0WoSbMR4XEhfxbvwe7sh7muW39DPMO8YMNqQdPKmtQNuAViTUOQFhc4PrJoIhP-DJocgU-REZIwEE5yGm4GlcPmgMNLfyi_8188bF71bnLmjO1IVEWNFlDlIw7jCmvdrz4UFd4Fh3XdOeq7bhhR4bPTSDKJJJFkdFGcynZPQN6rasyoo1l3__WMUe7LiktEWCM_6T1mzSssuSeqPC2vf750Q5vNEMqDQxUjy0afszr4plbNoaVdcO57auWn6WupMc677uZdULgbywQqKNI2sfGecOP-CgoD1rr4UZecV5NdRDNTzwui6nWva86x6aRul20gN7qHAVxpbZR-nDXITxsCT3OdKlNTHFv5ciRjM7xEOO-MWeFh_G18WvIv7aMUW1FIeB8WjgNy17KWQ">