1// RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount,alpha.core -fblocks -analyzer-output=plist -analyzer-config path-diagnostics-alternate=false -o %t %s 2// RUN: FileCheck --input-file %t %s 3 4void test_null_init(void) { 5 int *p = 0; 6 *p = 0xDEADBEEF; 7} 8 9void test_null_assign(void) { 10 int *p; 11 p = 0; 12 *p = 0xDEADBEEF; 13} 14 15void test_null_assign_transitive(void) { 16 int *p; 17 p = 0; 18 int *q = p; 19 *q = 0xDEADBEEF; 20} 21 22void test_null_cond(int *p) { 23 if (!p) { 24 *p = 0xDEADBEEF; 25 } 26} 27 28void test_null_cond_transitive(int *q) { 29 if (!q) { 30 int *p = q; 31 *p = 0xDEADBEEF; 32 } 33} 34 35void test_null_field(void) { 36 struct s { int *p; } x; 37 x.p = 0; 38 *(x.p) = 0xDEADBEEF; 39} 40 41// <rdar://problem/8331641> leak reports should not show paths that end with exit() (but ones that don't end with exit()) 42void panic() __attribute__((noreturn)); 43enum { kCFNumberSInt8Type = 1, kCFNumberSInt16Type = 2, kCFNumberSInt32Type = 3, kCFNumberSInt64Type = 4, kCFNumberFloat32Type = 5, kCFNumberFloat64Type = 6, kCFNumberCharType = 7, kCFNumberShortType = 8, kCFNumberIntType = 9, kCFNumberLongType = 10, kCFNumberLongLongType = 11, kCFNumberFloatType = 12, kCFNumberDoubleType = 13, kCFNumberCFIndexType = 14, kCFNumberNSIntegerType = 15, kCFNumberCGFloatType = 16, kCFNumberMaxType = 16 }; 44typedef const struct __CFAllocator * CFAllocatorRef; 45extern const CFAllocatorRef kCFAllocatorDefault; 46typedef signed long CFIndex; 47typedef CFIndex CFNumberType; 48typedef const struct __CFNumber * CFNumberRef; 49 50extern CFNumberRef CFNumberCreate(CFAllocatorRef allocator, CFNumberType theType, const void *valuePtr); 51 52void rdar8331641(int x) { 53 signed z = 1; 54 CFNumberRef value = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &z); // expected-warning{{leak}} 55 if (x) 56 panic(); 57 (void) value; 58} 59 60// CHECK: <key>diagnostics</key> 61// CHECK-NEXT: <array> 62// CHECK-NEXT: <dict> 63// CHECK-NEXT: <key>path</key> 64// CHECK-NEXT: <array> 65// CHECK-NEXT: <dict> 66// CHECK-NEXT: <key>kind</key><string>event</string> 67// CHECK-NEXT: <key>location</key> 68// CHECK-NEXT: <dict> 69// CHECK-NEXT: <key>line</key><integer>5</integer> 70// CHECK-NEXT: <key>col</key><integer>3</integer> 71// CHECK-NEXT: <key>file</key><integer>0</integer> 72// CHECK-NEXT: </dict> 73// CHECK-NEXT: <key>ranges</key> 74// CHECK-NEXT: <array> 75// CHECK-NEXT: <array> 76// CHECK-NEXT: <dict> 77// CHECK-NEXT: <key>line</key><integer>5</integer> 78// CHECK-NEXT: <key>col</key><integer>3</integer> 79// CHECK-NEXT: <key>file</key><integer>0</integer> 80// CHECK-NEXT: </dict> 81// CHECK-NEXT: <dict> 82// CHECK-NEXT: <key>line</key><integer>5</integer> 83// CHECK-NEXT: <key>col</key><integer>8</integer> 84// CHECK-NEXT: <key>file</key><integer>0</integer> 85// CHECK-NEXT: </dict> 86// CHECK-NEXT: </array> 87// CHECK-NEXT: </array> 88// CHECK-NEXT: <key>depth</key><integer>0</integer> 89// CHECK-NEXT: <key>extended_message</key> 90// CHECK-NEXT: <string>'p' initialized to a null pointer value</string> 91// CHECK-NEXT: <key>message</key> 92// CHECK-NEXT: <string>'p' initialized to a null pointer value</string> 93// CHECK-NEXT: </dict> 94// CHECK-NEXT: <dict> 95// CHECK-NEXT: <key>kind</key><string>control</string> 96// CHECK-NEXT: <key>edges</key> 97// CHECK-NEXT: <array> 98// CHECK-NEXT: <dict> 99// CHECK-NEXT: <key>start</key> 100// CHECK-NEXT: <array> 101// CHECK-NEXT: <dict> 102// CHECK-NEXT: <key>line</key><integer>5</integer> 103// CHECK-NEXT: <key>col</key><integer>3</integer> 104// CHECK-NEXT: <key>file</key><integer>0</integer> 105// CHECK-NEXT: </dict> 106// CHECK-NEXT: <dict> 107// CHECK-NEXT: <key>line</key><integer>5</integer> 108// CHECK-NEXT: <key>col</key><integer>5</integer> 109// CHECK-NEXT: <key>file</key><integer>0</integer> 110// CHECK-NEXT: </dict> 111// CHECK-NEXT: </array> 112// CHECK-NEXT: <key>end</key> 113// CHECK-NEXT: <array> 114// CHECK-NEXT: <dict> 115// CHECK-NEXT: <key>line</key><integer>6</integer> 116// CHECK-NEXT: <key>col</key><integer>6</integer> 117// CHECK-NEXT: <key>file</key><integer>0</integer> 118// CHECK-NEXT: </dict> 119// CHECK-NEXT: <dict> 120// CHECK-NEXT: <key>line</key><integer>6</integer> 121// CHECK-NEXT: <key>col</key><integer>6</integer> 122// CHECK-NEXT: <key>file</key><integer>0</integer> 123// CHECK-NEXT: </dict> 124// CHECK-NEXT: </array> 125// CHECK-NEXT: </dict> 126// CHECK-NEXT: </array> 127// CHECK-NEXT: </dict> 128// CHECK-NEXT: <dict> 129// CHECK-NEXT: <key>kind</key><string>event</string> 130// CHECK-NEXT: <key>location</key> 131// CHECK-NEXT: <dict> 132// CHECK-NEXT: <key>line</key><integer>6</integer> 133// CHECK-NEXT: <key>col</key><integer>6</integer> 134// CHECK-NEXT: <key>file</key><integer>0</integer> 135// CHECK-NEXT: </dict> 136// CHECK-NEXT: <key>ranges</key> 137// CHECK-NEXT: <array> 138// CHECK-NEXT: <array> 139// CHECK-NEXT: <dict> 140// CHECK-NEXT: <key>line</key><integer>6</integer> 141// CHECK-NEXT: <key>col</key><integer>4</integer> 142// CHECK-NEXT: <key>file</key><integer>0</integer> 143// CHECK-NEXT: </dict> 144// CHECK-NEXT: <dict> 145// CHECK-NEXT: <key>line</key><integer>6</integer> 146// CHECK-NEXT: <key>col</key><integer>4</integer> 147// CHECK-NEXT: <key>file</key><integer>0</integer> 148// CHECK-NEXT: </dict> 149// CHECK-NEXT: </array> 150// CHECK-NEXT: </array> 151// CHECK-NEXT: <key>depth</key><integer>0</integer> 152// CHECK-NEXT: <key>extended_message</key> 153// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 154// CHECK-NEXT: <key>message</key> 155// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 156// CHECK-NEXT: </dict> 157// CHECK-NEXT: </array> 158// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'p')</string> 159// CHECK-NEXT: <key>category</key><string>Logic error</string> 160// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string> 161// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 162// CHECK-NEXT: <key>issue_context</key><string>test_null_init</string> 163// CHECK-NEXT: <key>issue_hash</key><string>2</string> 164// CHECK-NEXT: <key>location</key> 165// CHECK-NEXT: <dict> 166// CHECK-NEXT: <key>line</key><integer>6</integer> 167// CHECK-NEXT: <key>col</key><integer>6</integer> 168// CHECK-NEXT: <key>file</key><integer>0</integer> 169// CHECK-NEXT: </dict> 170// CHECK-NEXT: </dict> 171// CHECK-NEXT: <dict> 172// CHECK-NEXT: <key>path</key> 173// CHECK-NEXT: <array> 174// CHECK-NEXT: <dict> 175// CHECK-NEXT: <key>kind</key><string>control</string> 176// CHECK-NEXT: <key>edges</key> 177// CHECK-NEXT: <array> 178// CHECK-NEXT: <dict> 179// CHECK-NEXT: <key>start</key> 180// CHECK-NEXT: <array> 181// CHECK-NEXT: <dict> 182// CHECK-NEXT: <key>line</key><integer>10</integer> 183// CHECK-NEXT: <key>col</key><integer>3</integer> 184// CHECK-NEXT: <key>file</key><integer>0</integer> 185// CHECK-NEXT: </dict> 186// CHECK-NEXT: <dict> 187// CHECK-NEXT: <key>line</key><integer>10</integer> 188// CHECK-NEXT: <key>col</key><integer>5</integer> 189// CHECK-NEXT: <key>file</key><integer>0</integer> 190// CHECK-NEXT: </dict> 191// CHECK-NEXT: </array> 192// CHECK-NEXT: <key>end</key> 193// CHECK-NEXT: <array> 194// CHECK-NEXT: <dict> 195// CHECK-NEXT: <key>line</key><integer>11</integer> 196// CHECK-NEXT: <key>col</key><integer>3</integer> 197// CHECK-NEXT: <key>file</key><integer>0</integer> 198// CHECK-NEXT: </dict> 199// CHECK-NEXT: <dict> 200// CHECK-NEXT: <key>line</key><integer>11</integer> 201// CHECK-NEXT: <key>col</key><integer>3</integer> 202// CHECK-NEXT: <key>file</key><integer>0</integer> 203// CHECK-NEXT: </dict> 204// CHECK-NEXT: </array> 205// CHECK-NEXT: </dict> 206// CHECK-NEXT: </array> 207// CHECK-NEXT: </dict> 208// CHECK-NEXT: <dict> 209// CHECK-NEXT: <key>kind</key><string>event</string> 210// CHECK-NEXT: <key>location</key> 211// CHECK-NEXT: <dict> 212// CHECK-NEXT: <key>line</key><integer>11</integer> 213// CHECK-NEXT: <key>col</key><integer>3</integer> 214// CHECK-NEXT: <key>file</key><integer>0</integer> 215// CHECK-NEXT: </dict> 216// CHECK-NEXT: <key>ranges</key> 217// CHECK-NEXT: <array> 218// CHECK-NEXT: <array> 219// CHECK-NEXT: <dict> 220// CHECK-NEXT: <key>line</key><integer>11</integer> 221// CHECK-NEXT: <key>col</key><integer>3</integer> 222// CHECK-NEXT: <key>file</key><integer>0</integer> 223// CHECK-NEXT: </dict> 224// CHECK-NEXT: <dict> 225// CHECK-NEXT: <key>line</key><integer>11</integer> 226// CHECK-NEXT: <key>col</key><integer>7</integer> 227// CHECK-NEXT: <key>file</key><integer>0</integer> 228// CHECK-NEXT: </dict> 229// CHECK-NEXT: </array> 230// CHECK-NEXT: </array> 231// CHECK-NEXT: <key>depth</key><integer>0</integer> 232// CHECK-NEXT: <key>extended_message</key> 233// CHECK-NEXT: <string>Null pointer value stored to 'p'</string> 234// CHECK-NEXT: <key>message</key> 235// CHECK-NEXT: <string>Null pointer value stored to 'p'</string> 236// CHECK-NEXT: </dict> 237// CHECK-NEXT: <dict> 238// CHECK-NEXT: <key>kind</key><string>control</string> 239// CHECK-NEXT: <key>edges</key> 240// CHECK-NEXT: <array> 241// CHECK-NEXT: <dict> 242// CHECK-NEXT: <key>start</key> 243// CHECK-NEXT: <array> 244// CHECK-NEXT: <dict> 245// CHECK-NEXT: <key>line</key><integer>11</integer> 246// CHECK-NEXT: <key>col</key><integer>3</integer> 247// CHECK-NEXT: <key>file</key><integer>0</integer> 248// CHECK-NEXT: </dict> 249// CHECK-NEXT: <dict> 250// CHECK-NEXT: <key>line</key><integer>11</integer> 251// CHECK-NEXT: <key>col</key><integer>3</integer> 252// CHECK-NEXT: <key>file</key><integer>0</integer> 253// CHECK-NEXT: </dict> 254// CHECK-NEXT: </array> 255// CHECK-NEXT: <key>end</key> 256// CHECK-NEXT: <array> 257// CHECK-NEXT: <dict> 258// CHECK-NEXT: <key>line</key><integer>12</integer> 259// CHECK-NEXT: <key>col</key><integer>6</integer> 260// CHECK-NEXT: <key>file</key><integer>0</integer> 261// CHECK-NEXT: </dict> 262// CHECK-NEXT: <dict> 263// CHECK-NEXT: <key>line</key><integer>12</integer> 264// CHECK-NEXT: <key>col</key><integer>6</integer> 265// CHECK-NEXT: <key>file</key><integer>0</integer> 266// CHECK-NEXT: </dict> 267// CHECK-NEXT: </array> 268// CHECK-NEXT: </dict> 269// CHECK-NEXT: </array> 270// CHECK-NEXT: </dict> 271// CHECK-NEXT: <dict> 272// CHECK-NEXT: <key>kind</key><string>event</string> 273// CHECK-NEXT: <key>location</key> 274// CHECK-NEXT: <dict> 275// CHECK-NEXT: <key>line</key><integer>12</integer> 276// CHECK-NEXT: <key>col</key><integer>6</integer> 277// CHECK-NEXT: <key>file</key><integer>0</integer> 278// CHECK-NEXT: </dict> 279// CHECK-NEXT: <key>ranges</key> 280// CHECK-NEXT: <array> 281// CHECK-NEXT: <array> 282// CHECK-NEXT: <dict> 283// CHECK-NEXT: <key>line</key><integer>12</integer> 284// CHECK-NEXT: <key>col</key><integer>4</integer> 285// CHECK-NEXT: <key>file</key><integer>0</integer> 286// CHECK-NEXT: </dict> 287// CHECK-NEXT: <dict> 288// CHECK-NEXT: <key>line</key><integer>12</integer> 289// CHECK-NEXT: <key>col</key><integer>4</integer> 290// CHECK-NEXT: <key>file</key><integer>0</integer> 291// CHECK-NEXT: </dict> 292// CHECK-NEXT: </array> 293// CHECK-NEXT: </array> 294// CHECK-NEXT: <key>depth</key><integer>0</integer> 295// CHECK-NEXT: <key>extended_message</key> 296// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 297// CHECK-NEXT: <key>message</key> 298// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 299// CHECK-NEXT: </dict> 300// CHECK-NEXT: </array> 301// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'p')</string> 302// CHECK-NEXT: <key>category</key><string>Logic error</string> 303// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string> 304// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 305// CHECK-NEXT: <key>issue_context</key><string>test_null_assign</string> 306// CHECK-NEXT: <key>issue_hash</key><string>3</string> 307// CHECK-NEXT: <key>location</key> 308// CHECK-NEXT: <dict> 309// CHECK-NEXT: <key>line</key><integer>12</integer> 310// CHECK-NEXT: <key>col</key><integer>6</integer> 311// CHECK-NEXT: <key>file</key><integer>0</integer> 312// CHECK-NEXT: </dict> 313// CHECK-NEXT: </dict> 314// CHECK-NEXT: <dict> 315// CHECK-NEXT: <key>path</key> 316// CHECK-NEXT: <array> 317// CHECK-NEXT: <dict> 318// CHECK-NEXT: <key>kind</key><string>control</string> 319// CHECK-NEXT: <key>edges</key> 320// CHECK-NEXT: <array> 321// CHECK-NEXT: <dict> 322// CHECK-NEXT: <key>start</key> 323// CHECK-NEXT: <array> 324// CHECK-NEXT: <dict> 325// CHECK-NEXT: <key>line</key><integer>16</integer> 326// CHECK-NEXT: <key>col</key><integer>3</integer> 327// CHECK-NEXT: <key>file</key><integer>0</integer> 328// CHECK-NEXT: </dict> 329// CHECK-NEXT: <dict> 330// CHECK-NEXT: <key>line</key><integer>16</integer> 331// CHECK-NEXT: <key>col</key><integer>5</integer> 332// CHECK-NEXT: <key>file</key><integer>0</integer> 333// CHECK-NEXT: </dict> 334// CHECK-NEXT: </array> 335// CHECK-NEXT: <key>end</key> 336// CHECK-NEXT: <array> 337// CHECK-NEXT: <dict> 338// CHECK-NEXT: <key>line</key><integer>17</integer> 339// CHECK-NEXT: <key>col</key><integer>3</integer> 340// CHECK-NEXT: <key>file</key><integer>0</integer> 341// CHECK-NEXT: </dict> 342// CHECK-NEXT: <dict> 343// CHECK-NEXT: <key>line</key><integer>17</integer> 344// CHECK-NEXT: <key>col</key><integer>3</integer> 345// CHECK-NEXT: <key>file</key><integer>0</integer> 346// CHECK-NEXT: </dict> 347// CHECK-NEXT: </array> 348// CHECK-NEXT: </dict> 349// CHECK-NEXT: </array> 350// CHECK-NEXT: </dict> 351// CHECK-NEXT: <dict> 352// CHECK-NEXT: <key>kind</key><string>event</string> 353// CHECK-NEXT: <key>location</key> 354// CHECK-NEXT: <dict> 355// CHECK-NEXT: <key>line</key><integer>17</integer> 356// CHECK-NEXT: <key>col</key><integer>3</integer> 357// CHECK-NEXT: <key>file</key><integer>0</integer> 358// CHECK-NEXT: </dict> 359// CHECK-NEXT: <key>ranges</key> 360// CHECK-NEXT: <array> 361// CHECK-NEXT: <array> 362// CHECK-NEXT: <dict> 363// CHECK-NEXT: <key>line</key><integer>17</integer> 364// CHECK-NEXT: <key>col</key><integer>3</integer> 365// CHECK-NEXT: <key>file</key><integer>0</integer> 366// CHECK-NEXT: </dict> 367// CHECK-NEXT: <dict> 368// CHECK-NEXT: <key>line</key><integer>17</integer> 369// CHECK-NEXT: <key>col</key><integer>7</integer> 370// CHECK-NEXT: <key>file</key><integer>0</integer> 371// CHECK-NEXT: </dict> 372// CHECK-NEXT: </array> 373// CHECK-NEXT: </array> 374// CHECK-NEXT: <key>depth</key><integer>0</integer> 375// CHECK-NEXT: <key>extended_message</key> 376// CHECK-NEXT: <string>Null pointer value stored to 'p'</string> 377// CHECK-NEXT: <key>message</key> 378// CHECK-NEXT: <string>Null pointer value stored to 'p'</string> 379// CHECK-NEXT: </dict> 380// CHECK-NEXT: <dict> 381// CHECK-NEXT: <key>kind</key><string>control</string> 382// CHECK-NEXT: <key>edges</key> 383// CHECK-NEXT: <array> 384// CHECK-NEXT: <dict> 385// CHECK-NEXT: <key>start</key> 386// CHECK-NEXT: <array> 387// CHECK-NEXT: <dict> 388// CHECK-NEXT: <key>line</key><integer>17</integer> 389// CHECK-NEXT: <key>col</key><integer>3</integer> 390// CHECK-NEXT: <key>file</key><integer>0</integer> 391// CHECK-NEXT: </dict> 392// CHECK-NEXT: <dict> 393// CHECK-NEXT: <key>line</key><integer>17</integer> 394// CHECK-NEXT: <key>col</key><integer>3</integer> 395// CHECK-NEXT: <key>file</key><integer>0</integer> 396// CHECK-NEXT: </dict> 397// CHECK-NEXT: </array> 398// CHECK-NEXT: <key>end</key> 399// CHECK-NEXT: <array> 400// CHECK-NEXT: <dict> 401// CHECK-NEXT: <key>line</key><integer>18</integer> 402// CHECK-NEXT: <key>col</key><integer>3</integer> 403// CHECK-NEXT: <key>file</key><integer>0</integer> 404// CHECK-NEXT: </dict> 405// CHECK-NEXT: <dict> 406// CHECK-NEXT: <key>line</key><integer>18</integer> 407// CHECK-NEXT: <key>col</key><integer>5</integer> 408// CHECK-NEXT: <key>file</key><integer>0</integer> 409// CHECK-NEXT: </dict> 410// CHECK-NEXT: </array> 411// CHECK-NEXT: </dict> 412// CHECK-NEXT: </array> 413// CHECK-NEXT: </dict> 414// CHECK-NEXT: <dict> 415// CHECK-NEXT: <key>kind</key><string>event</string> 416// CHECK-NEXT: <key>location</key> 417// CHECK-NEXT: <dict> 418// CHECK-NEXT: <key>line</key><integer>18</integer> 419// CHECK-NEXT: <key>col</key><integer>3</integer> 420// CHECK-NEXT: <key>file</key><integer>0</integer> 421// CHECK-NEXT: </dict> 422// CHECK-NEXT: <key>ranges</key> 423// CHECK-NEXT: <array> 424// CHECK-NEXT: <array> 425// CHECK-NEXT: <dict> 426// CHECK-NEXT: <key>line</key><integer>18</integer> 427// CHECK-NEXT: <key>col</key><integer>3</integer> 428// CHECK-NEXT: <key>file</key><integer>0</integer> 429// CHECK-NEXT: </dict> 430// CHECK-NEXT: <dict> 431// CHECK-NEXT: <key>line</key><integer>18</integer> 432// CHECK-NEXT: <key>col</key><integer>8</integer> 433// CHECK-NEXT: <key>file</key><integer>0</integer> 434// CHECK-NEXT: </dict> 435// CHECK-NEXT: </array> 436// CHECK-NEXT: </array> 437// CHECK-NEXT: <key>depth</key><integer>0</integer> 438// CHECK-NEXT: <key>extended_message</key> 439// CHECK-NEXT: <string>'q' initialized to a null pointer value</string> 440// CHECK-NEXT: <key>message</key> 441// CHECK-NEXT: <string>'q' initialized to a null pointer value</string> 442// CHECK-NEXT: </dict> 443// CHECK-NEXT: <dict> 444// CHECK-NEXT: <key>kind</key><string>control</string> 445// CHECK-NEXT: <key>edges</key> 446// CHECK-NEXT: <array> 447// CHECK-NEXT: <dict> 448// CHECK-NEXT: <key>start</key> 449// CHECK-NEXT: <array> 450// CHECK-NEXT: <dict> 451// CHECK-NEXT: <key>line</key><integer>18</integer> 452// CHECK-NEXT: <key>col</key><integer>3</integer> 453// CHECK-NEXT: <key>file</key><integer>0</integer> 454// CHECK-NEXT: </dict> 455// CHECK-NEXT: <dict> 456// CHECK-NEXT: <key>line</key><integer>18</integer> 457// CHECK-NEXT: <key>col</key><integer>5</integer> 458// CHECK-NEXT: <key>file</key><integer>0</integer> 459// CHECK-NEXT: </dict> 460// CHECK-NEXT: </array> 461// CHECK-NEXT: <key>end</key> 462// CHECK-NEXT: <array> 463// CHECK-NEXT: <dict> 464// CHECK-NEXT: <key>line</key><integer>19</integer> 465// CHECK-NEXT: <key>col</key><integer>6</integer> 466// CHECK-NEXT: <key>file</key><integer>0</integer> 467// CHECK-NEXT: </dict> 468// CHECK-NEXT: <dict> 469// CHECK-NEXT: <key>line</key><integer>19</integer> 470// CHECK-NEXT: <key>col</key><integer>6</integer> 471// CHECK-NEXT: <key>file</key><integer>0</integer> 472// CHECK-NEXT: </dict> 473// CHECK-NEXT: </array> 474// CHECK-NEXT: </dict> 475// CHECK-NEXT: </array> 476// CHECK-NEXT: </dict> 477// CHECK-NEXT: <dict> 478// CHECK-NEXT: <key>kind</key><string>event</string> 479// CHECK-NEXT: <key>location</key> 480// CHECK-NEXT: <dict> 481// CHECK-NEXT: <key>line</key><integer>19</integer> 482// CHECK-NEXT: <key>col</key><integer>6</integer> 483// CHECK-NEXT: <key>file</key><integer>0</integer> 484// CHECK-NEXT: </dict> 485// CHECK-NEXT: <key>ranges</key> 486// CHECK-NEXT: <array> 487// CHECK-NEXT: <array> 488// CHECK-NEXT: <dict> 489// CHECK-NEXT: <key>line</key><integer>19</integer> 490// CHECK-NEXT: <key>col</key><integer>4</integer> 491// CHECK-NEXT: <key>file</key><integer>0</integer> 492// CHECK-NEXT: </dict> 493// CHECK-NEXT: <dict> 494// CHECK-NEXT: <key>line</key><integer>19</integer> 495// CHECK-NEXT: <key>col</key><integer>4</integer> 496// CHECK-NEXT: <key>file</key><integer>0</integer> 497// CHECK-NEXT: </dict> 498// CHECK-NEXT: </array> 499// CHECK-NEXT: </array> 500// CHECK-NEXT: <key>depth</key><integer>0</integer> 501// CHECK-NEXT: <key>extended_message</key> 502// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'q')</string> 503// CHECK-NEXT: <key>message</key> 504// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'q')</string> 505// CHECK-NEXT: </dict> 506// CHECK-NEXT: </array> 507// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'q')</string> 508// CHECK-NEXT: <key>category</key><string>Logic error</string> 509// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string> 510// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 511// CHECK-NEXT: <key>issue_context</key><string>test_null_assign_transitive</string> 512// CHECK-NEXT: <key>issue_hash</key><string>4</string> 513// CHECK-NEXT: <key>location</key> 514// CHECK-NEXT: <dict> 515// CHECK-NEXT: <key>line</key><integer>19</integer> 516// CHECK-NEXT: <key>col</key><integer>6</integer> 517// CHECK-NEXT: <key>file</key><integer>0</integer> 518// CHECK-NEXT: </dict> 519// CHECK-NEXT: </dict> 520// CHECK-NEXT: <dict> 521// CHECK-NEXT: <key>path</key> 522// CHECK-NEXT: <array> 523// CHECK-NEXT: <dict> 524// CHECK-NEXT: <key>kind</key><string>control</string> 525// CHECK-NEXT: <key>edges</key> 526// CHECK-NEXT: <array> 527// CHECK-NEXT: <dict> 528// CHECK-NEXT: <key>start</key> 529// CHECK-NEXT: <array> 530// CHECK-NEXT: <dict> 531// CHECK-NEXT: <key>line</key><integer>23</integer> 532// CHECK-NEXT: <key>col</key><integer>3</integer> 533// CHECK-NEXT: <key>file</key><integer>0</integer> 534// CHECK-NEXT: </dict> 535// CHECK-NEXT: <dict> 536// CHECK-NEXT: <key>line</key><integer>23</integer> 537// CHECK-NEXT: <key>col</key><integer>4</integer> 538// CHECK-NEXT: <key>file</key><integer>0</integer> 539// CHECK-NEXT: </dict> 540// CHECK-NEXT: </array> 541// CHECK-NEXT: <key>end</key> 542// CHECK-NEXT: <array> 543// CHECK-NEXT: <dict> 544// CHECK-NEXT: <key>line</key><integer>23</integer> 545// CHECK-NEXT: <key>col</key><integer>7</integer> 546// CHECK-NEXT: <key>file</key><integer>0</integer> 547// CHECK-NEXT: </dict> 548// CHECK-NEXT: <dict> 549// CHECK-NEXT: <key>line</key><integer>23</integer> 550// CHECK-NEXT: <key>col</key><integer>7</integer> 551// CHECK-NEXT: <key>file</key><integer>0</integer> 552// CHECK-NEXT: </dict> 553// CHECK-NEXT: </array> 554// CHECK-NEXT: </dict> 555// CHECK-NEXT: </array> 556// CHECK-NEXT: </dict> 557// CHECK-NEXT: <dict> 558// CHECK-NEXT: <key>kind</key><string>event</string> 559// CHECK-NEXT: <key>location</key> 560// CHECK-NEXT: <dict> 561// CHECK-NEXT: <key>line</key><integer>23</integer> 562// CHECK-NEXT: <key>col</key><integer>7</integer> 563// CHECK-NEXT: <key>file</key><integer>0</integer> 564// CHECK-NEXT: </dict> 565// CHECK-NEXT: <key>ranges</key> 566// CHECK-NEXT: <array> 567// CHECK-NEXT: <array> 568// CHECK-NEXT: <dict> 569// CHECK-NEXT: <key>line</key><integer>23</integer> 570// CHECK-NEXT: <key>col</key><integer>7</integer> 571// CHECK-NEXT: <key>file</key><integer>0</integer> 572// CHECK-NEXT: </dict> 573// CHECK-NEXT: <dict> 574// CHECK-NEXT: <key>line</key><integer>23</integer> 575// CHECK-NEXT: <key>col</key><integer>8</integer> 576// CHECK-NEXT: <key>file</key><integer>0</integer> 577// CHECK-NEXT: </dict> 578// CHECK-NEXT: </array> 579// CHECK-NEXT: </array> 580// CHECK-NEXT: <key>depth</key><integer>0</integer> 581// CHECK-NEXT: <key>extended_message</key> 582// CHECK-NEXT: <string>Assuming 'p' is null</string> 583// CHECK-NEXT: <key>message</key> 584// CHECK-NEXT: <string>Assuming 'p' is null</string> 585// CHECK-NEXT: </dict> 586// CHECK-NEXT: <dict> 587// CHECK-NEXT: <key>kind</key><string>control</string> 588// CHECK-NEXT: <key>edges</key> 589// CHECK-NEXT: <array> 590// CHECK-NEXT: <dict> 591// CHECK-NEXT: <key>start</key> 592// CHECK-NEXT: <array> 593// CHECK-NEXT: <dict> 594// CHECK-NEXT: <key>line</key><integer>23</integer> 595// CHECK-NEXT: <key>col</key><integer>7</integer> 596// CHECK-NEXT: <key>file</key><integer>0</integer> 597// CHECK-NEXT: </dict> 598// CHECK-NEXT: <dict> 599// CHECK-NEXT: <key>line</key><integer>23</integer> 600// CHECK-NEXT: <key>col</key><integer>7</integer> 601// CHECK-NEXT: <key>file</key><integer>0</integer> 602// CHECK-NEXT: </dict> 603// CHECK-NEXT: </array> 604// CHECK-NEXT: <key>end</key> 605// CHECK-NEXT: <array> 606// CHECK-NEXT: <dict> 607// CHECK-NEXT: <key>line</key><integer>24</integer> 608// CHECK-NEXT: <key>col</key><integer>5</integer> 609// CHECK-NEXT: <key>file</key><integer>0</integer> 610// CHECK-NEXT: </dict> 611// CHECK-NEXT: <dict> 612// CHECK-NEXT: <key>line</key><integer>24</integer> 613// CHECK-NEXT: <key>col</key><integer>5</integer> 614// CHECK-NEXT: <key>file</key><integer>0</integer> 615// CHECK-NEXT: </dict> 616// CHECK-NEXT: </array> 617// CHECK-NEXT: </dict> 618// CHECK-NEXT: </array> 619// CHECK-NEXT: </dict> 620// CHECK-NEXT: <dict> 621// CHECK-NEXT: <key>kind</key><string>control</string> 622// CHECK-NEXT: <key>edges</key> 623// CHECK-NEXT: <array> 624// CHECK-NEXT: <dict> 625// CHECK-NEXT: <key>start</key> 626// CHECK-NEXT: <array> 627// CHECK-NEXT: <dict> 628// CHECK-NEXT: <key>line</key><integer>24</integer> 629// CHECK-NEXT: <key>col</key><integer>5</integer> 630// CHECK-NEXT: <key>file</key><integer>0</integer> 631// CHECK-NEXT: </dict> 632// CHECK-NEXT: <dict> 633// CHECK-NEXT: <key>line</key><integer>24</integer> 634// CHECK-NEXT: <key>col</key><integer>5</integer> 635// CHECK-NEXT: <key>file</key><integer>0</integer> 636// CHECK-NEXT: </dict> 637// CHECK-NEXT: </array> 638// CHECK-NEXT: <key>end</key> 639// CHECK-NEXT: <array> 640// CHECK-NEXT: <dict> 641// CHECK-NEXT: <key>line</key><integer>24</integer> 642// CHECK-NEXT: <key>col</key><integer>8</integer> 643// CHECK-NEXT: <key>file</key><integer>0</integer> 644// CHECK-NEXT: </dict> 645// CHECK-NEXT: <dict> 646// CHECK-NEXT: <key>line</key><integer>24</integer> 647// CHECK-NEXT: <key>col</key><integer>8</integer> 648// CHECK-NEXT: <key>file</key><integer>0</integer> 649// CHECK-NEXT: </dict> 650// CHECK-NEXT: </array> 651// CHECK-NEXT: </dict> 652// CHECK-NEXT: </array> 653// CHECK-NEXT: </dict> 654// CHECK-NEXT: <dict> 655// CHECK-NEXT: <key>kind</key><string>event</string> 656// CHECK-NEXT: <key>location</key> 657// CHECK-NEXT: <dict> 658// CHECK-NEXT: <key>line</key><integer>24</integer> 659// CHECK-NEXT: <key>col</key><integer>8</integer> 660// CHECK-NEXT: <key>file</key><integer>0</integer> 661// CHECK-NEXT: </dict> 662// CHECK-NEXT: <key>ranges</key> 663// CHECK-NEXT: <array> 664// CHECK-NEXT: <array> 665// CHECK-NEXT: <dict> 666// CHECK-NEXT: <key>line</key><integer>24</integer> 667// CHECK-NEXT: <key>col</key><integer>6</integer> 668// CHECK-NEXT: <key>file</key><integer>0</integer> 669// CHECK-NEXT: </dict> 670// CHECK-NEXT: <dict> 671// CHECK-NEXT: <key>line</key><integer>24</integer> 672// CHECK-NEXT: <key>col</key><integer>6</integer> 673// CHECK-NEXT: <key>file</key><integer>0</integer> 674// CHECK-NEXT: </dict> 675// CHECK-NEXT: </array> 676// CHECK-NEXT: </array> 677// CHECK-NEXT: <key>depth</key><integer>0</integer> 678// CHECK-NEXT: <key>extended_message</key> 679// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 680// CHECK-NEXT: <key>message</key> 681// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 682// CHECK-NEXT: </dict> 683// CHECK-NEXT: </array> 684// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'p')</string> 685// CHECK-NEXT: <key>category</key><string>Logic error</string> 686// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string> 687// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 688// CHECK-NEXT: <key>issue_context</key><string>test_null_cond</string> 689// CHECK-NEXT: <key>issue_hash</key><string>2</string> 690// CHECK-NEXT: <key>location</key> 691// CHECK-NEXT: <dict> 692// CHECK-NEXT: <key>line</key><integer>24</integer> 693// CHECK-NEXT: <key>col</key><integer>8</integer> 694// CHECK-NEXT: <key>file</key><integer>0</integer> 695// CHECK-NEXT: </dict> 696// CHECK-NEXT: </dict> 697// CHECK-NEXT: <dict> 698// CHECK-NEXT: <key>path</key> 699// CHECK-NEXT: <array> 700// CHECK-NEXT: <dict> 701// CHECK-NEXT: <key>kind</key><string>control</string> 702// CHECK-NEXT: <key>edges</key> 703// CHECK-NEXT: <array> 704// CHECK-NEXT: <dict> 705// CHECK-NEXT: <key>start</key> 706// CHECK-NEXT: <array> 707// CHECK-NEXT: <dict> 708// CHECK-NEXT: <key>line</key><integer>29</integer> 709// CHECK-NEXT: <key>col</key><integer>3</integer> 710// CHECK-NEXT: <key>file</key><integer>0</integer> 711// CHECK-NEXT: </dict> 712// CHECK-NEXT: <dict> 713// CHECK-NEXT: <key>line</key><integer>29</integer> 714// CHECK-NEXT: <key>col</key><integer>4</integer> 715// CHECK-NEXT: <key>file</key><integer>0</integer> 716// CHECK-NEXT: </dict> 717// CHECK-NEXT: </array> 718// CHECK-NEXT: <key>end</key> 719// CHECK-NEXT: <array> 720// CHECK-NEXT: <dict> 721// CHECK-NEXT: <key>line</key><integer>29</integer> 722// CHECK-NEXT: <key>col</key><integer>7</integer> 723// CHECK-NEXT: <key>file</key><integer>0</integer> 724// CHECK-NEXT: </dict> 725// CHECK-NEXT: <dict> 726// CHECK-NEXT: <key>line</key><integer>29</integer> 727// CHECK-NEXT: <key>col</key><integer>7</integer> 728// CHECK-NEXT: <key>file</key><integer>0</integer> 729// CHECK-NEXT: </dict> 730// CHECK-NEXT: </array> 731// CHECK-NEXT: </dict> 732// CHECK-NEXT: </array> 733// CHECK-NEXT: </dict> 734// CHECK-NEXT: <dict> 735// CHECK-NEXT: <key>kind</key><string>event</string> 736// CHECK-NEXT: <key>location</key> 737// CHECK-NEXT: <dict> 738// CHECK-NEXT: <key>line</key><integer>29</integer> 739// CHECK-NEXT: <key>col</key><integer>7</integer> 740// CHECK-NEXT: <key>file</key><integer>0</integer> 741// CHECK-NEXT: </dict> 742// CHECK-NEXT: <key>ranges</key> 743// CHECK-NEXT: <array> 744// CHECK-NEXT: <array> 745// CHECK-NEXT: <dict> 746// CHECK-NEXT: <key>line</key><integer>29</integer> 747// CHECK-NEXT: <key>col</key><integer>7</integer> 748// CHECK-NEXT: <key>file</key><integer>0</integer> 749// CHECK-NEXT: </dict> 750// CHECK-NEXT: <dict> 751// CHECK-NEXT: <key>line</key><integer>29</integer> 752// CHECK-NEXT: <key>col</key><integer>8</integer> 753// CHECK-NEXT: <key>file</key><integer>0</integer> 754// CHECK-NEXT: </dict> 755// CHECK-NEXT: </array> 756// CHECK-NEXT: </array> 757// CHECK-NEXT: <key>depth</key><integer>0</integer> 758// CHECK-NEXT: <key>extended_message</key> 759// CHECK-NEXT: <string>Assuming 'q' is null</string> 760// CHECK-NEXT: <key>message</key> 761// CHECK-NEXT: <string>Assuming 'q' is null</string> 762// CHECK-NEXT: </dict> 763// CHECK-NEXT: <dict> 764// CHECK-NEXT: <key>kind</key><string>control</string> 765// CHECK-NEXT: <key>edges</key> 766// CHECK-NEXT: <array> 767// CHECK-NEXT: <dict> 768// CHECK-NEXT: <key>start</key> 769// CHECK-NEXT: <array> 770// CHECK-NEXT: <dict> 771// CHECK-NEXT: <key>line</key><integer>29</integer> 772// CHECK-NEXT: <key>col</key><integer>7</integer> 773// CHECK-NEXT: <key>file</key><integer>0</integer> 774// CHECK-NEXT: </dict> 775// CHECK-NEXT: <dict> 776// CHECK-NEXT: <key>line</key><integer>29</integer> 777// CHECK-NEXT: <key>col</key><integer>7</integer> 778// CHECK-NEXT: <key>file</key><integer>0</integer> 779// CHECK-NEXT: </dict> 780// CHECK-NEXT: </array> 781// CHECK-NEXT: <key>end</key> 782// CHECK-NEXT: <array> 783// CHECK-NEXT: <dict> 784// CHECK-NEXT: <key>line</key><integer>30</integer> 785// CHECK-NEXT: <key>col</key><integer>5</integer> 786// CHECK-NEXT: <key>file</key><integer>0</integer> 787// CHECK-NEXT: </dict> 788// CHECK-NEXT: <dict> 789// CHECK-NEXT: <key>line</key><integer>30</integer> 790// CHECK-NEXT: <key>col</key><integer>7</integer> 791// CHECK-NEXT: <key>file</key><integer>0</integer> 792// CHECK-NEXT: </dict> 793// CHECK-NEXT: </array> 794// CHECK-NEXT: </dict> 795// CHECK-NEXT: </array> 796// CHECK-NEXT: </dict> 797// CHECK-NEXT: <dict> 798// CHECK-NEXT: <key>kind</key><string>event</string> 799// CHECK-NEXT: <key>location</key> 800// CHECK-NEXT: <dict> 801// CHECK-NEXT: <key>line</key><integer>30</integer> 802// CHECK-NEXT: <key>col</key><integer>5</integer> 803// CHECK-NEXT: <key>file</key><integer>0</integer> 804// CHECK-NEXT: </dict> 805// CHECK-NEXT: <key>ranges</key> 806// CHECK-NEXT: <array> 807// CHECK-NEXT: <array> 808// CHECK-NEXT: <dict> 809// CHECK-NEXT: <key>line</key><integer>30</integer> 810// CHECK-NEXT: <key>col</key><integer>5</integer> 811// CHECK-NEXT: <key>file</key><integer>0</integer> 812// CHECK-NEXT: </dict> 813// CHECK-NEXT: <dict> 814// CHECK-NEXT: <key>line</key><integer>30</integer> 815// CHECK-NEXT: <key>col</key><integer>10</integer> 816// CHECK-NEXT: <key>file</key><integer>0</integer> 817// CHECK-NEXT: </dict> 818// CHECK-NEXT: </array> 819// CHECK-NEXT: </array> 820// CHECK-NEXT: <key>depth</key><integer>0</integer> 821// CHECK-NEXT: <key>extended_message</key> 822// CHECK-NEXT: <string>'p' initialized to a null pointer value</string> 823// CHECK-NEXT: <key>message</key> 824// CHECK-NEXT: <string>'p' initialized to a null pointer value</string> 825// CHECK-NEXT: </dict> 826// CHECK-NEXT: <dict> 827// CHECK-NEXT: <key>kind</key><string>control</string> 828// CHECK-NEXT: <key>edges</key> 829// CHECK-NEXT: <array> 830// CHECK-NEXT: <dict> 831// CHECK-NEXT: <key>start</key> 832// CHECK-NEXT: <array> 833// CHECK-NEXT: <dict> 834// CHECK-NEXT: <key>line</key><integer>30</integer> 835// CHECK-NEXT: <key>col</key><integer>5</integer> 836// CHECK-NEXT: <key>file</key><integer>0</integer> 837// CHECK-NEXT: </dict> 838// CHECK-NEXT: <dict> 839// CHECK-NEXT: <key>line</key><integer>30</integer> 840// CHECK-NEXT: <key>col</key><integer>7</integer> 841// CHECK-NEXT: <key>file</key><integer>0</integer> 842// CHECK-NEXT: </dict> 843// CHECK-NEXT: </array> 844// CHECK-NEXT: <key>end</key> 845// CHECK-NEXT: <array> 846// CHECK-NEXT: <dict> 847// CHECK-NEXT: <key>line</key><integer>31</integer> 848// CHECK-NEXT: <key>col</key><integer>8</integer> 849// CHECK-NEXT: <key>file</key><integer>0</integer> 850// CHECK-NEXT: </dict> 851// CHECK-NEXT: <dict> 852// CHECK-NEXT: <key>line</key><integer>31</integer> 853// CHECK-NEXT: <key>col</key><integer>8</integer> 854// CHECK-NEXT: <key>file</key><integer>0</integer> 855// CHECK-NEXT: </dict> 856// CHECK-NEXT: </array> 857// CHECK-NEXT: </dict> 858// CHECK-NEXT: </array> 859// CHECK-NEXT: </dict> 860// CHECK-NEXT: <dict> 861// CHECK-NEXT: <key>kind</key><string>event</string> 862// CHECK-NEXT: <key>location</key> 863// CHECK-NEXT: <dict> 864// CHECK-NEXT: <key>line</key><integer>31</integer> 865// CHECK-NEXT: <key>col</key><integer>8</integer> 866// CHECK-NEXT: <key>file</key><integer>0</integer> 867// CHECK-NEXT: </dict> 868// CHECK-NEXT: <key>ranges</key> 869// CHECK-NEXT: <array> 870// CHECK-NEXT: <array> 871// CHECK-NEXT: <dict> 872// CHECK-NEXT: <key>line</key><integer>31</integer> 873// CHECK-NEXT: <key>col</key><integer>6</integer> 874// CHECK-NEXT: <key>file</key><integer>0</integer> 875// CHECK-NEXT: </dict> 876// CHECK-NEXT: <dict> 877// CHECK-NEXT: <key>line</key><integer>31</integer> 878// CHECK-NEXT: <key>col</key><integer>6</integer> 879// CHECK-NEXT: <key>file</key><integer>0</integer> 880// CHECK-NEXT: </dict> 881// CHECK-NEXT: </array> 882// CHECK-NEXT: </array> 883// CHECK-NEXT: <key>depth</key><integer>0</integer> 884// CHECK-NEXT: <key>extended_message</key> 885// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 886// CHECK-NEXT: <key>message</key> 887// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 888// CHECK-NEXT: </dict> 889// CHECK-NEXT: </array> 890// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'p')</string> 891// CHECK-NEXT: <key>category</key><string>Logic error</string> 892// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string> 893// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 894// CHECK-NEXT: <key>issue_context</key><string>test_null_cond_transitive</string> 895// CHECK-NEXT: <key>issue_hash</key><string>3</string> 896// CHECK-NEXT: <key>location</key> 897// CHECK-NEXT: <dict> 898// CHECK-NEXT: <key>line</key><integer>31</integer> 899// CHECK-NEXT: <key>col</key><integer>8</integer> 900// CHECK-NEXT: <key>file</key><integer>0</integer> 901// CHECK-NEXT: </dict> 902// CHECK-NEXT: </dict> 903// CHECK-NEXT: <dict> 904// CHECK-NEXT: <key>path</key> 905// CHECK-NEXT: <array> 906// CHECK-NEXT: <dict> 907// CHECK-NEXT: <key>kind</key><string>control</string> 908// CHECK-NEXT: <key>edges</key> 909// CHECK-NEXT: <array> 910// CHECK-NEXT: <dict> 911// CHECK-NEXT: <key>start</key> 912// CHECK-NEXT: <array> 913// CHECK-NEXT: <dict> 914// CHECK-NEXT: <key>line</key><integer>36</integer> 915// CHECK-NEXT: <key>col</key><integer>3</integer> 916// CHECK-NEXT: <key>file</key><integer>0</integer> 917// CHECK-NEXT: </dict> 918// CHECK-NEXT: <dict> 919// CHECK-NEXT: <key>line</key><integer>36</integer> 920// CHECK-NEXT: <key>col</key><integer>8</integer> 921// CHECK-NEXT: <key>file</key><integer>0</integer> 922// CHECK-NEXT: </dict> 923// CHECK-NEXT: </array> 924// CHECK-NEXT: <key>end</key> 925// CHECK-NEXT: <array> 926// CHECK-NEXT: <dict> 927// CHECK-NEXT: <key>line</key><integer>36</integer> 928// CHECK-NEXT: <key>col</key><integer>24</integer> 929// CHECK-NEXT: <key>file</key><integer>0</integer> 930// CHECK-NEXT: </dict> 931// CHECK-NEXT: <dict> 932// CHECK-NEXT: <key>line</key><integer>36</integer> 933// CHECK-NEXT: <key>col</key><integer>24</integer> 934// CHECK-NEXT: <key>file</key><integer>0</integer> 935// CHECK-NEXT: </dict> 936// CHECK-NEXT: </array> 937// CHECK-NEXT: </dict> 938// CHECK-NEXT: </array> 939// CHECK-NEXT: </dict> 940// CHECK-NEXT: <dict> 941// CHECK-NEXT: <key>kind</key><string>control</string> 942// CHECK-NEXT: <key>edges</key> 943// CHECK-NEXT: <array> 944// CHECK-NEXT: <dict> 945// CHECK-NEXT: <key>start</key> 946// CHECK-NEXT: <array> 947// CHECK-NEXT: <dict> 948// CHECK-NEXT: <key>line</key><integer>36</integer> 949// CHECK-NEXT: <key>col</key><integer>24</integer> 950// CHECK-NEXT: <key>file</key><integer>0</integer> 951// CHECK-NEXT: </dict> 952// CHECK-NEXT: <dict> 953// CHECK-NEXT: <key>line</key><integer>36</integer> 954// CHECK-NEXT: <key>col</key><integer>24</integer> 955// CHECK-NEXT: <key>file</key><integer>0</integer> 956// CHECK-NEXT: </dict> 957// CHECK-NEXT: </array> 958// CHECK-NEXT: <key>end</key> 959// CHECK-NEXT: <array> 960// CHECK-NEXT: <dict> 961// CHECK-NEXT: <key>line</key><integer>37</integer> 962// CHECK-NEXT: <key>col</key><integer>3</integer> 963// CHECK-NEXT: <key>file</key><integer>0</integer> 964// CHECK-NEXT: </dict> 965// CHECK-NEXT: <dict> 966// CHECK-NEXT: <key>line</key><integer>37</integer> 967// CHECK-NEXT: <key>col</key><integer>3</integer> 968// CHECK-NEXT: <key>file</key><integer>0</integer> 969// CHECK-NEXT: </dict> 970// CHECK-NEXT: </array> 971// CHECK-NEXT: </dict> 972// CHECK-NEXT: </array> 973// CHECK-NEXT: </dict> 974// CHECK-NEXT: <dict> 975// CHECK-NEXT: <key>kind</key><string>event</string> 976// CHECK-NEXT: <key>location</key> 977// CHECK-NEXT: <dict> 978// CHECK-NEXT: <key>line</key><integer>37</integer> 979// CHECK-NEXT: <key>col</key><integer>3</integer> 980// CHECK-NEXT: <key>file</key><integer>0</integer> 981// CHECK-NEXT: </dict> 982// CHECK-NEXT: <key>ranges</key> 983// CHECK-NEXT: <array> 984// CHECK-NEXT: <array> 985// CHECK-NEXT: <dict> 986// CHECK-NEXT: <key>line</key><integer>37</integer> 987// CHECK-NEXT: <key>col</key><integer>3</integer> 988// CHECK-NEXT: <key>file</key><integer>0</integer> 989// CHECK-NEXT: </dict> 990// CHECK-NEXT: <dict> 991// CHECK-NEXT: <key>line</key><integer>37</integer> 992// CHECK-NEXT: <key>col</key><integer>9</integer> 993// CHECK-NEXT: <key>file</key><integer>0</integer> 994// CHECK-NEXT: </dict> 995// CHECK-NEXT: </array> 996// CHECK-NEXT: </array> 997// CHECK-NEXT: <key>depth</key><integer>0</integer> 998// CHECK-NEXT: <key>extended_message</key> 999// CHECK-NEXT: <string>Null pointer value stored to 'x.p'</string> 1000// CHECK-NEXT: <key>message</key> 1001// CHECK-NEXT: <string>Null pointer value stored to 'x.p'</string> 1002// CHECK-NEXT: </dict> 1003// CHECK-NEXT: <dict> 1004// CHECK-NEXT: <key>kind</key><string>control</string> 1005// CHECK-NEXT: <key>edges</key> 1006// CHECK-NEXT: <array> 1007// CHECK-NEXT: <dict> 1008// CHECK-NEXT: <key>start</key> 1009// CHECK-NEXT: <array> 1010// CHECK-NEXT: <dict> 1011// CHECK-NEXT: <key>line</key><integer>37</integer> 1012// CHECK-NEXT: <key>col</key><integer>3</integer> 1013// CHECK-NEXT: <key>file</key><integer>0</integer> 1014// CHECK-NEXT: </dict> 1015// CHECK-NEXT: <dict> 1016// CHECK-NEXT: <key>line</key><integer>37</integer> 1017// CHECK-NEXT: <key>col</key><integer>3</integer> 1018// CHECK-NEXT: <key>file</key><integer>0</integer> 1019// CHECK-NEXT: </dict> 1020// CHECK-NEXT: </array> 1021// CHECK-NEXT: <key>end</key> 1022// CHECK-NEXT: <array> 1023// CHECK-NEXT: <dict> 1024// CHECK-NEXT: <key>line</key><integer>38</integer> 1025// CHECK-NEXT: <key>col</key><integer>10</integer> 1026// CHECK-NEXT: <key>file</key><integer>0</integer> 1027// CHECK-NEXT: </dict> 1028// CHECK-NEXT: <dict> 1029// CHECK-NEXT: <key>line</key><integer>38</integer> 1030// CHECK-NEXT: <key>col</key><integer>10</integer> 1031// CHECK-NEXT: <key>file</key><integer>0</integer> 1032// CHECK-NEXT: </dict> 1033// CHECK-NEXT: </array> 1034// CHECK-NEXT: </dict> 1035// CHECK-NEXT: </array> 1036// CHECK-NEXT: </dict> 1037// CHECK-NEXT: <dict> 1038// CHECK-NEXT: <key>kind</key><string>event</string> 1039// CHECK-NEXT: <key>location</key> 1040// CHECK-NEXT: <dict> 1041// CHECK-NEXT: <key>line</key><integer>38</integer> 1042// CHECK-NEXT: <key>col</key><integer>10</integer> 1043// CHECK-NEXT: <key>file</key><integer>0</integer> 1044// CHECK-NEXT: </dict> 1045// CHECK-NEXT: <key>ranges</key> 1046// CHECK-NEXT: <array> 1047// CHECK-NEXT: <array> 1048// CHECK-NEXT: <dict> 1049// CHECK-NEXT: <key>line</key><integer>38</integer> 1050// CHECK-NEXT: <key>col</key><integer>7</integer> 1051// CHECK-NEXT: <key>file</key><integer>0</integer> 1052// CHECK-NEXT: </dict> 1053// CHECK-NEXT: <dict> 1054// CHECK-NEXT: <key>line</key><integer>38</integer> 1055// CHECK-NEXT: <key>col</key><integer>7</integer> 1056// CHECK-NEXT: <key>file</key><integer>0</integer> 1057// CHECK-NEXT: </dict> 1058// CHECK-NEXT: </array> 1059// CHECK-NEXT: </array> 1060// CHECK-NEXT: <key>depth</key><integer>0</integer> 1061// CHECK-NEXT: <key>extended_message</key> 1062// CHECK-NEXT: <string>Dereference of null pointer (loaded from field 'p')</string> 1063// CHECK-NEXT: <key>message</key> 1064// CHECK-NEXT: <string>Dereference of null pointer (loaded from field 'p')</string> 1065// CHECK-NEXT: </dict> 1066// CHECK-NEXT: </array> 1067// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from field 'p')</string> 1068// CHECK-NEXT: <key>category</key><string>Logic error</string> 1069// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string> 1070// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1071// CHECK-NEXT: <key>issue_context</key><string>test_null_field</string> 1072// CHECK-NEXT: <key>issue_hash</key><string>3</string> 1073// CHECK-NEXT: <key>location</key> 1074// CHECK-NEXT: <dict> 1075// CHECK-NEXT: <key>line</key><integer>38</integer> 1076// CHECK-NEXT: <key>col</key><integer>10</integer> 1077// CHECK-NEXT: <key>file</key><integer>0</integer> 1078// CHECK-NEXT: </dict> 1079// CHECK-NEXT: </dict> 1080// CHECK-NEXT: <dict> 1081// CHECK-NEXT: <key>path</key> 1082// CHECK-NEXT: <array> 1083// CHECK-NEXT: <dict> 1084// CHECK-NEXT: <key>kind</key><string>control</string> 1085// CHECK-NEXT: <key>edges</key> 1086// CHECK-NEXT: <array> 1087// CHECK-NEXT: <dict> 1088// CHECK-NEXT: <key>start</key> 1089// CHECK-NEXT: <array> 1090// CHECK-NEXT: <dict> 1091// CHECK-NEXT: <key>line</key><integer>53</integer> 1092// CHECK-NEXT: <key>col</key><integer>3</integer> 1093// CHECK-NEXT: <key>file</key><integer>0</integer> 1094// CHECK-NEXT: </dict> 1095// CHECK-NEXT: <dict> 1096// CHECK-NEXT: <key>line</key><integer>53</integer> 1097// CHECK-NEXT: <key>col</key><integer>8</integer> 1098// CHECK-NEXT: <key>file</key><integer>0</integer> 1099// CHECK-NEXT: </dict> 1100// CHECK-NEXT: </array> 1101// CHECK-NEXT: <key>end</key> 1102// CHECK-NEXT: <array> 1103// CHECK-NEXT: <dict> 1104// CHECK-NEXT: <key>line</key><integer>54</integer> 1105// CHECK-NEXT: <key>col</key><integer>3</integer> 1106// CHECK-NEXT: <key>file</key><integer>0</integer> 1107// CHECK-NEXT: </dict> 1108// CHECK-NEXT: <dict> 1109// CHECK-NEXT: <key>line</key><integer>54</integer> 1110// CHECK-NEXT: <key>col</key><integer>13</integer> 1111// CHECK-NEXT: <key>file</key><integer>0</integer> 1112// CHECK-NEXT: </dict> 1113// CHECK-NEXT: </array> 1114// CHECK-NEXT: </dict> 1115// CHECK-NEXT: </array> 1116// CHECK-NEXT: </dict> 1117// CHECK-NEXT: <dict> 1118// CHECK-NEXT: <key>kind</key><string>control</string> 1119// CHECK-NEXT: <key>edges</key> 1120// CHECK-NEXT: <array> 1121// CHECK-NEXT: <dict> 1122// CHECK-NEXT: <key>start</key> 1123// CHECK-NEXT: <array> 1124// CHECK-NEXT: <dict> 1125// CHECK-NEXT: <key>line</key><integer>54</integer> 1126// CHECK-NEXT: <key>col</key><integer>3</integer> 1127// CHECK-NEXT: <key>file</key><integer>0</integer> 1128// CHECK-NEXT: </dict> 1129// CHECK-NEXT: <dict> 1130// CHECK-NEXT: <key>line</key><integer>54</integer> 1131// CHECK-NEXT: <key>col</key><integer>13</integer> 1132// CHECK-NEXT: <key>file</key><integer>0</integer> 1133// CHECK-NEXT: </dict> 1134// CHECK-NEXT: </array> 1135// CHECK-NEXT: <key>end</key> 1136// CHECK-NEXT: <array> 1137// CHECK-NEXT: <dict> 1138// CHECK-NEXT: <key>line</key><integer>54</integer> 1139// CHECK-NEXT: <key>col</key><integer>23</integer> 1140// CHECK-NEXT: <key>file</key><integer>0</integer> 1141// CHECK-NEXT: </dict> 1142// CHECK-NEXT: <dict> 1143// CHECK-NEXT: <key>line</key><integer>54</integer> 1144// CHECK-NEXT: <key>col</key><integer>36</integer> 1145// CHECK-NEXT: <key>file</key><integer>0</integer> 1146// CHECK-NEXT: </dict> 1147// CHECK-NEXT: </array> 1148// CHECK-NEXT: </dict> 1149// CHECK-NEXT: </array> 1150// CHECK-NEXT: </dict> 1151// CHECK-NEXT: <dict> 1152// CHECK-NEXT: <key>kind</key><string>event</string> 1153// CHECK-NEXT: <key>location</key> 1154// CHECK-NEXT: <dict> 1155// CHECK-NEXT: <key>line</key><integer>54</integer> 1156// CHECK-NEXT: <key>col</key><integer>23</integer> 1157// CHECK-NEXT: <key>file</key><integer>0</integer> 1158// CHECK-NEXT: </dict> 1159// CHECK-NEXT: <key>ranges</key> 1160// CHECK-NEXT: <array> 1161// CHECK-NEXT: <array> 1162// CHECK-NEXT: <dict> 1163// CHECK-NEXT: <key>line</key><integer>54</integer> 1164// CHECK-NEXT: <key>col</key><integer>23</integer> 1165// CHECK-NEXT: <key>file</key><integer>0</integer> 1166// CHECK-NEXT: </dict> 1167// CHECK-NEXT: <dict> 1168// CHECK-NEXT: <key>line</key><integer>54</integer> 1169// CHECK-NEXT: <key>col</key><integer>82</integer> 1170// CHECK-NEXT: <key>file</key><integer>0</integer> 1171// CHECK-NEXT: </dict> 1172// CHECK-NEXT: </array> 1173// CHECK-NEXT: </array> 1174// CHECK-NEXT: <key>depth</key><integer>0</integer> 1175// CHECK-NEXT: <key>extended_message</key> 1176// CHECK-NEXT: <string>Call to function 'CFNumberCreate' returns a Core Foundation object with a +1 retain count</string> 1177// CHECK-NEXT: <key>message</key> 1178// CHECK-NEXT: <string>Call to function 'CFNumberCreate' returns a Core Foundation object with a +1 retain count</string> 1179// CHECK-NEXT: </dict> 1180// CHECK-NEXT: <dict> 1181// CHECK-NEXT: <key>kind</key><string>control</string> 1182// CHECK-NEXT: <key>edges</key> 1183// CHECK-NEXT: <array> 1184// CHECK-NEXT: <dict> 1185// CHECK-NEXT: <key>start</key> 1186// CHECK-NEXT: <array> 1187// CHECK-NEXT: <dict> 1188// CHECK-NEXT: <key>line</key><integer>54</integer> 1189// CHECK-NEXT: <key>col</key><integer>23</integer> 1190// CHECK-NEXT: <key>file</key><integer>0</integer> 1191// CHECK-NEXT: </dict> 1192// CHECK-NEXT: <dict> 1193// CHECK-NEXT: <key>line</key><integer>54</integer> 1194// CHECK-NEXT: <key>col</key><integer>36</integer> 1195// CHECK-NEXT: <key>file</key><integer>0</integer> 1196// CHECK-NEXT: </dict> 1197// CHECK-NEXT: </array> 1198// CHECK-NEXT: <key>end</key> 1199// CHECK-NEXT: <array> 1200// CHECK-NEXT: <dict> 1201// CHECK-NEXT: <key>line</key><integer>55</integer> 1202// CHECK-NEXT: <key>col</key><integer>3</integer> 1203// CHECK-NEXT: <key>file</key><integer>0</integer> 1204// CHECK-NEXT: </dict> 1205// CHECK-NEXT: <dict> 1206// CHECK-NEXT: <key>line</key><integer>55</integer> 1207// CHECK-NEXT: <key>col</key><integer>4</integer> 1208// CHECK-NEXT: <key>file</key><integer>0</integer> 1209// CHECK-NEXT: </dict> 1210// CHECK-NEXT: </array> 1211// CHECK-NEXT: </dict> 1212// CHECK-NEXT: </array> 1213// CHECK-NEXT: </dict> 1214// CHECK-NEXT: <dict> 1215// CHECK-NEXT: <key>kind</key><string>control</string> 1216// CHECK-NEXT: <key>edges</key> 1217// CHECK-NEXT: <array> 1218// CHECK-NEXT: <dict> 1219// CHECK-NEXT: <key>start</key> 1220// CHECK-NEXT: <array> 1221// CHECK-NEXT: <dict> 1222// CHECK-NEXT: <key>line</key><integer>55</integer> 1223// CHECK-NEXT: <key>col</key><integer>3</integer> 1224// CHECK-NEXT: <key>file</key><integer>0</integer> 1225// CHECK-NEXT: </dict> 1226// CHECK-NEXT: <dict> 1227// CHECK-NEXT: <key>line</key><integer>55</integer> 1228// CHECK-NEXT: <key>col</key><integer>4</integer> 1229// CHECK-NEXT: <key>file</key><integer>0</integer> 1230// CHECK-NEXT: </dict> 1231// CHECK-NEXT: </array> 1232// CHECK-NEXT: <key>end</key> 1233// CHECK-NEXT: <array> 1234// CHECK-NEXT: <dict> 1235// CHECK-NEXT: <key>line</key><integer>55</integer> 1236// CHECK-NEXT: <key>col</key><integer>7</integer> 1237// CHECK-NEXT: <key>file</key><integer>0</integer> 1238// CHECK-NEXT: </dict> 1239// CHECK-NEXT: <dict> 1240// CHECK-NEXT: <key>line</key><integer>55</integer> 1241// CHECK-NEXT: <key>col</key><integer>7</integer> 1242// CHECK-NEXT: <key>file</key><integer>0</integer> 1243// CHECK-NEXT: </dict> 1244// CHECK-NEXT: </array> 1245// CHECK-NEXT: </dict> 1246// CHECK-NEXT: </array> 1247// CHECK-NEXT: </dict> 1248// CHECK-NEXT: <dict> 1249// CHECK-NEXT: <key>kind</key><string>event</string> 1250// CHECK-NEXT: <key>location</key> 1251// CHECK-NEXT: <dict> 1252// CHECK-NEXT: <key>line</key><integer>55</integer> 1253// CHECK-NEXT: <key>col</key><integer>7</integer> 1254// CHECK-NEXT: <key>file</key><integer>0</integer> 1255// CHECK-NEXT: </dict> 1256// CHECK-NEXT: <key>ranges</key> 1257// CHECK-NEXT: <array> 1258// CHECK-NEXT: <array> 1259// CHECK-NEXT: <dict> 1260// CHECK-NEXT: <key>line</key><integer>55</integer> 1261// CHECK-NEXT: <key>col</key><integer>7</integer> 1262// CHECK-NEXT: <key>file</key><integer>0</integer> 1263// CHECK-NEXT: </dict> 1264// CHECK-NEXT: <dict> 1265// CHECK-NEXT: <key>line</key><integer>55</integer> 1266// CHECK-NEXT: <key>col</key><integer>7</integer> 1267// CHECK-NEXT: <key>file</key><integer>0</integer> 1268// CHECK-NEXT: </dict> 1269// CHECK-NEXT: </array> 1270// CHECK-NEXT: </array> 1271// CHECK-NEXT: <key>depth</key><integer>0</integer> 1272// CHECK-NEXT: <key>extended_message</key> 1273// CHECK-NEXT: <string>Assuming 'x' is 0</string> 1274// CHECK-NEXT: <key>message</key> 1275// CHECK-NEXT: <string>Assuming 'x' is 0</string> 1276// CHECK-NEXT: </dict> 1277// CHECK-NEXT: <dict> 1278// CHECK-NEXT: <key>kind</key><string>control</string> 1279// CHECK-NEXT: <key>edges</key> 1280// CHECK-NEXT: <array> 1281// CHECK-NEXT: <dict> 1282// CHECK-NEXT: <key>start</key> 1283// CHECK-NEXT: <array> 1284// CHECK-NEXT: <dict> 1285// CHECK-NEXT: <key>line</key><integer>55</integer> 1286// CHECK-NEXT: <key>col</key><integer>7</integer> 1287// CHECK-NEXT: <key>file</key><integer>0</integer> 1288// CHECK-NEXT: </dict> 1289// CHECK-NEXT: <dict> 1290// CHECK-NEXT: <key>line</key><integer>55</integer> 1291// CHECK-NEXT: <key>col</key><integer>7</integer> 1292// CHECK-NEXT: <key>file</key><integer>0</integer> 1293// CHECK-NEXT: </dict> 1294// CHECK-NEXT: </array> 1295// CHECK-NEXT: <key>end</key> 1296// CHECK-NEXT: <array> 1297// CHECK-NEXT: <dict> 1298// CHECK-NEXT: <key>line</key><integer>57</integer> 1299// CHECK-NEXT: <key>col</key><integer>10</integer> 1300// CHECK-NEXT: <key>file</key><integer>0</integer> 1301// CHECK-NEXT: </dict> 1302// CHECK-NEXT: <dict> 1303// CHECK-NEXT: <key>line</key><integer>57</integer> 1304// CHECK-NEXT: <key>col</key><integer>14</integer> 1305// CHECK-NEXT: <key>file</key><integer>0</integer> 1306// CHECK-NEXT: </dict> 1307// CHECK-NEXT: </array> 1308// CHECK-NEXT: </dict> 1309// CHECK-NEXT: </array> 1310// CHECK-NEXT: </dict> 1311// CHECK-NEXT: <dict> 1312// CHECK-NEXT: <key>kind</key><string>control</string> 1313// CHECK-NEXT: <key>edges</key> 1314// CHECK-NEXT: <array> 1315// CHECK-NEXT: <dict> 1316// CHECK-NEXT: <key>start</key> 1317// CHECK-NEXT: <array> 1318// CHECK-NEXT: <dict> 1319// CHECK-NEXT: <key>line</key><integer>57</integer> 1320// CHECK-NEXT: <key>col</key><integer>10</integer> 1321// CHECK-NEXT: <key>file</key><integer>0</integer> 1322// CHECK-NEXT: </dict> 1323// CHECK-NEXT: <dict> 1324// CHECK-NEXT: <key>line</key><integer>57</integer> 1325// CHECK-NEXT: <key>col</key><integer>14</integer> 1326// CHECK-NEXT: <key>file</key><integer>0</integer> 1327// CHECK-NEXT: </dict> 1328// CHECK-NEXT: </array> 1329// CHECK-NEXT: <key>end</key> 1330// CHECK-NEXT: <array> 1331// CHECK-NEXT: <dict> 1332// CHECK-NEXT: <key>line</key><integer>58</integer> 1333// CHECK-NEXT: <key>col</key><integer>1</integer> 1334// CHECK-NEXT: <key>file</key><integer>0</integer> 1335// CHECK-NEXT: </dict> 1336// CHECK-NEXT: <dict> 1337// CHECK-NEXT: <key>line</key><integer>58</integer> 1338// CHECK-NEXT: <key>col</key><integer>1</integer> 1339// CHECK-NEXT: <key>file</key><integer>0</integer> 1340// CHECK-NEXT: </dict> 1341// CHECK-NEXT: </array> 1342// CHECK-NEXT: </dict> 1343// CHECK-NEXT: </array> 1344// CHECK-NEXT: </dict> 1345// CHECK-NEXT: <dict> 1346// CHECK-NEXT: <key>kind</key><string>event</string> 1347// CHECK-NEXT: <key>location</key> 1348// CHECK-NEXT: <dict> 1349// CHECK-NEXT: <key>line</key><integer>58</integer> 1350// CHECK-NEXT: <key>col</key><integer>1</integer> 1351// CHECK-NEXT: <key>file</key><integer>0</integer> 1352// CHECK-NEXT: </dict> 1353// CHECK-NEXT: <key>depth</key><integer>0</integer> 1354// CHECK-NEXT: <key>extended_message</key> 1355// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'value' is not referenced later in this execution path and has a retain count of +1</string> 1356// CHECK-NEXT: <key>message</key> 1357// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'value' is not referenced later in this execution path and has a retain count of +1</string> 1358// CHECK-NEXT: </dict> 1359// CHECK-NEXT: </array> 1360// CHECK-NEXT: <key>description</key><string>Potential leak of an object stored into 'value'</string> 1361// CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 1362// CHECK-NEXT: <key>type</key><string>Leak</string> 1363// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1364// CHECK-NEXT: <key>issue_context</key><string>rdar8331641</string> 1365// CHECK-NEXT: <key>issue_hash</key><string>2</string> 1366// CHECK-NEXT: <key>location</key> 1367// CHECK-NEXT: <dict> 1368// CHECK-NEXT: <key>line</key><integer>58</integer> 1369// CHECK-NEXT: <key>col</key><integer>1</integer> 1370// CHECK-NEXT: <key>file</key><integer>0</integer> 1371// CHECK-NEXT: </dict> 1372// CHECK-NEXT: </dict> 1373// CHECK-NEXT: </array> 1374