<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63344>63344</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Conflicting assumptions in Clang SA
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
AndrewChe7
</td>
</tr>
</table>
<pre>
![image](https://github.com/llvm/llvm-project/assets/17948690/4ed0f0e0-9bfb-4909-bec4-e0b5050b9d09)
In first for loop it assumes that i is >= count, i is equal 0 at start, so it assumes that count <= 0. In second loop it assumes that i > 0, i is equal count-1 at start, so it assumes that count > 1. So we have conflicting assumptions: count <= 0 and count > 1.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUks1unDAQx59muIxA_gB2feCw2Q1SznkCfwzgymtvsUnUt68gqqqmrdSeLHk0v_l7_NM5-zkSDdA9QXer9FaWtA6X6FZ6vy50qkxy3wYQHLonf9czQXcDcV5KeWSQFxAjiHH2ZdlMY9MdxBjC24-jfqzpC9kCYtQ5U8kgRn5S7blXDMTYkmMTI1YrM5m6VUzVhmxbEzMd65hRjikQCtgN2OUl4uTXXHBKK4aUHugL6py3O2Usiy7o0WcE-QzyhjZtsYC4flzS100HZKgL5qLXo5DTb4CjCUFedwJr8CViJpui-9s8kM_IPk05IDX_11nPyBt8TfhOuOg3QpviFLwtPs4fDY_iU9xX_Ske6uh-oVRukE5JpSsaeH_uFVed4NUykOU02ZMVuu15b07c7auV3FDnXC-p8oNgQrKe91y0neCNchM7c9YasoLbfoKW0V370Oyf2qR1rnzOGw29lG1bBW0o5MMgISK941EEIXah1uEQwWxzhpYFn0v-SSm-BBquf34y-ojXoOOMr5dqW8Pw384dOXbnjpzfAwAA__8Xyu3r">