<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Scan-build contradicting assumption"
href="https://bugs.llvm.org/show_bug.cgi?id=38209">38209</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Scan-build contradicting assumption
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>analyze
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Koen.Poppe@vandewiele.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20567" name="attach_20567" title="Minimal example illustrating contradicting assumptions">attachment 20567</a> <a href="attachment.cgi?id=20567&action=edit" title="Minimal example illustrating contradicting assumptions">[details]</a></span>
Minimal example illustrating contradicting assumptions
Running scan-build-6.0 on the attached code results in contradicting
assumptions:
Step 2) Assuming 'empty()' is false
Step 5) Assuming 'empty()' is true
Workaround (enable the WORKAROUND define) allows scan-build to reason about
memberPlus100 locally thus avoiding this false positive.
Should scan-build be able to reason about this, knowing that both 'empty()'
calls should result in the same outcome?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>