[analyzer] ConditionBRVisitor: Unknown condition evaluation support
authorCsaba Dabis <dabis.csaba98@gmail.com>
Sat, 16 Mar 2019 09:24:30 +0000 (09:24 +0000)
committerCsaba Dabis <dabis.csaba98@gmail.com>
Sat, 16 Mar 2019 09:24:30 +0000 (09:24 +0000)
commit0fe67a61cd4aec13c7969a179517f1cc06ab05cd
tree36ed27ece1d3f0d5055246f13cc00f9dab92a9e6
parentf962485adad9d646511fd3240c0408d9554e6784
[analyzer] ConditionBRVisitor: Unknown condition evaluation support

Summary: If the constraint information is not changed between two program states the analyzer has not learnt new information and made no report. But it is possible to happen because we have no information at all. The new approach evaluates the condition to determine if that is the case and let the user know we just 'Assuming...' some value.

Reviewers: NoQ, george.karpenkov

Reviewed By: NoQ

Subscribers: xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, gsd, gerazo

Tags: #clang

Differential Revision: https://reviews.llvm.org/D57410

llvm-svn: 356319
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
clang/test/Analysis/diagnostics/macros.cpp
clang/test/Analysis/uninit-vals.m