[LLVMbugs] [Bug 13464] New: Assertion failure in analyzer on assert(s->b || s->c < s->a);

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 26 01:01:00 PDT 2012


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

             Bug #: 13464
           Summary: Assertion failure in analyzer on assert(s->b || s->c <
                    s->a);
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: magnus.reftel at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8950
  --> http://llvm.org/bugs/attachment.cgi?id=8950
Reduced testcase and log

The following small test case crashes the Clang Static Analyzer, starting
somewhere between version 160673 and 160702.

#include <assert.h>
struct s
{
    int a;
    int b;
    int c;
};
static void check_invariants(struct s* s)
{
    assert(s->b || s->c < s->a);
}

-- 
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