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

    <tr>
        <th>Summary</th>
        <td>
            libc/benchmarks/gpu/LibcGpuBenchmark.cpp:95: Broken comparison ?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc
      </td>
    </tr>

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

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

<pre>
    Static analyser cppcheck says:

libc/benchmarks/gpu/LibcGpuBenchmark.cpp:95:65: style: Unsigned expression 'time_budget' can't be negative so it is unnecessary to test it. [unsignedPositive]

Source code is

 for (uint64_t time_budget = options.max_duration; time_budget >= 0;) {

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycUs1u3DwMfBr6QsSwJf-sDz7E2M_fpYcCQc-BJHPXamzJEKUg-_aFNim66LEX6ofDIQdDxWyvjmiEdoL2XKgUVx_GxWhZN4X2y218iSpag8qp7cYU0ByHWcm8Iasbg3yG6gzVV9ysNiBmTc6suwpvDGK-HgnE_M1q8_-Rpt-Z0hwHyOehBfnc5YAcbxvlyw93n2lB-jgCMVvvEEQf7U6vOi1XiiB6NMrlT9SEjq4q2ndC9mgjWsbkHBliVuGG0WMkjmhjidBO6Yv9u2ebi6A9Pyp48SkYQuMXQsuPGbz4gCBOybrYNa8RHwZCkGf0R7Tecbmrj9clBZVfIKe_cP9laAVyAjEg9NMnebGMchnkoAoa674emr7pBlGso6bWLOrSi2Y5iZNQpq-bXrYnIwaiRl4KO4pKNFUn-qpvaylKrbrL0lKta9OrS0_QVLQru5Xb9r6XPlwLy5xoHLpTJ4tNadr4br8Qn_aJvAhhzPAnna4MTbVZjvyHINq40fhvZuMU_Bs5NH4_VLCczZVzkcI2rjEe940Sc6aycU26NH4HMefWX8fTEfxPMhHEfBeS235qeR_FrwAAAP__E9jmXw">