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

    <tr>
        <th>Summary</th>
        <td>
            [NSan] How to enable Numerical Sanitizer in Clang++ and generate instrumented code?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    CC: @alexander-shaposhnikov, @firewave, @cjappl

I know this is closely related to:

* #98869

but how to you enable support for the Numerical Sanitizer (NSan) described in the paper:

* “NSan: A Floating-Point Numerical Sanitizer” https://arxiv.org/pdf/2102.12782 (paper from 2021)

?

Is this as simple as setting a compiler option or do you need to build a version of LLVM Clang++ that even has support for NSan?

I can likely dig through source code and other places to figure this out, but I thought I might just ask.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsk82OozgQx5_GXEqJcDkkcOBApxftSLOjlUbau8EVcMfYyB-Z6X36lSGjnZb6ZIPr81f_kiHoyRK1rHph1WshU5ydbwfpo6EYvQujo2Jw6r29XpnogJ1KaeintIr8IcxydWG2-u4eDK_58aY9_ZAPen6Ob3JdDSs7VnZf4G7dD4izDqADjMYFMu_gychICqJjotstGXbAUDR1fW72P0OKMGdnB-8uAVk5GIKQ1tX5CDfnIc4E39JCXo_SwHdpddT_kgeG9bfv0jJsQFEYvR5Igbab_SpX8h-z_oGsLllz3XxEBx30xsmo7XT422kbP8vxy-kV5hjXkANiz7CX_qd-HJ2fGParujHskZd45HipMde1pYebdwtgiZzhs1km-iexsNOSAYJeVkPbjWIuBySMblm1IQ9ujdpZcB7UzsfSBhSGpI0CCQ_yYbO4wdev__wFVyPtxPCF4QvEWUagB1mYc_TfkO4MftUCo7Rg9D3PTOkJ4uxdmmYILvmRYHSKQFoFLs7kYTVypJBruOkpedobcSlmYeRpfoE4Z_98W3Q-31KIIMP9yMquUK1QjWhkQS2_CLwIcRa8mFt-bhohm1rVnMoaeVPhrb6oahzV-dyceaFbLPHEOV54XYmKH_mgRHnBoW4qdRZKsFNJi9TmaMxjydMpdAiJWs4vDcfCyIFM2PYBcdw5YV4N32aHw5CmwE6l0SGG_0NEHc22RBuz6hX-3MX6FOpnwtT2wxgyuokseRkJtA3Rp4VsXoxMlom-SN60HwU26Tin4Ti6hWGfa3keh9W7Nxojw37rLTDsn-09WvwvAAD__yq1RbI">