OikawaKirie created this revision. OikawaKirie added reviewers: NoQ, dcoughlin. OikawaKirie added a project: clang. Herald added subscribers: cfe-commits, ASDenysPetrov, Charusso, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.
The first crash reported in the bug report 44338 <https://bugs.llvm.org/show_bug.cgi?id=44338>. > Condition `!isSat.hasValue() || isNotSat.getValue()` here should be > `!isNotSat.hasValue() || isNotSat.getValue()`. > `getValue` here crashed when we used the static analyzer to analyze > postgresql-12.0. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D83660 Files: clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h Index: clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h =================================================================== --- clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h +++ clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h @@ -147,7 +147,7 @@ Solver->addConstraint(NotExp); Optional<bool> isNotSat = Solver->check(); - if (!isSat.hasValue() || isNotSat.getValue()) + if (!isNotSat.hasValue() || isNotSat.getValue()) return nullptr; // This is the only solution, store it
Index: clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h =================================================================== --- clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h +++ clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h @@ -147,7 +147,7 @@ Solver->addConstraint(NotExp); Optional<bool> isNotSat = Solver->check(); - if (!isSat.hasValue() || isNotSat.getValue()) + if (!isNotSat.hasValue() || isNotSat.getValue()) return nullptr; // This is the only solution, store it
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits