<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 - Assertion failure in clang::ento::ExprEngine::VisitLogicalExpr(...): N->pred_size() == 1"
   href="https://bugs.llvm.org/show_bug.cgi?id=37501">37501</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure in clang::ento::ExprEngine::VisitLogicalExpr(...): N->pred_size() == 1
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Static Analyzer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dcoughlin@apple.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alexfh@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>ekarpenkov@apple.com, llvm-bugs@lists.llvm.org, noqnoqneo@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat test-ExprEngine__VisitLogicalExpr.c
a, c, d;
*b;
e() {
  for (;;) f(b[a] > (d < c ?: 0) || b[a] < (e < c ?: 0));
}
$ clang-tidy -checks=-*,clang-analyzer* test-ExprEngine__VisitLogicalExpr.c --
assertion failed at
llvm/tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp:664 in void
clang::ento::ExprEngine::VisitLogicalExpr(const clang::BinaryOperator *,
clang::ento::ExplodedNode *, clang::ento::ExplodedNodeSet &): N->pred_size() ==
1
    @     0x556be4198cb6  __assert_fail
    @     0x556be1f1dcf3  clang::ento::ExprEngine::VisitLogicalExpr()
    @     0x556be1ef5cce  clang::ento::ExprEngine::Visit()
    @     0x556be1ef168e  clang::ento::ExprEngine::ProcessStmt()
    @     0x556be1ef13ab  clang::ento::ExprEngine::processCFGElement()
    @     0x556be1f14f8e  clang::ento::CoreEngine::HandleBlockEntrance()
    @     0x556be1f1480e  clang::ento::CoreEngine::dispatchWorkItem()
    @     0x556be1f144bd  clang::ento::CoreEngine::ExecuteWorkList()
    @     0x556be1c4a0bc  (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
    @     0x556be1c49c36  (anonymous namespace)::AnalysisConsumer::HandleCode()
    @     0x556be1c359c4  (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()</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>