Not even constant folding and constant propagation?<div><br></div><div>Arjun<br><br><div class="gmail_quote">On Wed, Sep 28, 2011 at 7:32 PM, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sep 28, 2011, at 6:55 PM, funceval wrote:<br>
> Thank you for replying. The problem is that clang is running some optimizations before running the analyzer. As a result, my if statement is being optimized out and because of that nothing gets printed. clang should not run optimizations when running in analyze mode otherwise it can't detect bugs in the original code. Do you agree?<br>


<br>
</div>Clang does not perform optimizations on the AST.<br>
<font color="#888888"><br>
John.<br>
</font></blockquote></div><br></div>