From 0815531dca5c27f3e5ebea0b9a4d41c90b8d3743 Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Fri, 7 Sep 2018 00:44:17 +0000 Subject: [PATCH] [analyzer] Add coverage information to plist output, update tests Split tests which were still using FileCheck to compare plists. Differential Revision: https://reviews.llvm.org/D51515 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341621 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/PlistSupport.h | 25 +- lib/StaticAnalyzer/Core/PlistDiagnostics.cpp | 50 +- .../NewDelete-path-notes.cpp.plist | 32 +- .../conditional-path-notes.c.plist | 89 +- .../expected-plists/cxx-for-range.cpp.plist | 90 +- .../Inputs/expected-plists/edges-new.mm.plist | 696 ++- .../Inputs/expected-plists/generics.m.plist | 492 +- .../expected-plists/inline-plist.c.plist | 88 +- .../inline-unique-reports.c.plist | 21 +- .../expected-plists/lambda-notes.cpp.plist | 205 + .../expected-plists/malloc-plist.c.plist | 5262 ++++++++++++++++ .../method-call-path-notes.cpp.plist | 66 +- .../expected-plists/model-file.cpp.plist | 27 +- .../null-deref-path-notes.m.plist | 52 +- .../expected-plists/nullability-notes.m.plist | 20 +- .../Inputs/expected-plists/objc-arc.m.plist | 177 +- .../expected-plists/plist-macros.cpp.plist | 94 +- .../plist-output-alternate.m.plist | 81 +- .../expected-plists/plist-output.m.plist | 246 +- .../retain-release-path-notes.m.plist | 278 +- .../Inputs/expected-plists/unix-fns.c.plist | 5356 +++++++++-------- .../MismatchedDeallocator-path-notes.cpp | 292 +- ...MismatchedDeallocator-path-notes.cpp.plist | 303 + ...list-diagnostics-notes-as-events.cpp.plist | 18 +- .../plist-diagnostics.cpp.plist | 18 +- test/Analysis/cstring-plist.c | 3 + .../deref-track-symbolic-region.c.plist | 35 +- .../plist-diagnostics-include-check.cpp.plist | 147 + .../expected-plists/plist-multi-file.c.plist | 212 + .../report-issues-within-main-file.cpp.plist | 1825 ++++++ .../undef-value-caller.c.plist | 25 +- .../expected-plists/undef-value-param.c.plist | 55 +- .../expected-plists/undef-value-param.m.plist | 43 +- .../plist-diagnostics-include-check.cpp | 132 +- test/Analysis/diagnostics/plist-multi-file.c | 199 +- .../report-issues-within-main-file.cpp | 1709 +----- .../eager-reclamation-path-notes.c.plist | 38 +- .../eager-reclamation-path-notes.cpp.plist | 23 +- .../Inputs/expected-plists/path-notes.c.plist | 152 +- .../expected-plists/path-notes.cpp.plist | 236 +- .../Inputs/expected-plists/path-notes.m.plist | 81 +- test/Analysis/lambda-notes.cpp | 195 +- test/Analysis/malloc-plist.c | 5037 +--------------- test/Analysis/plist-stats-output.c | 3 + test/Analysis/unix-fns.c | 2835 +-------- 45 files changed, 13935 insertions(+), 13128 deletions(-) create mode 100644 test/Analysis/Inputs/expected-plists/lambda-notes.cpp.plist create mode 100644 test/Analysis/Inputs/expected-plists/malloc-plist.c.plist create mode 100644 test/Analysis/copypaste/Inputs/expected-plists/MismatchedDeallocator-path-notes.cpp.plist create mode 100644 test/Analysis/diagnostics/Inputs/expected-plists/plist-diagnostics-include-check.cpp.plist create mode 100644 test/Analysis/diagnostics/Inputs/expected-plists/plist-multi-file.c.plist create mode 100644 test/Analysis/diagnostics/Inputs/expected-plists/report-issues-within-main-file.cpp.plist diff --git a/include/clang/Basic/PlistSupport.h b/include/clang/Basic/PlistSupport.h index be92bbfde1..e41c247377 100644 --- a/include/clang/Basic/PlistSupport.h +++ b/include/clang/Basic/PlistSupport.h @@ -25,24 +25,35 @@ namespace markup { using FIDMap = llvm::DenseMap; -inline void AddFID(FIDMap &FIDs, SmallVectorImpl &V, - const SourceManager &SM, SourceLocation L) { - FileID FID = SM.getFileID(SM.getExpansionLoc(L)); +inline unsigned AddFID(FIDMap &FIDs, SmallVectorImpl &V, + FileID FID) { FIDMap::iterator I = FIDs.find(FID); if (I != FIDs.end()) - return; - FIDs[FID] = V.size(); + return I->second; + unsigned NewValue = V.size(); + FIDs[FID] = NewValue; V.push_back(FID); + return NewValue; } -inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, - SourceLocation L) { +inline unsigned AddFID(FIDMap &FIDs, SmallVectorImpl &V, + const SourceManager &SM, SourceLocation L) { FileID FID = SM.getFileID(SM.getExpansionLoc(L)); + return AddFID(FIDs, V, FID); +} + +inline unsigned GetFID(const FIDMap &FIDs, FileID FID) { FIDMap::const_iterator I = FIDs.find(FID); assert(I != FIDs.end()); return I->second; } +inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, + SourceLocation L) { + FileID FID = SM.getFileID(SM.getExpansionLoc(L)); + return GetFID(FIDs, FID); +} + inline raw_ostream &Indent(raw_ostream &o, const unsigned indent) { for (unsigned i = 0; i < indent; ++i) o << ' '; diff --git a/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp b/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp index 6be8c6ac68..b45dfcfb36 100644 --- a/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp +++ b/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp @@ -328,6 +328,39 @@ static void ReportPiece(raw_ostream &o, } } +/// Print coverage information to output stream {@code o}. +/// May modify the used list of files {@code Fids} by inserting new ones. +static void printCoverage(const PathDiagnostic *D, + unsigned InputIndentLevel, + SmallVectorImpl &Fids, + FIDMap &FM, + llvm::raw_fd_ostream &o) { + unsigned IndentLevel = InputIndentLevel; + + Indent(o, IndentLevel) << "ExecutedLines\n"; + Indent(o, IndentLevel) << "\n"; + IndentLevel++; + + // Mapping from file IDs to executed lines. + const FilesToLineNumsMap &ExecutedLines = D->getExecutedLines(); + for (auto I = ExecutedLines.begin(), E = ExecutedLines.end(); I != E; ++I) { + unsigned FileKey = AddFID(FM, Fids, I->first); + Indent(o, IndentLevel) << "" << FileKey << "\n"; + Indent(o, IndentLevel) << "\n"; + IndentLevel++; + for (unsigned LineNo : I->second) { + Indent(o, IndentLevel); + EmitInteger(o, LineNo) << "\n"; + } + IndentLevel--; + Indent(o, IndentLevel) << "\n"; + } + IndentLevel--; + Indent(o, IndentLevel) << "\n"; + + assert(IndentLevel == InputIndentLevel); +} + void PlistDiagnostics::FlushDiagnosticsImpl( std::vector &Diags, FilesMade *filesMade) { @@ -395,14 +428,7 @@ void PlistDiagnostics::FlushDiagnosticsImpl( o << "\n" << " clang_version\n"; EmitString(o, getClangFullVersion()) << '\n'; - o << " files\n" - " \n"; - - for (FileID FID : Fids) - EmitString(o << " ", SM->getFileEntryForID(FID)->getName()) << '\n'; - - o << " \n" - " diagnostics\n" + o << " diagnostics\n" " \n"; for (std::vector::iterator DI=Diags.begin(), @@ -553,12 +579,20 @@ void PlistDiagnostics::FlushDiagnosticsImpl( } } + printCoverage(D, /*IndentLevel=*/2, Fids, FM, o); + // Close up the entry. o << " \n"; } o << " \n"; + o << " files\n" + " \n"; + for (FileID FID : Fids) + EmitString(o << " ", SM->getFileEntryForID(FID)->getName()) << '\n'; + o << " \n"; + if (llvm::AreStatisticsEnabled() && SerializeStatistics) { o << " statistics\n"; std::string stats; diff --git a/test/Analysis/Inputs/expected-plists/NewDelete-path-notes.cpp.plist b/test/Analysis/Inputs/expected-plists/NewDelete-path-notes.cpp.plist index be1308e21d..8d7648454e 100644 --- a/test/Analysis/Inputs/expected-plists/NewDelete-path-notes.cpp.plist +++ b/test/Analysis/Inputs/expected-plists/NewDelete-path-notes.cpp.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -208,6 +204,17 @@ col3 file0 + ExecutedLines + + 0 + + 6 + 7 + 9 + 11 + 14 + + path @@ -426,7 +433,22 @@ col2 file0 + ExecutedLines + + 0 + + 19 + 20 + 24 + 25 + 27 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/NewDelete-path-notes.cpp - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/conditional-path-notes.c.plist b/test/Analysis/Inputs/expected-plists/conditional-path-notes.c.plist index ea431c8da1..320e8c3ce8 100644 --- a/test/Analysis/Inputs/expected-plists/conditional-path-notes.c.plist +++ b/test/Analysis/Inputs/expected-plists/conditional-path-notes.c.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -276,6 +272,15 @@ col6 file0 + ExecutedLines + + 0 + + 5 + 6 + 10 + + path @@ -456,6 +461,15 @@ col11 file0 + ExecutedLines + + 0 + + 14 + 15 + 19 + + path @@ -602,6 +616,14 @@ col16 file0 + ExecutedLines + + 0 + + 24 + 25 + + path @@ -748,6 +770,14 @@ col19 file0 + ExecutedLines + + 0 + + 32 + 33 + + path @@ -894,6 +924,15 @@ col6 file0 + ExecutedLines + + 0 + + 40 + 41 + 44 + + path @@ -1074,6 +1113,15 @@ col11 file0 + ExecutedLines + + 0 + + 48 + 49 + 53 + + path @@ -1254,6 +1302,15 @@ col24 file0 + ExecutedLines + + 0 + + 58 + 59 + 62 + + path @@ -1497,6 +1554,15 @@ col24 file0 + ExecutedLines + + 0 + + 67 + 68 + 73 + + path @@ -1677,7 +1743,20 @@ col24 file0 + ExecutedLines + + 0 + + 78 + 79 + 82 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/conditional-path-notes.c + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/cxx-for-range.cpp.plist b/test/Analysis/Inputs/expected-plists/cxx-for-range.cpp.plist index d90833ccb9..96ad3d512f 100644 --- a/test/Analysis/Inputs/expected-plists/cxx-for-range.cpp.plist +++ b/test/Analysis/Inputs/expected-plists/cxx-for-range.cpp.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -509,6 +505,23 @@ col26 file0 + ExecutedLines + + 0 + + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + + path @@ -737,6 +750,17 @@ col24 file0 + ExecutedLines + + 0 + + 31 + 32 + 33 + 87 + 88 + + path @@ -1014,6 +1038,21 @@ col26 file0 + ExecutedLines + + 0 + + 31 + 32 + 34 + 37 + 38 + 39 + 40 + 41 + 42 + + path @@ -1160,6 +1199,18 @@ col22 file0 + ExecutedLines + + 0 + + 31 + 32 + 34 + 37 + 38 + 48 + + path @@ -1437,6 +1488,20 @@ col26 file0 + ExecutedLines + + 0 + + 68 + 69 + 72 + 73 + 74 + 75 + 76 + 77 + + path @@ -1583,7 +1648,22 @@ col22 file0 + ExecutedLines + + 0 + + 68 + 69 + 72 + 73 + 83 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/cxx-for-range.cpp - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/edges-new.mm.plist b/test/Analysis/Inputs/expected-plists/edges-new.mm.plist index 50ac2346ec..3a38fe7925 100644 --- a/test/Analysis/Inputs/expected-plists/edges-new.mm.plist +++ b/test/Analysis/Inputs/expected-plists/edges-new.mm.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -145,6 +141,15 @@ col6 file0 + ExecutedLines + + 0 + + 51 + 52 + 53 + + path @@ -325,6 +330,16 @@ col6 file0 + ExecutedLines + + 0 + + 56 + 57 + 58 + 59 + + path @@ -568,6 +583,17 @@ col6 file0 + ExecutedLines + + 0 + + 62 + 63 + 64 + 65 + 66 + + path @@ -748,6 +774,15 @@ col8 file0 + ExecutedLines + + 0 + + 69 + 70 + 71 + + path @@ -991,6 +1026,16 @@ col8 file0 + ExecutedLines + + 0 + + 75 + 76 + 77 + 78 + + path @@ -1171,6 +1216,16 @@ col10 file0 + ExecutedLines + + 0 + + 82 + 83 + 84 + 85 + + path @@ -1511,6 +1566,18 @@ col6 file0 + ExecutedLines + + 0 + + 88 + 89 + 90 + 93 + 96 + 97 + + path @@ -1783,6 +1850,16 @@ col10 file0 + ExecutedLines + + 0 + + 101 + 102 + 103 + 105 + + path @@ -2045,6 +2122,18 @@ col1 file0 + ExecutedLines + + 0 + + 117 + 118 + 119 + 120 + 122 + 123 + + path @@ -2225,6 +2314,16 @@ col24 file0 + ExecutedLines + + 0 + + 129 + 130 + 131 + 132 + + path @@ -2274,6 +2373,13 @@ col3 file0 + ExecutedLines + + 0 + + 140 + + path @@ -2483,6 +2589,16 @@ col5 file0 + ExecutedLines + + 0 + + 135 + 136 + 137 + 140 + + path @@ -2920,6 +3036,18 @@ col8 file0 + ExecutedLines + + 0 + + 144 + 145 + 146 + 147 + 148 + 150 + + path @@ -3226,6 +3354,17 @@ col6 file0 + ExecutedLines + + 0 + + 156 + 157 + 158 + 159 + 162 + + path @@ -3498,6 +3637,17 @@ col6 file0 + ExecutedLines + + 0 + + 165 + 166 + 167 + 168 + 172 + + path @@ -4003,6 +4153,21 @@ col6 file0 + ExecutedLines + + 0 + + 175 + 176 + 177 + 178 + 179 + 181 + 183 + 185 + 186 + + path @@ -4503,6 +4668,16 @@ col6 file0 + ExecutedLines + + 0 + + 189 + 190 + 191 + 192 + + path @@ -5071,6 +5246,19 @@ col6 file0 + ExecutedLines + + 0 + + 195 + 196 + 198 + 200 + 202 + 204 + 206 + + path @@ -5639,6 +5827,23 @@ col7 file0 + ExecutedLines + + 0 + + 209 + 210 + 211 + 212 + 213 + 214 + 215 + 216 + 217 + 218 + 219 + + path @@ -6086,6 +6291,20 @@ col6 file0 + ExecutedLines + + 0 + + 222 + 223 + 225 + 227 + 229 + 230 + 232 + 234 + + path @@ -6334,6 +6553,16 @@ col8 file0 + ExecutedLines + + 0 + + 238 + 239 + 240 + 241 + + path @@ -6582,6 +6811,16 @@ col8 file0 + ExecutedLines + + 0 + + 245 + 246 + 247 + 248 + + path @@ -6893,6 +7132,16 @@ col8 file0 + ExecutedLines + + 0 + + 252 + 254 + 255 + 256 + + path @@ -7204,6 +7453,16 @@ col8 file0 + ExecutedLines + + 0 + + 260 + 261 + 263 + 264 + + path @@ -7651,6 +7910,17 @@ col8 file0 + ExecutedLines + + 0 + + 260 + 261 + 263 + 267 + 268 + + path @@ -8166,6 +8436,16 @@ col8 file0 + ExecutedLines + + 0 + + 272 + 274 + 276 + 278 + + path @@ -8579,6 +8859,16 @@ col6 file0 + ExecutedLines + + 0 + + 282 + 283 + 285 + 287 + + path @@ -8856,6 +9146,17 @@ col6 file0 + ExecutedLines + + 0 + + 290 + 291 + 294 + 297 + 298 + + path @@ -9065,6 +9366,15 @@ col10 file0 + ExecutedLines + + 0 + + 309 + 310 + 312 + + path @@ -9240,6 +9550,15 @@ col19 file0 + ExecutedLines + + 0 + + 319 + 320 + 321 + + path @@ -9638,6 +9957,16 @@ col19 file0 + ExecutedLines + + 0 + + 336 + 337 + 340 + 341 + + path @@ -9861,6 +10190,19 @@ col9 file0 + ExecutedLines + + 0 + + 345 + 346 + 347 + 351 + 352 + 353 + 354 + + path @@ -10007,6 +10349,15 @@ col6 file0 + ExecutedLines + + 0 + + 382 + 383 + 384 + + path @@ -10119,6 +10470,16 @@ col3 file0 + ExecutedLines + + 0 + + 391 + 392 + 393 + 394 + + path @@ -10333,6 +10694,18 @@ col24 file0 + ExecutedLines + + 0 + + 399 + 400 + 401 + 402 + 403 + 404 + + path @@ -10576,6 +10949,16 @@ col8 file0 + ExecutedLines + + 0 + + 419 + 420 + 421 + 422 + + path @@ -10637,6 +11020,13 @@ col8 file0 + ExecutedLines + + 0 + + 431 + + path @@ -10831,6 +11221,16 @@ col9 file0 + ExecutedLines + + 0 + + 429 + 430 + 431 + 433 + + path @@ -11011,6 +11411,18 @@ col24 file0 + ExecutedLines + + 0 + + 438 + 445 + 446 + 447 + 448 + 449 + + path @@ -11458,6 +11870,23 @@ col26 file0 + ExecutedLines + + 0 + + 438 + 445 + 452 + 453 + 454 + 455 + 456 + 457 + 458 + 459 + 460 + + path @@ -11934,6 +12363,25 @@ col24 file0 + ExecutedLines + + 0 + + 438 + 445 + 452 + 453 + 454 + 455 + 456 + 457 + 459 + 460 + 462 + 463 + 464 + + path @@ -12473,6 +12921,29 @@ col24 file0 + ExecutedLines + + 0 + + 438 + 445 + 452 + 453 + 454 + 455 + 456 + 457 + 459 + 460 + 462 + 467 + 468 + 469 + 470 + 471 + 472 + + path @@ -13919,6 +14390,41 @@ col24 file0 + ExecutedLines + + 0 + + 438 + 445 + 452 + 453 + 454 + 455 + 456 + 457 + 459 + 460 + 462 + 467 + 475 + 476 + 477 + 478 + 479 + 480 + 481 + 483 + 484 + 491 + 492 + 493 + 494 + 497 + 498 + 499 + 500 + + path @@ -15491,6 +15997,42 @@ col24 file0 + ExecutedLines + + 0 + + 438 + 445 + 452 + 453 + 454 + 455 + 456 + 457 + 459 + 460 + 462 + 467 + 475 + 476 + 477 + 478 + 479 + 480 + 481 + 483 + 484 + 491 + 492 + 493 + 494 + 497 + 498 + 503 + 504 + 505 + + path @@ -17286,6 +17828,44 @@ col24 file0 + ExecutedLines + + 0 + + 438 + 445 + 452 + 453 + 454 + 455 + 456 + 457 + 459 + 460 + 462 + 467 + 475 + 476 + 477 + 478 + 479 + 480 + 481 + 483 + 484 + 491 + 492 + 493 + 494 + 497 + 498 + 503 + 508 + 509 + 510 + 512 + + path @@ -19178,6 +19758,46 @@ col22 file0 + ExecutedLines + + 0 + + 438 + 445 + 452 + 453 + 454 + 455 + 456 + 457 + 459 + 460 + 462 + 467 + 475 + 476 + 477 + 478 + 479 + 480 + 481 + 483 + 484 + 491 + 492 + 493 + 494 + 497 + 498 + 503 + 508 + 515 + 516 + 517 + 518 + 521 + + path @@ -19464,6 +20084,18 @@ col5 file0 + ExecutedLines + + 0 + + 528 + 529 + 530 + 531 + 532 + 533 + + path @@ -19704,6 +20336,20 @@ col19 file0 + ExecutedLines + + 0 + + 543 + 544 + 547 + 548 + 549 + 551 + 553 + 555 + + path @@ -20421,6 +21067,22 @@ col1 file0 + ExecutedLines + + 0 + + 557 + 558 + 559 + 560 + 561 + 562 + 564 + 566 + 567 + 568 + + path @@ -20567,6 +21229,15 @@ col6 file0 + ExecutedLines + + 0 + + 571 + 572 + 573 + + path @@ -20750,7 +21421,22 @@ col28 file0 + ExecutedLines + + 0 + + 583 + 584 + 585 + 587 + 588 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/edges-new.mm - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/generics.m.plist b/test/Analysis/Inputs/expected-plists/generics.m.plist index 988aed4b69..49cfd929db 100644 --- a/test/Analysis/Inputs/expected-plists/generics.m.plist +++ b/test/Analysis/Inputs/expected-plists/generics.m.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -145,6 +141,17 @@ col7 file0 + ExecutedLines + + 0 + + 97 + 98 + 99 + 100 + 101 + + path @@ -291,6 +298,20 @@ col11 file0 + ExecutedLines + + 0 + + 97 + 98 + 99 + 100 + 101 + 102 + 103 + 104 + + path @@ -403,6 +424,22 @@ col3 file0 + ExecutedLines + + 0 + + 97 + 98 + 99 + 100 + 101 + 102 + 103 + 104 + 106 + 107 + + path @@ -655,6 +692,17 @@ col28 file0 + ExecutedLines + + 0 + + 86 + 87 + 88 + 110 + 111 + + path @@ -801,6 +849,18 @@ col11 file0 + ExecutedLines + + 0 + + 114 + 115 + 116 + 117 + 118 + 119 + + path @@ -913,6 +973,19 @@ col3 file0 + ExecutedLines + + 0 + + 114 + 115 + 116 + 117 + 118 + 119 + 121 + + path @@ -1059,6 +1132,17 @@ col11 file0 + ExecutedLines + + 0 + + 124 + 125 + 126 + 127 + 128 + + path @@ -1171,6 +1255,18 @@ col3 file0 + ExecutedLines + + 0 + + 124 + 125 + 126 + 127 + 128 + 130 + + path @@ -1317,6 +1413,16 @@ col7 file0 + ExecutedLines + + 0 + + 133 + 134 + 135 + 136 + + path @@ -1463,6 +1569,19 @@ col11 file0 + ExecutedLines + + 0 + + 133 + 134 + 135 + 136 + 137 + 138 + 139 + + path @@ -1575,6 +1694,20 @@ col3 file0 + ExecutedLines + + 0 + + 133 + 134 + 135 + 136 + 137 + 138 + 139 + 141 + + path @@ -1818,6 +1951,18 @@ col3 file0 + ExecutedLines + + 0 + + 144 + 145 + 146 + 150 + 151 + 153 + + path @@ -1964,6 +2109,15 @@ col11 file0 + ExecutedLines + + 0 + + 157 + 158 + 159 + + path @@ -2144,6 +2298,18 @@ col7 file0 + ExecutedLines + + 0 + + 184 + 185 + 186 + 187 + 188 + 189 + + path @@ -2290,6 +2456,20 @@ col7 file0 + ExecutedLines + + 0 + + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + + path @@ -2402,6 +2582,21 @@ col3 file0 + ExecutedLines + + 0 + + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + 201 + + path @@ -2548,6 +2743,20 @@ col7 file0 + ExecutedLines + + 0 + + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + + path @@ -2660,6 +2869,21 @@ col2 file0 + ExecutedLines + + 0 + + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + 213 + + path @@ -2806,6 +3030,15 @@ col27 file0 + ExecutedLines + + 0 + + 216 + 219 + 220 + + path @@ -2952,6 +3185,15 @@ col20 file0 + ExecutedLines + + 0 + + 223 + 224 + 225 + + path @@ -3098,6 +3340,15 @@ col20 file0 + ExecutedLines + + 0 + + 228 + 229 + 230 + + path @@ -3244,6 +3495,15 @@ col27 file0 + ExecutedLines + + 0 + + 233 + 234 + 235 + + path @@ -3453,6 +3713,16 @@ col27 file0 + ExecutedLines + + 0 + + 238 + 239 + 240 + 241 + + path @@ -3599,6 +3869,15 @@ col27 file0 + ExecutedLines + + 0 + + 244 + 245 + 246 + + path @@ -3745,6 +4024,15 @@ col20 file0 + ExecutedLines + + 0 + + 249 + 250 + 251 + + path @@ -3954,6 +4242,16 @@ col20 file0 + ExecutedLines + + 0 + + 254 + 255 + 256 + 257 + + path @@ -4163,6 +4461,16 @@ col27 file0 + ExecutedLines + + 0 + + 260 + 261 + 262 + 263 + + path @@ -4309,6 +4617,15 @@ col19 file0 + ExecutedLines + + 0 + + 274 + 275 + 276 + + path @@ -4455,6 +4772,17 @@ col9 file0 + ExecutedLines + + 0 + + 274 + 275 + 276 + 277 + 278 + + path @@ -4601,6 +4929,19 @@ col9 file0 + ExecutedLines + + 0 + + 274 + 275 + 276 + 277 + 278 + 279 + 280 + + path @@ -4747,6 +5088,21 @@ col9 file0 + ExecutedLines + + 0 + + 274 + 275 + 276 + 277 + 278 + 279 + 280 + 281 + 282 + + path @@ -4990,6 +5346,18 @@ col5 file0 + ExecutedLines + + 0 + + 286 + 287 + 288 + 289 + 290 + 291 + + path @@ -5199,6 +5567,17 @@ col5 file0 + ExecutedLines + + 0 + + 298 + 299 + 300 + 301 + 302 + + path @@ -5345,6 +5724,15 @@ col28 file0 + ExecutedLines + + 0 + + 325 + 326 + 327 + + path @@ -5491,6 +5879,16 @@ col7 file0 + ExecutedLines + + 0 + + 325 + 326 + 327 + 328 + + path @@ -5637,6 +6035,15 @@ col18 file0 + ExecutedLines + + 0 + + 331 + 332 + 333 + + path @@ -5817,6 +6224,16 @@ col30 file0 + ExecutedLines + + 0 + + 344 + 345 + 346 + 347 + + path @@ -5997,6 +6414,16 @@ col30 file0 + ExecutedLines + + 0 + + 350 + 351 + 352 + 353 + + path @@ -6143,6 +6570,15 @@ col14 file0 + ExecutedLines + + 0 + + 356 + 357 + 358 + + path @@ -6323,6 +6759,16 @@ col19 file0 + ExecutedLines + + 0 + + 362 + 363 + 364 + 365 + + path @@ -6469,6 +6915,16 @@ col7 file0 + ExecutedLines + + 0 + + 372 + 373 + 374 + 375 + + path @@ -6581,6 +7037,18 @@ col3 file0 + ExecutedLines + + 0 + + 372 + 373 + 374 + 375 + 379 + 380 + + path @@ -6698,7 +7166,21 @@ col70 file0 + ExecutedLines + + 0 + + 388 + 389 + 390 + 391 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/generics.m + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/inline-plist.c.plist b/test/Analysis/Inputs/expected-plists/inline-plist.c.plist index 3cbd37b483..cb20a47227 100644 --- a/test/Analysis/Inputs/expected-plists/inline-plist.c.plist +++ b/test/Analysis/Inputs/expected-plists/inline-plist.c.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -179,6 +175,18 @@ col11 file0 + ExecutedLines + + 0 + + 6 + 7 + 11 + 12 + 13 + 18 + + path @@ -368,6 +376,16 @@ col6 file0 + ExecutedLines + + 0 + + 22 + 23 + 26 + 27 + + path @@ -688,6 +706,18 @@ col6 file0 + ExecutedLines + + 0 + + 32 + 33 + 38 + 39 + 45 + 47 + + path @@ -908,6 +938,16 @@ col8 file0 + ExecutedLines + + 0 + + 57 + 58 + 59 + 60 + + path @@ -1320,6 +1360,17 @@ col6 file0 + ExecutedLines + + 0 + + 65 + 66 + 67 + 68 + 70 + + path @@ -1606,6 +1657,17 @@ col6 file0 + ExecutedLines + + 0 + + 73 + 74 + 75 + 76 + 78 + + path @@ -1892,7 +1954,23 @@ col6 file0 + ExecutedLines + + 0 + + 81 + 82 + 83 + 84 + 85 + 86 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/inline-plist.c + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/inline-unique-reports.c.plist b/test/Analysis/Inputs/expected-plists/inline-unique-reports.c.plist index 310efdacb0..bfcd6e9c65 100644 --- a/test/Analysis/Inputs/expected-plists/inline-unique-reports.c.plist +++ b/test/Analysis/Inputs/expected-plists/inline-unique-reports.c.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -251,7 +247,22 @@ col6 file0 + ExecutedLines + + 0 + + 4 + 5 + 13 + 14 + 15 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/inline-unique-reports.c + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/lambda-notes.cpp.plist b/test/Analysis/Inputs/expected-plists/lambda-notes.cpp.plist new file mode 100644 index 0000000000..4404ad0469 --- /dev/null +++ b/test/Analysis/Inputs/expected-plists/lambda-notes.cpp.plist @@ -0,0 +1,205 @@ + + + kindcontrol + edges + + + start + + + line8 + col3 + file0 + + + line8 + col5 + file0 + + + end + + + line9 + col3 + file0 + + + line9 + col3 + file0 + + + + + + + kindevent + location + + line9 + col3 + file0 + + ranges + + + + line9 + col3 + file0 + + + line12 + col3 + file0 + + + + depth0 + extended_message + The value 0 is assigned to field '' + message + The value 0 is assigned to field '' + + + kindevent + location + + line9 + col3 + file0 + + ranges + + + + line9 + col3 + file0 + + + line12 + col5 + file0 + + + + depth0 + extended_message + Calling 'operator()' + message + Calling 'operator()' + + + kindevent + location + + line9 + col5 + file0 + + depth1 + extended_message + Entered call from 'diagnosticFromLambda' + message + Entered call from 'diagnosticFromLambda' + + + kindcontrol + edges + + + start + + + line9 + col5 + file0 + + + line9 + col5 + file0 + + + end + + + line10 + col14 + file0 + + + line10 + col14 + file0 + + + + + + + kindevent + location + + line10 + col14 + file0 + + ranges + + + + line10 + col13 + file0 + + + line10 + col15 + file0 + + + + depth1 + extended_message + Division by zero + message + Division by zero + + + descriptionDivision by zero + categoryLogic error + typeDivision by zero + check_namecore.DivideZero + + issue_hash_content_of_line_in_contextbd4eed3234018edced5efc2ed5562a74 + issue_context_kindC++ method + issue_contextoperator() + issue_hash_function_offset1 + location + + line10 + col14 + file0 + + ExecutedLines + + 0 + + 7 + 8 + 9 + 10 + 12 + + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/lambda-notes.cpp + + + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/malloc-plist.c.plist b/test/Analysis/Inputs/expected-plists/malloc-plist.c.plist new file mode 100644 index 0000000000..9e14baae08 --- /dev/null +++ b/test/Analysis/Inputs/expected-plists/malloc-plist.c.plist @@ -0,0 +1,5262 @@ + + + kindcontrol + edges + + + start + + + line11 + col5 + file0 + + + line11 + col6 + file0 + + + end + + + line11 + col9 + file0 + + + line11 + col10 + file0 + + + + + + + kindevent + location + + line11 + col9 + file0 + + ranges + + + + line11 + col9 + file0 + + + line11 + col14 + file0 + + + + depth0 + extended_message + Assuming 'in' is > 5 + message + Assuming 'in' is > 5 + + + kindcontrol + edges + + + start + + + line11 + col9 + file0 + + + line11 + col10 + file0 + + + end + + + line12 + col9 + file0 + + + line12 + col11 + file0 + + + + + + + kindevent + location + + line12 + col18 + file0 + + ranges + + + + line12 + col18 + file0 + + + line12 + col27 + file0 + + + + depth0 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line12 + col9 + file0 + + + line12 + col11 + file0 + + + end + + + line14 + col9 + file0 + + + line14 + col9 + file0 + + + + + + + kindcontrol + edges + + + start + + + line14 + col9 + file0 + + + line14 + col9 + file0 + + + end + + + line16 + col5 + file0 + + + line16 + col6 + file0 + + + + + + + kindevent + location + + line16 + col5 + file0 + + depth0 + extended_message + Potential leak of memory pointed to by 'p' + message + Potential leak of memory pointed to by 'p' + + + descriptionPotential leak of memory pointed to by 'p' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_contextc60b35a3e46fd104f362f430a1eaca5d + issue_context_kindfunction + issue_contextdiagnosticTest + issue_hash_function_offset2 + location + + line16 + col5 + file0 + + ExecutedLines + + 0 + + 10 + 11 + 12 + 13 + 14 + 16 + + + + + path + + + kindcontrol + edges + + + start + + + line20 + col5 + file0 + + + line20 + col7 + file0 + + + end + + + line21 + col5 + file0 + + + line21 + col5 + file0 + + + + + + + kindevent + location + + line21 + col9 + file0 + + ranges + + + + line21 + col9 + file0 + + + line21 + col30 + file0 + + + + depth0 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line21 + col5 + file0 + + + line21 + col5 + file0 + + + end + + + line22 + col5 + file0 + + + line22 + col5 + file0 + + + + + + + kindcontrol + edges + + + start + + + line22 + col5 + file0 + + + line22 + col5 + file0 + + + end + + + line23 + col1 + file0 + + + line23 + col1 + file0 + + + + + + + kindevent + location + + line23 + col1 + file0 + + depth0 + extended_message + Potential leak of memory pointed to by 'A' + message + Potential leak of memory pointed to by 'A' + + + descriptionPotential leak of memory pointed to by 'A' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context9b732ec46c4a08108dfbd37aa0955c51 + issue_context_kindfunction + issue_contextmyArrayAllocation + issue_hash_function_offset2 + location + + line23 + col1 + file0 + + ExecutedLines + + 0 + + 19 + 20 + 21 + 22 + 23 + + + + + path + + + kindevent + location + + line26 + col18 + file0 + + ranges + + + + line26 + col18 + file0 + + + line26 + col28 + file0 + + + + depth0 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line26 + col5 + file0 + + + line26 + col8 + file0 + + + end + + + line28 + col5 + file0 + + + line28 + col7 + file0 + + + + + + + kindevent + location + + line28 + col18 + file0 + + ranges + + + + line28 + col18 + file0 + + + line28 + col40 + file0 + + + + depth0 + extended_message + Attempt to reallocate memory + message + Attempt to reallocate memory + + + kindcontrol + edges + + + start + + + line28 + col5 + file0 + + + line28 + col7 + file0 + + + end + + + line29 + col5 + file0 + + + line29 + col6 + file0 + + + + + + + kindcontrol + edges + + + start + + + line29 + col5 + file0 + + + line29 + col6 + file0 + + + end + + + line29 + col9 + file0 + + + line29 + col9 + file0 + + + + + + + kindevent + location + + line29 + col9 + file0 + + ranges + + + + line29 + col9 + file0 + + + line29 + col12 + file0 + + + + depth0 + extended_message + Assuming 'tmp' is null + message + Assuming 'tmp' is null + + + kindcontrol + edges + + + start + + + line29 + col9 + file0 + + + line29 + col9 + file0 + + + end + + + line29 + col5 + file0 + + + line29 + col6 + file0 + + + + + + + kindevent + location + + line29 + col5 + file0 + + ranges + + + + line29 + col5 + file0 + + + line29 + col6 + file0 + + + + depth0 + extended_message + Reallocation failed + message + Reallocation failed + + + kindcontrol + edges + + + start + + + line29 + col5 + file0 + + + line29 + col6 + file0 + + + end + + + line30 + col9 + file0 + + + line30 + col14 + file0 + + + + + + + kindevent + location + + line30 + col9 + file0 + + depth0 + extended_message + Potential leak of memory pointed to by 'buf' + message + Potential leak of memory pointed to by 'buf' + + + descriptionPotential leak of memory pointed to by 'buf' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context37c0b1a1e65d26af6f9fb840cf159149 + issue_context_kindfunction + issue_contextreallocDiagnostics + issue_hash_function_offset1 + location + + line30 + col9 + file0 + + ExecutedLines + + 0 + + 25 + 26 + 27 + 28 + 29 + 30 + + + + + path + + + kindcontrol + edges + + + start + + + line45 + col3 + file0 + + + line45 + col6 + file0 + + + end + + + line45 + col15 + file0 + + + line45 + col21 + file0 + + + + + + + kindevent + location + + line45 + col15 + file0 + + ranges + + + + line45 + col15 + file0 + + + line45 + col23 + file0 + + + + depth0 + extended_message + Calling 'wrapper' + message + Calling 'wrapper' + + + kindevent + location + + line36 + col1 + file0 + + depth1 + extended_message + Entered call from 'test_wrapper' + message + Entered call from 'test_wrapper' + + + kindcontrol + edges + + + start + + + line36 + col1 + file0 + + + line36 + col4 + file0 + + + end + + + line37 + col3 + file0 + + + line37 + col6 + file0 + + + + + + + kindevent + location + + line37 + col13 + file0 + + ranges + + + + line37 + col13 + file0 + + + line37 + col23 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line37 + col3 + file0 + + + line37 + col6 + file0 + + + end + + + line39 + col3 + file0 + + + line39 + col4 + file0 + + + + + + + kindcontrol + edges + + + start + + + line39 + col3 + file0 + + + line39 + col4 + file0 + + + end + + + line39 + col7 + file0 + + + line39 + col7 + file0 + + + + + + + kindevent + location + + line39 + col7 + file0 + + ranges + + + + line39 + col7 + file0 + + + line39 + col7 + file0 + + + + depth1 + extended_message + Assuming 'x' is non-null + message + Assuming 'x' is non-null + + + kindcontrol + edges + + + start + + + line39 + col7 + file0 + + + line39 + col7 + file0 + + + end + + + line40 + col5 + file0 + + + line40 + col10 + file0 + + + + + + + kindevent + location + + line45 + col15 + file0 + + ranges + + + + line45 + col15 + file0 + + + line45 + col23 + file0 + + + + depth0 + extended_message + Returned allocated memory + message + Returned allocated memory + + + kindcontrol + edges + + + start + + + line45 + col15 + file0 + + + line45 + col21 + file0 + + + end + + + line45 + col3 + file0 + + + line45 + col6 + file0 + + + + + + + kindcontrol + edges + + + start + + + line45 + col3 + file0 + + + line45 + col6 + file0 + + + end + + + line46 + col3 + file0 + + + line46 + col3 + file0 + + + + + + + kindcontrol + edges + + + start + + + line46 + col3 + file0 + + + line46 + col3 + file0 + + + end + + + line47 + col1 + file0 + + + line47 + col1 + file0 + + + + + + + kindevent + location + + line47 + col1 + file0 + + depth0 + extended_message + Potential leak of memory pointed to by 'buf' + message + Potential leak of memory pointed to by 'buf' + + + descriptionPotential leak of memory pointed to by 'buf' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context384d1700f3d9c8eeea96d171e3030bdf + issue_context_kindfunction + issue_contexttest_wrapper + issue_hash_function_offset1 + location + + line47 + col1 + file0 + + ExecutedLines + + 0 + + 36 + 37 + 39 + 40 + 44 + 45 + 46 + 47 + + + + + path + + + kindcontrol + edges + + + start + + + line61 + col5 + file0 + + + line61 + col8 + file0 + + + end + + + line62 + col5 + file0 + + + line62 + col22 + file0 + + + + + + + kindevent + location + + line62 + col5 + file0 + + ranges + + + + line62 + col5 + file0 + + + line62 + col28 + file0 + + + + depth0 + extended_message + Calling 'my_malloc_and_free' + message + Calling 'my_malloc_and_free' + + + kindevent + location + + line54 + col1 + file0 + + depth1 + extended_message + Entered call from 'test_double_action_call' + message + Entered call from 'test_double_action_call' + + + kindcontrol + edges + + + start + + + line54 + col1 + file0 + + + line54 + col4 + file0 + + + end + + + line55 + col5 + file0 + + + line55 + col5 + file0 + + + + + + + kindevent + location + + line55 + col10 + file0 + + ranges + + + + line55 + col10 + file0 + + + line55 + col20 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line55 + col5 + file0 + + + line55 + col5 + file0 + + + end + + + line56 + col5 + file0 + + + line56 + col6 + file0 + + + + + + + kindcontrol + edges + + + start + + + line56 + col5 + file0 + + + line56 + col6 + file0 + + + end + + + line56 + col9 + file0 + + + line56 + col9 + file0 + + + + + + + kindevent + location + + line56 + col9 + file0 + + ranges + + + + line56 + col9 + file0 + + + line56 + col10 + file0 + + + + depth1 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + + kindcontrol + edges + + + start + + + line56 + col9 + file0 + + + line56 + col9 + file0 + + + end + + + line57 + col7 + file0 + + + line57 + col13 + file0 + + + + + + + kindevent + location + + line57 + col7 + file0 + + ranges + + + + line57 + col7 + file0 + + + line57 + col17 + file0 + + + + depth1 + extended_message + Calling 'my_free' + message + Calling 'my_free' + + + kindevent + location + + line51 + col1 + file0 + + depth2 + extended_message + Entered call from 'my_malloc_and_free' + message + Entered call from 'my_malloc_and_free' + + + kindcontrol + edges + + + start + + + line51 + col1 + file0 + + + line51 + col4 + file0 + + + end + + + line52 + col5 + file0 + + + line52 + col8 + file0 + + + + + + + kindevent + location + + line52 + col5 + file0 + + ranges + + + + line52 + col5 + file0 + + + line52 + col11 + file0 + + + + depth2 + extended_message + Memory is released + message + Memory is released + + + kindevent + location + + line57 + col7 + file0 + + ranges + + + + line57 + col7 + file0 + + + line57 + col17 + file0 + + + + depth1 + extended_message + Returning; memory was released via 1st parameter + message + Returning; memory was released via 1st parameter + + + kindcontrol + edges + + + start + + + line57 + col7 + file0 + + + line57 + col13 + file0 + + + end + + + line58 + col5 + file0 + + + line58 + col10 + file0 + + + + + + + kindevent + location + + line62 + col5 + file0 + + ranges + + + + line62 + col5 + file0 + + + line62 + col28 + file0 + + + + depth0 + extended_message + Returning; memory was released via 1st parameter + message + Returning; memory was released via 1st parameter + + + kindcontrol + edges + + + start + + + line62 + col5 + file0 + + + line62 + col22 + file0 + + + end + + + line63 + col5 + file0 + + + line63 + col10 + file0 + + + + + + + kindevent + location + + line63 + col5 + file0 + + ranges + + + + line63 + col12 + file0 + + + line63 + col14 + file0 + + + + depth0 + extended_message + Use of memory after it is freed + message + Use of memory after it is freed + + + descriptionUse of memory after it is freed + categoryMemory error + typeUse-after-free + check_nameunix.Malloc + + issue_hash_content_of_line_in_context422436dc85b85cde7e15046a5616ee99 + issue_context_kindfunction + issue_contexttest_double_action_call + issue_hash_function_offset3 + location + + line63 + col5 + file0 + + ExecutedLines + + 0 + + 51 + 52 + 54 + 55 + 56 + 57 + 58 + 60 + 61 + 62 + 63 + + + + + path + + + kindevent + location + + line76 + col25 + file0 + + ranges + + + + line76 + col25 + file0 + + + line76 + col35 + file0 + + + + depth0 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line76 + col5 + file0 + + + line76 + col8 + file0 + + + end + + + line77 + col5 + file0 + + + line77 + col7 + file0 + + + + + + + kindcontrol + edges + + + start + + + line77 + col5 + file0 + + + line77 + col7 + file0 + + + end + + + line77 + col11 + file0 + + + line77 + col20 + file0 + + + + + + + kindevent + location + + line77 + col11 + file0 + + ranges + + + + line77 + col11 + file0 + + + line77 + col25 + file0 + + + + depth0 + extended_message + Calling 'my_realloc' + message + Calling 'my_realloc' + + + kindevent + location + + line67 + col1 + file0 + + depth1 + extended_message + Entered call from 'reallocIntra' + message + Entered call from 'reallocIntra' + + + kindcontrol + edges + + + start + + + line67 + col1 + file0 + + + line67 + col4 + file0 + + + end + + + line68 + col5 + file0 + + + line68 + col8 + file0 + + + + + + + kindcontrol + edges + + + start + + + line68 + col5 + file0 + + + line68 + col8 + file0 + + + end + + + line69 + col5 + file0 + + + line69 + col7 + file0 + + + + + + + kindevent + location + + line69 + col18 + file0 + + ranges + + + + line69 + col18 + file0 + + + line69 + col40 + file0 + + + + depth1 + extended_message + Attempt to reallocate memory + message + Attempt to reallocate memory + + + kindcontrol + edges + + + start + + + line69 + col5 + file0 + + + line69 + col7 + file0 + + + end + + + line70 + col5 + file0 + + + line70 + col6 + file0 + + + + + + + kindcontrol + edges + + + start + + + line70 + col5 + file0 + + + line70 + col6 + file0 + + + end + + + line70 + col9 + file0 + + + line70 + col9 + file0 + + + + + + + kindevent + location + + line70 + col9 + file0 + + ranges + + + + line70 + col9 + file0 + + + line70 + col12 + file0 + + + + depth1 + extended_message + Assuming 'tmp' is null + message + Assuming 'tmp' is null + + + kindcontrol + edges + + + start + + + line70 + col9 + file0 + + + line70 + col9 + file0 + + + end + + + line70 + col5 + file0 + + + line70 + col6 + file0 + + + + + + + kindevent + location + + line70 + col5 + file0 + + ranges + + + + line70 + col5 + file0 + + + line70 + col6 + file0 + + + + depth1 + extended_message + Reallocation failed + message + Reallocation failed + + + kindcontrol + edges + + + start + + + line70 + col5 + file0 + + + line70 + col6 + file0 + + + end + + + line71 + col9 + file0 + + + line71 + col14 + file0 + + + + + + + kindevent + location + + line77 + col11 + file0 + + ranges + + + + line77 + col11 + file0 + + + line77 + col25 + file0 + + + + depth0 + extended_message + Reallocation of 1st parameter failed + message + Reallocation of 1st parameter failed + + + kindcontrol + edges + + + start + + + line77 + col11 + file0 + + + line77 + col20 + file0 + + + end + + + line77 + col5 + file0 + + + line77 + col7 + file0 + + + + + + + kindcontrol + edges + + + start + + + line77 + col5 + file0 + + + line77 + col7 + file0 + + + end + + + line78 + col5 + file0 + + + line78 + col8 + file0 + + + + + + + kindevent + location + + line78 + col5 + file0 + + depth0 + extended_message + Potential leak of memory pointed to by 'buf' + message + Potential leak of memory pointed to by 'buf' + + + descriptionPotential leak of memory pointed to by 'buf' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context23a6c295a515c455bea1c81519bc05b6 + issue_context_kindfunction + issue_contextreallocIntra + issue_hash_function_offset1 + location + + line78 + col5 + file0 + + ExecutedLines + + 0 + + 67 + 68 + 69 + 70 + 71 + 75 + 76 + 77 + 78 + + + + + path + + + kindcontrol + edges + + + start + + + line86 + col5 + file0 + + + line86 + col8 + file0 + + + end + + + line87 + col5 + file0 + + + line87 + col5 + file0 + + + + + + + kindcontrol + edges + + + start + + + line87 + col5 + file0 + + + line87 + col5 + file0 + + + end + + + line87 + col9 + file0 + + + line87 + col26 + file0 + + + + + + + kindevent + location + + line87 + col9 + file0 + + ranges + + + + line87 + col9 + file0 + + + line87 + col28 + file0 + + + + depth0 + extended_message + Calling 'malloc_wrapper_ret' + message + Calling 'malloc_wrapper_ret' + + + kindevent + location + + line82 + col1 + file0 + + depth1 + extended_message + Entered call from 'use_ret' + message + Entered call from 'use_ret' + + + kindcontrol + edges + + + start + + + line82 + col1 + file0 + + + line82 + col6 + file0 + + + end + + + line83 + col5 + file0 + + + line83 + col10 + file0 + + + + + + + kindevent + location + + line83 + col19 + file0 + + ranges + + + + line83 + col19 + file0 + + + line83 + col28 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindevent + location + + line87 + col9 + file0 + + ranges + + + + line87 + col9 + file0 + + + line87 + col28 + file0 + + + + depth0 + extended_message + Returned allocated memory + message + Returned allocated memory + + + kindcontrol + edges + + + start + + + line87 + col9 + file0 + + + line87 + col26 + file0 + + + end + + + line87 + col5 + file0 + + + line87 + col5 + file0 + + + + + + + kindcontrol + edges + + + start + + + line87 + col5 + file0 + + + line87 + col5 + file0 + + + end + + + line88 + col1 + file0 + + + line88 + col1 + file0 + + + + + + + kindevent + location + + line88 + col1 + file0 + + depth0 + extended_message + Potential leak of memory pointed to by 'v' + message + Potential leak of memory pointed to by 'v' + + + descriptionPotential leak of memory pointed to by 'v' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context45181c7fc1df81a732346f1ed1b3f238 + issue_context_kindfunction + issue_contextuse_ret + issue_hash_function_offset2 + location + + line88 + col1 + file0 + + ExecutedLines + + 0 + + 82 + 83 + 85 + 86 + 87 + 88 + + + + + path + + + kindcontrol + edges + + + start + + + line98 + col3 + file0 + + + line98 + col6 + file0 + + + end + + + line100 + col3 + file0 + + + line100 + col5 + file0 + + + + + + + kindevent + location + + line100 + col12 + file0 + + ranges + + + + line100 + col12 + file0 + + + line100 + col30 + file0 + + + + depth0 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line100 + col3 + file0 + + + line100 + col5 + file0 + + + end + + + line101 + col3 + file0 + + + line101 + col20 + file0 + + + + + + + kindevent + location + + line101 + col3 + file0 + + ranges + + + + line101 + col3 + file0 + + + line101 + col35 + file0 + + + + depth0 + extended_message + Calling 'myfree_takingblock' + message + Calling 'myfree_takingblock' + + + kindevent + location + + line93 + col1 + file0 + + depth1 + extended_message + Entered call from 'call_myfree_takingblock' + message + Entered call from 'call_myfree_takingblock' + + + kindcontrol + edges + + + start + + + line93 + col1 + file0 + + + line93 + col4 + file0 + + + end + + + line94 + col3 + file0 + + + line94 + col6 + file0 + + + + + + + kindevent + location + + line94 + col3 + file0 + + ranges + + + + line94 + col3 + file0 + + + line94 + col9 + file0 + + + + depth1 + extended_message + Memory is released + message + Memory is released + + + kindevent + location + + line101 + col3 + file0 + + ranges + + + + line101 + col3 + file0 + + + line101 + col35 + file0 + + + + depth0 + extended_message + Returning; memory was released via 2nd parameter + message + Returning; memory was released via 2nd parameter + + + kindcontrol + edges + + + start + + + line101 + col3 + file0 + + + line101 + col20 + file0 + + + end + + + line102 + col3 + file0 + + + line102 + col3 + file0 + + + + + + + kindcontrol + edges + + + start + + + line102 + col3 + file0 + + + line102 + col3 + file0 + + + end + + + line102 + col6 + file0 + + + line102 + col6 + file0 + + + + + + + kindevent + location + + line102 + col6 + file0 + + ranges + + + + line102 + col3 + file0 + + + line102 + col4 + file0 + + + + depth0 + extended_message + Use of memory after it is freed + message + Use of memory after it is freed + + + descriptionUse of memory after it is freed + categoryMemory error + typeUse-after-free + check_nameunix.Malloc + + issue_hash_content_of_line_in_context652c97005df876a65d64ecd286d6030a + issue_context_kindfunction + issue_contextcall_myfree_takingblock + issue_hash_function_offset5 + location + + line102 + col6 + file0 + + ExecutedLines + + 0 + + 93 + 94 + 97 + 98 + 100 + 101 + 102 + + + + + path + + + kindcontrol + edges + + + start + + + line107 + col5 + file0 + + + line107 + col7 + file0 + + + end + + + line109 + col5 + file0 + + + line109 + col5 + file0 + + + + + + + kindevent + location + + line109 + col15 + file0 + + ranges + + + + line109 + col15 + file0 + + + line109 + col24 + file0 + + + + depth0 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line109 + col5 + file0 + + + line109 + col5 + file0 + + + end + + + line115 + col5 + file0 + + + line115 + col6 + file0 + + + + + + + kindevent + location + + line115 + col5 + file0 + + depth0 + extended_message + Potential leak of memory pointed to by 'm' + message + Potential leak of memory pointed to by 'm' + + + descriptionPotential leak of memory pointed to by 'm' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_contextd8483ccf1d5a1af1e8bcaac6905a18b3 + issue_context_kindfunction + issue_contextLeakedSymbol + issue_hash_function_offset3 + location + + line115 + col5 + file0 + + ExecutedLines + + 0 + + 106 + 107 + 108 + 109 + 110 + 111 + 112 + 113 + 114 + 115 + + + + + path + + + kindevent + location + + line123 + col5 + file0 + + ranges + + + + line123 + col5 + file0 + + + line123 + col25 + file0 + + + + depth0 + extended_message + Calling 'function_with_leak1' + message + Calling 'function_with_leak1' + + + kindevent + location + + line119 + col1 + file0 + + depth1 + extended_message + Entered call from 'use_function_with_leak1' + message + Entered call from 'use_function_with_leak1' + + + kindcontrol + edges + + + start + + + line119 + col1 + file0 + + + line119 + col6 + file0 + + + end + + + line120 + col5 + file0 + + + line120 + col8 + file0 + + + + + + + kindevent + location + + line120 + col22 + file0 + + ranges + + + + line120 + col22 + file0 + + + line120 + col31 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line120 + col5 + file0 + + + line120 + col8 + file0 + + + end + + + line121 + col1 + file0 + + + line121 + col1 + file0 + + + + + + + kindevent + location + + line121 + col1 + file0 + + depth1 + extended_message + Potential leak of memory pointed to by 'x' + message + Potential leak of memory pointed to by 'x' + + + descriptionPotential leak of memory pointed to by 'x' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_contextb07aebe89e4ba5ea104a9f957df9531b + issue_context_kindfunction + issue_contextfunction_with_leak1 + issue_hash_function_offset1 + location + + line121 + col1 + file0 + + ExecutedLines + + 0 + + 119 + 120 + 121 + 122 + 123 + + + + + path + + + kindevent + location + + line132 + col5 + file0 + + ranges + + + + line132 + col5 + file0 + + + line132 + col25 + file0 + + + + depth0 + extended_message + Calling 'function_with_leak2' + message + Calling 'function_with_leak2' + + + kindevent + location + + line127 + col1 + file0 + + depth1 + extended_message + Entered call from 'use_function_with_leak2' + message + Entered call from 'use_function_with_leak2' + + + kindcontrol + edges + + + start + + + line127 + col1 + file0 + + + line127 + col6 + file0 + + + end + + + line128 + col5 + file0 + + + line128 + col8 + file0 + + + + + + + kindevent + location + + line128 + col22 + file0 + + ranges + + + + line128 + col22 + file0 + + + line128 + col31 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line128 + col5 + file0 + + + line128 + col8 + file0 + + + end + + + line129 + col5 + file0 + + + line129 + col7 + file0 + + + + + + + kindevent + location + + line129 + col5 + file0 + + depth1 + extended_message + Potential leak of memory pointed to by 'x' + message + Potential leak of memory pointed to by 'x' + + + descriptionPotential leak of memory pointed to by 'x' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_contextefe2ffcb7c227e872aa732c5f793895d + issue_context_kindfunction + issue_contextfunction_with_leak2 + issue_hash_function_offset1 + location + + line129 + col5 + file0 + + ExecutedLines + + 0 + + 127 + 128 + 129 + 131 + 132 + + + + + path + + + kindevent + location + + line141 + col5 + file0 + + ranges + + + + line141 + col5 + file0 + + + line141 + col26 + file0 + + + + depth0 + extended_message + Calling 'function_with_leak3' + message + Calling 'function_with_leak3' + + + kindevent + location + + line135 + col1 + file0 + + depth1 + extended_message + Entered call from 'use_function_with_leak3' + message + Entered call from 'use_function_with_leak3' + + + kindcontrol + edges + + + start + + + line135 + col1 + file0 + + + line135 + col6 + file0 + + + end + + + line136 + col5 + file0 + + + line136 + col8 + file0 + + + + + + + kindevent + location + + line136 + col22 + file0 + + ranges + + + + line136 + col22 + file0 + + + line136 + col31 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line136 + col5 + file0 + + + line136 + col8 + file0 + + + end + + + line137 + col5 + file0 + + + line137 + col6 + file0 + + + + + + + kindcontrol + edges + + + start + + + line137 + col5 + file0 + + + line137 + col6 + file0 + + + end + + + line137 + col9 + file0 + + + line137 + col9 + file0 + + + + + + + kindevent + location + + line137 + col9 + file0 + + ranges + + + + line137 + col9 + file0 + + + line137 + col9 + file0 + + + + depth1 + extended_message + Assuming 'y' is not equal to 0 + message + Assuming 'y' is not equal to 0 + + + kindcontrol + edges + + + start + + + line137 + col9 + file0 + + + line137 + col9 + file0 + + + end + + + line138 + col9 + file0 + + + line138 + col9 + file0 + + + + + + + kindevent + location + + line138 + col9 + file0 + + depth1 + extended_message + Potential leak of memory pointed to by 'x' + message + Potential leak of memory pointed to by 'x' + + + descriptionPotential leak of memory pointed to by 'x' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context0ddc87e8a7e7104428af3905f3057611 + issue_context_kindfunction + issue_contextfunction_with_leak3 + issue_hash_function_offset1 + location + + line138 + col9 + file0 + + ExecutedLines + + 0 + + 135 + 136 + 137 + 138 + 140 + 141 + + + + + path + + + kindevent + location + + line152 + col5 + file0 + + ranges + + + + line152 + col5 + file0 + + + line152 + col26 + file0 + + + + depth0 + extended_message + Calling 'function_with_leak4' + message + Calling 'function_with_leak4' + + + kindevent + location + + line144 + col1 + file0 + + depth1 + extended_message + Entered call from 'use_function_with_leak4' + message + Entered call from 'use_function_with_leak4' + + + kindcontrol + edges + + + start + + + line144 + col1 + file0 + + + line144 + col6 + file0 + + + end + + + line145 + col5 + file0 + + + line145 + col8 + file0 + + + + + + + kindevent + location + + line145 + col22 + file0 + + ranges + + + + line145 + col22 + file0 + + + line145 + col31 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line145 + col5 + file0 + + + line145 + col8 + file0 + + + end + + + line146 + col5 + file0 + + + line146 + col6 + file0 + + + + + + + kindcontrol + edges + + + start + + + line146 + col5 + file0 + + + line146 + col6 + file0 + + + end + + + line146 + col9 + file0 + + + line146 + col9 + file0 + + + + + + + kindevent + location + + line146 + col9 + file0 + + ranges + + + + line146 + col9 + file0 + + + line146 + col9 + file0 + + + + depth1 + extended_message + Assuming 'y' is 0 + message + Assuming 'y' is 0 + + + kindcontrol + edges + + + start + + + line146 + col9 + file0 + + + line146 + col9 + file0 + + + end + + + line149 + col9 + file0 + + + line149 + col9 + file0 + + + + + + + kindevent + location + + line149 + col9 + file0 + + depth1 + extended_message + Potential leak of memory pointed to by 'x' + message + Potential leak of memory pointed to by 'x' + + + descriptionPotential leak of memory pointed to by 'x' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context948d356840e67fc4baa8cc5d0600463c + issue_context_kindfunction + issue_contextfunction_with_leak4 + issue_hash_function_offset1 + location + + line149 + col9 + file0 + + ExecutedLines + + 0 + + 144 + 145 + 146 + 149 + 151 + 152 + + + + + path + + + kindevent + location + + line163 + col5 + file0 + + ranges + + + + line163 + col5 + file0 + + + line163 + col25 + file0 + + + + depth0 + extended_message + Calling 'function_with_leak5' + message + Calling 'function_with_leak5' + + + kindevent + location + + line158 + col1 + file0 + + depth1 + extended_message + Entered call from 'use_function_with_leak5' + message + Entered call from 'use_function_with_leak5' + + + kindcontrol + edges + + + start + + + line158 + col1 + file0 + + + line158 + col6 + file0 + + + end + + + line159 + col5 + file0 + + + line159 + col8 + file0 + + + + + + + kindevent + location + + line159 + col22 + file0 + + ranges + + + + line159 + col22 + file0 + + + line159 + col31 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line159 + col5 + file0 + + + line159 + col8 + file0 + + + end + + + line160 + col5 + file0 + + + line160 + col10 + file0 + + + + + + + kindcontrol + edges + + + start + + + line160 + col5 + file0 + + + line160 + col10 + file0 + + + end + + + line160 + col12 + file0 + + + line160 + col27 + file0 + + + + + + + kindevent + location + + line160 + col12 + file0 + + depth1 + extended_message + Potential leak of memory pointed to by 'x' + message + Potential leak of memory pointed to by 'x' + + + descriptionPotential leak of memory pointed to by 'x' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context2b0361060027060b94915ff4de8aa782 + issue_context_kindfunction + issue_contextfunction_with_leak5 + issue_hash_function_offset1 + location + + line160 + col12 + file0 + + ExecutedLines + + 0 + + 158 + 159 + 160 + 162 + 163 + + + + + path + + + kindevent + location + + line174 + col5 + file0 + + ranges + + + + line174 + col5 + file0 + + + line174 + col25 + file0 + + + + depth0 + extended_message + Calling 'function_with_leak6' + message + Calling 'function_with_leak6' + + + kindevent + location + + line169 + col1 + file0 + + depth1 + extended_message + Entered call from 'use_function_with_leak6' + message + Entered call from 'use_function_with_leak6' + + + kindcontrol + edges + + + start + + + line169 + col1 + file0 + + + line169 + col6 + file0 + + + end + + + line170 + col5 + file0 + + + line170 + col8 + file0 + + + + + + + kindevent + location + + line170 + col22 + file0 + + ranges + + + + line170 + col22 + file0 + + + line170 + col31 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line170 + col5 + file0 + + + line170 + col8 + file0 + + + end + + + line171 + col5 + file0 + + + line171 + col20 + file0 + + + + + + + kindevent + location + + line171 + col5 + file0 + + depth1 + extended_message + Potential leak of memory pointed to by 'x' + message + Potential leak of memory pointed to by 'x' + + + descriptionPotential leak of memory pointed to by 'x' + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context73f573faa903ad4308d5155ef979cf31 + issue_context_kindfunction + issue_contextfunction_with_leak6 + issue_hash_function_offset1 + location + + line171 + col5 + file0 + + ExecutedLines + + 0 + + 169 + 170 + 171 + 173 + 174 + + + + + path + + + kindevent + location + + line186 + col5 + file0 + + ranges + + + + line186 + col5 + file0 + + + line186 + col25 + file0 + + + + depth0 + extended_message + Calling 'function_with_leak7' + message + Calling 'function_with_leak7' + + + kindevent + location + + line182 + col1 + file0 + + depth1 + extended_message + Entered call from 'use_function_with_leak7' + message + Entered call from 'use_function_with_leak7' + + + kindcontrol + edges + + + start + + + line182 + col1 + file0 + + + line182 + col6 + file0 + + + end + + + line183 + col5 + file0 + + + line183 + col10 + file0 + + + + + + + kindevent + location + + line183 + col19 + file0 + + ranges + + + + line183 + col19 + file0 + + + line183 + col28 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindevent + location + + line186 + col5 + file0 + + ranges + + + + line186 + col5 + file0 + + + line186 + col25 + file0 + + + + depth0 + extended_message + Returned allocated memory + message + Returned allocated memory + + + kindcontrol + edges + + + start + + + line186 + col5 + file0 + + + line186 + col23 + file0 + + + end + + + line187 + col1 + file0 + + + line187 + col1 + file0 + + + + + + + kindevent + location + + line187 + col1 + file0 + + depth0 + extended_message + Potential memory leak + message + Potential memory leak + + + descriptionPotential memory leak + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_contexteb5628850b9b9118fbda903e721436a5 + issue_context_kindfunction + issue_contextuse_function_with_leak7 + issue_hash_function_offset1 + location + + line187 + col1 + file0 + + ExecutedLines + + 0 + + 182 + 183 + 185 + 186 + 187 + + + + + path + + + kindevent + location + + line196 + col3 + file0 + + ranges + + + + line196 + col3 + file0 + + + line196 + col13 + file0 + + + + depth0 + extended_message + Calling 'my_malloc' + message + Calling 'my_malloc' + + + kindevent + location + + line191 + col1 + file0 + + depth1 + extended_message + Entered call from 'testOnlyRefferToVisibleVariables' + message + Entered call from 'testOnlyRefferToVisibleVariables' + + + kindcontrol + edges + + + start + + + line191 + col1 + file0 + + + line191 + col3 + file0 + + + end + + + line192 + col3 + file0 + + + line192 + col5 + file0 + + + + + + + kindevent + location + + line192 + col12 + file0 + + ranges + + + + line192 + col12 + file0 + + + line192 + col21 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line192 + col3 + file0 + + + line192 + col5 + file0 + + + end + + + line193 + col3 + file0 + + + line193 + col8 + file0 + + + + + + + kindevent + location + + line196 + col3 + file0 + + ranges + + + + line196 + col3 + file0 + + + line196 + col13 + file0 + + + + depth0 + extended_message + Returned allocated memory + message + Returned allocated memory + + + kindcontrol + edges + + + start + + + line196 + col3 + file0 + + + line196 + col11 + file0 + + + end + + + line197 + col1 + file0 + + + line197 + col1 + file0 + + + + + + + kindevent + location + + line197 + col1 + file0 + + depth0 + extended_message + Potential memory leak + message + Potential memory leak + + + descriptionPotential memory leak + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_contextad5b603037bc3581ff94947e86dbb1c8 + issue_context_kindfunction + issue_contexttestOnlyRefferToVisibleVariables + issue_hash_function_offset1 + location + + line197 + col1 + file0 + + ExecutedLines + + 0 + + 191 + 192 + 193 + 195 + 196 + 197 + + + + + path + + + kindevent + location + + line208 + col3 + file0 + + ranges + + + + line208 + col3 + file0 + + + line208 + col25 + file0 + + + + depth0 + extended_message + Calling 'my_malloc_into_struct' + message + Calling 'my_malloc_into_struct' + + + kindevent + location + + line202 + col1 + file0 + + depth1 + extended_message + Entered call from 'testMyMalloc' + message + Entered call from 'testMyMalloc' + + + kindcontrol + edges + + + start + + + line202 + col1 + file0 + + + line202 + col3 + file0 + + + end + + + line203 + col3 + file0 + + + line203 + col8 + file0 + + + + + + + kindcontrol + edges + + + start + + + line203 + col3 + file0 + + + line203 + col8 + file0 + + + end + + + line204 + col3 + file0 + + + line204 + col3 + file0 + + + + + + + kindevent + location + + line204 + col9 + file0 + + ranges + + + + line204 + col9 + file0 + + + line204 + col18 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line204 + col3 + file0 + + + line204 + col3 + file0 + + + end + + + line205 + col3 + file0 + + + line205 + col8 + file0 + + + + + + + kindevent + location + + line208 + col3 + file0 + + ranges + + + + line208 + col3 + file0 + + + line208 + col25 + file0 + + + + depth0 + extended_message + Returned allocated memory + message + Returned allocated memory + + + kindcontrol + edges + + + start + + + line208 + col3 + file0 + + + line208 + col23 + file0 + + + end + + + line209 + col1 + file0 + + + line209 + col1 + file0 + + + + + + + kindevent + location + + line209 + col1 + file0 + + depth0 + extended_message + Potential memory leak + message + Potential memory leak + + + descriptionPotential memory leak + categoryMemory error + typeMemory leak + check_nameunix.Malloc + + issue_hash_content_of_line_in_context8d59cc5cc4b7db55d432abc18b0e6c23 + issue_context_kindfunction + issue_contexttestMyMalloc + issue_hash_function_offset1 + location + + line209 + col1 + file0 + + ExecutedLines + + 0 + + 202 + 203 + 204 + 205 + 207 + 208 + 209 + + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/malloc-plist.c + + + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/method-call-path-notes.cpp.plist b/test/Analysis/Inputs/expected-plists/method-call-path-notes.cpp.plist index ca45aa5397..c4c0c8add8 100644 --- a/test/Analysis/Inputs/expected-plists/method-call-path-notes.cpp.plist +++ b/test/Analysis/Inputs/expected-plists/method-call-path-notes.cpp.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -111,6 +107,15 @@ col3 file0 + ExecutedLines + + 0 + + 12 + 13 + 14 + + path @@ -223,6 +228,15 @@ col3 file0 + ExecutedLines + + 0 + + 17 + 18 + 19 + + path @@ -369,6 +383,16 @@ col3 file0 + ExecutedLines + + 0 + + 22 + 23 + 24 + 25 + + path @@ -515,6 +539,15 @@ col5 file0 + ExecutedLines + + 0 + + 28 + 29 + 30 + + path @@ -627,6 +660,16 @@ col3 file0 + ExecutedLines + + 0 + + 33 + 34 + 36 + 37 + + path @@ -773,7 +816,20 @@ col5 file0 + ExecutedLines + + 0 + + 40 + 41 + 42 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/method-call-path-notes.cpp - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/model-file.cpp.plist b/test/Analysis/Inputs/expected-plists/model-file.cpp.plist index 17d65aacae..082e117d8f 100644 --- a/test/Analysis/Inputs/expected-plists/model-file.cpp.plist +++ b/test/Analysis/Inputs/expected-plists/model-file.cpp.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -276,7 +272,28 @@ col15 file0 + ExecutedLines + + 0 + + 20 + 22 + 24 + 25 + 31 + 35 + + 1 + + 1 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/model-file.cpp + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/Inputs/Models/notzero.model + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/null-deref-path-notes.m.plist b/test/Analysis/Inputs/expected-plists/null-deref-path-notes.m.plist index 38a45f95b0..d4b52100f5 100644 --- a/test/Analysis/Inputs/expected-plists/null-deref-path-notes.m.plist +++ b/test/Analysis/Inputs/expected-plists/null-deref-path-notes.m.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -242,6 +238,16 @@ col10 file0 + ExecutedLines + + 0 + + 13 + 14 + 18 + 19 + + path @@ -470,6 +476,16 @@ col12 file0 + ExecutedLines + + 0 + + 27 + 28 + 29 + 33 + + path @@ -747,6 +763,17 @@ col6 file0 + ExecutedLines + + 0 + + 39 + 40 + 41 + 47 + 50 + + path @@ -970,7 +997,22 @@ col8 file0 + ExecutedLines + + 0 + + 60 + 61 + 66 + 67 + 68 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/null-deref-path-notes.m + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/nullability-notes.m.plist b/test/Analysis/Inputs/expected-plists/nullability-notes.m.plist index aa4f5a06cb..8aa0b2e3d2 100644 --- a/test/Analysis/Inputs/expected-plists/nullability-notes.m.plist +++ b/test/Analysis/Inputs/expected-plists/nullability-notes.m.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -179,7 +175,21 @@ col3 file0 + ExecutedLines + + 0 + + 10 + 14 + 16 + 17 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/nullability-notes.m + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/objc-arc.m.plist b/test/Analysis/Inputs/expected-plists/objc-arc.m.plist index 075c0db7a7..68c7f3bb33 100644 --- a/test/Analysis/Inputs/expected-plists/objc-arc.m.plist +++ b/test/Analysis/Inputs/expected-plists/objc-arc.m.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -145,6 +141,15 @@ col6 file0 + ExecutedLines + + 0 + + 52 + 53 + 54 + + path @@ -310,6 +315,17 @@ col1 file0 + ExecutedLines + + 0 + + 92 + 93 + 94 + 95 + 96 + + path @@ -371,6 +387,13 @@ col6 file0 + ExecutedLines + + 0 + + 119 + + path @@ -432,6 +455,13 @@ col6 file0 + ExecutedLines + + 0 + + 139 + + path @@ -493,6 +523,13 @@ col6 file0 + ExecutedLines + + 0 + + 144 + + path @@ -554,6 +591,13 @@ col6 file0 + ExecutedLines + + 0 + + 145 + + path @@ -615,6 +659,13 @@ col6 file0 + ExecutedLines + + 0 + + 146 + + path @@ -795,6 +846,21 @@ col33 file0 + ExecutedLines + + 0 + + 138 + 139 + 140 + 141 + 142 + 143 + 144 + 145 + 146 + + path @@ -926,6 +992,22 @@ col1 file0 + ExecutedLines + + 0 + + 138 + 139 + 140 + 141 + 142 + 143 + 144 + 145 + 146 + 147 + + path @@ -987,6 +1069,13 @@ col13 file0 + ExecutedLines + + 0 + + 150 + + path @@ -1048,6 +1137,13 @@ col15 file0 + ExecutedLines + + 0 + + 151 + + path @@ -1109,6 +1205,13 @@ col13 file0 + ExecutedLines + + 0 + + 152 + + path @@ -1170,6 +1273,13 @@ col15 file0 + ExecutedLines + + 0 + + 153 + + path @@ -1316,6 +1426,16 @@ col3 file0 + ExecutedLines + + 0 + + 163 + 164 + 165 + 166 + + path @@ -1617,6 +1737,28 @@ col1 file0 + ExecutedLines + + 0 + + 176 + 178 + 179 + 180 + 181 + 185 + 186 + 187 + 188 + 189 + 193 + 194 + 195 + 196 + 200 + 202 + + path @@ -1789,6 +1931,16 @@ col1 file0 + ExecutedLines + + 0 + + 213 + 214 + 215 + 216 + + path @@ -1906,7 +2058,22 @@ col22 file0 + ExecutedLines + + 0 + + 222 + 223 + 226 + 229 + 230 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/objc-arc.m + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/plist-macros.cpp.plist b/test/Analysis/Inputs/expected-plists/plist-macros.cpp.plist index 6743749fc9..759a6005a1 100644 --- a/test/Analysis/Inputs/expected-plists/plist-macros.cpp.plist +++ b/test/Analysis/Inputs/expected-plists/plist-macros.cpp.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -145,6 +141,19 @@ col3 file0 + ExecutedLines + + 0 + + 10 + 11 + 12 + 13 + 14 + 15 + 16 + + path @@ -242,6 +251,15 @@ col3 file0 + ExecutedLines + + 0 + + 19 + 20 + 21 + + path @@ -490,6 +508,16 @@ col10 file0 + ExecutedLines + + 0 + + 26 + 27 + 28 + 30 + + path @@ -801,6 +829,17 @@ col10 file0 + ExecutedLines + + 0 + + 34 + 35 + 36 + 37 + 39 + + path @@ -1015,6 +1054,16 @@ col10 file0 + ExecutedLines + + 0 + + 43 + 44 + 45 + 47 + + path @@ -1161,6 +1210,15 @@ col3 file0 + ExecutedLines + + 0 + + 54 + 55 + 56 + + path @@ -1438,6 +1496,17 @@ col10 file0 + ExecutedLines + + 0 + + 66 + 67 + 68 + 69 + 71 + + path @@ -1661,7 +1730,22 @@ col6 file0 + ExecutedLines + + 0 + + 76 + 77 + 79 + 82 + 83 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/plist-macros.cpp + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/plist-output-alternate.m.plist b/test/Analysis/Inputs/expected-plists/plist-output-alternate.m.plist index 197b2cd928..9a70d06eaa 100644 --- a/test/Analysis/Inputs/expected-plists/plist-output-alternate.m.plist +++ b/test/Analysis/Inputs/expected-plists/plist-output-alternate.m.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -145,6 +141,15 @@ col6 file0 + ExecutedLines + + 0 + + 4 + 5 + 6 + + path @@ -325,6 +330,16 @@ col6 file0 + ExecutedLines + + 0 + + 9 + 10 + 11 + 12 + + path @@ -568,6 +583,17 @@ col6 file0 + ExecutedLines + + 0 + + 15 + 16 + 17 + 18 + 19 + + path @@ -748,6 +774,15 @@ col8 file0 + ExecutedLines + + 0 + + 22 + 23 + 24 + + path @@ -991,6 +1026,16 @@ col8 file0 + ExecutedLines + + 0 + + 28 + 29 + 30 + 31 + + path @@ -1171,6 +1216,16 @@ col10 file0 + ExecutedLines + + 0 + + 35 + 36 + 37 + 38 + + path @@ -1433,7 +1488,23 @@ col1 file0 + ExecutedLines + + 0 + + 52 + 53 + 54 + 55 + 57 + 58 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/plist-output-alternate.m + - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/plist-output.m.plist b/test/Analysis/Inputs/expected-plists/plist-output.m.plist index 448a915fe2..87055b4f45 100644 --- a/test/Analysis/Inputs/expected-plists/plist-output.m.plist +++ b/test/Analysis/Inputs/expected-plists/plist-output.m.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -145,6 +141,15 @@ col6 file0 + ExecutedLines + + 0 + + 4 + 5 + 6 + + path @@ -325,6 +330,16 @@ col6 file0 + ExecutedLines + + 0 + + 9 + 10 + 11 + 12 + + path @@ -568,6 +583,17 @@ col6 file0 + ExecutedLines + + 0 + + 15 + 16 + 17 + 18 + 19 + + path @@ -748,6 +774,15 @@ col8 file0 + ExecutedLines + + 0 + + 22 + 23 + 24 + + path @@ -991,6 +1026,16 @@ col8 file0 + ExecutedLines + + 0 + + 28 + 29 + 30 + 31 + + path @@ -1171,6 +1216,16 @@ col10 file0 + ExecutedLines + + 0 + + 35 + 36 + 37 + 38 + + path @@ -1511,6 +1566,18 @@ col6 file0 + ExecutedLines + + 0 + + 41 + 42 + 43 + 46 + 49 + 50 + + path @@ -1783,6 +1850,16 @@ col10 file0 + ExecutedLines + + 0 + + 54 + 55 + 56 + 58 + + path @@ -2026,6 +2103,16 @@ col8 file0 + ExecutedLines + + 0 + + 74 + 75 + 76 + 77 + + path @@ -2087,6 +2174,13 @@ col8 file0 + ExecutedLines + + 0 + + 86 + + path @@ -2281,6 +2375,16 @@ col9 file0 + ExecutedLines + + 0 + + 84 + 85 + 86 + 88 + + path @@ -2718,6 +2822,18 @@ col8 file0 + ExecutedLines + + 0 + + 94 + 95 + 96 + 97 + 98 + 100 + + path @@ -2927,6 +3043,16 @@ col6 file0 + ExecutedLines + + 0 + + 106 + 107 + 108 + 111 + + path @@ -3136,6 +3262,17 @@ col6 file0 + ExecutedLines + + 0 + + 114 + 115 + 116 + 117 + 121 + + path @@ -3607,6 +3744,19 @@ col6 file0 + ExecutedLines + + 0 + + 124 + 125 + 126 + 127 + 128 + 129 + 130 + + path @@ -4107,6 +4257,16 @@ col6 file0 + ExecutedLines + + 0 + + 133 + 134 + 135 + 136 + + path @@ -4675,6 +4835,19 @@ col6 file0 + ExecutedLines + + 0 + + 139 + 140 + 141 + 142 + 143 + 144 + 145 + + path @@ -5243,6 +5416,20 @@ col6 file0 + ExecutedLines + + 0 + + 148 + 149 + 150 + 151 + 152 + 153 + 154 + 155 + + path @@ -5292,6 +5479,13 @@ col3 file0 + ExecutedLines + + 0 + + 163 + + path @@ -5501,6 +5695,16 @@ col5 file0 + ExecutedLines + + 0 + + 158 + 159 + 160 + 163 + + path @@ -5647,6 +5851,15 @@ col6 file0 + ExecutedLines + + 0 + + 170 + 171 + 172 + + path @@ -5759,6 +5972,16 @@ col3 file0 + ExecutedLines + + 0 + + 181 + 182 + 183 + 184 + + path @@ -5968,7 +6191,20 @@ col10 file0 + ExecutedLines + + 0 + + 191 + 192 + 194 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/plist-output.m - + \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/retain-release-path-notes.m.plist b/test/Analysis/Inputs/expected-plists/retain-release-path-notes.m.plist index a2dafa9826..0616fb1aee 100644 --- a/test/Analysis/Inputs/expected-plists/retain-release-path-notes.m.plist +++ b/test/Analysis/Inputs/expected-plists/retain-release-path-notes.m.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -111,6 +107,15 @@ col3 file0 + ExecutedLines + + 0 + + 46 + 47 + 48 + + path @@ -223,6 +228,15 @@ col3 file0 + ExecutedLines + + 0 + + 51 + 52 + 53 + + path @@ -560,6 +574,18 @@ col3 file0 + ExecutedLines + + 0 + + 56 + 57 + 58 + 59 + 60 + 61 + + path @@ -747,6 +773,16 @@ col3 file0 + ExecutedLines + + 0 + + 64 + 65 + 66 + 67 + + path @@ -934,6 +970,16 @@ col3 file0 + ExecutedLines + + 0 + + 70 + 71 + 72 + 73 + + path @@ -1121,6 +1167,16 @@ col3 file0 + ExecutedLines + + 0 + + 76 + 77 + 78 + 79 + + path @@ -1308,6 +1364,16 @@ col3 file0 + ExecutedLines + + 0 + + 82 + 83 + 84 + 85 + + path @@ -1570,6 +1636,17 @@ col3 file0 + ExecutedLines + + 0 + + 88 + 89 + 90 + 91 + 92 + + path @@ -1757,6 +1834,16 @@ col3 file0 + ExecutedLines + + 0 + + 95 + 96 + 97 + 98 + + path @@ -1869,6 +1956,17 @@ col3 file0 + ExecutedLines + + 0 + + 101 + 102 + 103 + 104 + 105 + + path @@ -2022,6 +2120,15 @@ col3 file0 + ExecutedLines + + 0 + + 108 + 109 + 110 + + path @@ -2175,6 +2282,15 @@ col3 file0 + ExecutedLines + + 0 + + 113 + 114 + 115 + + path @@ -2328,6 +2444,15 @@ col3 file0 + ExecutedLines + + 0 + + 119 + 120 + 121 + + path @@ -2481,6 +2606,15 @@ col3 file0 + ExecutedLines + + 0 + + 124 + 125 + 126 + + path @@ -2634,6 +2768,15 @@ col3 file0 + ExecutedLines + + 0 + + 129 + 130 + 131 + + path @@ -2787,6 +2930,15 @@ col3 file0 + ExecutedLines + + 0 + + 134 + 135 + 136 + + path @@ -2974,6 +3126,16 @@ col3 file0 + ExecutedLines + + 0 + + 139 + 140 + 141 + 142 + + path @@ -3086,6 +3248,15 @@ col3 file0 + ExecutedLines + + 0 + + 169 + 170 + 171 + + path @@ -3198,6 +3369,15 @@ col3 file0 + ExecutedLines + + 0 + + 174 + 175 + 176 + + path @@ -3310,6 +3490,15 @@ col3 file0 + ExecutedLines + + 0 + + 179 + 180 + 181 + + path @@ -3422,6 +3611,15 @@ col3 file0 + ExecutedLines + + 0 + + 184 + 185 + 186 + + path @@ -3534,6 +3732,15 @@ col3 file0 + ExecutedLines + + 0 + + 189 + 190 + 191 + + path @@ -3883,6 +4090,17 @@ col3 file0 + ExecutedLines + + 0 + + 206 + 207 + 209 + 224 + 226 + + path @@ -4271,6 +4489,22 @@ col11 file0 + ExecutedLines + + 0 + + 206 + 207 + 209 + 214 + 215 + 216 + 224 + 226 + 232 + 237 + + path @@ -4533,6 +4767,17 @@ col3 file0 + ExecutedLines + + 0 + + 246 + 247 + 248 + 249 + 250 + + path @@ -4720,6 +4965,16 @@ col3 file0 + ExecutedLines + + 0 + + 253 + 254 + 255 + 256 + + path @@ -4982,7 +5237,22 @@ col3 file0 + ExecutedLines + + 0 + + 259 + 260 + 261 + 262 + 263 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/retain-release-path-notes.m \ No newline at end of file diff --git a/test/Analysis/Inputs/expected-plists/unix-fns.c.plist b/test/Analysis/Inputs/expected-plists/unix-fns.c.plist index be5f1502cf..81f846eb76 100644 --- a/test/Analysis/Inputs/expected-plists/unix-fns.c.plist +++ b/test/Analysis/Inputs/expected-plists/unix-fns.c.plist @@ -1,2833 +1,3011 @@ -diagnostics - - - path - - - kindcontrol - edges - - - start - - - line80 - col3 - file0 - - - line80 - col5 - file0 - - - end - - - line82 - col3 - file0 - - - line82 - col4 - file0 - - - - - - - kindcontrol - edges - - - start - - - line82 - col3 - file0 - - - line82 - col4 - file0 - - - end - - - line82 - col7 - file0 - - - line82 - col7 - file0 - - - - - - - kindevent - location + - line82 - col7 - file0 - - ranges - + kindcontrol + edges - line82 - col7 - file0 - - - line82 - col9 - file0 + start + + + line82 + col3 + file0 + + + line82 + col5 + file0 + + + end + + + line84 + col3 + file0 + + + line84 + col4 + file0 + + - - depth0 - extended_message - Assuming 'fd' is not equal to 0 - message - Assuming 'fd' is not equal to 0 - - - kindcontrol - edges - - - start - - - line82 - col7 - file0 - - - line82 - col7 - file0 - - - end - - - line85 - col3 - file0 - - - line85 - col4 - file0 - - - - - - - kindcontrol - edges - - - start - - - line85 - col3 - file0 - - - line85 - col4 - file0 - - - end - - - line85 - col8 - file0 - - - line85 - col11 - file0 - - - - - - - kindevent - location - - line85 - col8 - file0 - ranges - + + kindcontrol + edges - line85 - col19 - file0 - - - line85 - col25 - file0 + start + + + line84 + col3 + file0 + + + line84 + col4 + file0 + + + end + + + line84 + col7 + file0 + + + line84 + col7 + file0 + + - - depth0 - extended_message - Call to 'open' requires a 3rd argument when the 'O_CREAT' flag is set - message - Call to 'open' requires a 3rd argument when the 'O_CREAT' flag is set - - - descriptionCall to 'open' requires a 3rd argument when the 'O_CREAT' flag is set - categoryUnix API - typeImproper use of 'open' - check_nameunix.API - - issue_hash_content_of_line_in_context5ef25c5c47db3dbfb329901d426452e7 - issue_context_kindfunction - issue_contexttest_open - issue_hash_function_offset6 - location - - line85 - col8 - file0 - - - - path - - - kindcontrol - edges - - - start - - - line91 - col3 - file0 - - - line91 - col5 - file0 - - - end - - - line93 - col3 - file0 - - - line93 - col4 - file0 - - - - - - - kindcontrol - edges + + + kindevent + location + + line84 + col7 + file0 + + ranges - - start - - - line93 - col3 - file0 - - - line93 - col4 - file0 - - - end - - - line93 - col7 - file0 - - - line93 - col7 - file0 - - - + + + line84 + col7 + file0 + + + line84 + col9 + file0 + + - - - kindevent - location - - line93 - col7 - file0 + depth0 + extended_message + Assuming 'fd' is not equal to 0 + message + Assuming 'fd' is not equal to 0 - ranges - + + kindcontrol + edges - line93 - col7 - file0 - - - line93 - col9 - file0 + start + + + line84 + col7 + file0 + + + line84 + col7 + file0 + + + end + + + line87 + col3 + file0 + + + line87 + col4 + file0 + + - - depth0 - extended_message - Assuming 'fd' is not equal to 0 - message - Assuming 'fd' is not equal to 0 - - - kindcontrol - edges - - - start - - - line93 - col7 - file0 - - - line93 - col7 - file0 - - - end - - - line96 - col3 - file0 - - - line96 - col4 - file0 - - - - - - - kindcontrol - edges - - - start - - - line96 - col3 - file0 - - - line96 - col4 - file0 - - - end - - - line96 - col8 - file0 - - - line96 - col13 - file0 - - - - - - - kindevent - location - - line96 - col8 - file0 - ranges - + + kindcontrol + edges - line96 - col44 - file0 - - - line96 - col50 - file0 + start + + + line87 + col3 + file0 + + + line87 + col4 + file0 + + + end + + + line87 + col8 + file0 + + + line87 + col11 + file0 + + - - depth0 - extended_message - Call to 'openat' requires a 4th argument when the 'O_CREAT' flag is set - message - Call to 'openat' requires a 4th argument when the 'O_CREAT' flag is set - - - descriptionCall to 'openat' requires a 4th argument when the 'O_CREAT' flag is set - categoryUnix API - typeImproper use of 'open' - check_nameunix.API - - issue_hash_content_of_line_in_context433b17840bb989e7a13dc6337c1ed220 - issue_context_kindfunction - issue_contexttest_open_at - issue_hash_function_offset6 - location - - line96 - col8 - file0 - - - - path - - - kindcontrol - edges - - - start - - - line102 - col3 - file0 - - - line102 - col17 - file0 - - - end - - - line103 - col8 - file0 - - - line103 - col9 - file0 - - - - - - - kindcontrol - edges + + + kindevent + location + + line87 + col8 + file0 + + ranges - - start - - - line103 - col8 - file0 - - - line103 - col9 - file0 - - - end - - - line103 - col52 - file0 - - - line103 - col64 - file0 - - - + + + line87 + col19 + file0 + + + line87 + col25 + file0 + + - - - kindevent - location - - line103 - col52 - file0 + depth0 + extended_message + Call to 'open' requires a 3rd argument when the 'O_CREAT' flag is set + message + Call to 'open' requires a 3rd argument when the 'O_CREAT' flag is set - ranges - + + descriptionCall to 'open' requires a 3rd argument when the 'O_CREAT' flag is set + categoryUnix API + typeImproper use of 'open' + check_nameunix.API + + issue_hash_content_of_line_in_context5ef25c5c47db3dbfb329901d426452e7 + issue_context_kindfunction + issue_contexttest_open + issue_hash_function_offset6 + location + + line87 + col8 + file0 + + ExecutedLines + + 0 + + 81 + 82 + 83 + 84 + 87 + + + + + path + + + kindcontrol + edges - line103 - col66 - file0 + start + + + line93 + col3 + file0 + + + line93 + col5 + file0 + + + end + + + line95 + col3 + file0 + + + line95 + col4 + file0 + + + + + + kindcontrol + edges + - line103 - col72 - file0 + start + + + line95 + col3 + file0 + + + line95 + col4 + file0 + + + end + + + line95 + col7 + file0 + + + line95 + col7 + file0 + + - - depth0 - extended_message - Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - message - Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - - - descriptionCall to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - categoryAPI Misuse (Apple) - typeImproper use of 'dispatch_once' - check_nameosx.API - - issue_hash_content_of_line_in_context173fbcac3fc64dbaec32768d4cfda250 - issue_context_kindfunction - issue_contexttest_dispatch_once - issue_hash_function_offset2 - location - - line103 - col52 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line95 + col7 + file0 + + ranges - - start - - - line113 - col3 - file0 - - - line113 - col16 - file0 - - - end - - - line114 - col3 - file0 - - - line114 - col14 - file0 - - - + + + line95 + col7 + file0 + + + line95 + col9 + file0 + + - - - kindevent - location - - line114 - col3 - file0 + depth0 + extended_message + Assuming 'fd' is not equal to 0 + message + Assuming 'fd' is not equal to 0 - ranges - + + kindcontrol + edges - line114 - col16 - file0 + start + + + line95 + col7 + file0 + + + line95 + col7 + file0 + + + end + + + line98 + col3 + file0 + + + line98 + col4 + file0 + + + + + + kindcontrol + edges + - line114 - col20 - file0 + start + + + line98 + col3 + file0 + + + line98 + col4 + file0 + + + end + + + line98 + col8 + file0 + + + line98 + col13 + file0 + + - - depth0 - extended_message - Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - message - Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - - - descriptionCall to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - categoryUnix API - typeImproper use of 'pthread_once' - check_nameunix.API - - issue_hash_content_of_line_in_context1e2f657a65cf8ee3c3ac2227de05ade4 - issue_context_kindfunction - issue_contexttest_pthread_once - issue_hash_function_offset2 - location - - line114 - col3 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line98 + col8 + file0 + + ranges - - start - - - line123 - col3 - file0 - - - line123 - col6 - file0 - - - end - - - line123 - col15 - file0 - - - line123 - col20 - file0 - - - + + + line98 + col44 + file0 + + + line98 + col50 + file0 + + - - - kindevent - location - - line123 - col15 - file0 + depth0 + extended_message + Call to 'openat' requires a 4th argument when the 'O_CREAT' flag is set + message + Call to 'openat' requires a 4th argument when the 'O_CREAT' flag is set - ranges - + + descriptionCall to 'openat' requires a 4th argument when the 'O_CREAT' flag is set + categoryUnix API + typeImproper use of 'open' + check_nameunix.API + + issue_hash_content_of_line_in_context433b17840bb989e7a13dc6337c1ed220 + issue_context_kindfunction + issue_contexttest_open_at + issue_hash_function_offset6 + location + + line98 + col8 + file0 + + ExecutedLines + + 0 + + 92 + 93 + 94 + 95 + 98 + + + + + path + + + kindcontrol + edges - line123 - col22 - file0 + start + + + line104 + col3 + file0 + + + line104 + col17 + file0 + + + end + + + line105 + col8 + file0 + + + line105 + col9 + file0 + + + + + + kindcontrol + edges + - line123 - col22 - file0 + start + + + line105 + col8 + file0 + + + line105 + col9 + file0 + + + end + + + line105 + col52 + file0 + + + line105 + col64 + file0 + + - - depth0 - extended_message - Call to 'malloc' has an allocation size of 0 bytes - message - Call to 'malloc' has an allocation size of 0 bytes - - - descriptionCall to 'malloc' has an allocation size of 0 bytes - categoryUnix API - typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) - check_nameunix.API - - issue_hash_content_of_line_in_context0e841458f0cb7cf161d35f9db5862dcf - issue_context_kindfunction - issue_contextpr2899 - issue_hash_function_offset1 - location - - line123 - col15 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line105 + col52 + file0 + + ranges - - start - - - line135 - col3 - file0 - - - line135 - col6 - file0 - - - end - - - line135 - col15 - file0 - - - line135 - col20 - file0 - - - + + + line105 + col66 + file0 + + + line105 + col72 + file0 + + - - - kindevent - location - - line135 - col15 - file0 + depth0 + extended_message + Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? + message + Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - ranges - + + descriptionCall to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? + categoryAPI Misuse (Apple) + typeImproper use of 'dispatch_once' + check_nameosx.API + + issue_hash_content_of_line_in_context173fbcac3fc64dbaec32768d4cfda250 + issue_context_kindfunction + issue_contexttest_dispatch_once + issue_hash_function_offset2 + location + + line105 + col52 + file0 + + ExecutedLines + + 0 + + 103 + 104 + 105 + + + + + path + + + kindcontrol + edges - line135 - col22 - file0 - - - line135 - col22 - file0 + start + + + line115 + col3 + file0 + + + line115 + col16 + file0 + + + end + + + line116 + col3 + file0 + + + line116 + col14 + file0 + + - - depth0 - extended_message - Call to 'calloc' has an allocation size of 0 bytes - message - Call to 'calloc' has an allocation size of 0 bytes - - - descriptionCall to 'calloc' has an allocation size of 0 bytes - categoryUnix API - typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) - check_nameunix.API - - issue_hash_content_of_line_in_contexta267ff573c7e8b959a3f886677893eb0 - issue_context_kindfunction - issue_contexttest_calloc - issue_hash_function_offset1 - location - - line135 - col15 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line116 + col3 + file0 + + ranges - - start - - - line141 - col3 - file0 - - - line141 - col6 - file0 - - - end - - - line141 - col15 - file0 - - - line141 - col20 - file0 - - - + + + line116 + col16 + file0 + + + line116 + col20 + file0 + + - - - kindevent - location - - line141 - col15 - file0 + depth0 + extended_message + Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? + message + Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - ranges - + + descriptionCall to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? + categoryUnix API + typeImproper use of 'pthread_once' + check_nameunix.API + + issue_hash_content_of_line_in_context1e2f657a65cf8ee3c3ac2227de05ade4 + issue_context_kindfunction + issue_contexttest_pthread_once + issue_hash_function_offset2 + location + + line116 + col3 + file0 + + ExecutedLines + + 0 + + 114 + 115 + 116 + + + + + path + + + kindcontrol + edges - line141 - col26 - file0 - - - line141 - col26 - file0 + start + + + line125 + col3 + file0 + + + line125 + col6 + file0 + + + end + + + line125 + col15 + file0 + + + line125 + col20 + file0 + + - - depth0 - extended_message - Call to 'calloc' has an allocation size of 0 bytes - message - Call to 'calloc' has an allocation size of 0 bytes - - - descriptionCall to 'calloc' has an allocation size of 0 bytes - categoryUnix API - typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) - check_nameunix.API - - issue_hash_content_of_line_in_context14eb72957baab3c63bac610a10e6f48b - issue_context_kindfunction - issue_contexttest_calloc2 - issue_hash_function_offset1 - location - - line141 - col15 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line125 + col15 + file0 + + ranges - - start - - - line153 - col3 - file0 - - - line153 - col6 - file0 - - - end - - - line153 - col15 - file0 - - - line153 - col21 - file0 - - - + + + line125 + col22 + file0 + + + line125 + col22 + file0 + + - - - kindevent - location - - line153 - col15 - file0 + depth0 + extended_message + Call to 'malloc' has an allocation size of 0 bytes + message + Call to 'malloc' has an allocation size of 0 bytes - ranges - + + descriptionCall to 'malloc' has an allocation size of 0 bytes + categoryUnix API + typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) + check_nameunix.API + + issue_hash_content_of_line_in_context0e841458f0cb7cf161d35f9db5862dcf + issue_context_kindfunction + issue_contextpr2899 + issue_hash_function_offset1 + location + + line125 + col15 + file0 + + ExecutedLines + + 0 + + 124 + 125 + + + + + path + + + kindcontrol + edges - line153 - col28 - file0 - - - line153 - col28 - file0 + start + + + line137 + col3 + file0 + + + line137 + col6 + file0 + + + end + + + line137 + col15 + file0 + + + line137 + col20 + file0 + + - - depth0 - extended_message - Call to 'realloc' has an allocation size of 0 bytes - message - Call to 'realloc' has an allocation size of 0 bytes - - - descriptionCall to 'realloc' has an allocation size of 0 bytes - categoryUnix API - typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) - check_nameunix.API - - issue_hash_content_of_line_in_context7f6f67ebe3d481aed7750005bea7e371 - issue_context_kindfunction - issue_contexttest_realloc - issue_hash_function_offset1 - location - - line153 - col15 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line137 + col15 + file0 + + ranges - - start - - - line159 - col3 - file0 - - - line159 - col6 - file0 - - - end - - - line159 - col15 - file0 - - - line159 - col22 - file0 - - - + + + line137 + col22 + file0 + + + line137 + col22 + file0 + + - - - kindevent - location - - line159 - col15 - file0 + depth0 + extended_message + Call to 'calloc' has an allocation size of 0 bytes + message + Call to 'calloc' has an allocation size of 0 bytes - ranges - + + descriptionCall to 'calloc' has an allocation size of 0 bytes + categoryUnix API + typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) + check_nameunix.API + + issue_hash_content_of_line_in_contexta267ff573c7e8b959a3f886677893eb0 + issue_context_kindfunction + issue_contexttest_calloc + issue_hash_function_offset1 + location + + line137 + col15 + file0 + + ExecutedLines + + 0 + + 136 + 137 + + + + + path + + + kindcontrol + edges - line159 - col29 - file0 - - - line159 - col29 - file0 + start + + + line143 + col3 + file0 + + + line143 + col6 + file0 + + + end + + + line143 + col15 + file0 + + + line143 + col20 + file0 + + - - depth0 - extended_message - Call to 'reallocf' has an allocation size of 0 bytes - message - Call to 'reallocf' has an allocation size of 0 bytes - - - descriptionCall to 'reallocf' has an allocation size of 0 bytes - categoryUnix API - typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) - check_nameunix.API - - issue_hash_content_of_line_in_context4941698efbd81601653dff10ef9c645b - issue_context_kindfunction - issue_contexttest_reallocf - issue_hash_function_offset1 - location - - line159 - col15 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line143 + col15 + file0 + + ranges - - start - - - line177 - col3 - file0 - - - line177 - col6 - file0 - - - end - - - line177 - col15 - file0 - - - line177 - col20 - file0 - - - + + + line143 + col26 + file0 + + + line143 + col26 + file0 + + - - - kindevent - location - - line177 - col15 - file0 + depth0 + extended_message + Call to 'calloc' has an allocation size of 0 bytes + message + Call to 'calloc' has an allocation size of 0 bytes - ranges - + + descriptionCall to 'calloc' has an allocation size of 0 bytes + categoryUnix API + typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) + check_nameunix.API + + issue_hash_content_of_line_in_context14eb72957baab3c63bac610a10e6f48b + issue_context_kindfunction + issue_contexttest_calloc2 + issue_hash_function_offset1 + location + + line143 + col15 + file0 + + ExecutedLines + + 0 + + 142 + 143 + + + + + path + + + kindcontrol + edges - line177 - col22 - file0 - - - line177 - col22 - file0 + start + + + line155 + col3 + file0 + + + line155 + col6 + file0 + + + end + + + line155 + col15 + file0 + + + line155 + col21 + file0 + + - - depth0 - extended_message - Call to 'alloca' has an allocation size of 0 bytes - message - Call to 'alloca' has an allocation size of 0 bytes - - - descriptionCall to 'alloca' has an allocation size of 0 bytes - categoryUnix API - typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) - check_nameunix.API - - issue_hash_content_of_line_in_contextb7ca3488e81d9d9d4b8dc545258ce97c - issue_context_kindfunction - issue_contexttest_alloca - issue_hash_function_offset1 - location - - line177 - col15 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line155 + col15 + file0 + + ranges - - start - - - line189 - col3 - file0 - - - line189 - col6 - file0 - - - end - - - line189 - col16 - file0 - - - line189 - col31 - file0 - - - + + + line155 + col28 + file0 + + + line155 + col28 + file0 + + - - - kindevent - location - - line189 - col16 - file0 + depth0 + extended_message + Call to 'realloc' has an allocation size of 0 bytes + message + Call to 'realloc' has an allocation size of 0 bytes - ranges - + + descriptionCall to 'realloc' has an allocation size of 0 bytes + categoryUnix API + typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) + check_nameunix.API + + issue_hash_content_of_line_in_context7f6f67ebe3d481aed7750005bea7e371 + issue_context_kindfunction + issue_contexttest_realloc + issue_hash_function_offset1 + location + + line155 + col15 + file0 + + ExecutedLines + + 0 + + 154 + 155 + + + + + path + + + kindcontrol + edges - line189 - col33 - file0 - - - line189 - col33 - file0 + start + + + line161 + col3 + file0 + + + line161 + col6 + file0 + + + end + + + line161 + col15 + file0 + + + line161 + col22 + file0 + + - - depth0 - extended_message - Call to 'alloca' has an allocation size of 0 bytes - message - Call to 'alloca' has an allocation size of 0 bytes - - - descriptionCall to 'alloca' has an allocation size of 0 bytes - categoryUnix API - typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) - check_nameunix.API - - issue_hash_content_of_line_in_context1ec52551362b070237f47f6bb6c3847d - issue_context_kindfunction - issue_contexttest_builtin_alloca - issue_hash_function_offset1 - location - - line189 - col16 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line161 + col15 + file0 + + ranges - - start - - - line201 - col3 - file0 - - - line201 - col6 - file0 - - - end - - - line201 - col15 - file0 - - - line201 - col20 - file0 - - - + + + line161 + col29 + file0 + + + line161 + col29 + file0 + + - - - kindevent - location - - line201 - col15 - file0 + depth0 + extended_message + Call to 'reallocf' has an allocation size of 0 bytes + message + Call to 'reallocf' has an allocation size of 0 bytes - ranges - + + descriptionCall to 'reallocf' has an allocation size of 0 bytes + categoryUnix API + typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) + check_nameunix.API + + issue_hash_content_of_line_in_context4941698efbd81601653dff10ef9c645b + issue_context_kindfunction + issue_contexttest_reallocf + issue_hash_function_offset1 + location + + line161 + col15 + file0 + + ExecutedLines + + 0 + + 160 + 161 + + + + + path + + + kindcontrol + edges - line201 - col22 - file0 - - - line201 - col22 - file0 + start + + + line179 + col3 + file0 + + + line179 + col6 + file0 + + + end + + + line179 + col15 + file0 + + + line179 + col20 + file0 + + - - depth0 - extended_message - Call to 'valloc' has an allocation size of 0 bytes - message - Call to 'valloc' has an allocation size of 0 bytes - - - descriptionCall to 'valloc' has an allocation size of 0 bytes - categoryUnix API - typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) - check_nameunix.API - - issue_hash_content_of_line_in_context675741e04c8d0071d280324e23f41d35 - issue_context_kindfunction - issue_contexttest_valloc - issue_hash_function_offset1 - location - - line201 - col15 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line179 + col15 + file0 + + ranges - - start - - - line214 - col3 - file0 - - - line214 - col17 - file0 - - - end - - - line215 - col3 - file0 - - - line215 - col15 - file0 - - - + + + line179 + col22 + file0 + + + line179 + col22 + file0 + + - - - kindevent - location - - line215 - col3 - file0 + depth0 + extended_message + Call to 'alloca' has an allocation size of 0 bytes + message + Call to 'alloca' has an allocation size of 0 bytes - ranges - + + descriptionCall to 'alloca' has an allocation size of 0 bytes + categoryUnix API + typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) + check_nameunix.API + + issue_hash_content_of_line_in_contextb7ca3488e81d9d9d4b8dc545258ce97c + issue_context_kindfunction + issue_contexttest_alloca + issue_hash_function_offset1 + location + + line179 + col15 + file0 + + ExecutedLines + + 0 + + 178 + 179 + + + + + path + + + kindcontrol + edges - line215 - col17 - file0 - - - line215 - col21 - file0 + start + + + line191 + col3 + file0 + + + line191 + col6 + file0 + + + end + + + line191 + col16 + file0 + + + line191 + col31 + file0 + + - - depth0 - extended_message - Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - message - Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - - - descriptionCall to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? - categoryAPI Misuse (Apple) - typeImproper use of 'dispatch_once' - check_nameosx.API - - issue_hash_content_of_line_in_context8ded1f2025c1e4a4bcd5302dc97006d9 - issue_context_kindfunction - issue_contexttest_dispatch_once_in_macro - issue_hash_function_offset2 - location - - line215 - col3 - file0 - - - - path - - - kindevent - location - - line220 - col3 - file0 - - ranges - + + + kindevent + location + + line191 + col16 + file0 + + ranges + + + + line191 + col33 + file0 + + + line191 + col33 + file0 + + + + depth0 + extended_message + Call to 'alloca' has an allocation size of 0 bytes + message + Call to 'alloca' has an allocation size of 0 bytes + + + descriptionCall to 'alloca' has an allocation size of 0 bytes + categoryUnix API + typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) + check_nameunix.API + + issue_hash_content_of_line_in_context1ec52551362b070237f47f6bb6c3847d + issue_context_kindfunction + issue_contexttest_builtin_alloca + issue_hash_function_offset1 + location + + line191 + col16 + file0 + + ExecutedLines + + 0 + + 190 + 191 + + + + + path + + + kindcontrol + edges - line220 - col3 - file0 - - - line220 - col8 - file0 + start + + + line203 + col3 + file0 + + + line203 + col6 + file0 + + + end + + + line203 + col15 + file0 + + + line203 + col20 + file0 + + - - depth0 - extended_message - 'p' initialized to a null pointer value - message - 'p' initialized to a null pointer value - - - kindcontrol - edges - - - start - - - line220 - col3 - file0 - - - line220 - col5 - file0 - - - end - - - line221 - col3 - file0 - - - line221 - col15 - file0 - - - - - - - kindcontrol - edges + + + kindevent + location + + line203 + col15 + file0 + + ranges - - start - - - line221 - col3 - file0 - - - line221 - col15 - file0 - - - end - - - line221 - col24 - file0 - - - line221 - col24 - file0 - - - + + + line203 + col22 + file0 + + + line203 + col22 + file0 + + - - - kindevent - location - - line221 - col24 - file0 + depth0 + extended_message + Call to 'valloc' has an allocation size of 0 bytes + message + Call to 'valloc' has an allocation size of 0 bytes - ranges - + + descriptionCall to 'valloc' has an allocation size of 0 bytes + categoryUnix API + typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) + check_nameunix.API + + issue_hash_content_of_line_in_context675741e04c8d0071d280324e23f41d35 + issue_context_kindfunction + issue_contexttest_valloc + issue_hash_function_offset1 + location + + line203 + col15 + file0 + + ExecutedLines + + 0 + + 202 + 203 + + + + + path + + + kindcontrol + edges - line221 - col24 - file0 - - - line225 - col3 - file0 + start + + + line216 + col3 + file0 + + + line216 + col17 + file0 + + + end + + + line217 + col3 + file0 + + + line217 + col15 + file0 + + - - depth0 - extended_message - 'p' captured by block as a null pointer value - message - 'p' captured by block as a null pointer value - - - kindcontrol - edges + + + kindevent + location + + line217 + col3 + file0 + + ranges - - start - - - line221 - col24 - file0 - - - line221 - col24 - file0 - - - end - - - line221 - col3 - file0 - - - line221 - col15 - file0 - - - + + + line217 + col17 + file0 + + + line217 + col21 + file0 + + - - - kindevent - location + depth0 + extended_message + Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? + message + Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? + + + descriptionCall to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? + categoryAPI Misuse (Apple) + typeImproper use of 'dispatch_once' + check_nameosx.API + + issue_hash_content_of_line_in_context8ded1f2025c1e4a4bcd5302dc97006d9 + issue_context_kindfunction + issue_contexttest_dispatch_once_in_macro + issue_hash_function_offset2 + location + + line217 + col3 + file0 + + ExecutedLines + + 0 + + 215 + 216 + 217 + + + + + path + - line221 - col3 - file0 + kindevent + location + + line222 + col3 + file0 + + ranges + + + + line222 + col3 + file0 + + + line222 + col8 + file0 + + + + depth0 + extended_message + 'p' initialized to a null pointer value + message + 'p' initialized to a null pointer value - ranges - + + kindcontrol + edges - line221 - col3 - file0 - - - line225 - col4 - file0 + start + + + line222 + col3 + file0 + + + line222 + col5 + file0 + + + end + + + line223 + col3 + file0 + + + line223 + col15 + file0 + + - - depth0 - extended_message - Calling 'dispatch_sync' - message - Calling 'dispatch_sync' - - - kindevent - location - - line221 - col3 - file0 - - ranges - + + + kindcontrol + edges - line221 - col3 - file0 - - - line225 - col4 - file0 + start + + + line223 + col3 + file0 + + + line223 + col15 + file0 + + + end + + + line223 + col24 + file0 + + + line223 + col24 + file0 + + - - depth1 - extended_message - Calling anonymous block - message - Calling anonymous block - - - kindevent - location - - line221 - col24 - file0 - - depth2 - extended_message - Entered call from 'dispatch_sync' - message - Entered call from 'dispatch_sync' - - - kindcontrol - edges - - - start - - - line221 - col24 - file0 - - - line221 - col24 - file0 - - - end - - - line222 - col4 - file0 - - - line222 - col5 - file0 - - - - - - - kindcontrol - edges + + + kindevent + location + + line223 + col24 + file0 + + ranges - - start - - - line222 - col4 - file0 - - - line222 - col5 - file0 - - - end - - - line222 - col8 - file0 - - - line222 - col8 - file0 - - - + + + line223 + col24 + file0 + + + line227 + col3 + file0 + + - - - kindevent - location - - line222 - col8 - file0 + depth0 + extended_message + 'p' captured by block as a null pointer value + message + 'p' captured by block as a null pointer value - ranges - + + kindcontrol + edges - line222 - col8 - file0 - - - line222 - col8 - file0 + start + + + line223 + col24 + file0 + + + line223 + col24 + file0 + + + end + + + line223 + col3 + file0 + + + line223 + col15 + file0 + + - - depth2 - extended_message - Assuming 'q' is non-null - message - Assuming 'q' is non-null - - - kindcontrol - edges + + + kindevent + location + + line223 + col3 + file0 + + ranges - - start - - - line222 - col8 - file0 - - - line222 - col8 - file0 - - - end - - - line223 - col3 - file0 - - - line223 - col3 - file0 - - - + + + line223 + col3 + file0 + + + line227 + col4 + file0 + + - - - kindcontrol - edges + depth0 + extended_message + Calling 'dispatch_sync' + message + Calling 'dispatch_sync' + + + kindevent + location + + line223 + col3 + file0 + + ranges - - start - - - line223 - col3 - file0 - - - line223 - col3 - file0 - - - end - - - line223 - col6 - file0 - - - line223 - col6 - file0 - - - + + + line223 + col3 + file0 + + + line227 + col4 + file0 + + - - - kindevent - location + depth1 + extended_message + Calling anonymous block + message + Calling anonymous block + - line223 - col6 - file0 + kindevent + location + + line223 + col24 + file0 + + depth2 + extended_message + Entered call from 'dispatch_sync' + message + Entered call from 'dispatch_sync' - ranges - + + kindcontrol + edges - line223 - col4 - file0 - - - line223 - col4 - file0 + start + + + line223 + col24 + file0 + + + line223 + col24 + file0 + + + end + + + line224 + col4 + file0 + + + line224 + col5 + file0 + + - - depth2 - extended_message - Dereference of null pointer (loaded from variable 'p') - message - Dereference of null pointer (loaded from variable 'p') - - - descriptionDereference of null pointer (loaded from variable 'p') - categoryLogic error - typeDereference of null pointer - check_namecore.NullDereference - - issue_hash_content_of_line_in_context5d3f4c433004c7a6d4a06aa30cc3ea85 - location - - line223 - col6 - file0 - - - - path - - - kindcontrol - edges - - - start - - - line230 - col3 - file0 - - - line230 - col8 - file0 - - - end - - - line231 - col3 - file0 - - - line231 - col5 - file0 - - - - - - - kindevent - location - - line231 - col3 - file0 - ranges - + + kindcontrol + edges - line231 - col3 - file0 - - - line231 - col8 - file0 + start + + + line224 + col4 + file0 + + + line224 + col5 + file0 + + + end + + + line224 + col8 + file0 + + + line224 + col8 + file0 + + - - depth0 - extended_message - 'p' initialized to a null pointer value - message - 'p' initialized to a null pointer value - - - kindcontrol - edges - - - start - - - line231 - col3 - file0 - - - line231 - col5 - file0 - - - end - - - line232 - col3 - file0 - - - line232 - col15 - file0 - - - - - - - kindcontrol - edges + + + kindevent + location + + line224 + col8 + file0 + + ranges - - start - - - line232 - col3 - file0 - - - line232 - col15 - file0 - - - end - - - line232 - col24 - file0 - - - line232 - col24 - file0 - - - + + + line224 + col8 + file0 + + + line224 + col8 + file0 + + - - - kindevent - location - - line232 - col24 - file0 + depth2 + extended_message + Assuming 'q' is non-null + message + Assuming 'q' is non-null - ranges - + + kindcontrol + edges - line232 - col24 - file0 + start + + + line224 + col8 + file0 + + + line224 + col8 + file0 + + + end + + + line225 + col3 + file0 + + + line225 + col3 + file0 + + + + + + kindcontrol + edges + - line234 - col3 - file0 + start + + + line225 + col3 + file0 + + + line225 + col3 + file0 + + + end + + + line225 + col6 + file0 + + + line225 + col6 + file0 + + - - depth0 - extended_message - 'p' captured by block as a null pointer value - message - 'p' captured by block as a null pointer value - - - kindcontrol - edges + + + kindevent + location + + line225 + col6 + file0 + + ranges - - start - - - line232 - col24 - file0 - - - line232 - col24 - file0 - - - end - - - line232 - col3 - file0 - - - line232 - col15 - file0 - - - + + + line225 + col4 + file0 + + + line225 + col4 + file0 + + - - - kindevent - location - - line232 - col3 - file0 + depth2 + extended_message + Dereference of null pointer (loaded from variable 'p') + message + Dereference of null pointer (loaded from variable 'p') - ranges - + + descriptionDereference of null pointer (loaded from variable 'p') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context5d3f4c433004c7a6d4a06aa30cc3ea85 + location + + line225 + col6 + file0 + + ExecutedLines + + 0 + + 40 + 221 + 222 + 223 + 224 + 225 + + + + + path + + + kindcontrol + edges - line232 - col3 - file0 - - - line234 - col4 - file0 + start + + + line232 + col3 + file0 + + + line232 + col8 + file0 + + + end + + + line233 + col3 + file0 + + + line233 + col5 + file0 + + - - depth0 - extended_message - Calling '_dispatch_once' - message - Calling '_dispatch_once' - - - kindevent - location - - line50 - col1 - file0 - - depth1 - extended_message - Entered call from 'test_inline_dispatch_once' - message - Entered call from 'test_inline_dispatch_once' - - - kindcontrol - edges - - - start - - - line50 - col1 - file0 - - - line50 - col6 - file0 - - - end - - - line58 - col2 - file0 - - - line58 - col3 - file0 - - - - - - - kindcontrol - edges + + + kindevent + location + + line233 + col3 + file0 + + ranges - - start - - - line58 - col2 - file0 - - - line58 - col3 - file0 - - - end - - - line59 - col3 - file0 - - - line59 - col15 - file0 - - - + + + line233 + col3 + file0 + + + line233 + col8 + file0 + + - - - kindevent - location - - line59 - col3 - file0 + depth0 + extended_message + 'p' initialized to a null pointer value + message + 'p' initialized to a null pointer value - ranges - + + kindcontrol + edges - line59 - col3 - file0 - - - line59 - col33 - file0 + start + + + line233 + col3 + file0 + + + line233 + col5 + file0 + + + end + + + line234 + col3 + file0 + + + line234 + col15 + file0 + + - - depth1 - extended_message - Calling 'dispatch_once' - message - Calling 'dispatch_once' - - - kindevent - location - - line59 - col3 - file0 - - ranges - + + + kindcontrol + edges - line59 - col3 - file0 - - - line59 - col33 - file0 + start + + + line234 + col3 + file0 + + + line234 + col15 + file0 + + + end + + + line234 + col24 + file0 + + + line234 + col24 + file0 + + - - depth2 - extended_message - Calling anonymous block - message - Calling anonymous block - - - kindevent - location - - line232 - col24 - file0 - - depth3 - extended_message - Entered call from 'dispatch_once' - message - Entered call from 'dispatch_once' - - - kindcontrol - edges - - - start - - - line232 - col24 - file0 - - - line232 - col24 - file0 - - - end - - - line233 - col4 - file0 - - - line233 - col4 - file0 - - - - - - - kindcontrol - edges + + + kindevent + location + + line234 + col24 + file0 + + ranges - - start - - - line233 - col4 - file0 - - - line233 - col4 - file0 - - - end - - - line233 - col7 - file0 - - - line233 - col7 - file0 - - - + + + line234 + col24 + file0 + + + line236 + col3 + file0 + + - - - kindevent - location - - line233 - col7 - file0 + depth0 + extended_message + 'p' captured by block as a null pointer value + message + 'p' captured by block as a null pointer value - ranges - + + kindcontrol + edges - line233 - col5 - file0 - - - line233 - col5 - file0 + start + + + line234 + col24 + file0 + + + line234 + col24 + file0 + + + end + + + line234 + col3 + file0 + + + line234 + col15 + file0 + + - - depth3 - extended_message - Dereference of null pointer (loaded from variable 'p') - message - Dereference of null pointer (loaded from variable 'p') - - - descriptionDereference of null pointer (loaded from variable 'p') - categoryLogic error - typeDereference of null pointer - check_namecore.NullDereference - - issue_hash_content_of_line_in_context265c4fd608dafee211bfa93d21c28866 - location - - line233 - col7 - file0 - - - - path - - - kindcontrol - edges + + + kindevent + location + + line234 + col3 + file0 + + ranges - - start - - - line239 - col3 - file0 - - - line239 - col8 - file0 - - - end - - - line241 - col3 - file0 - - - line241 - col15 - file0 - - - + + + line234 + col3 + file0 + + + line236 + col4 + file0 + + - - - kindevent - location + depth0 + extended_message + Calling '_dispatch_once' + message + Calling '_dispatch_once' + - line241 - col3 - file0 + kindevent + location + + line52 + col1 + file0 + + depth1 + extended_message + Entered call from 'test_inline_dispatch_once' + message + Entered call from 'test_inline_dispatch_once' - ranges - + + kindcontrol + edges - line241 - col3 - file0 + start + + + line52 + col1 + file0 + + + line52 + col6 + file0 + + + end + + + line60 + col2 + file0 + + + line60 + col3 + file0 + + + + + + kindcontrol + edges + - line243 - col4 - file0 + start + + + line60 + col2 + file0 + + + line60 + col3 + file0 + + + end + + + line61 + col3 + file0 + + + line61 + col15 + file0 + + - - depth0 - extended_message - Calling '_dispatch_once' - message - Calling '_dispatch_once' - - - kindevent - location - - line50 - col1 - file0 - - depth1 - extended_message - Entered call from 'test_inline_dispatch_once_reachable' - message - Entered call from 'test_inline_dispatch_once_reachable' - - - kindcontrol - edges + + + kindevent + location + + line61 + col3 + file0 + + ranges - - start - - - line50 - col1 - file0 - - - line50 - col6 - file0 - - - end - - - line58 - col2 - file0 - - - line58 - col3 - file0 - - - + + + line61 + col3 + file0 + + + line61 + col33 + file0 + + - - - kindcontrol - edges + depth1 + extended_message + Calling 'dispatch_once' + message + Calling 'dispatch_once' + + + kindevent + location + + line61 + col3 + file0 + + ranges - - start - - - line58 - col2 - file0 - - - line58 - col3 - file0 - - - end - - - line59 - col3 - file0 - - - line59 - col15 - file0 - - - + + + line61 + col3 + file0 + + + line61 + col33 + file0 + + - - - kindevent - location + depth2 + extended_message + Calling anonymous block + message + Calling anonymous block + - line59 - col3 - file0 + kindevent + location + + line234 + col24 + file0 + + depth3 + extended_message + Entered call from 'dispatch_once' + message + Entered call from 'dispatch_once' - ranges - + + kindcontrol + edges - line59 - col3 - file0 - - - line59 - col33 - file0 + start + + + line234 + col24 + file0 + + + line234 + col24 + file0 + + + end + + + line235 + col4 + file0 + + + line235 + col4 + file0 + + - - depth1 - extended_message - Calling 'dispatch_once' - message - Calling 'dispatch_once' - - - kindevent - location - - line59 - col3 - file0 - - ranges - + + + kindcontrol + edges - line59 - col3 - file0 - - - line59 - col33 - file0 + start + + + line235 + col4 + file0 + + + line235 + col4 + file0 + + + end + + + line235 + col7 + file0 + + + line235 + col7 + file0 + + - - depth2 - extended_message - Calling anonymous block - message - Calling anonymous block - - - kindevent - location - - line241 - col24 - file0 - - depth3 - extended_message - Entered call from 'dispatch_once' - message - Entered call from 'dispatch_once' - - - kindcontrol - edges + + + kindevent + location + + line235 + col7 + file0 + + ranges - - start - - - line241 - col24 - file0 - - - line241 - col24 - file0 - - - end - - - line242 - col7 - file0 - - - line242 - col7 - file0 - - - + + + line235 + col5 + file0 + + + line235 + col5 + file0 + + - - - kindevent - location - - line242 - col7 - file0 + depth3 + extended_message + Dereference of null pointer (loaded from variable 'p') + message + Dereference of null pointer (loaded from variable 'p') - ranges - + + descriptionDereference of null pointer (loaded from variable 'p') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context265c4fd608dafee211bfa93d21c28866 + location + + line235 + col7 + file0 + + ExecutedLines + + 0 + + 44 + 45 + 46 + 47 + 48 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 231 + 232 + 233 + 234 + 235 + + + + + path + + + kindcontrol + edges - line242 - col7 - file0 - - - line242 - col11 - file0 + start + + + line241 + col3 + file0 + + + line241 + col8 + file0 + + + end + + + line243 + col3 + file0 + + + line243 + col15 + file0 + + - - depth3 - extended_message - Null pointer value stored to 'p' - message - Null pointer value stored to 'p' - - - kindevent - location - - line59 - col3 - file0 - - ranges - + + + kindevent + location + + line243 + col3 + file0 + + ranges + + + + line243 + col3 + file0 + + + line245 + col4 + file0 + + + + depth0 + extended_message + Calling '_dispatch_once' + message + Calling '_dispatch_once' + + + kindevent + location + + line52 + col1 + file0 + + depth1 + extended_message + Entered call from 'test_inline_dispatch_once_reachable' + message + Entered call from 'test_inline_dispatch_once_reachable' + + + kindcontrol + edges - line59 - col3 - file0 - - - line59 - col33 - file0 + start + + + line52 + col1 + file0 + + + line52 + col6 + file0 + + + end + + + line60 + col2 + file0 + + + line60 + col3 + file0 + + - - depth2 - extended_message - Returning to caller - message - Returning to caller - - - kindevent - location - - line59 - col3 - file0 - - ranges - + + + kindcontrol + edges - line59 - col3 - file0 - - - line59 - col33 - file0 + start + + + line60 + col2 + file0 + + + line60 + col3 + file0 + + + end + + + line61 + col3 + file0 + + + line61 + col15 + file0 + + - - depth1 - extended_message - Returning from 'dispatch_once' - message - Returning from 'dispatch_once' - - - kindcontrol - edges + + + kindevent + location + + line61 + col3 + file0 + + ranges - - start - - - line59 - col3 - file0 - - - line59 - col15 - file0 - - - end - - - line63 - col2 - file0 - - - line63 - col17 - file0 - - - + + + line61 + col3 + file0 + + + line61 + col33 + file0 + + - - - kindevent - location + depth1 + extended_message + Calling 'dispatch_once' + message + Calling 'dispatch_once' + - line241 - col3 - file0 + kindevent + location + + line61 + col3 + file0 + + ranges + + + + line61 + col3 + file0 + + + line61 + col33 + file0 + + + + depth2 + extended_message + Calling anonymous block + message + Calling anonymous block + + + kindevent + location + + line243 + col24 + file0 + + depth3 + extended_message + Entered call from 'dispatch_once' + message + Entered call from 'dispatch_once' - ranges - + + kindcontrol + edges - line241 - col3 - file0 - - - line243 - col4 - file0 + start + + + line243 + col24 + file0 + + + line243 + col24 + file0 + + + end + + + line244 + col7 + file0 + + + line244 + col7 + file0 + + - - depth0 - extended_message - Returning from '_dispatch_once' - message - Returning from '_dispatch_once' - - - kindcontrol - edges + + + kindevent + location + + line244 + col7 + file0 + + ranges - - start - - - line241 - col3 - file0 - - - line241 - col15 - file0 - - - end - - - line245 - col3 - file0 - - - line245 - col3 - file0 - - - + + + line244 + col7 + file0 + + + line244 + col11 + file0 + + - - - kindcontrol - edges + depth3 + extended_message + Null pointer value stored to 'p' + message + Null pointer value stored to 'p' + + + kindevent + location + + line61 + col3 + file0 + + ranges - - start - - - line245 - col3 - file0 - - - line245 - col3 - file0 - - - end - - - line245 - col6 - file0 - - - line245 - col6 - file0 - - - + + + line61 + col3 + file0 + + + line61 + col33 + file0 + + - - - kindevent - location + depth2 + extended_message + Returning to caller + message + Returning to caller + - line245 - col6 - file0 + kindevent + location + + line61 + col3 + file0 + + ranges + + + + line61 + col3 + file0 + + + line61 + col33 + file0 + + + + depth1 + extended_message + Returning from 'dispatch_once' + message + Returning from 'dispatch_once' - ranges - + + kindcontrol + edges - line245 - col4 - file0 + start + + + line61 + col3 + file0 + + + line61 + col15 + file0 + + + end + + + line65 + col2 + file0 + + + line65 + col17 + file0 + + + + + + kindevent + location + + line243 + col3 + file0 + + ranges + + + + line243 + col3 + file0 + + + line245 + col4 + file0 + + + + depth0 + extended_message + Returning from '_dispatch_once' + message + Returning from '_dispatch_once' + + + kindcontrol + edges + + + start + + + line243 + col3 + file0 + + + line243 + col15 + file0 + + + end + + + line247 + col3 + file0 + + + line247 + col3 + file0 + + + + + + + kindcontrol + edges + - line245 - col4 - file0 + start + + + line247 + col3 + file0 + + + line247 + col3 + file0 + + + end + + + line247 + col6 + file0 + + + line247 + col6 + file0 + + - - depth0 - extended_message - Dereference of null pointer (loaded from variable 'p') - message - Dereference of null pointer (loaded from variable 'p') - - - descriptionDereference of null pointer (loaded from variable 'p') - categoryLogic error - typeDereference of null pointer - check_namecore.NullDereference - - issue_hash_content_of_line_in_context1e83bd4361a2351df0b4e77eb3a9109b - issue_context_kindfunction - issue_contexttest_inline_dispatch_once_reachable - issue_hash_function_offset7 - location - - line245 - col6 - file0 - - - - + + + kindevent + location + + line247 + col6 + file0 + + ranges + + + + line247 + col4 + file0 + + + line247 + col4 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'p') + message + Dereference of null pointer (loaded from variable 'p') + + + descriptionDereference of null pointer (loaded from variable 'p') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context1e83bd4361a2351df0b4e77eb3a9109b + issue_context_kindfunction + issue_contexttest_inline_dispatch_once_reachable + issue_hash_function_offset7 + location + + line247 + col6 + file0 + + ExecutedLines + + 0 + + 44 + 45 + 46 + 47 + 48 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 65 + 240 + 241 + 242 + 243 + 244 + 247 + + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/unix-fns.c + - + \ No newline at end of file diff --git a/test/Analysis/MismatchedDeallocator-path-notes.cpp b/test/Analysis/MismatchedDeallocator-path-notes.cpp index 4e4ffc4242..f31033328d 100644 --- a/test/Analysis/MismatchedDeallocator-path-notes.cpp +++ b/test/Analysis/MismatchedDeallocator-path-notes.cpp @@ -1,6 +1,6 @@ // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.MismatchedDeallocator -analyzer-output=text -verify %s // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.MismatchedDeallocator -analyzer-output=plist %s -o %t.plist -// RUN: FileCheck --input-file=%t.plist %s +// RUN: tail -n +11 %t.plist | diff -u -w - %S/copypaste/Inputs/expected-plists/MismatchedDeallocator-path-notes.cpp.plist void changePointee(int *p); int *allocIntArray(unsigned c) { @@ -13,293 +13,3 @@ void test() { delete p; // expected-warning {{Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete'}} // expected-note@-1 {{Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete'}} } - -// CHECK: diagnostics -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col27 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'allocIntArray' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'allocIntArray' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'test' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'test' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col19 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col27 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line13 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line13 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line13 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line13 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line13 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' -// CHECK-NEXT: message -// CHECK-NEXT: Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionMemory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeBad deallocator -// CHECK-NEXT: check_nameunix.MismatchedDeallocator -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context2009ca1da75217064b6052ba7465dff9 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest -// CHECK-NEXT: issue_hash_function_offset4 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line13 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: diff --git a/test/Analysis/copypaste/Inputs/expected-plists/MismatchedDeallocator-path-notes.cpp.plist b/test/Analysis/copypaste/Inputs/expected-plists/MismatchedDeallocator-path-notes.cpp.plist new file mode 100644 index 0000000000..7c6b866286 --- /dev/null +++ b/test/Analysis/copypaste/Inputs/expected-plists/MismatchedDeallocator-path-notes.cpp.plist @@ -0,0 +1,303 @@ + + + kindcontrol + edges + + + start + + + line10 + col3 + file0 + + + line10 + col5 + file0 + + + end + + + line10 + col12 + file0 + + + line10 + col24 + file0 + + + + + + + kindevent + location + + line10 + col12 + file0 + + ranges + + + + line10 + col12 + file0 + + + line10 + col27 + file0 + + + + depth0 + extended_message + Calling 'allocIntArray' + message + Calling 'allocIntArray' + + + kindevent + location + + line6 + col1 + file0 + + depth1 + extended_message + Entered call from 'test' + message + Entered call from 'test' + + + kindcontrol + edges + + + start + + + line6 + col1 + file0 + + + line6 + col3 + file0 + + + end + + + line7 + col3 + file0 + + + line7 + col8 + file0 + + + + + + + kindevent + location + + line7 + col10 + file0 + + ranges + + + + line7 + col10 + file0 + + + line7 + col19 + file0 + + + + depth1 + extended_message + Memory is allocated + message + Memory is allocated + + + kindevent + location + + line10 + col12 + file0 + + ranges + + + + line10 + col12 + file0 + + + line10 + col27 + file0 + + + + depth0 + extended_message + Returned allocated memory + message + Returned allocated memory + + + kindcontrol + edges + + + start + + + line10 + col12 + file0 + + + line10 + col24 + file0 + + + end + + + line10 + col3 + file0 + + + line10 + col5 + file0 + + + + + + + kindcontrol + edges + + + start + + + line10 + col3 + file0 + + + line10 + col5 + file0 + + + end + + + line13 + col3 + file0 + + + line13 + col8 + file0 + + + + + + + kindevent + location + + line13 + col3 + file0 + + ranges + + + + line13 + col10 + file0 + + + line13 + col10 + file0 + + + + depth0 + extended_message + Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' + message + Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' + + + descriptionMemory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' + categoryMemory error + typeBad deallocator + check_nameunix.MismatchedDeallocator + + issue_hash_content_of_line_in_context2009ca1da75217064b6052ba7465dff9 + issue_context_kindfunction + issue_contexttest + issue_hash_function_offset4 + location + + line13 + col3 + file0 + + ExecutedLines + + 0 + + 6 + 7 + 9 + 10 + 12 + 13 + + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/MismatchedDeallocator-path-notes.cpp + + + \ No newline at end of file diff --git a/test/Analysis/copypaste/Inputs/expected-plists/plist-diagnostics-notes-as-events.cpp.plist b/test/Analysis/copypaste/Inputs/expected-plists/plist-diagnostics-notes-as-events.cpp.plist index 6be079a411..692439cad0 100644 --- a/test/Analysis/copypaste/Inputs/expected-plists/plist-diagnostics-notes-as-events.cpp.plist +++ b/test/Analysis/copypaste/Inputs/expected-plists/plist-diagnostics-notes-as-events.cpp.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -74,7 +70,19 @@ col23 file0 + ExecutedLines + + 0 + + 6 + 13 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/copypaste/plist-diagnostics-notes-as-events.cpp + - + \ No newline at end of file diff --git a/test/Analysis/copypaste/Inputs/expected-plists/plist-diagnostics.cpp.plist b/test/Analysis/copypaste/Inputs/expected-plists/plist-diagnostics.cpp.plist index 73e5e5a79a..c6a7afe528 100644 --- a/test/Analysis/copypaste/Inputs/expected-plists/plist-diagnostics.cpp.plist +++ b/test/Analysis/copypaste/Inputs/expected-plists/plist-diagnostics.cpp.plist @@ -1,7 +1,3 @@ - diagnostics - - - notes location @@ -75,7 +71,19 @@ col23 file0 + ExecutedLines + + 0 + + 6 + 13 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/copypaste/plist-diagnostics.cpp + - + \ No newline at end of file diff --git a/test/Analysis/cstring-plist.c b/test/Analysis/cstring-plist.c index 19d0e46fd3..395937f340 100644 --- a/test/Analysis/cstring-plist.c +++ b/test/Analysis/cstring-plist.c @@ -18,5 +18,8 @@ void cstringchecker_bounds_nocrash() { // CHECK: diagnostics // CHECK-NEXT: // CHECK-NEXT: +// CHECK-NEXT: files +// CHECK-NEXT: +// CHECK-NEXT: // CHECK-NEXT: // CHECK-NEXT: diff --git a/test/Analysis/diagnostics/Inputs/expected-plists/deref-track-symbolic-region.c.plist b/test/Analysis/diagnostics/Inputs/expected-plists/deref-track-symbolic-region.c.plist index b43eb6c4a7..18fed7da39 100644 --- a/test/Analysis/diagnostics/Inputs/expected-plists/deref-track-symbolic-region.c.plist +++ b/test/Analysis/diagnostics/Inputs/expected-plists/deref-track-symbolic-region.c.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -276,6 +272,18 @@ col8 file0 + ExecutedLines + + 0 + + 12 + 13 + 14 + 16 + 17 + 23 + + path @@ -616,7 +624,24 @@ col7 file0 + ExecutedLines + + 0 + + 27 + 28 + 29 + 31 + 32 + 37 + 38 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/deref-track-symbolic-region.c - + \ No newline at end of file diff --git a/test/Analysis/diagnostics/Inputs/expected-plists/plist-diagnostics-include-check.cpp.plist b/test/Analysis/diagnostics/Inputs/expected-plists/plist-diagnostics-include-check.cpp.plist new file mode 100644 index 0000000000..662d7a83d2 --- /dev/null +++ b/test/Analysis/diagnostics/Inputs/expected-plists/plist-diagnostics-include-check.cpp.plist @@ -0,0 +1,147 @@ + + + kindevent + location + + line7 + col3 + file0 + + ranges + + + + line7 + col3 + file0 + + + line1 + col15 + file2 + + + + depth0 + extended_message + Calling 'PlistCheckMacro::run' + message + Calling 'PlistCheckMacro::run' + + + kindevent + location + + line6 + col3 + file1 + + depth1 + extended_message + Entered call from 'foo' + message + Entered call from 'foo' + + + kindcontrol + edges + + + start + + + line6 + col3 + file1 + + + line6 + col6 + file1 + + + end + + + line7 + col5 + file1 + + + line7 + col32 + file1 + + + + + + + kindevent + location + + line7 + col5 + file1 + + ranges + + + + line7 + col5 + file1 + + + line7 + col34 + file1 + + + + depth1 + extended_message + REACHABLE + message + REACHABLE + + + descriptionREACHABLE + categorydebug + typeChecking analyzer assumptions + check_namedebug.ExprInspection + + issue_hash_content_of_line_in_context93b4eab05b21c892c8e31723e5af3f59 + issue_context_kindC++ method + issue_contextrun + issue_hash_function_offset1 + location + + line7 + col5 + file1 + + ExecutedLines + + 0 + + 6 + 7 + + 1 + + 5 + 6 + 7 + + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/plist-diagnostics-include-check.cpp + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.h + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/Inputs/include/plist-diagnostics-include-check-macro.def + + + \ No newline at end of file diff --git a/test/Analysis/diagnostics/Inputs/expected-plists/plist-multi-file.c.plist b/test/Analysis/diagnostics/Inputs/expected-plists/plist-multi-file.c.plist new file mode 100644 index 0000000000..0485b4817c --- /dev/null +++ b/test/Analysis/diagnostics/Inputs/expected-plists/plist-multi-file.c.plist @@ -0,0 +1,212 @@ + + + kindevent + location + + line7 + col7 + file0 + + ranges + + + + line7 + col7 + file0 + + + line7 + col7 + file0 + + + + depth0 + extended_message + Passing null pointer value via 1st parameter 'ptr' + message + Passing null pointer value via 1st parameter 'ptr' + + + kindevent + location + + line7 + col3 + file0 + + ranges + + + + line7 + col3 + file0 + + + line7 + col8 + file0 + + + + depth0 + extended_message + Calling 'foo' + message + Calling 'foo' + + + kindevent + location + + line1 + col1 + file1 + + depth1 + extended_message + Entered call from 'bar' + message + Entered call from 'bar' + + + kindcontrol + edges + + + start + + + line1 + col1 + file1 + + + line1 + col4 + file1 + + + end + + + line2 + col3 + file1 + + + line2 + col3 + file1 + + + + + + + kindcontrol + edges + + + start + + + line2 + col3 + file1 + + + line2 + col3 + file1 + + + end + + + line2 + col8 + file1 + + + line2 + col8 + file1 + + + + + + + kindevent + location + + line2 + col8 + file1 + + ranges + + + + line2 + col4 + file1 + + + line2 + col6 + file1 + + + + depth1 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context2058c95994cab381890af28e7bf354bf + issue_context_kindfunction + issue_contextfoo + issue_hash_function_offset1 + location + + line2 + col8 + file1 + + HTMLDiagnostics_files + + report-288847.html + + ExecutedLines + + 0 + + 6 + 7 + + 1 + + 1 + 2 + + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/plist-multi-file.c + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/plist-multi-file.h + + + \ No newline at end of file diff --git a/test/Analysis/diagnostics/Inputs/expected-plists/report-issues-within-main-file.cpp.plist b/test/Analysis/diagnostics/Inputs/expected-plists/report-issues-within-main-file.cpp.plist new file mode 100644 index 0000000000..e1ce5fcd95 --- /dev/null +++ b/test/Analysis/diagnostics/Inputs/expected-plists/report-issues-within-main-file.cpp.plist @@ -0,0 +1,1825 @@ + + + kindcontrol + edges + + + start + + + line49 + col3 + file0 + + + line49 + col5 + file0 + + + end + + + line51 + col3 + file0 + + + line51 + col23 + file0 + + + + + + + kindevent + location + + line51 + col3 + file0 + + ranges + + + + line51 + col3 + file0 + + + line51 + col23 + file0 + + + + depth0 + extended_message + Calling 'cause_div_by_zero_in_header2' + message + Calling 'cause_div_by_zero_in_header2' + + + kindevent + location + + line21 + col1 + file1 + + depth1 + extended_message + Entered call from 'callInMacro' + message + Entered call from 'callInMacro' + + + kindcontrol + edges + + + start + + + line21 + col1 + file1 + + + line21 + col4 + file1 + + + end + + + line22 + col3 + file1 + + + line22 + col5 + file1 + + + + + + + kindevent + location + + line22 + col3 + file1 + + ranges + + + + line22 + col3 + file1 + + + line22 + col8 + file1 + + + + depth1 + extended_message + 'h2' initialized to 0 + message + 'h2' initialized to 0 + + + kindcontrol + edges + + + start + + + line22 + col3 + file1 + + + line22 + col5 + file1 + + + end + + + line23 + col10 + file1 + + + line23 + col10 + file1 + + + + + + + kindevent + location + + line23 + col10 + file1 + + ranges + + + + line23 + col8 + file1 + + + line23 + col12 + file1 + + + + depth1 + extended_message + Division by zero + message + Division by zero + + + descriptionDivision by zero + categoryLogic error + typeDivision by zero + check_namecore.DivideZero + + issue_hash_content_of_line_in_context81ef0773d42c0309a03a9a11048f497e + issue_context_kindfunction + issue_contextcause_div_by_zero_in_header2 + issue_hash_function_offset2 + location + + line23 + col10 + file1 + + ExecutedLines + + 0 + + 48 + 49 + 50 + 51 + + 1 + + 21 + 22 + 23 + + + + + path + + + kindevent + location + + line63 + col3 + file0 + + ranges + + + + line63 + col3 + file0 + + + line63 + col16 + file0 + + + + depth0 + extended_message + Calling 'callInMacro3' + message + Calling 'callInMacro3' + + + kindevent + location + + line55 + col1 + file0 + + depth1 + extended_message + Entered call from 'callCallInMacro3' + message + Entered call from 'callCallInMacro3' + + + kindcontrol + edges + + + start + + + line55 + col1 + file0 + + + line55 + col4 + file0 + + + end + + + line56 + col3 + file0 + + + line56 + col5 + file0 + + + + + + + kindcontrol + edges + + + start + + + line56 + col3 + file0 + + + line56 + col5 + file0 + + + end + + + line58 + col3 + file0 + + + line58 + col23 + file0 + + + + + + + kindevent + location + + line58 + col3 + file0 + + ranges + + + + line58 + col3 + file0 + + + line58 + col23 + file0 + + + + depth1 + extended_message + Calling 'cause_div_by_zero_in_header3' + message + Calling 'cause_div_by_zero_in_header3' + + + kindevent + location + + line29 + col1 + file1 + + depth2 + extended_message + Entered call from 'callInMacro3' + message + Entered call from 'callInMacro3' + + + kindcontrol + edges + + + start + + + line29 + col1 + file1 + + + line29 + col4 + file1 + + + end + + + line30 + col3 + file1 + + + line30 + col5 + file1 + + + + + + + kindevent + location + + line30 + col3 + file1 + + ranges + + + + line30 + col3 + file1 + + + line30 + col8 + file1 + + + + depth2 + extended_message + 'h3' initialized to 0 + message + 'h3' initialized to 0 + + + kindcontrol + edges + + + start + + + line30 + col3 + file1 + + + line30 + col5 + file1 + + + end + + + line31 + col10 + file1 + + + line31 + col10 + file1 + + + + + + + kindevent + location + + line31 + col10 + file1 + + ranges + + + + line31 + col8 + file1 + + + line31 + col12 + file1 + + + + depth2 + extended_message + Division by zero + message + Division by zero + + + descriptionDivision by zero + categoryLogic error + typeDivision by zero + check_namecore.DivideZero + + issue_hash_content_of_line_in_contexta4f425d2b2715e682b08a754fc88d2c8 + issue_context_kindfunction + issue_contextcause_div_by_zero_in_header3 + issue_hash_function_offset2 + location + + line31 + col10 + file1 + + ExecutedLines + + 0 + + 55 + 56 + 57 + 58 + 62 + 63 + + 1 + + 29 + 30 + 31 + + + + + path + + + kindcontrol + edges + + + start + + + line67 + col3 + file0 + + + line67 + col5 + file0 + + + end + + + line69 + col3 + file0 + + + line69 + col18 + file0 + + + + + + + kindevent + location + + line69 + col3 + file0 + + ranges + + + + line69 + col3 + file0 + + + line69 + col51 + file0 + + + + depth0 + extended_message + Calling 'cause_div_by_zero_in_header4' + message + Calling 'cause_div_by_zero_in_header4' + + + kindevent + location + + line37 + col1 + file1 + + depth1 + extended_message + Entered call from 'callInMacroArg' + message + Entered call from 'callInMacroArg' + + + kindcontrol + edges + + + start + + + line37 + col1 + file1 + + + line37 + col4 + file1 + + + end + + + line38 + col3 + file1 + + + line38 + col5 + file1 + + + + + + + kindevent + location + + line38 + col3 + file1 + + ranges + + + + line38 + col3 + file1 + + + line38 + col8 + file1 + + + + depth1 + extended_message + 'h4' initialized to 0 + message + 'h4' initialized to 0 + + + kindcontrol + edges + + + start + + + line38 + col3 + file1 + + + line38 + col5 + file1 + + + end + + + line39 + col10 + file1 + + + line39 + col10 + file1 + + + + + + + kindevent + location + + line39 + col10 + file1 + + ranges + + + + line39 + col8 + file1 + + + line39 + col12 + file1 + + + + depth1 + extended_message + Division by zero + message + Division by zero + + + descriptionDivision by zero + categoryLogic error + typeDivision by zero + check_namecore.DivideZero + + issue_hash_content_of_line_in_context35f2ebe7ff6b3b34233a5465a6eaf661 + issue_context_kindfunction + issue_contextcause_div_by_zero_in_header4 + issue_hash_function_offset2 + location + + line39 + col10 + file1 + + ExecutedLines + + 0 + + 66 + 67 + 68 + 69 + + 1 + + 37 + 38 + 39 + + + + + path + + + kindevent + location + + line6 + col20 + file0 + + ranges + + + + line6 + col20 + file0 + + + line6 + col29 + file0 + + + + depth0 + extended_message + Memory is allocated + message + Memory is allocated + + + kindcontrol + edges + + + start + + + line6 + col3 + file0 + + + line6 + col10 + file0 + + + end + + + line7 + col1 + file0 + + + line7 + col1 + file0 + + + + + + + kindevent + key_event + location + + line7 + col1 + file0 + + depth0 + extended_message + Calling '~auto_ptr' + message + Calling '~auto_ptr' + + + kindevent + location + + line7 + col3 + file1 + + depth1 + extended_message + Entered call from 'mainPlusHeader' + message + Entered call from 'mainPlusHeader' + + + kindcontrol + edges + + + start + + + line7 + col3 + file1 + + + line7 + col3 + file1 + + + end + + + line7 + col17 + file1 + + + line7 + col22 + file1 + + + + + + + kindevent + location + + line7 + col17 + file1 + + ranges + + + + line7 + col24 + file1 + + + line7 + col29 + file1 + + + + depth1 + extended_message + Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' + message + Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' + + + descriptionMemory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' (within a call to '~auto_ptr') + categoryMemory error + typeBad deallocator + check_nameunix.MismatchedDeallocator + + issue_hash_content_of_line_in_contextf689fbd54138491e228f0f89bb02bfb2 + issue_context_kindfunction + issue_contextmainPlusHeader + issue_hash_function_offset2 + location + + line7 + col1 + file0 + + ExecutedLines + + 0 + + 5 + 6 + 7 + + 1 + + 6 + 7 + + + + + path + + + kindcontrol + edges + + + start + + + line16 + col3 + file0 + + + line16 + col5 + file0 + + + end + + + line18 + col3 + file0 + + + line18 + col11 + file0 + + + + + + + kindevent + location + + line18 + col3 + file0 + + ranges + + + + line18 + col3 + file0 + + + line18 + col13 + file0 + + + + depth0 + extended_message + Calling 'auxInMain' + message + Calling 'auxInMain' + + + kindevent + location + + line9 + col1 + file0 + + depth1 + extended_message + Entered call from 'mainPlusMainPlusHeader' + message + Entered call from 'mainPlusMainPlusHeader' + + + kindcontrol + edges + + + start + + + line9 + col1 + file0 + + + line9 + col4 + file0 + + + end + + + line10 + col3 + file0 + + + line10 + col5 + file0 + + + + + + + kindcontrol + edges + + + start + + + line10 + col3 + file0 + + + line10 + col5 + file0 + + + end + + + line12 + col3 + file0 + + + line12 + col29 + file0 + + + + + + + kindevent + key_event + location + + line12 + col3 + file0 + + ranges + + + + line12 + col3 + file0 + + + line12 + col32 + file0 + + + + depth1 + extended_message + Calling 'cause_div_by_zero_in_header' + message + Calling 'cause_div_by_zero_in_header' + + + kindevent + location + + line10 + col1 + file1 + + depth2 + extended_message + Entered call from 'auxInMain' + message + Entered call from 'auxInMain' + + + kindcontrol + edges + + + start + + + line10 + col1 + file1 + + + line10 + col4 + file1 + + + end + + + line11 + col3 + file1 + + + line11 + col5 + file1 + + + + + + + kindevent + location + + line11 + col3 + file1 + + ranges + + + + line11 + col3 + file1 + + + line11 + col7 + file1 + + + + depth2 + extended_message + 'h' initialized to 0 + message + 'h' initialized to 0 + + + kindcontrol + edges + + + start + + + line11 + col3 + file1 + + + line11 + col5 + file1 + + + end + + + line12 + col9 + file1 + + + line12 + col9 + file1 + + + + + + + kindevent + location + + line12 + col9 + file1 + + ranges + + + + line12 + col7 + file1 + + + line12 + col10 + file1 + + + + depth2 + extended_message + Division by zero + message + Division by zero + + + descriptionDivision by zero (within a call to 'cause_div_by_zero_in_header') + categoryLogic error + typeDivision by zero + check_namecore.DivideZero + + issue_hash_content_of_line_in_contextdceba279187ce4f6514f4a4c43a51063 + issue_context_kindfunction + issue_contextauxInMain + issue_hash_function_offset3 + location + + line12 + col3 + file0 + + ExecutedLines + + 0 + + 9 + 10 + 11 + 12 + 15 + 16 + 17 + 18 + + 1 + + 10 + 11 + 12 + + + + + path + + + kindcontrol + edges + + + start + + + line28 + col3 + file0 + + + line28 + col5 + file0 + + + end + + + line30 + col3 + file0 + + + line30 + col22 + file0 + + + + + + + kindevent + location + + line30 + col3 + file0 + + ranges + + + + line30 + col3 + file0 + + + line30 + col25 + file0 + + + + depth0 + extended_message + Calling 'causeDivByZeroInMain' + message + Calling 'causeDivByZeroInMain' + + + kindevent + location + + line22 + col1 + file0 + + depth1 + extended_message + Entered call from 'mainPlusMain' + message + Entered call from 'mainPlusMain' + + + kindcontrol + edges + + + start + + + line22 + col1 + file0 + + + line22 + col4 + file0 + + + end + + + line23 + col3 + file0 + + + line23 + col5 + file0 + + + + + + + kindevent + location + + line23 + col3 + file0 + + ranges + + + + line23 + col3 + file0 + + + line23 + col7 + file0 + + + + depth1 + extended_message + 'm' initialized to 0 + message + 'm' initialized to 0 + + + kindcontrol + edges + + + start + + + line23 + col3 + file0 + + + line23 + col5 + file0 + + + end + + + line24 + col9 + file0 + + + line24 + col9 + file0 + + + + + + + kindevent + location + + line24 + col9 + file0 + + ranges + + + + line24 + col7 + file0 + + + line24 + col10 + file0 + + + + depth1 + extended_message + Division by zero + message + Division by zero + + + descriptionDivision by zero + categoryLogic error + typeDivision by zero + check_namecore.DivideZero + + issue_hash_content_of_line_in_contextd0d513aa4710781c2b56c44226354403 + issue_context_kindfunction + issue_contextcauseDivByZeroInMain + issue_hash_function_offset2 + location + + line24 + col9 + file0 + + ExecutedLines + + 0 + + 22 + 23 + 24 + 27 + 28 + 29 + 30 + + + + + path + + + kindcontrol + edges + + + start + + + line41 + col3 + file0 + + + line41 + col5 + file0 + + + end + + + line44 + col3 + file0 + + + line44 + col23 + file0 + + + + + + + kindevent + location + + line44 + col3 + file0 + + ranges + + + + line44 + col3 + file0 + + + line44 + col26 + file0 + + + + depth0 + extended_message + Calling 'causeDivByZeroInMain2' + message + Calling 'causeDivByZeroInMain2' + + + kindevent + location + + line34 + col1 + file0 + + depth1 + extended_message + Entered call from 'mainPlustHeaderCallAndReturnPlusMain' + message + Entered call from 'mainPlustHeaderCallAndReturnPlusMain' + + + kindcontrol + edges + + + start + + + line34 + col1 + file0 + + + line34 + col4 + file0 + + + end + + + line35 + col3 + file0 + + + line35 + col5 + file0 + + + + + + + kindevent + location + + line35 + col3 + file0 + + ranges + + + + line35 + col3 + file0 + + + line35 + col8 + file0 + + + + depth1 + extended_message + 'm2' initialized to 0 + message + 'm2' initialized to 0 + + + kindcontrol + edges + + + start + + + line35 + col3 + file0 + + + line35 + col5 + file0 + + + end + + + line36 + col10 + file0 + + + line36 + col10 + file0 + + + + + + + kindevent + location + + line36 + col10 + file0 + + ranges + + + + line36 + col8 + file0 + + + line36 + col12 + file0 + + + + depth1 + extended_message + Division by zero + message + Division by zero + + + descriptionDivision by zero + categoryLogic error + typeDivision by zero + check_namecore.DivideZero + + issue_hash_content_of_line_in_context577ddcf4482f18dec120e21890ed234a + issue_context_kindfunction + issue_contextcauseDivByZeroInMain2 + issue_hash_function_offset2 + location + + line36 + col10 + file0 + + ExecutedLines + + 0 + + 34 + 35 + 36 + 40 + 41 + 42 + 43 + 44 + + 1 + + 16 + 17 + 18 + + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/Inputs/include/report-issues-within-main-file.h + + + \ No newline at end of file diff --git a/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-caller.c.plist b/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-caller.c.plist index 677c471d97..6e03b22e0d 100644 --- a/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-caller.c.plist +++ b/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-caller.c.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -111,7 +107,26 @@ col3 file0 + ExecutedLines + + 0 + + 8 + 9 + 10 + 11 + + 1 + + 2 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/undef-value-caller.c + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/undef-value-callee.h + - + \ No newline at end of file diff --git a/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-param.c.plist b/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-param.c.plist index 60e0ce35df..fec5ae4567 100644 --- a/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-param.c.plist +++ b/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-param.c.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -464,6 +460,24 @@ col14 file0 + ExecutedLines + + 0 + + 5 + 6 + 7 + 11 + 12 + 15 + 19 + 20 + 21 + 22 + 25 + 26 + + path @@ -784,6 +798,19 @@ col14 file0 + ExecutedLines + + 0 + + 30 + 31 + 33 + 38 + 39 + 40 + 42 + + path @@ -1283,7 +1310,25 @@ col10 file0 + ExecutedLines + + 0 + + 50 + 51 + 54 + 57 + 58 + 59 + 60 + 62 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/undef-value-param.c + - + \ No newline at end of file diff --git a/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-param.m.plist b/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-param.m.plist index 1aab4c388d..f82820e2a3 100644 --- a/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-param.m.plist +++ b/test/Analysis/diagnostics/Inputs/expected-plists/undef-value-param.m.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -479,6 +475,23 @@ col5 file0 + ExecutedLines + + 0 + + 34 + 35 + 36 + 39 + 53 + 54 + 55 + 56 + 59 + 60 + 62 + + path @@ -978,7 +991,27 @@ col5 file0 + ExecutedLines + + 0 + + 43 + 44 + 45 + 48 + 65 + 66 + 67 + 68 + 71 + 72 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/diagnostics/undef-value-param.m - + \ No newline at end of file diff --git a/test/Analysis/diagnostics/plist-diagnostics-include-check.cpp b/test/Analysis/diagnostics/plist-diagnostics-include-check.cpp index 8c66b96007..646fc7d8e9 100644 --- a/test/Analysis/diagnostics/plist-diagnostics-include-check.cpp +++ b/test/Analysis/diagnostics/plist-diagnostics-include-check.cpp @@ -1,5 +1,5 @@ // RUN: %clang_analyze_cc1 -analyzer-checker=debug.ExprInspection -analyzer-output=plist-multi-file %s -o %t.plist -// RUN: FileCheck --input-file=%t.plist %s +// RUN: tail -n +11 %t.plist | diff -u -w - %S/Inputs/expected-plists/plist-diagnostics-include-check.cpp.plist #include "Inputs/include/plist-diagnostics-include-check-macro.h" @@ -8,133 +8,3 @@ void foo() { #define PLIST_DEF_MACRO .run(); #include "Inputs/include/plist-diagnostics-include-check-macro.def" } - -// CHECK: diagnostics -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line1 -// CHECK-NEXT: col15 -// CHECK-NEXT: file2 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'PlistCheckMacro::run' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'PlistCheckMacro::run' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'foo' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'foo' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col6 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col32 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col34 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: REACHABLE -// CHECK-NEXT: message -// CHECK-NEXT: REACHABLE -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionREACHABLE -// CHECK-NEXT: categorydebug -// CHECK-NEXT: typeChecking analyzer assumptions -// CHECK-NEXT: check_namedebug.ExprInspection -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context93b4eab05b21c892c8e31723e5af3f59 -// CHECK-NEXT: issue_context_kindC++ method -// CHECK-NEXT: issue_contextrun -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: diff --git a/test/Analysis/diagnostics/plist-multi-file.c b/test/Analysis/diagnostics/plist-multi-file.c index ff68d48508..720f497a5f 100644 --- a/test/Analysis/diagnostics/plist-multi-file.c +++ b/test/Analysis/diagnostics/plist-multi-file.c @@ -1,205 +1,8 @@ // RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output=plist-html -o %t.plist -verify %s -// RUN: FileCheck --input-file=%t.plist %s +// RUN: tail -n +11 %t.plist | diff -u -w --ignore-matching-lines=report - %S/Inputs/expected-plists/plist-multi-file.c.plist #include "plist-multi-file.h" void bar() { foo(0); } - -// CHECK: diagnostics -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Passing null pointer value via 1st parameter 'ptr' -// CHECK-NEXT: message -// CHECK-NEXT: Passing null pointer value via 1st parameter 'ptr' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'foo' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'foo' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line1 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'bar' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'bar' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line1 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line1 -// CHECK-NEXT: col4 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col4 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col6 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Dereference of null pointer (loaded from variable 'ptr') -// CHECK-NEXT: message -// CHECK-NEXT: Dereference of null pointer (loaded from variable 'ptr') -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDereference of null pointer (loaded from variable 'ptr') -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDereference of null pointer -// CHECK-NEXT: check_namecore.NullDereference -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context2058c95994cab381890af28e7bf354bf -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextfoo -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line2 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: HTMLDiagnostics_files -// CHECK-NEXT: -// CHECK-NEXT: report-{{([0-9a-f]{6})}}.html -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: diff --git a/test/Analysis/diagnostics/report-issues-within-main-file.cpp b/test/Analysis/diagnostics/report-issues-within-main-file.cpp index 18795d25bd..3f722d6bda 100644 --- a/test/Analysis/diagnostics/report-issues-within-main-file.cpp +++ b/test/Analysis/diagnostics/report-issues-within-main-file.cpp @@ -1,5 +1,5 @@ // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix -analyzer-output=plist-multi-file -analyzer-config report-in-main-source-file=true %s -o %t.plist -// RUN: FileCheck --input-file=%t.plist %s +// RUN: tail -n +11 %t.plist | diff -u -w - %S/Inputs/expected-plists/report-issues-within-main-file.cpp.plist #include "Inputs/include/report-issues-within-main-file.h" void mainPlusHeader() { @@ -69,1710 +69,3 @@ void callInMacroArg() { TAKE_CALL_AS_ARG(cause_div_by_zero_in_header4(5)); j--; } - -// CHECK: -// CHECK-NEXT: diagnostics -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line49 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line49 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line51 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line51 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line51 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line51 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line51 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'cause_div_by_zero_in_header2' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'cause_div_by_zero_in_header2' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'callInMacro' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'callInMacro' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col4 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'h2' initialized to 0 -// CHECK-NEXT: message -// CHECK-NEXT: 'h2' initialized to 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col12 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDivision by zero -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDivision by zero -// CHECK-NEXT: check_namecore.DivideZero -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context81ef0773d42c0309a03a9a11048f497e -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextcause_div_by_zero_in_header2 -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col16 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'callInMacro3' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'callInMacro3' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'callCallInMacro3' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'callCallInMacro3' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'cause_div_by_zero_in_header3' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'cause_div_by_zero_in_header3' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'callInMacro3' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'callInMacro3' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col4 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'h3' initialized to 0 -// CHECK-NEXT: message -// CHECK-NEXT: 'h3' initialized to 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line31 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line31 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line31 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line31 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line31 -// CHECK-NEXT: col12 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDivision by zero -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDivision by zero -// CHECK-NEXT: check_namecore.DivideZero -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contexta4f425d2b2715e682b08a754fc88d2c8 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextcause_div_by_zero_in_header3 -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line31 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line67 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line67 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col51 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'cause_div_by_zero_in_header4' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'cause_div_by_zero_in_header4' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'callInMacroArg' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'callInMacroArg' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col4 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line38 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line38 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line38 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line38 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line38 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'h4' initialized to 0 -// CHECK-NEXT: message -// CHECK-NEXT: 'h4' initialized to 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line38 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line38 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col8 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col12 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDivision by zero -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDivision by zero -// CHECK-NEXT: check_namecore.DivideZero -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context35f2ebe7ff6b3b34233a5465a6eaf661 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextcause_div_by_zero_in_header4 -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col29 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line6 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: key_event -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling '~auto_ptr' -// CHECK-NEXT: message -// CHECK-NEXT: Calling '~auto_ptr' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'mainPlusHeader' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'mainPlusHeader' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col17 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col22 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col17 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col24 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col29 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' -// CHECK-NEXT: message -// CHECK-NEXT: Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionMemory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete' (within a call to '~auto_ptr') -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeBad deallocator -// CHECK-NEXT: check_nameunix.MismatchedDeallocator -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextf689fbd54138491e228f0f89bb02bfb2 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextmainPlusHeader -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line7 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line16 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line16 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line18 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line18 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line18 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line18 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line18 -// CHECK-NEXT: col13 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'auxInMain' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'auxInMain' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'mainPlusMainPlusHeader' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'mainPlusMainPlusHeader' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col29 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: key_event -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col32 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'cause_div_by_zero_in_header' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'cause_div_by_zero_in_header' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'auxInMain' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'auxInMain' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col1 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col4 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col7 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'h' initialized to 0 -// CHECK-NEXT: message -// CHECK-NEXT: 'h' initialized to 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col3 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col5 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col9 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col9 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col9 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col7 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col10 -// CHECK-NEXT: file1 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDivision by zero (within a call to 'cause_div_by_zero_in_header') -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDivision by zero -// CHECK-NEXT: check_namecore.DivideZero -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextdceba279187ce4f6514f4a4c43a51063 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextauxInMain -// CHECK-NEXT: issue_hash_function_offset3 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line28 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line28 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'causeDivByZeroInMain' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'causeDivByZeroInMain' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'mainPlusMain' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'mainPlusMain' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'm' initialized to 0 -// CHECK-NEXT: message -// CHECK-NEXT: 'm' initialized to 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line24 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line24 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line24 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line24 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line24 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDivision by zero -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDivision by zero -// CHECK-NEXT: check_namecore.DivideZero -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextd0d513aa4710781c2b56c44226354403 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextcauseDivByZeroInMain -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line24 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line41 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line41 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line44 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line44 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line44 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line44 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line44 -// CHECK-NEXT: col26 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'causeDivByZeroInMain2' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'causeDivByZeroInMain2' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line34 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'mainPlustHeaderCallAndReturnPlusMain' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'mainPlustHeaderCallAndReturnPlusMain' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line34 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line34 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line35 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line35 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line35 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line35 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line35 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'm2' initialized to 0 -// CHECK-NEXT: message -// CHECK-NEXT: 'm2' initialized to 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line35 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line35 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line36 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line36 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line36 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line36 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line36 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDivision by zero -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDivision by zero -// CHECK-NEXT: check_namecore.DivideZero -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context577ddcf4482f18dec120e21890ed234a -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextcauseDivByZeroInMain2 -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line36 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: diff --git a/test/Analysis/inlining/Inputs/expected-plists/eager-reclamation-path-notes.c.plist b/test/Analysis/inlining/Inputs/expected-plists/eager-reclamation-path-notes.c.plist index 7b9920c911..e0acfd90f8 100644 --- a/test/Analysis/inlining/Inputs/expected-plists/eager-reclamation-path-notes.c.plist +++ b/test/Analysis/inlining/Inputs/expected-plists/eager-reclamation-path-notes.c.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -251,6 +247,19 @@ col8 file0 + ExecutedLines + + 0 + + 5 + 6 + 10 + 15 + 18 + 19 + 21 + + path @@ -609,7 +618,26 @@ col8 file0 + ExecutedLines + + 0 + + 10 + 15 + 27 + 28 + 32 + 33 + 38 + 39 + 41 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/inlining/eager-reclamation-path-notes.c - + \ No newline at end of file diff --git a/test/Analysis/inlining/Inputs/expected-plists/eager-reclamation-path-notes.cpp.plist b/test/Analysis/inlining/Inputs/expected-plists/eager-reclamation-path-notes.cpp.plist index 327334dd3b..f6f031b6f1 100644 --- a/test/Analysis/inlining/Inputs/expected-plists/eager-reclamation-path-notes.cpp.plist +++ b/test/Analysis/inlining/Inputs/expected-plists/eager-reclamation-path-notes.cpp.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -348,7 +344,24 @@ col10 file0 + ExecutedLines + + 0 + + 9 + 10 + 14 + 24 + 30 + 31 + 33 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/inlining/eager-reclamation-path-notes.cpp + - + \ No newline at end of file diff --git a/test/Analysis/inlining/Inputs/expected-plists/path-notes.c.plist b/test/Analysis/inlining/Inputs/expected-plists/path-notes.c.plist index 4b949f04e2..8fafacd809 100644 --- a/test/Analysis/inlining/Inputs/expected-plists/path-notes.c.plist +++ b/test/Analysis/inlining/Inputs/expected-plists/path-notes.c.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindevent @@ -251,6 +247,17 @@ col6 file0 + ExecutedLines + + 0 + + 5 + 6 + 10 + 11 + 14 + + path @@ -431,6 +438,15 @@ col6 file0 + ExecutedLines + + 0 + + 18 + 19 + 24 + + path @@ -674,6 +690,16 @@ col6 file0 + ExecutedLines + + 0 + + 31 + 32 + 34 + 39 + + path @@ -917,6 +943,16 @@ col6 file0 + ExecutedLines + + 0 + + 43 + 44 + 46 + 51 + + path @@ -1198,6 +1234,17 @@ col14 file0 + ExecutedLines + + 0 + + 56 + 57 + 60 + 64 + 65 + + path @@ -1479,6 +1526,17 @@ col10 file0 + ExecutedLines + + 0 + + 56 + 57 + 60 + 71 + 72 + + path @@ -1891,6 +1949,18 @@ col6 file0 + ExecutedLines + + 0 + + 56 + 57 + 60 + 78 + 79 + 83 + + path @@ -2303,6 +2373,18 @@ col6 file0 + ExecutedLines + + 0 + + 56 + 57 + 60 + 87 + 88 + 92 + + path @@ -2758,6 +2840,19 @@ col6 file0 + ExecutedLines + + 0 + + 56 + 57 + 60 + 96 + 97 + 101 + 103 + + path @@ -3010,6 +3105,17 @@ col10 file0 + ExecutedLines + + 0 + + 112 + 113 + 116 + 117 + 119 + + path @@ -3156,6 +3262,15 @@ col24 file0 + ExecutedLines + + 0 + + 130 + 131 + 132 + + path @@ -3336,6 +3451,15 @@ col7 file0 + ExecutedLines + + 0 + + 136 + 137 + 139 + + path @@ -3622,7 +3746,25 @@ col12 file0 + ExecutedLines + + 0 + + 143 + 146 + 147 + 148 + 151 + 152 + 153 + 155 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/inlining/path-notes.c - + \ No newline at end of file diff --git a/test/Analysis/inlining/Inputs/expected-plists/path-notes.cpp.plist b/test/Analysis/inlining/Inputs/expected-plists/path-notes.cpp.plist index 957e4375d3..1c829936b5 100644 --- a/test/Analysis/inlining/Inputs/expected-plists/path-notes.cpp.plist +++ b/test/Analysis/inlining/Inputs/expected-plists/path-notes.cpp.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -487,6 +483,23 @@ col8 file0 + ExecutedLines + + 0 + + 7 + 8 + 12 + 13 + 21 + 23 + 24 + 30 + 31 + 32 + 34 + + path @@ -710,6 +723,18 @@ col10 file0 + ExecutedLines + + 0 + + 37 + 38 + 40 + 41 + 44 + 46 + + path @@ -1028,6 +1053,18 @@ col18 file0 + ExecutedLines + + 0 + + 62 + 63 + 93 + 109 + 110 + 112 + + path @@ -1346,6 +1383,18 @@ col18 file0 + ExecutedLines + + 0 + + 67 + 68 + 93 + 117 + 118 + 120 + + path @@ -1664,6 +1713,20 @@ col18 file0 + ExecutedLines + + 0 + + 54 + 55 + 72 + 73 + 102 + 125 + 126 + 128 + + path @@ -1984,6 +2047,21 @@ col18 file0 + ExecutedLines + + 0 + + 62 + 63 + 77 + 78 + 93 + 132 + 133 + 134 + 136 + + path @@ -2304,6 +2382,24 @@ col18 file0 + ExecutedLines + + 0 + + 54 + 55 + 62 + 63 + 82 + 83 + 100 + 105 + 141 + 142 + 143 + 145 + + path @@ -2592,6 +2688,21 @@ col18 file0 + ExecutedLines + + 0 + + 62 + 63 + 87 + 88 + 93 + 149 + 150 + 151 + 153 + + path @@ -2844,6 +2955,16 @@ col21 file0 + ExecutedLines + + 0 + + 159 + 160 + 172 + 173 + + path @@ -3193,6 +3314,18 @@ col21 file0 + ExecutedLines + + 0 + + 164 + 165 + 166 + 168 + 179 + 180 + + path @@ -3305,6 +3438,15 @@ col3 file0 + ExecutedLines + + 0 + + 187 + 188 + 190 + + path @@ -3671,6 +3813,17 @@ col8 file0 + ExecutedLines + + 0 + + 196 + 197 + 202 + 203 + 205 + + path @@ -3880,6 +4033,16 @@ col10 file0 + ExecutedLines + + 0 + + 209 + 210 + 211 + 212 + + path @@ -4026,6 +4189,15 @@ col8 file0 + ExecutedLines + + 0 + + 219 + 220 + 221 + + path @@ -4206,6 +4378,15 @@ col11 file0 + ExecutedLines + + 0 + + 233 + 234 + 237 + + path @@ -4352,6 +4533,15 @@ col11 file0 + ExecutedLines + + 0 + + 241 + 242 + 243 + + path @@ -4561,6 +4751,16 @@ col5 file0 + ExecutedLines + + 0 + + 253 + 254 + 259 + 261 + + path @@ -4750,6 +4950,16 @@ col13 file0 + ExecutedLines + + 0 + + 268 + 269 + 272 + 273 + + path @@ -4985,7 +5195,23 @@ col26 file0 + ExecutedLines + + 0 + + 280 + 281 + 289 + 290 + 295 + 296 + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/inlining/path-notes.cpp + - + \ No newline at end of file diff --git a/test/Analysis/inlining/Inputs/expected-plists/path-notes.m.plist b/test/Analysis/inlining/Inputs/expected-plists/path-notes.m.plist index 509d28c4bf..36977751d0 100644 --- a/test/Analysis/inlining/Inputs/expected-plists/path-notes.m.plist +++ b/test/Analysis/inlining/Inputs/expected-plists/path-notes.m.plist @@ -1,7 +1,3 @@ - diagnostics - - - path kindcontrol @@ -343,6 +339,16 @@ col20 file0 + ExecutedLines + + 0 + + 72 + 73 + 78 + 79 + + path @@ -653,6 +659,19 @@ col12 file0 + ExecutedLines + + 0 + + 7 + 87 + 88 + 90 + 94 + 97 + 101 + + path @@ -902,6 +921,19 @@ col5 file0 + ExecutedLines + + 0 + + 7 + 105 + 109 + 111 + 114 + 116 + 118 + + path @@ -1479,6 +1511,19 @@ col6 file0 + ExecutedLines + + 0 + + 134 + 135 + 139 + 143 + 145 + 150 + 152 + + path @@ -1659,6 +1704,15 @@ col10 file0 + ExecutedLines + + 0 + + 158 + 159 + 161 + + path @@ -1914,7 +1968,24 @@ col3 file0 + ExecutedLines + + 0 + + 13 + 166 + 167 + 168 + 170 + 175 + 177 + + + + files + + /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/inlining/path-notes.m - + \ No newline at end of file diff --git a/test/Analysis/lambda-notes.cpp b/test/Analysis/lambda-notes.cpp index d4318284df..0cbaf3d485 100644 --- a/test/Analysis/lambda-notes.cpp +++ b/test/Analysis/lambda-notes.cpp @@ -1,5 +1,5 @@ // RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=core.DivideZero -analyzer-config inline-lambdas=true -analyzer-output plist -verify %s -o %t -// RUN: FileCheck --input-file=%t %s +// RUN: tail -n +11 %t | diff -u -w - %S/Inputs/expected-plists/lambda-notes.cpp.plist // Diagnostic inside a lambda @@ -11,196 +11,3 @@ void diagnosticFromLambda() { (void)p; }(); } - -// CHECK: diagnostics -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line8 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line8 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: The value 0 is assigned to field '' -// CHECK-NEXT: message -// CHECK-NEXT: The value 0 is assigned to field '' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'operator()' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'operator()' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'diagnosticFromLambda' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'diagnosticFromLambda' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line9 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col14 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col14 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col14 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col13 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: message -// CHECK-NEXT: Division by zero -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDivision by zero -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDivision by zero -// CHECK-NEXT: check_namecore.DivideZero -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextbd4eed3234018edced5efc2ed5562a74 -// CHECK-NEXT: issue_context_kindC++ method -// CHECK-NEXT: issue_contextoperator() -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line10 -// CHECK-NEXT: col14 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: diff --git a/test/Analysis/malloc-plist.c b/test/Analysis/malloc-plist.c index 1dcbbcfa0e..05b29809e7 100644 --- a/test/Analysis/malloc-plist.c +++ b/test/Analysis/malloc-plist.c @@ -1,6 +1,6 @@ // RUN: rm -f %t // RUN: %clang_analyze_cc1 -fblocks -analyzer-checker=core,unix.Malloc -analyzer-output=plist -verify -o %t -analyzer-config eagerly-assume=false %s -// RUN: FileCheck -input-file %t %s +// RUN: tail -n +11 %t | diff -u -w - %S/Inputs/expected-plists/malloc-plist.c.plist typedef __typeof(sizeof(int)) size_t; void *malloc(size_t); @@ -207,5038 +207,3 @@ int *my_malloc_into_struct() { void testMyMalloc() { my_malloc_into_struct(); } // expected-warning{{Potential memory leak}} - -// CHECK: diagnostics -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col14 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming 'in' is > 5 -// CHECK-NEXT: message -// CHECK-NEXT: Assuming 'in' is > 5 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line11 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col27 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line12 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line14 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line14 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line14 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line14 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line16 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line16 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line16 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'p' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'p' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'p' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextc60b35a3e46fd104f362f430a1eaca5d -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextdiagnosticTest -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line16 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line20 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line20 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col30 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line21 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line22 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'A' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'A' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'A' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context9b732ec46c4a08108dfbd37aa0955c51 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextmyArrayAllocation -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line23 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line26 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line26 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line26 -// CHECK-NEXT: col28 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line26 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line26 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line28 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line28 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line28 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line28 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line28 -// CHECK-NEXT: col40 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Attempt to reallocate memory -// CHECK-NEXT: message -// CHECK-NEXT: Attempt to reallocate memory -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line28 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line28 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming 'tmp' is null -// CHECK-NEXT: message -// CHECK-NEXT: Assuming 'tmp' is null -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Reallocation failed -// CHECK-NEXT: message -// CHECK-NEXT: Reallocation failed -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line29 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col14 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'buf' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'buf' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'buf' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context37c0b1a1e65d26af6f9fb840cf159149 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextreallocDiagnostics -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line30 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col21 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'wrapper' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'wrapper' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line36 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'test_wrapper' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'test_wrapper' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line36 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line36 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col13 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col13 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line37 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming 'x' is non-null -// CHECK-NEXT: message -// CHECK-NEXT: Assuming 'x' is non-null -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line39 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line40 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line40 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col21 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line45 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line46 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line46 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line46 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line46 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line47 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line47 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line47 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'buf' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'buf' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'buf' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context384d1700f3d9c8eeea96d171e3030bdf -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_wrapper -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line47 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line61 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line61 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col28 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'my_malloc_and_free' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'my_malloc_and_free' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line54 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'test_double_action_call' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'test_double_action_call' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line54 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line54 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line55 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming the condition is true -// CHECK-NEXT: message -// CHECK-NEXT: Assuming the condition is true -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line56 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col13 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col17 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'my_free' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'my_free' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line51 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'my_malloc_and_free' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'my_malloc_and_free' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line51 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line51 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line52 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line52 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line52 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line52 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line52 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is released -// CHECK-NEXT: message -// CHECK-NEXT: Memory is released -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col17 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returning; memory was released via 1st parameter -// CHECK-NEXT: message -// CHECK-NEXT: Returning; memory was released via 1st parameter -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line57 -// CHECK-NEXT: col13 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col28 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returning; memory was released via 1st parameter -// CHECK-NEXT: message -// CHECK-NEXT: Returning; memory was released via 1st parameter -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line62 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col14 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Use of memory after it is freed -// CHECK-NEXT: message -// CHECK-NEXT: Use of memory after it is freed -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionUse of memory after it is freed -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeUse-after-free -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context422436dc85b85cde7e15046a5616ee99 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_double_action_call -// CHECK-NEXT: issue_hash_function_offset3 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line76 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line76 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line76 -// CHECK-NEXT: col35 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line76 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line76 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'my_realloc' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'my_realloc' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line67 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'reallocIntra' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'reallocIntra' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line67 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line67 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line68 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line68 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line68 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line68 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col40 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Attempt to reallocate memory -// CHECK-NEXT: message -// CHECK-NEXT: Attempt to reallocate memory -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line69 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming 'tmp' is null -// CHECK-NEXT: message -// CHECK-NEXT: Assuming 'tmp' is null -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Reallocation failed -// CHECK-NEXT: message -// CHECK-NEXT: Reallocation failed -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line70 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line71 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line71 -// CHECK-NEXT: col14 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Reallocation of 1st parameter failed -// CHECK-NEXT: message -// CHECK-NEXT: Reallocation of 1st parameter failed -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line77 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line78 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line78 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line78 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'buf' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'buf' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'buf' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context23a6c295a515c455bea1c81519bc05b6 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextreallocIntra -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line78 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line86 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line86 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col26 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col28 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'malloc_wrapper_ret' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'malloc_wrapper_ret' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'use_ret' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'use_ret' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line83 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line83 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line83 -// CHECK-NEXT: col19 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line83 -// CHECK-NEXT: col19 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line83 -// CHECK-NEXT: col28 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col28 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col26 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line87 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line88 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line88 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line88 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'v' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'v' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'v' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context45181c7fc1df81a732346f1ed1b3f238 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextuse_ret -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line88 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line98 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line98 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line100 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line100 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line100 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line100 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line100 -// CHECK-NEXT: col30 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line100 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line100 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col35 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'myfree_takingblock' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'myfree_takingblock' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'call_myfree_takingblock' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'call_myfree_takingblock' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line94 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line94 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line94 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line94 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line94 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is released -// CHECK-NEXT: message -// CHECK-NEXT: Memory is released -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col35 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returning; memory was released via 2nd parameter -// CHECK-NEXT: message -// CHECK-NEXT: Returning; memory was released via 2nd parameter -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line101 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Use of memory after it is freed -// CHECK-NEXT: message -// CHECK-NEXT: Use of memory after it is freed -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionUse of memory after it is freed -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeUse-after-free -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context652c97005df876a65d64ecd286d6030a -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextcall_myfree_takingblock -// CHECK-NEXT: issue_hash_function_offset5 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line107 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line107 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line109 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line109 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line109 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line109 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line109 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line109 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line109 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line115 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line115 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line115 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'm' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'm' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'm' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextd8483ccf1d5a1af1e8bcaac6905a18b3 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextLeakedSymbol -// CHECK-NEXT: issue_hash_function_offset3 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line115 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'function_with_leak1' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'function_with_leak1' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line119 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'use_function_with_leak1' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'use_function_with_leak1' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line119 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line119 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line120 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line120 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line120 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line120 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line120 -// CHECK-NEXT: col31 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line120 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line120 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line121 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line121 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line121 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextb07aebe89e4ba5ea104a9f957df9531b -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextfunction_with_leak1 -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line121 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line132 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line132 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line132 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'function_with_leak2' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'function_with_leak2' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line127 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'use_function_with_leak2' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'use_function_with_leak2' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line127 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line127 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line128 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line128 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line128 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line128 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line128 -// CHECK-NEXT: col31 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line128 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line128 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line129 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line129 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line129 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextefe2ffcb7c227e872aa732c5f793895d -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextfunction_with_leak2 -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line129 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col26 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'function_with_leak3' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'function_with_leak3' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'use_function_with_leak3' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'use_function_with_leak3' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line136 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line136 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line136 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line136 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line136 -// CHECK-NEXT: col31 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line136 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line136 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming 'y' is not equal to 0 -// CHECK-NEXT: message -// CHECK-NEXT: Assuming 'y' is not equal to 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line137 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line138 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line138 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line138 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context0ddc87e8a7e7104428af3905f3057611 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextfunction_with_leak3 -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line138 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line152 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line152 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line152 -// CHECK-NEXT: col26 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'function_with_leak4' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'function_with_leak4' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line144 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'use_function_with_leak4' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'use_function_with_leak4' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line144 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line144 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line145 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line145 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line145 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line145 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line145 -// CHECK-NEXT: col31 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line145 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line145 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming 'y' is 0 -// CHECK-NEXT: message -// CHECK-NEXT: Assuming 'y' is 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line146 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line149 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line149 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line149 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context948d356840e67fc4baa8cc5d0600463c -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextfunction_with_leak4 -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line149 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line163 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line163 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line163 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'function_with_leak5' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'function_with_leak5' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line158 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'use_function_with_leak5' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'use_function_with_leak5' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line158 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line158 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col31 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line160 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line160 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line160 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line160 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line160 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line160 -// CHECK-NEXT: col27 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line160 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context2b0361060027060b94915ff4de8aa782 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextfunction_with_leak5 -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line160 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line174 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line174 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line174 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'function_with_leak6' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'function_with_leak6' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line169 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'use_function_with_leak6' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'use_function_with_leak6' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line169 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line169 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line170 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line170 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line170 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line170 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line170 -// CHECK-NEXT: col31 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line170 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line170 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line171 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line171 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line171 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: message -// CHECK-NEXT: Potential leak of memory pointed to by 'x' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential leak of memory pointed to by 'x' -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context73f573faa903ad4308d5155ef979cf31 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextfunction_with_leak6 -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line171 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line186 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line186 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line186 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'function_with_leak7' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'function_with_leak7' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line182 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'use_function_with_leak7' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'use_function_with_leak7' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line182 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line182 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line183 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line183 -// CHECK-NEXT: col10 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line183 -// CHECK-NEXT: col19 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line183 -// CHECK-NEXT: col19 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line183 -// CHECK-NEXT: col28 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line186 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line186 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line186 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line186 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line186 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line187 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line187 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line187 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential memory leak -// CHECK-NEXT: message -// CHECK-NEXT: Potential memory leak -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential memory leak -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contexteb5628850b9b9118fbda903e721436a5 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextuse_function_with_leak7 -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line187 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line196 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line196 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line196 -// CHECK-NEXT: col13 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'my_malloc' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'my_malloc' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line191 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'testOnlyRefferToVisibleVariables' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'testOnlyRefferToVisibleVariables' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line191 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line191 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line192 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line192 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line192 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line192 -// CHECK-NEXT: col12 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line192 -// CHECK-NEXT: col21 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line192 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line192 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line193 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line193 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line196 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line196 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line196 -// CHECK-NEXT: col13 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line196 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line196 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line197 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line197 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line197 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential memory leak -// CHECK-NEXT: message -// CHECK-NEXT: Potential memory leak -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential memory leak -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextad5b603037bc3581ff94947e86dbb1c8 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttestOnlyRefferToVisibleVariables -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line197 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line208 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line208 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line208 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'my_malloc_into_struct' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'my_malloc_into_struct' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line202 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'testMyMalloc' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'testMyMalloc' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line202 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line202 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line203 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line203 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line203 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line203 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line204 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line204 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line204 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line204 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line204 -// CHECK-NEXT: col18 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: message -// CHECK-NEXT: Memory is allocated -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line204 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line204 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line205 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line205 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line208 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line208 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line208 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: message -// CHECK-NEXT: Returned allocated memory -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line208 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line208 -// CHECK-NEXT: col23 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line209 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line209 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line209 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Potential memory leak -// CHECK-NEXT: message -// CHECK-NEXT: Potential memory leak -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionPotential memory leak -// CHECK-NEXT: categoryMemory error -// CHECK-NEXT: typeMemory leak -// CHECK-NEXT: check_nameunix.Malloc -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context8d59cc5cc4b7db55d432abc18b0e6c23 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttestMyMalloc -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line209 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: diff --git a/test/Analysis/plist-stats-output.c b/test/Analysis/plist-stats-output.c index 072fe5e297..cab9523d79 100644 --- a/test/Analysis/plist-stats-output.c +++ b/test/Analysis/plist-stats-output.c @@ -8,6 +8,9 @@ int foo() {} // CHECK: diagnostics // CHECK-NEXT: // CHECK-NEXT: +// CHECK-NEXT: files +// CHECK-NEXT: +// CHECK-NEXT: // CHECK-NEXT: statistics // CHECK-NEXT: { // CHECK: } diff --git a/test/Analysis/unix-fns.c b/test/Analysis/unix-fns.c index 06c02dfc6f..5458da018f 100644 --- a/test/Analysis/unix-fns.c +++ b/test/Analysis/unix-fns.c @@ -1,8 +1,10 @@ // RUN: %clang_analyze_cc1 -triple x86_64-apple-darwin10 -analyzer-checker=core,unix.API,osx.API,optin.portability %s -analyzer-store=region -analyzer-output=plist -analyzer-config faux-bodies=true -fblocks -verify -o %t.plist -// RUN: FileCheck --input-file=%t.plist %s +// RUN: tail -n +11 %t.plist | diff -u -w - %S/Inputs/expected-plists/unix-fns.c.plist // RUN: mkdir -p %t.dir // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.API,osx.API,optin.portability -analyzer-output=html -analyzer-config faux-bodies=true -fblocks -o %t.dir %s // RUN: rm -fR %t.dir + + struct _opaque_pthread_once_t { long __sig; char __opaque[8]; @@ -244,2834 +246,3 @@ void test_inline_dispatch_once_reachable() { *p = 7; // expected-warning {{Dereference of null pointer (loaded from variable 'p')}} } - -// CHECK: diagnostics -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line80 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line80 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming 'fd' is not equal to 0 -// CHECK-NEXT: message -// CHECK-NEXT: Assuming 'fd' is not equal to 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line82 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col19 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col25 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'open' requires a 3rd argument when the 'O_CREAT' flag is set -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'open' requires a 3rd argument when the 'O_CREAT' flag is set -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'open' requires a 3rd argument when the 'O_CREAT' flag is set -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeImproper use of 'open' -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context5ef25c5c47db3dbfb329901d426452e7 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_open -// CHECK-NEXT: issue_hash_function_offset6 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line85 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line91 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line91 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming 'fd' is not equal to 0 -// CHECK-NEXT: message -// CHECK-NEXT: Assuming 'fd' is not equal to 0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line93 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col13 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col44 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col50 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'openat' requires a 4th argument when the 'O_CREAT' flag is set -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'openat' requires a 4th argument when the 'O_CREAT' flag is set -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'openat' requires a 4th argument when the 'O_CREAT' flag is set -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeImproper use of 'open' -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context433b17840bb989e7a13dc6337c1ed220 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_open_at -// CHECK-NEXT: issue_hash_function_offset6 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line96 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line102 -// CHECK-NEXT: col17 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col9 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col52 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col64 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col52 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col66 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col72 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? -// CHECK-NEXT: categoryAPI Misuse (Apple) -// CHECK-NEXT: typeImproper use of 'dispatch_once' -// CHECK-NEXT: check_nameosx.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context173fbcac3fc64dbaec32768d4cfda250 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_dispatch_once -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line103 -// CHECK-NEXT: col52 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line113 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line113 -// CHECK-NEXT: col16 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line114 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line114 -// CHECK-NEXT: col14 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line114 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line114 -// CHECK-NEXT: col16 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line114 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'pthread_once' uses the local variable 'pred' for the "control" value. Using such transient memory for the control value is potentially dangerous. Perhaps you intended to declare the variable as 'static'? -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeImproper use of 'pthread_once' -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context1e2f657a65cf8ee3c3ac2227de05ade4 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_pthread_once -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line114 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'malloc' has an allocation size of 0 bytes -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'malloc' has an allocation size of 0 bytes -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'malloc' has an allocation size of 0 bytes -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context0e841458f0cb7cf161d35f9db5862dcf -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contextpr2899 -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line123 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'calloc' has an allocation size of 0 bytes -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'calloc' has an allocation size of 0 bytes -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'calloc' has an allocation size of 0 bytes -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contexta267ff573c7e8b959a3f886677893eb0 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_calloc -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line135 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col26 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col26 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'calloc' has an allocation size of 0 bytes -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'calloc' has an allocation size of 0 bytes -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'calloc' has an allocation size of 0 bytes -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context14eb72957baab3c63bac610a10e6f48b -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_calloc2 -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line141 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line153 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line153 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line153 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line153 -// CHECK-NEXT: col21 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line153 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line153 -// CHECK-NEXT: col28 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line153 -// CHECK-NEXT: col28 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'realloc' has an allocation size of 0 bytes -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'realloc' has an allocation size of 0 bytes -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'realloc' has an allocation size of 0 bytes -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context7f6f67ebe3d481aed7750005bea7e371 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_realloc -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line153 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col29 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col29 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'reallocf' has an allocation size of 0 bytes -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'reallocf' has an allocation size of 0 bytes -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'reallocf' has an allocation size of 0 bytes -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context4941698efbd81601653dff10ef9c645b -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_reallocf -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line159 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line177 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line177 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line177 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line177 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line177 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line177 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line177 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'alloca' has an allocation size of 0 bytes -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'alloca' has an allocation size of 0 bytes -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'alloca' has an allocation size of 0 bytes -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_contextb7ca3488e81d9d9d4b8dc545258ce97c -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_alloca -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line177 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line189 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line189 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line189 -// CHECK-NEXT: col16 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line189 -// CHECK-NEXT: col31 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line189 -// CHECK-NEXT: col16 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line189 -// CHECK-NEXT: col33 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line189 -// CHECK-NEXT: col33 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'alloca' has an allocation size of 0 bytes -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'alloca' has an allocation size of 0 bytes -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'alloca' has an allocation size of 0 bytes -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context1ec52551362b070237f47f6bb6c3847d -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_builtin_alloca -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line189 -// CHECK-NEXT: col16 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line201 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line201 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line201 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line201 -// CHECK-NEXT: col20 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line201 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line201 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line201 -// CHECK-NEXT: col22 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'valloc' has an allocation size of 0 bytes -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'valloc' has an allocation size of 0 bytes -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'valloc' has an allocation size of 0 bytes -// CHECK-NEXT: categoryUnix API -// CHECK-NEXT: typeUndefined allocation of 0 bytes (CERT MEM04-C; CWE-131) -// CHECK-NEXT: check_nameunix.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context675741e04c8d0071d280324e23f41d35 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_valloc -// CHECK-NEXT: issue_hash_function_offset1 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line201 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line214 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line214 -// CHECK-NEXT: col17 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line215 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line215 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line215 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line215 -// CHECK-NEXT: col17 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line215 -// CHECK-NEXT: col21 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? -// CHECK-NEXT: message -// CHECK-NEXT: Call to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionCall to 'dispatch_once' uses the local variable 'pred' for the predicate value. Using such transient memory for the predicate is potentially dangerous. Perhaps you intended to declare the variable as 'static'? -// CHECK-NEXT: categoryAPI Misuse (Apple) -// CHECK-NEXT: typeImproper use of 'dispatch_once' -// CHECK-NEXT: check_nameosx.API -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context8ded1f2025c1e4a4bcd5302dc97006d9 -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_dispatch_once_in_macro -// CHECK-NEXT: issue_hash_function_offset2 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line215 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line220 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line220 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line220 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'p' initialized to a null pointer value -// CHECK-NEXT: message -// CHECK-NEXT: 'p' initialized to a null pointer value -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line220 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line220 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line225 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'p' captured by block as a null pointer value -// CHECK-NEXT: message -// CHECK-NEXT: 'p' captured by block as a null pointer value -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line225 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'dispatch_sync' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'dispatch_sync' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line225 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling anonymous block -// CHECK-NEXT: message -// CHECK-NEXT: Calling anonymous block -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'dispatch_sync' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'dispatch_sync' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line221 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Assuming 'q' is non-null -// CHECK-NEXT: message -// CHECK-NEXT: Assuming 'q' is non-null -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line222 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Dereference of null pointer (loaded from variable 'p') -// CHECK-NEXT: message -// CHECK-NEXT: Dereference of null pointer (loaded from variable 'p') -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDereference of null pointer (loaded from variable 'p') -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDereference of null pointer -// CHECK-NEXT: check_namecore.NullDereference -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context5d3f4c433004c7a6d4a06aa30cc3ea85 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line223 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line230 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line230 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line231 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line231 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line231 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line231 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line231 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'p' initialized to a null pointer value -// CHECK-NEXT: message -// CHECK-NEXT: 'p' initialized to a null pointer value -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line231 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line231 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line234 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: 'p' captured by block as a null pointer value -// CHECK-NEXT: message -// CHECK-NEXT: 'p' captured by block as a null pointer value -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line234 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling '_dispatch_once' -// CHECK-NEXT: message -// CHECK-NEXT: Calling '_dispatch_once' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line50 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'test_inline_dispatch_once' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'test_inline_dispatch_once' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line50 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line50 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col2 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col2 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col33 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'dispatch_once' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'dispatch_once' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col33 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling anonymous block -// CHECK-NEXT: message -// CHECK-NEXT: Calling anonymous block -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth3 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'dispatch_once' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'dispatch_once' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line232 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col5 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth3 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Dereference of null pointer (loaded from variable 'p') -// CHECK-NEXT: message -// CHECK-NEXT: Dereference of null pointer (loaded from variable 'p') -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDereference of null pointer (loaded from variable 'p') -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDereference of null pointer -// CHECK-NEXT: check_namecore.NullDereference -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context265c4fd608dafee211bfa93d21c28866 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line233 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: path -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line239 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line239 -// CHECK-NEXT: col8 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line243 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling '_dispatch_once' -// CHECK-NEXT: message -// CHECK-NEXT: Calling '_dispatch_once' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line50 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'test_inline_dispatch_once_reachable' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'test_inline_dispatch_once_reachable' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line50 -// CHECK-NEXT: col1 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line50 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col2 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col2 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line58 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col33 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling 'dispatch_once' -// CHECK-NEXT: message -// CHECK-NEXT: Calling 'dispatch_once' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col33 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Calling anonymous block -// CHECK-NEXT: message -// CHECK-NEXT: Calling anonymous block -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: depth3 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Entered call from 'dispatch_once' -// CHECK-NEXT: message -// CHECK-NEXT: Entered call from 'dispatch_once' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col24 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line242 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line242 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line242 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line242 -// CHECK-NEXT: col7 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line242 -// CHECK-NEXT: col11 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth3 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Null pointer value stored to 'p' -// CHECK-NEXT: message -// CHECK-NEXT: Null pointer value stored to 'p' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col33 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth2 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returning to caller -// CHECK-NEXT: message -// CHECK-NEXT: Returning to caller -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col33 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth1 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returning from 'dispatch_once' -// CHECK-NEXT: message -// CHECK-NEXT: Returning from 'dispatch_once' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line59 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col2 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line63 -// CHECK-NEXT: col17 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line243 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Returning from '_dispatch_once' -// CHECK-NEXT: message -// CHECK-NEXT: Returning from '_dispatch_once' -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line241 -// CHECK-NEXT: col15 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindcontrol -// CHECK-NEXT: edges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: start -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col3 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: end -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: kindevent -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: ranges -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col4 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: depth0 -// CHECK-NEXT: extended_message -// CHECK-NEXT: Dereference of null pointer (loaded from variable 'p') -// CHECK-NEXT: message -// CHECK-NEXT: Dereference of null pointer (loaded from variable 'p') -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: descriptionDereference of null pointer (loaded from variable 'p') -// CHECK-NEXT: categoryLogic error -// CHECK-NEXT: typeDereference of null pointer -// CHECK-NEXT: check_namecore.NullDereference -// CHECK-NEXT: -// CHECK-NEXT: issue_hash_content_of_line_in_context1e83bd4361a2351df0b4e77eb3a9109b -// CHECK-NEXT: issue_context_kindfunction -// CHECK-NEXT: issue_contexttest_inline_dispatch_once_reachable -// CHECK-NEXT: issue_hash_function_offset7 -// CHECK-NEXT: location -// CHECK-NEXT: -// CHECK-NEXT: line245 -// CHECK-NEXT: col6 -// CHECK-NEXT: file0 -// CHECK-NEXT: -// CHECK-NEXT: -// CHECK-NEXT: -- 2.40.0