<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::SValBuilder::evalBinOp"
href="https://bugs.llvm.org/show_bug.cgi?id=34622">34622</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure in clang::ento::SValBuilder::evalBinOp
</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>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ echo "void crash(bool *b) { EXPECT_TRUE(*b); }" >>
llvm.git/tools/clang/test/Analysis/gtest.cpp
$ clang-tidy llvm.git/tools/clang/test/Analysis/gtest.cpp
-checks=-*,clang-analyzer-apiModeling.google.GTest -- -std=c++11
-DGTEST_VERSION_1_8_AND_LATER=1
assert.h assertion failed at
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp:406 in clang::ento::SVal
clang::ento::SValBuilder::evalBinOp(clang::ento::ProgramStateRef,
BinaryOperator::Opcode, clang::ento::SVal, clang::ento::SVal, clang::QualType):
op == BO_Add
@ 0x52d94ca __assert_fail
@ 0x2c26793 clang::ento::SValBuilder::evalBinOp()
@ 0x2c26a41 clang::ento::SValBuilder::evalEQ()
@ 0x2a50428 (anonymous
namespace)::GTestChecker::assumeValuesEqual()
@ 0x2a50015 (anonymous
namespace)::GTestChecker::modelAssertionResultBoolConstructor()
@ 0x2a4f9bb (anonymous namespace)::GTestChecker::checkPostCall()
@ 0x2a4f780 clang::ento::check::PostCall::_checkCall<>()
@ 0x2d01842 clang::ento::CheckerFn<>::operator()()
@ 0x2cf537a (anonymous namespace)::CheckCallContext::runChecker()
@ 0x2cf2489 expandGraphWithCheckers<>()
@ 0x2cf2200
clang::ento::CheckerManager::runCheckersForCallEvent()
@ 0x2d55b48 clang::ento::CheckerManager::runCheckersForPostCall()
@ 0x2d53a10 clang::ento::ExprEngine::VisitCXXConstructExpr()
@ 0x2d10d99 clang::ento::ExprEngine::Visit()
@ 0x2d0dcd1 clang::ento::ExprEngine::ProcessStmt()
@ 0x2d0d98a clang::ento::ExprEngine::processCFGElement()
@ 0x2d3bff6 clang::ento::CoreEngine::HandlePostStmt()
@ 0x2d3b8f6 clang::ento::CoreEngine::dispatchWorkItem()
@ 0x2d3b458 clang::ento::CoreEngine::ExecuteWorkList()
@ 0x20309f5 clang::ento::ExprEngine::ExecuteWorkList()
@ 0x1fd8192 (anonymous
namespace)::AnalysisConsumer::ActionExprEngine()
@ 0x1fd7f51 (anonymous
namespace)::AnalysisConsumer::RunPathSensitiveChecks()
@ 0x1fd7c15 (anonymous namespace)::AnalysisConsumer::HandleCode()
@ 0x1fcb113 (anonymous
namespace)::AnalysisConsumer::HandleDeclsCallGraph()
@ 0x1fc9397 (anonymous
namespace)::AnalysisConsumer::HandleTranslationUnit()
@ 0x240173e clang::MultiplexConsumer::HandleTranslationUnit()
@ 0x2e58606 clang::ParseAST()
@ 0x23ef10a clang::ASTFrontendAction::ExecuteAction()
@ 0x23eeba0 clang::FrontendAction::Execute()</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>