http://llvm.org/bugs/show_bug.cgi?id=16401

            Bug ID: 16401
           Summary: Wrong assumption of an integer comparison, knowing
                    their values
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 10726
  --> http://llvm.org/bugs/attachment.cgi?id=10726&action=edit
Preprocessed source of the problematic file

Even though it knows that "[7] Assuming 'size' is not equal to 0" in line 4457
and "pos = ... = 0;" in line 4470, it does this wrong assumption:
"[11] Assuming 'pos' is >= 'size'" in line 4471. Attached preprocessed source.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to