[LLVMbugs] [Bug 14495] New: Static Analyzer makes bad assumption in for-loop.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 3 12:23:49 PST 2012


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

             Bug #: 14495
           Summary: Static Analyzer makes bad assumption in for-loop.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: eric.huhtala at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9638
  --> http://llvm.org/bugs/attachment.cgi?id=9638
annotated source code result of analyzer run.

See attached file.  if end is declared as "const size_t end = 128", the
analyzer correctly determines that the for-loop condition will be true at least
once, but when end is declared as "const size_t end = 1 << 7", it fails as in
attached file.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list