1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -analyze -analyzer-checker=core,osx.cocoa.RetainCount,deadcode -verify -fblocks -analyzer-opt-analyze-nested-blocks -fobjc-arc -analyzer-config path-diagnostics-alternate=true -analyzer-output=plist-multi-file -o %t.plist %s 2// RUN: FileCheck --input-file=%t.plist %s 3 4typedef signed char BOOL; 5typedef struct _NSZone NSZone; 6@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator; 7typedef unsigned long NSUInteger; 8 9@protocol NSObject 10- (BOOL)isEqual:(id)object; 11@end 12@protocol NSCopying 13- (id)copyWithZone:(NSZone *)zone; 14@end 15@protocol NSCoding; 16@protocol NSMutableCopying; 17@protocol NSFastEnumeration 18- (void)encodeWithCoder:(NSCoder *)aCoder; 19@end 20@protocol NSMutableCopying - (id)mutableCopyWithZone:(NSZone *)zone; 21@end 22@protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder; 23@end 24@interface NSObject <NSObject> {} 25+ (id)alloc; 26- (id)init; 27- (NSString *)description; 28@end 29@interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration> 30- (NSUInteger)count; 31- (id)initWithObjects:(const id [])objects count:(NSUInteger)cnt; 32+ (id)arrayWithObject:(id)anObject; 33+ (id)arrayWithObjects:(const id [])objects count:(NSUInteger)cnt; 34+ (id)arrayWithObjects:(id)firstObj, ... __attribute__((sentinel(0,1))); 35- (id)initWithObjects:(id)firstObj, ... __attribute__((sentinel(0,1))); 36- (id)initWithArray:(NSArray *)array; 37@end 38 39typedef const struct __CFAllocator * CFAllocatorRef; 40extern const CFAllocatorRef kCFAllocatorDefault; 41typedef double CFTimeInterval; 42typedef CFTimeInterval CFAbsoluteTime; 43extern CFAbsoluteTime CFAbsoluteTimeGetCurrent(void); 44typedef const struct __CFDate * CFDateRef; 45extern CFDateRef CFDateCreate(CFAllocatorRef allocator, CFAbsoluteTime at); 46 47typedef const void* objc_objectptr_t; 48__attribute__((ns_returns_retained)) id objc_retainedObject(objc_objectptr_t __attribute__((cf_consumed)) pointer); 49__attribute__((ns_returns_not_retained)) id objc_unretainedObject(objc_objectptr_t pointer); 50 51// Test the analyzer is working at all. 52void test_working() { 53 int *p = 0; 54 *p = 0xDEADBEEF; // expected-warning {{null}} 55} 56 57// Test that in ARC mode that blocks are correctly automatically copied 58// and not flagged as warnings by the analyzer. 59typedef void (^Block)(void); 60void testblock_bar(int x); 61 62Block testblock_foo(int x) { 63 Block b = ^{ testblock_bar(x); }; 64 return b; // no-warning 65} 66 67Block testblock_baz(int x) { 68 return ^{ testblock_bar(x); }; // no-warning 69} 70 71Block global_block; 72 73void testblock_qux(int x) { 74 global_block = ^{ testblock_bar(x); }; // no-warning 75} 76 77// Test that Objective-C pointers are null initialized. 78void test_nil_initialized() { 79 id x; 80 if (x == 0) 81 return; 82 int *p = 0; 83 *p = 0xDEADBEEF; // no-warning 84} 85 86// Test that we don't flag leaks of Objective-C objects. 87void test_alloc() { 88 [NSObject alloc]; // no-warning 89} 90 91// Test that CF allocations are still caught as leaks. 92void test_cf_leak() { 93 CFAbsoluteTime t = CFAbsoluteTimeGetCurrent(); 94 CFDateRef date = CFDateCreate(0, t); // expected-warning {{Potential leak}} 95 (void) date; 96} 97 98// Test that 'init' methods do not try to claim ownerhip of an *unowned* allocated object 99// in ARC mode. 100@interface RDar9424890_A : NSObject 101- (id)initWithCleaner:(int)pop mop:(NSString *)mop ; 102- (RDar9424890_A *)rdar9424890:(NSString *)identifier; 103@end 104@interface RDar9424890_B : NSObject 105@end 106@implementation RDar9424890_B 107- (RDar9424890_A *)obj:(RDar9424890_A *)obj { 108 static NSString *WhizFiz = @"WhizFiz"; 109 RDar9424890_A *cell = [obj rdar9424890:WhizFiz]; 110 if (cell == ((void*)0)) { 111 cell = [[RDar9424890_A alloc] initWithCleaner:0 mop:WhizFiz]; // no-warning 112 } 113 return cell; 114} 115@end 116 117// Test that dead store checking works in the prescence of "cleanups" in the AST. 118void rdar9424882() { 119 id x = [NSObject alloc]; // expected-warning {{Value stored to 'x' during its initialization is never read}} 120} 121 122// Test 123typedef const void *CFTypeRef; 124typedef const struct __CFString *CFStringRef; 125 126@interface NSString 127- (id) self; 128@end 129 130CFTypeRef CFCreateSomething(); 131CFStringRef CFCreateString(); 132CFTypeRef CFGetSomething(); 133CFStringRef CFGetString(); 134 135id CreateSomething(); 136NSString *CreateNSString(); 137 138void from_cf() { 139 id obj1 = (__bridge_transfer id)CFCreateSomething(); // expected-warning{{never read}} 140 id obj2 = (__bridge_transfer NSString*)CFCreateString(); 141 [obj2 self]; // Add a use, to show we can use the object after it has been transferred. 142 id obj3 = (__bridge id)CFGetSomething(); 143 [obj3 self]; // Add a use, to show we can use the object after it has been bridged. 144 id obj4 = (__bridge NSString*)CFGetString(); // expected-warning{{never read}} 145 id obj5 = (__bridge id)CFCreateSomething(); // expected-warning{{never read}} expected-warning{{leak}} 146 id obj6 = (__bridge NSString*)CFCreateString(); // expected-warning{{never read}} expected-warning{{leak}} 147} 148 149void to_cf(id obj) { 150 CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething(); // expected-warning{{never read}} 151 CFStringRef cf2 = (__bridge_retained CFStringRef)CreateNSString(); // expected-warning{{never read}} 152 CFTypeRef cf3 = (__bridge CFTypeRef)CreateSomething(); // expected-warning{{never read}} 153 CFStringRef cf4 = (__bridge CFStringRef)CreateNSString(); // expected-warning{{never read}} 154} 155 156void test_objc_retainedObject() { 157 CFAbsoluteTime t = CFAbsoluteTimeGetCurrent(); 158 CFDateRef date = CFDateCreate(0, t); 159 id x = objc_retainedObject(date); 160 (void) x; 161} 162 163void test_objc_unretainedObject() { 164 CFAbsoluteTime t = CFAbsoluteTimeGetCurrent(); 165 CFDateRef date = CFDateCreate(0, t); // expected-warning {{Potential leak}} 166 id x = objc_unretainedObject(date); 167 (void) x; 168} 169 170// Previously this resulted in a "return of stack address" warning. 171id test_return() { 172 id x = (__bridge_transfer id) CFCreateString(); 173 return x; // no-warning 174} 175 176void test_objc_arrays() { 177 { // CASE ONE -- OBJECT IN ARRAY CREATED DIRECTLY 178 NSObject *o = [[NSObject alloc] init]; 179 NSArray *a = [[NSArray alloc] initWithObjects:o, (void*)0]; 180 [a description]; 181 [o description]; 182 } 183 184 { // CASE TWO -- OBJECT IN ARRAY CREATED BY DUPING AUTORELEASED ARRAY 185 NSObject *o = [[NSObject alloc] init]; 186 NSArray *a1 = [NSArray arrayWithObjects:o, (void*)0]; 187 NSArray *a2 = [[NSArray alloc] initWithArray:a1]; 188 [a2 description]; 189 [o description]; 190 } 191 192 { // CASE THREE -- OBJECT IN RETAINED @[] 193 NSObject *o = [[NSObject alloc] init]; 194 NSArray *a3 = @[o]; 195 [a3 description]; 196 [o description]; 197 } 198 { 199 // CASE 4, verify analyzer still working. 200 CFCreateString(); // expected-warning {{leak}} 201 } 202} 203 204// <rdar://problem/11059275> - dispatch_set_context and ARC. 205__attribute__((cf_returns_retained)) CFTypeRef CFBridgingRetain(id X); 206typedef void* dispatch_object_t; 207void dispatch_set_context(dispatch_object_t object, const void *context); 208 209void rdar11059275(dispatch_object_t object) { 210 NSObject *o = [[NSObject alloc] init]; 211 dispatch_set_context(object, CFBridgingRetain(o)); // no-warning 212} 213void rdar11059275_positive() { 214 NSObject *o = [[NSObject alloc] init]; // expected-warning {{leak}} 215 CFBridgingRetain(o); 216} 217void rdar11059275_negative() { 218 NSObject *o = [[NSObject alloc] init]; // no-warning 219 (void) o; 220} 221 222__attribute__((ns_returns_retained)) id rdar14061675_helper() { 223 return [[NSObject alloc] init]; 224} 225 226id rdar14061675() { 227 // ARC produces an implicit cast here. We need to make sure the combination 228 // of that and the inlined call don't produce a spurious edge cycle. 229 id result = rdar14061675_helper(); 230 *(volatile int *)0 = 1; // expected-warning{{Dereference of null pointer}} 231 return result; 232} 233 234// CHECK: <key>diagnostics</key> 235// CHECK-NEXT: <array> 236// CHECK-NEXT: <dict> 237// CHECK-NEXT: <key>path</key> 238// CHECK-NEXT: <array> 239// CHECK-NEXT: <dict> 240// CHECK-NEXT: <key>kind</key><string>event</string> 241// CHECK-NEXT: <key>location</key> 242// CHECK-NEXT: <dict> 243// CHECK-NEXT: <key>line</key><integer>53</integer> 244// CHECK-NEXT: <key>col</key><integer>3</integer> 245// CHECK-NEXT: <key>file</key><integer>0</integer> 246// CHECK-NEXT: </dict> 247// CHECK-NEXT: <key>ranges</key> 248// CHECK-NEXT: <array> 249// CHECK-NEXT: <array> 250// CHECK-NEXT: <dict> 251// CHECK-NEXT: <key>line</key><integer>53</integer> 252// CHECK-NEXT: <key>col</key><integer>3</integer> 253// CHECK-NEXT: <key>file</key><integer>0</integer> 254// CHECK-NEXT: </dict> 255// CHECK-NEXT: <dict> 256// CHECK-NEXT: <key>line</key><integer>53</integer> 257// CHECK-NEXT: <key>col</key><integer>8</integer> 258// CHECK-NEXT: <key>file</key><integer>0</integer> 259// CHECK-NEXT: </dict> 260// CHECK-NEXT: </array> 261// CHECK-NEXT: </array> 262// CHECK-NEXT: <key>depth</key><integer>0</integer> 263// CHECK-NEXT: <key>extended_message</key> 264// CHECK-NEXT: <string>'p' initialized to a null pointer value</string> 265// CHECK-NEXT: <key>message</key> 266// CHECK-NEXT: <string>'p' initialized to a null pointer value</string> 267// CHECK-NEXT: </dict> 268// CHECK-NEXT: <dict> 269// CHECK-NEXT: <key>kind</key><string>control</string> 270// CHECK-NEXT: <key>edges</key> 271// CHECK-NEXT: <array> 272// CHECK-NEXT: <dict> 273// CHECK-NEXT: <key>start</key> 274// CHECK-NEXT: <array> 275// CHECK-NEXT: <dict> 276// CHECK-NEXT: <key>line</key><integer>53</integer> 277// CHECK-NEXT: <key>col</key><integer>3</integer> 278// CHECK-NEXT: <key>file</key><integer>0</integer> 279// CHECK-NEXT: </dict> 280// CHECK-NEXT: <dict> 281// CHECK-NEXT: <key>line</key><integer>53</integer> 282// CHECK-NEXT: <key>col</key><integer>5</integer> 283// CHECK-NEXT: <key>file</key><integer>0</integer> 284// CHECK-NEXT: </dict> 285// CHECK-NEXT: </array> 286// CHECK-NEXT: <key>end</key> 287// CHECK-NEXT: <array> 288// CHECK-NEXT: <dict> 289// CHECK-NEXT: <key>line</key><integer>54</integer> 290// CHECK-NEXT: <key>col</key><integer>3</integer> 291// CHECK-NEXT: <key>file</key><integer>0</integer> 292// CHECK-NEXT: </dict> 293// CHECK-NEXT: <dict> 294// CHECK-NEXT: <key>line</key><integer>54</integer> 295// CHECK-NEXT: <key>col</key><integer>3</integer> 296// CHECK-NEXT: <key>file</key><integer>0</integer> 297// CHECK-NEXT: </dict> 298// CHECK-NEXT: </array> 299// CHECK-NEXT: </dict> 300// CHECK-NEXT: </array> 301// CHECK-NEXT: </dict> 302// CHECK-NEXT: <dict> 303// CHECK-NEXT: <key>kind</key><string>control</string> 304// CHECK-NEXT: <key>edges</key> 305// CHECK-NEXT: <array> 306// CHECK-NEXT: <dict> 307// CHECK-NEXT: <key>start</key> 308// CHECK-NEXT: <array> 309// CHECK-NEXT: <dict> 310// CHECK-NEXT: <key>line</key><integer>54</integer> 311// CHECK-NEXT: <key>col</key><integer>3</integer> 312// CHECK-NEXT: <key>file</key><integer>0</integer> 313// CHECK-NEXT: </dict> 314// CHECK-NEXT: <dict> 315// CHECK-NEXT: <key>line</key><integer>54</integer> 316// CHECK-NEXT: <key>col</key><integer>3</integer> 317// CHECK-NEXT: <key>file</key><integer>0</integer> 318// CHECK-NEXT: </dict> 319// CHECK-NEXT: </array> 320// CHECK-NEXT: <key>end</key> 321// CHECK-NEXT: <array> 322// CHECK-NEXT: <dict> 323// CHECK-NEXT: <key>line</key><integer>54</integer> 324// CHECK-NEXT: <key>col</key><integer>6</integer> 325// CHECK-NEXT: <key>file</key><integer>0</integer> 326// CHECK-NEXT: </dict> 327// CHECK-NEXT: <dict> 328// CHECK-NEXT: <key>line</key><integer>54</integer> 329// CHECK-NEXT: <key>col</key><integer>6</integer> 330// CHECK-NEXT: <key>file</key><integer>0</integer> 331// CHECK-NEXT: </dict> 332// CHECK-NEXT: </array> 333// CHECK-NEXT: </dict> 334// CHECK-NEXT: </array> 335// CHECK-NEXT: </dict> 336// CHECK-NEXT: <dict> 337// CHECK-NEXT: <key>kind</key><string>event</string> 338// CHECK-NEXT: <key>location</key> 339// CHECK-NEXT: <dict> 340// CHECK-NEXT: <key>line</key><integer>54</integer> 341// CHECK-NEXT: <key>col</key><integer>6</integer> 342// CHECK-NEXT: <key>file</key><integer>0</integer> 343// CHECK-NEXT: </dict> 344// CHECK-NEXT: <key>ranges</key> 345// CHECK-NEXT: <array> 346// CHECK-NEXT: <array> 347// CHECK-NEXT: <dict> 348// CHECK-NEXT: <key>line</key><integer>54</integer> 349// CHECK-NEXT: <key>col</key><integer>4</integer> 350// CHECK-NEXT: <key>file</key><integer>0</integer> 351// CHECK-NEXT: </dict> 352// CHECK-NEXT: <dict> 353// CHECK-NEXT: <key>line</key><integer>54</integer> 354// CHECK-NEXT: <key>col</key><integer>4</integer> 355// CHECK-NEXT: <key>file</key><integer>0</integer> 356// CHECK-NEXT: </dict> 357// CHECK-NEXT: </array> 358// CHECK-NEXT: </array> 359// CHECK-NEXT: <key>depth</key><integer>0</integer> 360// CHECK-NEXT: <key>extended_message</key> 361// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 362// CHECK-NEXT: <key>message</key> 363// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string> 364// CHECK-NEXT: </dict> 365// CHECK-NEXT: </array> 366// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'p')</string> 367// CHECK-NEXT: <key>category</key><string>Logic error</string> 368// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string> 369// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string> 370// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 371// CHECK-NEXT: <key>issue_context</key><string>test_working</string> 372// CHECK-NEXT: <key>issue_hash</key><string>2</string> 373// CHECK-NEXT: <key>location</key> 374// CHECK-NEXT: <dict> 375// CHECK-NEXT: <key>line</key><integer>54</integer> 376// CHECK-NEXT: <key>col</key><integer>6</integer> 377// CHECK-NEXT: <key>file</key><integer>0</integer> 378// CHECK-NEXT: </dict> 379// CHECK-NEXT: </dict> 380// CHECK-NEXT: <dict> 381// CHECK-NEXT: <key>path</key> 382// CHECK-NEXT: <array> 383// CHECK-NEXT: <dict> 384// CHECK-NEXT: <key>kind</key><string>control</string> 385// CHECK-NEXT: <key>edges</key> 386// CHECK-NEXT: <array> 387// CHECK-NEXT: <dict> 388// CHECK-NEXT: <key>start</key> 389// CHECK-NEXT: <array> 390// CHECK-NEXT: <dict> 391// CHECK-NEXT: <key>line</key><integer>93</integer> 392// CHECK-NEXT: <key>col</key><integer>3</integer> 393// CHECK-NEXT: <key>file</key><integer>0</integer> 394// CHECK-NEXT: </dict> 395// CHECK-NEXT: <dict> 396// CHECK-NEXT: <key>line</key><integer>93</integer> 397// CHECK-NEXT: <key>col</key><integer>16</integer> 398// CHECK-NEXT: <key>file</key><integer>0</integer> 399// CHECK-NEXT: </dict> 400// CHECK-NEXT: </array> 401// CHECK-NEXT: <key>end</key> 402// CHECK-NEXT: <array> 403// CHECK-NEXT: <dict> 404// CHECK-NEXT: <key>line</key><integer>94</integer> 405// CHECK-NEXT: <key>col</key><integer>3</integer> 406// CHECK-NEXT: <key>file</key><integer>0</integer> 407// CHECK-NEXT: </dict> 408// CHECK-NEXT: <dict> 409// CHECK-NEXT: <key>line</key><integer>94</integer> 410// CHECK-NEXT: <key>col</key><integer>11</integer> 411// CHECK-NEXT: <key>file</key><integer>0</integer> 412// CHECK-NEXT: </dict> 413// CHECK-NEXT: </array> 414// CHECK-NEXT: </dict> 415// CHECK-NEXT: </array> 416// CHECK-NEXT: </dict> 417// CHECK-NEXT: <dict> 418// CHECK-NEXT: <key>kind</key><string>event</string> 419// CHECK-NEXT: <key>location</key> 420// CHECK-NEXT: <dict> 421// CHECK-NEXT: <key>line</key><integer>94</integer> 422// CHECK-NEXT: <key>col</key><integer>20</integer> 423// CHECK-NEXT: <key>file</key><integer>0</integer> 424// CHECK-NEXT: </dict> 425// CHECK-NEXT: <key>ranges</key> 426// CHECK-NEXT: <array> 427// CHECK-NEXT: <array> 428// CHECK-NEXT: <dict> 429// CHECK-NEXT: <key>line</key><integer>94</integer> 430// CHECK-NEXT: <key>col</key><integer>20</integer> 431// CHECK-NEXT: <key>file</key><integer>0</integer> 432// CHECK-NEXT: </dict> 433// CHECK-NEXT: <dict> 434// CHECK-NEXT: <key>line</key><integer>94</integer> 435// CHECK-NEXT: <key>col</key><integer>37</integer> 436// CHECK-NEXT: <key>file</key><integer>0</integer> 437// CHECK-NEXT: </dict> 438// CHECK-NEXT: </array> 439// CHECK-NEXT: </array> 440// CHECK-NEXT: <key>depth</key><integer>0</integer> 441// CHECK-NEXT: <key>extended_message</key> 442// CHECK-NEXT: <string>Call to function 'CFDateCreate' returns a Core Foundation object with a +1 retain count</string> 443// CHECK-NEXT: <key>message</key> 444// CHECK-NEXT: <string>Call to function 'CFDateCreate' returns a Core Foundation object with a +1 retain count</string> 445// CHECK-NEXT: </dict> 446// CHECK-NEXT: <dict> 447// CHECK-NEXT: <key>kind</key><string>control</string> 448// CHECK-NEXT: <key>edges</key> 449// CHECK-NEXT: <array> 450// CHECK-NEXT: <dict> 451// CHECK-NEXT: <key>start</key> 452// CHECK-NEXT: <array> 453// CHECK-NEXT: <dict> 454// CHECK-NEXT: <key>line</key><integer>94</integer> 455// CHECK-NEXT: <key>col</key><integer>3</integer> 456// CHECK-NEXT: <key>file</key><integer>0</integer> 457// CHECK-NEXT: </dict> 458// CHECK-NEXT: <dict> 459// CHECK-NEXT: <key>line</key><integer>94</integer> 460// CHECK-NEXT: <key>col</key><integer>11</integer> 461// CHECK-NEXT: <key>file</key><integer>0</integer> 462// CHECK-NEXT: </dict> 463// CHECK-NEXT: </array> 464// CHECK-NEXT: <key>end</key> 465// CHECK-NEXT: <array> 466// CHECK-NEXT: <dict> 467// CHECK-NEXT: <key>line</key><integer>95</integer> 468// CHECK-NEXT: <key>col</key><integer>3</integer> 469// CHECK-NEXT: <key>file</key><integer>0</integer> 470// CHECK-NEXT: </dict> 471// CHECK-NEXT: <dict> 472// CHECK-NEXT: <key>line</key><integer>95</integer> 473// CHECK-NEXT: <key>col</key><integer>3</integer> 474// CHECK-NEXT: <key>file</key><integer>0</integer> 475// CHECK-NEXT: </dict> 476// CHECK-NEXT: </array> 477// CHECK-NEXT: </dict> 478// CHECK-NEXT: </array> 479// CHECK-NEXT: </dict> 480// CHECK-NEXT: <dict> 481// CHECK-NEXT: <key>kind</key><string>control</string> 482// CHECK-NEXT: <key>edges</key> 483// CHECK-NEXT: <array> 484// CHECK-NEXT: <dict> 485// CHECK-NEXT: <key>start</key> 486// CHECK-NEXT: <array> 487// CHECK-NEXT: <dict> 488// CHECK-NEXT: <key>line</key><integer>95</integer> 489// CHECK-NEXT: <key>col</key><integer>3</integer> 490// CHECK-NEXT: <key>file</key><integer>0</integer> 491// CHECK-NEXT: </dict> 492// CHECK-NEXT: <dict> 493// CHECK-NEXT: <key>line</key><integer>95</integer> 494// CHECK-NEXT: <key>col</key><integer>3</integer> 495// CHECK-NEXT: <key>file</key><integer>0</integer> 496// CHECK-NEXT: </dict> 497// CHECK-NEXT: </array> 498// CHECK-NEXT: <key>end</key> 499// CHECK-NEXT: <array> 500// CHECK-NEXT: <dict> 501// CHECK-NEXT: <key>line</key><integer>96</integer> 502// CHECK-NEXT: <key>col</key><integer>1</integer> 503// CHECK-NEXT: <key>file</key><integer>0</integer> 504// CHECK-NEXT: </dict> 505// CHECK-NEXT: <dict> 506// CHECK-NEXT: <key>line</key><integer>96</integer> 507// CHECK-NEXT: <key>col</key><integer>1</integer> 508// CHECK-NEXT: <key>file</key><integer>0</integer> 509// CHECK-NEXT: </dict> 510// CHECK-NEXT: </array> 511// CHECK-NEXT: </dict> 512// CHECK-NEXT: </array> 513// CHECK-NEXT: </dict> 514// CHECK-NEXT: <dict> 515// CHECK-NEXT: <key>kind</key><string>event</string> 516// CHECK-NEXT: <key>location</key> 517// CHECK-NEXT: <dict> 518// CHECK-NEXT: <key>line</key><integer>96</integer> 519// CHECK-NEXT: <key>col</key><integer>1</integer> 520// CHECK-NEXT: <key>file</key><integer>0</integer> 521// CHECK-NEXT: </dict> 522// CHECK-NEXT: <key>depth</key><integer>0</integer> 523// CHECK-NEXT: <key>extended_message</key> 524// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'date' is not referenced later in this execution path and has a retain count of +1</string> 525// CHECK-NEXT: <key>message</key> 526// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'date' is not referenced later in this execution path and has a retain count of +1</string> 527// CHECK-NEXT: </dict> 528// CHECK-NEXT: </array> 529// CHECK-NEXT: <key>description</key><string>Potential leak of an object stored into 'date'</string> 530// CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 531// CHECK-NEXT: <key>type</key><string>Leak</string> 532// CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 533// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 534// CHECK-NEXT: <key>issue_context</key><string>test_cf_leak</string> 535// CHECK-NEXT: <key>issue_hash</key><string>2</string> 536// CHECK-NEXT: <key>location</key> 537// CHECK-NEXT: <dict> 538// CHECK-NEXT: <key>line</key><integer>96</integer> 539// CHECK-NEXT: <key>col</key><integer>1</integer> 540// CHECK-NEXT: <key>file</key><integer>0</integer> 541// CHECK-NEXT: </dict> 542// CHECK-NEXT: </dict> 543// CHECK-NEXT: <dict> 544// CHECK-NEXT: <key>path</key> 545// CHECK-NEXT: <array> 546// CHECK-NEXT: <dict> 547// CHECK-NEXT: <key>kind</key><string>event</string> 548// CHECK-NEXT: <key>location</key> 549// CHECK-NEXT: <dict> 550// CHECK-NEXT: <key>line</key><integer>119</integer> 551// CHECK-NEXT: <key>col</key><integer>6</integer> 552// CHECK-NEXT: <key>file</key><integer>0</integer> 553// CHECK-NEXT: </dict> 554// CHECK-NEXT: <key>ranges</key> 555// CHECK-NEXT: <array> 556// CHECK-NEXT: <array> 557// CHECK-NEXT: <dict> 558// CHECK-NEXT: <key>line</key><integer>119</integer> 559// CHECK-NEXT: <key>col</key><integer>6</integer> 560// CHECK-NEXT: <key>file</key><integer>0</integer> 561// CHECK-NEXT: </dict> 562// CHECK-NEXT: <dict> 563// CHECK-NEXT: <key>line</key><integer>119</integer> 564// CHECK-NEXT: <key>col</key><integer>6</integer> 565// CHECK-NEXT: <key>file</key><integer>0</integer> 566// CHECK-NEXT: </dict> 567// CHECK-NEXT: </array> 568// CHECK-NEXT: <array> 569// CHECK-NEXT: <dict> 570// CHECK-NEXT: <key>line</key><integer>119</integer> 571// CHECK-NEXT: <key>col</key><integer>10</integer> 572// CHECK-NEXT: <key>file</key><integer>0</integer> 573// CHECK-NEXT: </dict> 574// CHECK-NEXT: <dict> 575// CHECK-NEXT: <key>line</key><integer>119</integer> 576// CHECK-NEXT: <key>col</key><integer>25</integer> 577// CHECK-NEXT: <key>file</key><integer>0</integer> 578// CHECK-NEXT: </dict> 579// CHECK-NEXT: </array> 580// CHECK-NEXT: </array> 581// CHECK-NEXT: <key>depth</key><integer>0</integer> 582// CHECK-NEXT: <key>extended_message</key> 583// CHECK-NEXT: <string>Value stored to 'x' during its initialization is never read</string> 584// CHECK-NEXT: <key>message</key> 585// CHECK-NEXT: <string>Value stored to 'x' during its initialization is never read</string> 586// CHECK-NEXT: </dict> 587// CHECK-NEXT: </array> 588// CHECK-NEXT: <key>description</key><string>Value stored to 'x' during its initialization is never read</string> 589// CHECK-NEXT: <key>category</key><string>Dead store</string> 590// CHECK-NEXT: <key>type</key><string>Dead initialization</string> 591// CHECK-NEXT: <key>check_name</key><string>deadcode.DeadStores</string> 592// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 593// CHECK-NEXT: <key>issue_context</key><string>rdar9424882</string> 594// CHECK-NEXT: <key>issue_hash</key><string>1</string> 595// CHECK-NEXT: <key>location</key> 596// CHECK-NEXT: <dict> 597// CHECK-NEXT: <key>line</key><integer>119</integer> 598// CHECK-NEXT: <key>col</key><integer>6</integer> 599// CHECK-NEXT: <key>file</key><integer>0</integer> 600// CHECK-NEXT: </dict> 601// CHECK-NEXT: </dict> 602// CHECK-NEXT: <dict> 603// CHECK-NEXT: <key>path</key> 604// CHECK-NEXT: <array> 605// CHECK-NEXT: <dict> 606// CHECK-NEXT: <key>kind</key><string>event</string> 607// CHECK-NEXT: <key>location</key> 608// CHECK-NEXT: <dict> 609// CHECK-NEXT: <key>line</key><integer>139</integer> 610// CHECK-NEXT: <key>col</key><integer>6</integer> 611// CHECK-NEXT: <key>file</key><integer>0</integer> 612// CHECK-NEXT: </dict> 613// CHECK-NEXT: <key>ranges</key> 614// CHECK-NEXT: <array> 615// CHECK-NEXT: <array> 616// CHECK-NEXT: <dict> 617// CHECK-NEXT: <key>line</key><integer>139</integer> 618// CHECK-NEXT: <key>col</key><integer>6</integer> 619// CHECK-NEXT: <key>file</key><integer>0</integer> 620// CHECK-NEXT: </dict> 621// CHECK-NEXT: <dict> 622// CHECK-NEXT: <key>line</key><integer>139</integer> 623// CHECK-NEXT: <key>col</key><integer>9</integer> 624// CHECK-NEXT: <key>file</key><integer>0</integer> 625// CHECK-NEXT: </dict> 626// CHECK-NEXT: </array> 627// CHECK-NEXT: <array> 628// CHECK-NEXT: <dict> 629// CHECK-NEXT: <key>line</key><integer>139</integer> 630// CHECK-NEXT: <key>col</key><integer>13</integer> 631// CHECK-NEXT: <key>file</key><integer>0</integer> 632// CHECK-NEXT: </dict> 633// CHECK-NEXT: <dict> 634// CHECK-NEXT: <key>line</key><integer>139</integer> 635// CHECK-NEXT: <key>col</key><integer>53</integer> 636// CHECK-NEXT: <key>file</key><integer>0</integer> 637// CHECK-NEXT: </dict> 638// CHECK-NEXT: </array> 639// CHECK-NEXT: </array> 640// CHECK-NEXT: <key>depth</key><integer>0</integer> 641// CHECK-NEXT: <key>extended_message</key> 642// CHECK-NEXT: <string>Value stored to 'obj1' during its initialization is never read</string> 643// CHECK-NEXT: <key>message</key> 644// CHECK-NEXT: <string>Value stored to 'obj1' during its initialization is never read</string> 645// CHECK-NEXT: </dict> 646// CHECK-NEXT: </array> 647// CHECK-NEXT: <key>description</key><string>Value stored to 'obj1' during its initialization is never read</string> 648// CHECK-NEXT: <key>category</key><string>Dead store</string> 649// CHECK-NEXT: <key>type</key><string>Dead initialization</string> 650// CHECK-NEXT: <key>check_name</key><string>deadcode.DeadStores</string> 651// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 652// CHECK-NEXT: <key>issue_context</key><string>from_cf</string> 653// CHECK-NEXT: <key>issue_hash</key><string>1</string> 654// CHECK-NEXT: <key>location</key> 655// CHECK-NEXT: <dict> 656// CHECK-NEXT: <key>line</key><integer>139</integer> 657// CHECK-NEXT: <key>col</key><integer>6</integer> 658// CHECK-NEXT: <key>file</key><integer>0</integer> 659// CHECK-NEXT: </dict> 660// CHECK-NEXT: </dict> 661// CHECK-NEXT: <dict> 662// CHECK-NEXT: <key>path</key> 663// CHECK-NEXT: <array> 664// CHECK-NEXT: <dict> 665// CHECK-NEXT: <key>kind</key><string>event</string> 666// CHECK-NEXT: <key>location</key> 667// CHECK-NEXT: <dict> 668// CHECK-NEXT: <key>line</key><integer>144</integer> 669// CHECK-NEXT: <key>col</key><integer>6</integer> 670// CHECK-NEXT: <key>file</key><integer>0</integer> 671// CHECK-NEXT: </dict> 672// CHECK-NEXT: <key>ranges</key> 673// CHECK-NEXT: <array> 674// CHECK-NEXT: <array> 675// CHECK-NEXT: <dict> 676// CHECK-NEXT: <key>line</key><integer>144</integer> 677// CHECK-NEXT: <key>col</key><integer>6</integer> 678// CHECK-NEXT: <key>file</key><integer>0</integer> 679// CHECK-NEXT: </dict> 680// CHECK-NEXT: <dict> 681// CHECK-NEXT: <key>line</key><integer>144</integer> 682// CHECK-NEXT: <key>col</key><integer>9</integer> 683// CHECK-NEXT: <key>file</key><integer>0</integer> 684// CHECK-NEXT: </dict> 685// CHECK-NEXT: </array> 686// CHECK-NEXT: <array> 687// CHECK-NEXT: <dict> 688// CHECK-NEXT: <key>line</key><integer>144</integer> 689// CHECK-NEXT: <key>col</key><integer>13</integer> 690// CHECK-NEXT: <key>file</key><integer>0</integer> 691// CHECK-NEXT: </dict> 692// CHECK-NEXT: <dict> 693// CHECK-NEXT: <key>line</key><integer>144</integer> 694// CHECK-NEXT: <key>col</key><integer>45</integer> 695// CHECK-NEXT: <key>file</key><integer>0</integer> 696// CHECK-NEXT: </dict> 697// CHECK-NEXT: </array> 698// CHECK-NEXT: </array> 699// CHECK-NEXT: <key>depth</key><integer>0</integer> 700// CHECK-NEXT: <key>extended_message</key> 701// CHECK-NEXT: <string>Value stored to 'obj4' during its initialization is never read</string> 702// CHECK-NEXT: <key>message</key> 703// CHECK-NEXT: <string>Value stored to 'obj4' during its initialization is never read</string> 704// CHECK-NEXT: </dict> 705// CHECK-NEXT: </array> 706// CHECK-NEXT: <key>description</key><string>Value stored to 'obj4' during its initialization is never read</string> 707// CHECK-NEXT: <key>category</key><string>Dead store</string> 708// CHECK-NEXT: <key>type</key><string>Dead initialization</string> 709// CHECK-NEXT: <key>check_name</key><string>deadcode.DeadStores</string> 710// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 711// CHECK-NEXT: <key>issue_context</key><string>from_cf</string> 712// CHECK-NEXT: <key>issue_hash</key><string>6</string> 713// CHECK-NEXT: <key>location</key> 714// CHECK-NEXT: <dict> 715// CHECK-NEXT: <key>line</key><integer>144</integer> 716// CHECK-NEXT: <key>col</key><integer>6</integer> 717// CHECK-NEXT: <key>file</key><integer>0</integer> 718// CHECK-NEXT: </dict> 719// CHECK-NEXT: </dict> 720// CHECK-NEXT: <dict> 721// CHECK-NEXT: <key>path</key> 722// CHECK-NEXT: <array> 723// CHECK-NEXT: <dict> 724// CHECK-NEXT: <key>kind</key><string>event</string> 725// CHECK-NEXT: <key>location</key> 726// CHECK-NEXT: <dict> 727// CHECK-NEXT: <key>line</key><integer>145</integer> 728// CHECK-NEXT: <key>col</key><integer>6</integer> 729// CHECK-NEXT: <key>file</key><integer>0</integer> 730// CHECK-NEXT: </dict> 731// CHECK-NEXT: <key>ranges</key> 732// CHECK-NEXT: <array> 733// CHECK-NEXT: <array> 734// CHECK-NEXT: <dict> 735// CHECK-NEXT: <key>line</key><integer>145</integer> 736// CHECK-NEXT: <key>col</key><integer>6</integer> 737// CHECK-NEXT: <key>file</key><integer>0</integer> 738// CHECK-NEXT: </dict> 739// CHECK-NEXT: <dict> 740// CHECK-NEXT: <key>line</key><integer>145</integer> 741// CHECK-NEXT: <key>col</key><integer>9</integer> 742// CHECK-NEXT: <key>file</key><integer>0</integer> 743// CHECK-NEXT: </dict> 744// CHECK-NEXT: </array> 745// CHECK-NEXT: <array> 746// CHECK-NEXT: <dict> 747// CHECK-NEXT: <key>line</key><integer>145</integer> 748// CHECK-NEXT: <key>col</key><integer>13</integer> 749// CHECK-NEXT: <key>file</key><integer>0</integer> 750// CHECK-NEXT: </dict> 751// CHECK-NEXT: <dict> 752// CHECK-NEXT: <key>line</key><integer>145</integer> 753// CHECK-NEXT: <key>col</key><integer>44</integer> 754// CHECK-NEXT: <key>file</key><integer>0</integer> 755// CHECK-NEXT: </dict> 756// CHECK-NEXT: </array> 757// CHECK-NEXT: </array> 758// CHECK-NEXT: <key>depth</key><integer>0</integer> 759// CHECK-NEXT: <key>extended_message</key> 760// CHECK-NEXT: <string>Value stored to 'obj5' during its initialization is never read</string> 761// CHECK-NEXT: <key>message</key> 762// CHECK-NEXT: <string>Value stored to 'obj5' during its initialization is never read</string> 763// CHECK-NEXT: </dict> 764// CHECK-NEXT: </array> 765// CHECK-NEXT: <key>description</key><string>Value stored to 'obj5' during its initialization is never read</string> 766// CHECK-NEXT: <key>category</key><string>Dead store</string> 767// CHECK-NEXT: <key>type</key><string>Dead initialization</string> 768// CHECK-NEXT: <key>check_name</key><string>deadcode.DeadStores</string> 769// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 770// CHECK-NEXT: <key>issue_context</key><string>from_cf</string> 771// CHECK-NEXT: <key>issue_hash</key><string>7</string> 772// CHECK-NEXT: <key>location</key> 773// CHECK-NEXT: <dict> 774// CHECK-NEXT: <key>line</key><integer>145</integer> 775// CHECK-NEXT: <key>col</key><integer>6</integer> 776// CHECK-NEXT: <key>file</key><integer>0</integer> 777// CHECK-NEXT: </dict> 778// CHECK-NEXT: </dict> 779// CHECK-NEXT: <dict> 780// CHECK-NEXT: <key>path</key> 781// CHECK-NEXT: <array> 782// CHECK-NEXT: <dict> 783// CHECK-NEXT: <key>kind</key><string>event</string> 784// CHECK-NEXT: <key>location</key> 785// CHECK-NEXT: <dict> 786// CHECK-NEXT: <key>line</key><integer>146</integer> 787// CHECK-NEXT: <key>col</key><integer>6</integer> 788// CHECK-NEXT: <key>file</key><integer>0</integer> 789// CHECK-NEXT: </dict> 790// CHECK-NEXT: <key>ranges</key> 791// CHECK-NEXT: <array> 792// CHECK-NEXT: <array> 793// CHECK-NEXT: <dict> 794// CHECK-NEXT: <key>line</key><integer>146</integer> 795// CHECK-NEXT: <key>col</key><integer>6</integer> 796// CHECK-NEXT: <key>file</key><integer>0</integer> 797// CHECK-NEXT: </dict> 798// CHECK-NEXT: <dict> 799// CHECK-NEXT: <key>line</key><integer>146</integer> 800// CHECK-NEXT: <key>col</key><integer>9</integer> 801// CHECK-NEXT: <key>file</key><integer>0</integer> 802// CHECK-NEXT: </dict> 803// CHECK-NEXT: </array> 804// CHECK-NEXT: <array> 805// CHECK-NEXT: <dict> 806// CHECK-NEXT: <key>line</key><integer>146</integer> 807// CHECK-NEXT: <key>col</key><integer>13</integer> 808// CHECK-NEXT: <key>file</key><integer>0</integer> 809// CHECK-NEXT: </dict> 810// CHECK-NEXT: <dict> 811// CHECK-NEXT: <key>line</key><integer>146</integer> 812// CHECK-NEXT: <key>col</key><integer>48</integer> 813// CHECK-NEXT: <key>file</key><integer>0</integer> 814// CHECK-NEXT: </dict> 815// CHECK-NEXT: </array> 816// CHECK-NEXT: </array> 817// CHECK-NEXT: <key>depth</key><integer>0</integer> 818// CHECK-NEXT: <key>extended_message</key> 819// CHECK-NEXT: <string>Value stored to 'obj6' during its initialization is never read</string> 820// CHECK-NEXT: <key>message</key> 821// CHECK-NEXT: <string>Value stored to 'obj6' during its initialization is never read</string> 822// CHECK-NEXT: </dict> 823// CHECK-NEXT: </array> 824// CHECK-NEXT: <key>description</key><string>Value stored to 'obj6' during its initialization is never read</string> 825// CHECK-NEXT: <key>category</key><string>Dead store</string> 826// CHECK-NEXT: <key>type</key><string>Dead initialization</string> 827// CHECK-NEXT: <key>check_name</key><string>deadcode.DeadStores</string> 828// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 829// CHECK-NEXT: <key>issue_context</key><string>from_cf</string> 830// CHECK-NEXT: <key>issue_hash</key><string>8</string> 831// CHECK-NEXT: <key>location</key> 832// CHECK-NEXT: <dict> 833// CHECK-NEXT: <key>line</key><integer>146</integer> 834// CHECK-NEXT: <key>col</key><integer>6</integer> 835// CHECK-NEXT: <key>file</key><integer>0</integer> 836// CHECK-NEXT: </dict> 837// CHECK-NEXT: </dict> 838// CHECK-NEXT: <dict> 839// CHECK-NEXT: <key>path</key> 840// CHECK-NEXT: <array> 841// CHECK-NEXT: <dict> 842// CHECK-NEXT: <key>kind</key><string>control</string> 843// CHECK-NEXT: <key>edges</key> 844// CHECK-NEXT: <array> 845// CHECK-NEXT: <dict> 846// CHECK-NEXT: <key>start</key> 847// CHECK-NEXT: <array> 848// CHECK-NEXT: <dict> 849// CHECK-NEXT: <key>line</key><integer>139</integer> 850// CHECK-NEXT: <key>col</key><integer>3</integer> 851// CHECK-NEXT: <key>file</key><integer>0</integer> 852// CHECK-NEXT: </dict> 853// CHECK-NEXT: <dict> 854// CHECK-NEXT: <key>line</key><integer>139</integer> 855// CHECK-NEXT: <key>col</key><integer>4</integer> 856// CHECK-NEXT: <key>file</key><integer>0</integer> 857// CHECK-NEXT: </dict> 858// CHECK-NEXT: </array> 859// CHECK-NEXT: <key>end</key> 860// CHECK-NEXT: <array> 861// CHECK-NEXT: <dict> 862// CHECK-NEXT: <key>line</key><integer>145</integer> 863// CHECK-NEXT: <key>col</key><integer>3</integer> 864// CHECK-NEXT: <key>file</key><integer>0</integer> 865// CHECK-NEXT: </dict> 866// CHECK-NEXT: <dict> 867// CHECK-NEXT: <key>line</key><integer>145</integer> 868// CHECK-NEXT: <key>col</key><integer>4</integer> 869// CHECK-NEXT: <key>file</key><integer>0</integer> 870// CHECK-NEXT: </dict> 871// CHECK-NEXT: </array> 872// CHECK-NEXT: </dict> 873// CHECK-NEXT: </array> 874// CHECK-NEXT: </dict> 875// CHECK-NEXT: <dict> 876// CHECK-NEXT: <key>kind</key><string>event</string> 877// CHECK-NEXT: <key>location</key> 878// CHECK-NEXT: <dict> 879// CHECK-NEXT: <key>line</key><integer>145</integer> 880// CHECK-NEXT: <key>col</key><integer>26</integer> 881// CHECK-NEXT: <key>file</key><integer>0</integer> 882// CHECK-NEXT: </dict> 883// CHECK-NEXT: <key>ranges</key> 884// CHECK-NEXT: <array> 885// CHECK-NEXT: <array> 886// CHECK-NEXT: <dict> 887// CHECK-NEXT: <key>line</key><integer>145</integer> 888// CHECK-NEXT: <key>col</key><integer>26</integer> 889// CHECK-NEXT: <key>file</key><integer>0</integer> 890// CHECK-NEXT: </dict> 891// CHECK-NEXT: <dict> 892// CHECK-NEXT: <key>line</key><integer>145</integer> 893// CHECK-NEXT: <key>col</key><integer>44</integer> 894// CHECK-NEXT: <key>file</key><integer>0</integer> 895// CHECK-NEXT: </dict> 896// CHECK-NEXT: </array> 897// CHECK-NEXT: </array> 898// CHECK-NEXT: <key>depth</key><integer>0</integer> 899// CHECK-NEXT: <key>extended_message</key> 900// CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count</string> 901// CHECK-NEXT: <key>message</key> 902// CHECK-NEXT: <string>Call to function 'CFCreateSomething' returns a Core Foundation object with a +1 retain count</string> 903// CHECK-NEXT: </dict> 904// CHECK-NEXT: <dict> 905// CHECK-NEXT: <key>kind</key><string>control</string> 906// CHECK-NEXT: <key>edges</key> 907// CHECK-NEXT: <array> 908// CHECK-NEXT: <dict> 909// CHECK-NEXT: <key>start</key> 910// CHECK-NEXT: <array> 911// CHECK-NEXT: <dict> 912// CHECK-NEXT: <key>line</key><integer>145</integer> 913// CHECK-NEXT: <key>col</key><integer>3</integer> 914// CHECK-NEXT: <key>file</key><integer>0</integer> 915// CHECK-NEXT: </dict> 916// CHECK-NEXT: <dict> 917// CHECK-NEXT: <key>line</key><integer>145</integer> 918// CHECK-NEXT: <key>col</key><integer>4</integer> 919// CHECK-NEXT: <key>file</key><integer>0</integer> 920// CHECK-NEXT: </dict> 921// CHECK-NEXT: </array> 922// CHECK-NEXT: <key>end</key> 923// CHECK-NEXT: <array> 924// CHECK-NEXT: <dict> 925// CHECK-NEXT: <key>line</key><integer>146</integer> 926// CHECK-NEXT: <key>col</key><integer>3</integer> 927// CHECK-NEXT: <key>file</key><integer>0</integer> 928// CHECK-NEXT: </dict> 929// CHECK-NEXT: <dict> 930// CHECK-NEXT: <key>line</key><integer>146</integer> 931// CHECK-NEXT: <key>col</key><integer>4</integer> 932// CHECK-NEXT: <key>file</key><integer>0</integer> 933// CHECK-NEXT: </dict> 934// CHECK-NEXT: </array> 935// CHECK-NEXT: </dict> 936// CHECK-NEXT: </array> 937// CHECK-NEXT: </dict> 938// CHECK-NEXT: <dict> 939// CHECK-NEXT: <key>kind</key><string>control</string> 940// CHECK-NEXT: <key>edges</key> 941// CHECK-NEXT: <array> 942// CHECK-NEXT: <dict> 943// CHECK-NEXT: <key>start</key> 944// CHECK-NEXT: <array> 945// CHECK-NEXT: <dict> 946// CHECK-NEXT: <key>line</key><integer>146</integer> 947// CHECK-NEXT: <key>col</key><integer>3</integer> 948// CHECK-NEXT: <key>file</key><integer>0</integer> 949// CHECK-NEXT: </dict> 950// CHECK-NEXT: <dict> 951// CHECK-NEXT: <key>line</key><integer>146</integer> 952// CHECK-NEXT: <key>col</key><integer>4</integer> 953// CHECK-NEXT: <key>file</key><integer>0</integer> 954// CHECK-NEXT: </dict> 955// CHECK-NEXT: </array> 956// CHECK-NEXT: <key>end</key> 957// CHECK-NEXT: <array> 958// CHECK-NEXT: <dict> 959// CHECK-NEXT: <key>line</key><integer>146</integer> 960// CHECK-NEXT: <key>col</key><integer>33</integer> 961// CHECK-NEXT: <key>file</key><integer>0</integer> 962// CHECK-NEXT: </dict> 963// CHECK-NEXT: <dict> 964// CHECK-NEXT: <key>line</key><integer>146</integer> 965// CHECK-NEXT: <key>col</key><integer>46</integer> 966// CHECK-NEXT: <key>file</key><integer>0</integer> 967// CHECK-NEXT: </dict> 968// CHECK-NEXT: </array> 969// CHECK-NEXT: </dict> 970// CHECK-NEXT: </array> 971// CHECK-NEXT: </dict> 972// CHECK-NEXT: <dict> 973// CHECK-NEXT: <key>kind</key><string>event</string> 974// CHECK-NEXT: <key>location</key> 975// CHECK-NEXT: <dict> 976// CHECK-NEXT: <key>line</key><integer>146</integer> 977// CHECK-NEXT: <key>col</key><integer>33</integer> 978// CHECK-NEXT: <key>file</key><integer>0</integer> 979// CHECK-NEXT: </dict> 980// CHECK-NEXT: <key>ranges</key> 981// CHECK-NEXT: <array> 982// CHECK-NEXT: <array> 983// CHECK-NEXT: <dict> 984// CHECK-NEXT: <key>line</key><integer>146</integer> 985// CHECK-NEXT: <key>col</key><integer>33</integer> 986// CHECK-NEXT: <key>file</key><integer>0</integer> 987// CHECK-NEXT: </dict> 988// CHECK-NEXT: <dict> 989// CHECK-NEXT: <key>line</key><integer>146</integer> 990// CHECK-NEXT: <key>col</key><integer>48</integer> 991// CHECK-NEXT: <key>file</key><integer>0</integer> 992// CHECK-NEXT: </dict> 993// CHECK-NEXT: </array> 994// CHECK-NEXT: </array> 995// CHECK-NEXT: <key>depth</key><integer>0</integer> 996// CHECK-NEXT: <key>extended_message</key> 997// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'obj5' is not referenced later in this execution path and has a retain count of +1</string> 998// CHECK-NEXT: <key>message</key> 999// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'obj5' is not referenced later in this execution path and has a retain count of +1</string> 1000// CHECK-NEXT: </dict> 1001// CHECK-NEXT: </array> 1002// CHECK-NEXT: <key>description</key><string>Potential leak of an object stored into 'obj5'</string> 1003// CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 1004// CHECK-NEXT: <key>type</key><string>Leak</string> 1005// CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 1006// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1007// CHECK-NEXT: <key>issue_context</key><string>from_cf</string> 1008// CHECK-NEXT: <key>issue_hash</key><string>7</string> 1009// CHECK-NEXT: <key>location</key> 1010// CHECK-NEXT: <dict> 1011// CHECK-NEXT: <key>line</key><integer>146</integer> 1012// CHECK-NEXT: <key>col</key><integer>33</integer> 1013// CHECK-NEXT: <key>file</key><integer>0</integer> 1014// CHECK-NEXT: </dict> 1015// CHECK-NEXT: </dict> 1016// CHECK-NEXT: <dict> 1017// CHECK-NEXT: <key>path</key> 1018// CHECK-NEXT: <array> 1019// CHECK-NEXT: <dict> 1020// CHECK-NEXT: <key>kind</key><string>control</string> 1021// CHECK-NEXT: <key>edges</key> 1022// CHECK-NEXT: <array> 1023// CHECK-NEXT: <dict> 1024// CHECK-NEXT: <key>start</key> 1025// CHECK-NEXT: <array> 1026// CHECK-NEXT: <dict> 1027// CHECK-NEXT: <key>line</key><integer>139</integer> 1028// CHECK-NEXT: <key>col</key><integer>3</integer> 1029// CHECK-NEXT: <key>file</key><integer>0</integer> 1030// CHECK-NEXT: </dict> 1031// CHECK-NEXT: <dict> 1032// CHECK-NEXT: <key>line</key><integer>139</integer> 1033// CHECK-NEXT: <key>col</key><integer>4</integer> 1034// CHECK-NEXT: <key>file</key><integer>0</integer> 1035// CHECK-NEXT: </dict> 1036// CHECK-NEXT: </array> 1037// CHECK-NEXT: <key>end</key> 1038// CHECK-NEXT: <array> 1039// CHECK-NEXT: <dict> 1040// CHECK-NEXT: <key>line</key><integer>146</integer> 1041// CHECK-NEXT: <key>col</key><integer>3</integer> 1042// CHECK-NEXT: <key>file</key><integer>0</integer> 1043// CHECK-NEXT: </dict> 1044// CHECK-NEXT: <dict> 1045// CHECK-NEXT: <key>line</key><integer>146</integer> 1046// CHECK-NEXT: <key>col</key><integer>4</integer> 1047// CHECK-NEXT: <key>file</key><integer>0</integer> 1048// CHECK-NEXT: </dict> 1049// CHECK-NEXT: </array> 1050// CHECK-NEXT: </dict> 1051// CHECK-NEXT: </array> 1052// CHECK-NEXT: </dict> 1053// CHECK-NEXT: <dict> 1054// CHECK-NEXT: <key>kind</key><string>event</string> 1055// CHECK-NEXT: <key>location</key> 1056// CHECK-NEXT: <dict> 1057// CHECK-NEXT: <key>line</key><integer>146</integer> 1058// CHECK-NEXT: <key>col</key><integer>33</integer> 1059// CHECK-NEXT: <key>file</key><integer>0</integer> 1060// CHECK-NEXT: </dict> 1061// CHECK-NEXT: <key>ranges</key> 1062// CHECK-NEXT: <array> 1063// CHECK-NEXT: <array> 1064// CHECK-NEXT: <dict> 1065// CHECK-NEXT: <key>line</key><integer>146</integer> 1066// CHECK-NEXT: <key>col</key><integer>33</integer> 1067// CHECK-NEXT: <key>file</key><integer>0</integer> 1068// CHECK-NEXT: </dict> 1069// CHECK-NEXT: <dict> 1070// CHECK-NEXT: <key>line</key><integer>146</integer> 1071// CHECK-NEXT: <key>col</key><integer>48</integer> 1072// CHECK-NEXT: <key>file</key><integer>0</integer> 1073// CHECK-NEXT: </dict> 1074// CHECK-NEXT: </array> 1075// CHECK-NEXT: </array> 1076// CHECK-NEXT: <key>depth</key><integer>0</integer> 1077// CHECK-NEXT: <key>extended_message</key> 1078// CHECK-NEXT: <string>Call to function 'CFCreateString' returns a Core Foundation object with a +1 retain count</string> 1079// CHECK-NEXT: <key>message</key> 1080// CHECK-NEXT: <string>Call to function 'CFCreateString' returns a Core Foundation object with a +1 retain count</string> 1081// CHECK-NEXT: </dict> 1082// CHECK-NEXT: <dict> 1083// CHECK-NEXT: <key>kind</key><string>control</string> 1084// CHECK-NEXT: <key>edges</key> 1085// CHECK-NEXT: <array> 1086// CHECK-NEXT: <dict> 1087// CHECK-NEXT: <key>start</key> 1088// CHECK-NEXT: <array> 1089// CHECK-NEXT: <dict> 1090// CHECK-NEXT: <key>line</key><integer>146</integer> 1091// CHECK-NEXT: <key>col</key><integer>3</integer> 1092// CHECK-NEXT: <key>file</key><integer>0</integer> 1093// CHECK-NEXT: </dict> 1094// CHECK-NEXT: <dict> 1095// CHECK-NEXT: <key>line</key><integer>146</integer> 1096// CHECK-NEXT: <key>col</key><integer>4</integer> 1097// CHECK-NEXT: <key>file</key><integer>0</integer> 1098// CHECK-NEXT: </dict> 1099// CHECK-NEXT: </array> 1100// CHECK-NEXT: <key>end</key> 1101// CHECK-NEXT: <array> 1102// CHECK-NEXT: <dict> 1103// CHECK-NEXT: <key>line</key><integer>147</integer> 1104// CHECK-NEXT: <key>col</key><integer>1</integer> 1105// CHECK-NEXT: <key>file</key><integer>0</integer> 1106// CHECK-NEXT: </dict> 1107// CHECK-NEXT: <dict> 1108// CHECK-NEXT: <key>line</key><integer>147</integer> 1109// CHECK-NEXT: <key>col</key><integer>1</integer> 1110// CHECK-NEXT: <key>file</key><integer>0</integer> 1111// CHECK-NEXT: </dict> 1112// CHECK-NEXT: </array> 1113// CHECK-NEXT: </dict> 1114// CHECK-NEXT: </array> 1115// CHECK-NEXT: </dict> 1116// CHECK-NEXT: <dict> 1117// CHECK-NEXT: <key>kind</key><string>event</string> 1118// CHECK-NEXT: <key>location</key> 1119// CHECK-NEXT: <dict> 1120// CHECK-NEXT: <key>line</key><integer>147</integer> 1121// CHECK-NEXT: <key>col</key><integer>1</integer> 1122// CHECK-NEXT: <key>file</key><integer>0</integer> 1123// CHECK-NEXT: </dict> 1124// CHECK-NEXT: <key>depth</key><integer>0</integer> 1125// CHECK-NEXT: <key>extended_message</key> 1126// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'obj6' is not referenced later in this execution path and has a retain count of +1</string> 1127// CHECK-NEXT: <key>message</key> 1128// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'obj6' is not referenced later in this execution path and has a retain count of +1</string> 1129// CHECK-NEXT: </dict> 1130// CHECK-NEXT: </array> 1131// CHECK-NEXT: <key>description</key><string>Potential leak of an object stored into 'obj6'</string> 1132// CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 1133// CHECK-NEXT: <key>type</key><string>Leak</string> 1134// CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 1135// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1136// CHECK-NEXT: <key>issue_context</key><string>from_cf</string> 1137// CHECK-NEXT: <key>issue_hash</key><string>8</string> 1138// CHECK-NEXT: <key>location</key> 1139// CHECK-NEXT: <dict> 1140// CHECK-NEXT: <key>line</key><integer>147</integer> 1141// CHECK-NEXT: <key>col</key><integer>1</integer> 1142// CHECK-NEXT: <key>file</key><integer>0</integer> 1143// CHECK-NEXT: </dict> 1144// CHECK-NEXT: </dict> 1145// CHECK-NEXT: <dict> 1146// CHECK-NEXT: <key>path</key> 1147// CHECK-NEXT: <array> 1148// CHECK-NEXT: <dict> 1149// CHECK-NEXT: <key>kind</key><string>event</string> 1150// CHECK-NEXT: <key>location</key> 1151// CHECK-NEXT: <dict> 1152// CHECK-NEXT: <key>line</key><integer>150</integer> 1153// CHECK-NEXT: <key>col</key><integer>13</integer> 1154// CHECK-NEXT: <key>file</key><integer>0</integer> 1155// CHECK-NEXT: </dict> 1156// CHECK-NEXT: <key>ranges</key> 1157// CHECK-NEXT: <array> 1158// CHECK-NEXT: <array> 1159// CHECK-NEXT: <dict> 1160// CHECK-NEXT: <key>line</key><integer>150</integer> 1161// CHECK-NEXT: <key>col</key><integer>13</integer> 1162// CHECK-NEXT: <key>file</key><integer>0</integer> 1163// CHECK-NEXT: </dict> 1164// CHECK-NEXT: <dict> 1165// CHECK-NEXT: <key>line</key><integer>150</integer> 1166// CHECK-NEXT: <key>col</key><integer>15</integer> 1167// CHECK-NEXT: <key>file</key><integer>0</integer> 1168// CHECK-NEXT: </dict> 1169// CHECK-NEXT: </array> 1170// CHECK-NEXT: <array> 1171// CHECK-NEXT: <dict> 1172// CHECK-NEXT: <key>line</key><integer>150</integer> 1173// CHECK-NEXT: <key>col</key><integer>19</integer> 1174// CHECK-NEXT: <key>file</key><integer>0</integer> 1175// CHECK-NEXT: </dict> 1176// CHECK-NEXT: <dict> 1177// CHECK-NEXT: <key>line</key><integer>150</integer> 1178// CHECK-NEXT: <key>col</key><integer>64</integer> 1179// CHECK-NEXT: <key>file</key><integer>0</integer> 1180// CHECK-NEXT: </dict> 1181// CHECK-NEXT: </array> 1182// CHECK-NEXT: </array> 1183// CHECK-NEXT: <key>depth</key><integer>0</integer> 1184// CHECK-NEXT: <key>extended_message</key> 1185// CHECK-NEXT: <string>Value stored to 'cf1' during its initialization is never read</string> 1186// CHECK-NEXT: <key>message</key> 1187// CHECK-NEXT: <string>Value stored to 'cf1' during its initialization is never read</string> 1188// CHECK-NEXT: </dict> 1189// CHECK-NEXT: </array> 1190// CHECK-NEXT: <key>description</key><string>Value stored to 'cf1' during its initialization is never read</string> 1191// CHECK-NEXT: <key>category</key><string>Dead store</string> 1192// CHECK-NEXT: <key>type</key><string>Dead initialization</string> 1193// CHECK-NEXT: <key>check_name</key><string>deadcode.DeadStores</string> 1194// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1195// CHECK-NEXT: <key>issue_context</key><string>to_cf</string> 1196// CHECK-NEXT: <key>issue_hash</key><string>1</string> 1197// CHECK-NEXT: <key>location</key> 1198// CHECK-NEXT: <dict> 1199// CHECK-NEXT: <key>line</key><integer>150</integer> 1200// CHECK-NEXT: <key>col</key><integer>13</integer> 1201// CHECK-NEXT: <key>file</key><integer>0</integer> 1202// CHECK-NEXT: </dict> 1203// CHECK-NEXT: </dict> 1204// CHECK-NEXT: <dict> 1205// CHECK-NEXT: <key>path</key> 1206// CHECK-NEXT: <array> 1207// CHECK-NEXT: <dict> 1208// CHECK-NEXT: <key>kind</key><string>event</string> 1209// CHECK-NEXT: <key>location</key> 1210// CHECK-NEXT: <dict> 1211// CHECK-NEXT: <key>line</key><integer>151</integer> 1212// CHECK-NEXT: <key>col</key><integer>15</integer> 1213// CHECK-NEXT: <key>file</key><integer>0</integer> 1214// CHECK-NEXT: </dict> 1215// CHECK-NEXT: <key>ranges</key> 1216// CHECK-NEXT: <array> 1217// CHECK-NEXT: <array> 1218// CHECK-NEXT: <dict> 1219// CHECK-NEXT: <key>line</key><integer>151</integer> 1220// CHECK-NEXT: <key>col</key><integer>15</integer> 1221// CHECK-NEXT: <key>file</key><integer>0</integer> 1222// CHECK-NEXT: </dict> 1223// CHECK-NEXT: <dict> 1224// CHECK-NEXT: <key>line</key><integer>151</integer> 1225// CHECK-NEXT: <key>col</key><integer>17</integer> 1226// CHECK-NEXT: <key>file</key><integer>0</integer> 1227// CHECK-NEXT: </dict> 1228// CHECK-NEXT: </array> 1229// CHECK-NEXT: <array> 1230// CHECK-NEXT: <dict> 1231// CHECK-NEXT: <key>line</key><integer>151</integer> 1232// CHECK-NEXT: <key>col</key><integer>21</integer> 1233// CHECK-NEXT: <key>file</key><integer>0</integer> 1234// CHECK-NEXT: </dict> 1235// CHECK-NEXT: <dict> 1236// CHECK-NEXT: <key>line</key><integer>151</integer> 1237// CHECK-NEXT: <key>col</key><integer>67</integer> 1238// CHECK-NEXT: <key>file</key><integer>0</integer> 1239// CHECK-NEXT: </dict> 1240// CHECK-NEXT: </array> 1241// CHECK-NEXT: </array> 1242// CHECK-NEXT: <key>depth</key><integer>0</integer> 1243// CHECK-NEXT: <key>extended_message</key> 1244// CHECK-NEXT: <string>Value stored to 'cf2' during its initialization is never read</string> 1245// CHECK-NEXT: <key>message</key> 1246// CHECK-NEXT: <string>Value stored to 'cf2' during its initialization is never read</string> 1247// CHECK-NEXT: </dict> 1248// CHECK-NEXT: </array> 1249// CHECK-NEXT: <key>description</key><string>Value stored to 'cf2' during its initialization is never read</string> 1250// CHECK-NEXT: <key>category</key><string>Dead store</string> 1251// CHECK-NEXT: <key>type</key><string>Dead initialization</string> 1252// CHECK-NEXT: <key>check_name</key><string>deadcode.DeadStores</string> 1253// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1254// CHECK-NEXT: <key>issue_context</key><string>to_cf</string> 1255// CHECK-NEXT: <key>issue_hash</key><string>2</string> 1256// CHECK-NEXT: <key>location</key> 1257// CHECK-NEXT: <dict> 1258// CHECK-NEXT: <key>line</key><integer>151</integer> 1259// CHECK-NEXT: <key>col</key><integer>15</integer> 1260// CHECK-NEXT: <key>file</key><integer>0</integer> 1261// CHECK-NEXT: </dict> 1262// CHECK-NEXT: </dict> 1263// CHECK-NEXT: <dict> 1264// CHECK-NEXT: <key>path</key> 1265// CHECK-NEXT: <array> 1266// CHECK-NEXT: <dict> 1267// CHECK-NEXT: <key>kind</key><string>event</string> 1268// CHECK-NEXT: <key>location</key> 1269// CHECK-NEXT: <dict> 1270// CHECK-NEXT: <key>line</key><integer>152</integer> 1271// CHECK-NEXT: <key>col</key><integer>13</integer> 1272// CHECK-NEXT: <key>file</key><integer>0</integer> 1273// CHECK-NEXT: </dict> 1274// CHECK-NEXT: <key>ranges</key> 1275// CHECK-NEXT: <array> 1276// CHECK-NEXT: <array> 1277// CHECK-NEXT: <dict> 1278// CHECK-NEXT: <key>line</key><integer>152</integer> 1279// CHECK-NEXT: <key>col</key><integer>13</integer> 1280// CHECK-NEXT: <key>file</key><integer>0</integer> 1281// CHECK-NEXT: </dict> 1282// CHECK-NEXT: <dict> 1283// CHECK-NEXT: <key>line</key><integer>152</integer> 1284// CHECK-NEXT: <key>col</key><integer>15</integer> 1285// CHECK-NEXT: <key>file</key><integer>0</integer> 1286// CHECK-NEXT: </dict> 1287// CHECK-NEXT: </array> 1288// CHECK-NEXT: <array> 1289// CHECK-NEXT: <dict> 1290// CHECK-NEXT: <key>line</key><integer>152</integer> 1291// CHECK-NEXT: <key>col</key><integer>19</integer> 1292// CHECK-NEXT: <key>file</key><integer>0</integer> 1293// CHECK-NEXT: </dict> 1294// CHECK-NEXT: <dict> 1295// CHECK-NEXT: <key>line</key><integer>152</integer> 1296// CHECK-NEXT: <key>col</key><integer>55</integer> 1297// CHECK-NEXT: <key>file</key><integer>0</integer> 1298// CHECK-NEXT: </dict> 1299// CHECK-NEXT: </array> 1300// CHECK-NEXT: </array> 1301// CHECK-NEXT: <key>depth</key><integer>0</integer> 1302// CHECK-NEXT: <key>extended_message</key> 1303// CHECK-NEXT: <string>Value stored to 'cf3' during its initialization is never read</string> 1304// CHECK-NEXT: <key>message</key> 1305// CHECK-NEXT: <string>Value stored to 'cf3' during its initialization is never read</string> 1306// CHECK-NEXT: </dict> 1307// CHECK-NEXT: </array> 1308// CHECK-NEXT: <key>description</key><string>Value stored to 'cf3' during its initialization is never read</string> 1309// CHECK-NEXT: <key>category</key><string>Dead store</string> 1310// CHECK-NEXT: <key>type</key><string>Dead initialization</string> 1311// CHECK-NEXT: <key>check_name</key><string>deadcode.DeadStores</string> 1312// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1313// CHECK-NEXT: <key>issue_context</key><string>to_cf</string> 1314// CHECK-NEXT: <key>issue_hash</key><string>3</string> 1315// CHECK-NEXT: <key>location</key> 1316// CHECK-NEXT: <dict> 1317// CHECK-NEXT: <key>line</key><integer>152</integer> 1318// CHECK-NEXT: <key>col</key><integer>13</integer> 1319// CHECK-NEXT: <key>file</key><integer>0</integer> 1320// CHECK-NEXT: </dict> 1321// CHECK-NEXT: </dict> 1322// CHECK-NEXT: <dict> 1323// CHECK-NEXT: <key>path</key> 1324// CHECK-NEXT: <array> 1325// CHECK-NEXT: <dict> 1326// CHECK-NEXT: <key>kind</key><string>event</string> 1327// CHECK-NEXT: <key>location</key> 1328// CHECK-NEXT: <dict> 1329// CHECK-NEXT: <key>line</key><integer>153</integer> 1330// CHECK-NEXT: <key>col</key><integer>15</integer> 1331// CHECK-NEXT: <key>file</key><integer>0</integer> 1332// CHECK-NEXT: </dict> 1333// CHECK-NEXT: <key>ranges</key> 1334// CHECK-NEXT: <array> 1335// CHECK-NEXT: <array> 1336// CHECK-NEXT: <dict> 1337// CHECK-NEXT: <key>line</key><integer>153</integer> 1338// CHECK-NEXT: <key>col</key><integer>15</integer> 1339// CHECK-NEXT: <key>file</key><integer>0</integer> 1340// CHECK-NEXT: </dict> 1341// CHECK-NEXT: <dict> 1342// CHECK-NEXT: <key>line</key><integer>153</integer> 1343// CHECK-NEXT: <key>col</key><integer>17</integer> 1344// CHECK-NEXT: <key>file</key><integer>0</integer> 1345// CHECK-NEXT: </dict> 1346// CHECK-NEXT: </array> 1347// CHECK-NEXT: <array> 1348// CHECK-NEXT: <dict> 1349// CHECK-NEXT: <key>line</key><integer>153</integer> 1350// CHECK-NEXT: <key>col</key><integer>21</integer> 1351// CHECK-NEXT: <key>file</key><integer>0</integer> 1352// CHECK-NEXT: </dict> 1353// CHECK-NEXT: <dict> 1354// CHECK-NEXT: <key>line</key><integer>153</integer> 1355// CHECK-NEXT: <key>col</key><integer>58</integer> 1356// CHECK-NEXT: <key>file</key><integer>0</integer> 1357// CHECK-NEXT: </dict> 1358// CHECK-NEXT: </array> 1359// CHECK-NEXT: </array> 1360// CHECK-NEXT: <key>depth</key><integer>0</integer> 1361// CHECK-NEXT: <key>extended_message</key> 1362// CHECK-NEXT: <string>Value stored to 'cf4' during its initialization is never read</string> 1363// CHECK-NEXT: <key>message</key> 1364// CHECK-NEXT: <string>Value stored to 'cf4' during its initialization is never read</string> 1365// CHECK-NEXT: </dict> 1366// CHECK-NEXT: </array> 1367// CHECK-NEXT: <key>description</key><string>Value stored to 'cf4' during its initialization is never read</string> 1368// CHECK-NEXT: <key>category</key><string>Dead store</string> 1369// CHECK-NEXT: <key>type</key><string>Dead initialization</string> 1370// CHECK-NEXT: <key>check_name</key><string>deadcode.DeadStores</string> 1371// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1372// CHECK-NEXT: <key>issue_context</key><string>to_cf</string> 1373// CHECK-NEXT: <key>issue_hash</key><string>4</string> 1374// CHECK-NEXT: <key>location</key> 1375// CHECK-NEXT: <dict> 1376// CHECK-NEXT: <key>line</key><integer>153</integer> 1377// CHECK-NEXT: <key>col</key><integer>15</integer> 1378// CHECK-NEXT: <key>file</key><integer>0</integer> 1379// CHECK-NEXT: </dict> 1380// CHECK-NEXT: </dict> 1381// CHECK-NEXT: <dict> 1382// CHECK-NEXT: <key>path</key> 1383// CHECK-NEXT: <array> 1384// CHECK-NEXT: <dict> 1385// CHECK-NEXT: <key>kind</key><string>control</string> 1386// CHECK-NEXT: <key>edges</key> 1387// CHECK-NEXT: <array> 1388// CHECK-NEXT: <dict> 1389// CHECK-NEXT: <key>start</key> 1390// CHECK-NEXT: <array> 1391// CHECK-NEXT: <dict> 1392// CHECK-NEXT: <key>line</key><integer>164</integer> 1393// CHECK-NEXT: <key>col</key><integer>3</integer> 1394// CHECK-NEXT: <key>file</key><integer>0</integer> 1395// CHECK-NEXT: </dict> 1396// CHECK-NEXT: <dict> 1397// CHECK-NEXT: <key>line</key><integer>164</integer> 1398// CHECK-NEXT: <key>col</key><integer>16</integer> 1399// CHECK-NEXT: <key>file</key><integer>0</integer> 1400// CHECK-NEXT: </dict> 1401// CHECK-NEXT: </array> 1402// CHECK-NEXT: <key>end</key> 1403// CHECK-NEXT: <array> 1404// CHECK-NEXT: <dict> 1405// CHECK-NEXT: <key>line</key><integer>165</integer> 1406// CHECK-NEXT: <key>col</key><integer>3</integer> 1407// CHECK-NEXT: <key>file</key><integer>0</integer> 1408// CHECK-NEXT: </dict> 1409// CHECK-NEXT: <dict> 1410// CHECK-NEXT: <key>line</key><integer>165</integer> 1411// CHECK-NEXT: <key>col</key><integer>11</integer> 1412// CHECK-NEXT: <key>file</key><integer>0</integer> 1413// CHECK-NEXT: </dict> 1414// CHECK-NEXT: </array> 1415// CHECK-NEXT: </dict> 1416// CHECK-NEXT: </array> 1417// CHECK-NEXT: </dict> 1418// CHECK-NEXT: <dict> 1419// CHECK-NEXT: <key>kind</key><string>event</string> 1420// CHECK-NEXT: <key>location</key> 1421// CHECK-NEXT: <dict> 1422// CHECK-NEXT: <key>line</key><integer>165</integer> 1423// CHECK-NEXT: <key>col</key><integer>20</integer> 1424// CHECK-NEXT: <key>file</key><integer>0</integer> 1425// CHECK-NEXT: </dict> 1426// CHECK-NEXT: <key>ranges</key> 1427// CHECK-NEXT: <array> 1428// CHECK-NEXT: <array> 1429// CHECK-NEXT: <dict> 1430// CHECK-NEXT: <key>line</key><integer>165</integer> 1431// CHECK-NEXT: <key>col</key><integer>20</integer> 1432// CHECK-NEXT: <key>file</key><integer>0</integer> 1433// CHECK-NEXT: </dict> 1434// CHECK-NEXT: <dict> 1435// CHECK-NEXT: <key>line</key><integer>165</integer> 1436// CHECK-NEXT: <key>col</key><integer>37</integer> 1437// CHECK-NEXT: <key>file</key><integer>0</integer> 1438// CHECK-NEXT: </dict> 1439// CHECK-NEXT: </array> 1440// CHECK-NEXT: </array> 1441// CHECK-NEXT: <key>depth</key><integer>0</integer> 1442// CHECK-NEXT: <key>extended_message</key> 1443// CHECK-NEXT: <string>Call to function 'CFDateCreate' returns a Core Foundation object with a +1 retain count</string> 1444// CHECK-NEXT: <key>message</key> 1445// CHECK-NEXT: <string>Call to function 'CFDateCreate' returns a Core Foundation object with a +1 retain count</string> 1446// CHECK-NEXT: </dict> 1447// CHECK-NEXT: <dict> 1448// CHECK-NEXT: <key>kind</key><string>control</string> 1449// CHECK-NEXT: <key>edges</key> 1450// CHECK-NEXT: <array> 1451// CHECK-NEXT: <dict> 1452// CHECK-NEXT: <key>start</key> 1453// CHECK-NEXT: <array> 1454// CHECK-NEXT: <dict> 1455// CHECK-NEXT: <key>line</key><integer>165</integer> 1456// CHECK-NEXT: <key>col</key><integer>3</integer> 1457// CHECK-NEXT: <key>file</key><integer>0</integer> 1458// CHECK-NEXT: </dict> 1459// CHECK-NEXT: <dict> 1460// CHECK-NEXT: <key>line</key><integer>165</integer> 1461// CHECK-NEXT: <key>col</key><integer>11</integer> 1462// CHECK-NEXT: <key>file</key><integer>0</integer> 1463// CHECK-NEXT: </dict> 1464// CHECK-NEXT: </array> 1465// CHECK-NEXT: <key>end</key> 1466// CHECK-NEXT: <array> 1467// CHECK-NEXT: <dict> 1468// CHECK-NEXT: <key>line</key><integer>166</integer> 1469// CHECK-NEXT: <key>col</key><integer>3</integer> 1470// CHECK-NEXT: <key>file</key><integer>0</integer> 1471// CHECK-NEXT: </dict> 1472// CHECK-NEXT: <dict> 1473// CHECK-NEXT: <key>line</key><integer>166</integer> 1474// CHECK-NEXT: <key>col</key><integer>4</integer> 1475// CHECK-NEXT: <key>file</key><integer>0</integer> 1476// CHECK-NEXT: </dict> 1477// CHECK-NEXT: </array> 1478// CHECK-NEXT: </dict> 1479// CHECK-NEXT: </array> 1480// CHECK-NEXT: </dict> 1481// CHECK-NEXT: <dict> 1482// CHECK-NEXT: <key>kind</key><string>event</string> 1483// CHECK-NEXT: <key>location</key> 1484// CHECK-NEXT: <dict> 1485// CHECK-NEXT: <key>line</key><integer>166</integer> 1486// CHECK-NEXT: <key>col</key><integer>3</integer> 1487// CHECK-NEXT: <key>file</key><integer>0</integer> 1488// CHECK-NEXT: </dict> 1489// CHECK-NEXT: <key>ranges</key> 1490// CHECK-NEXT: <array> 1491// CHECK-NEXT: <array> 1492// CHECK-NEXT: <dict> 1493// CHECK-NEXT: <key>line</key><integer>166</integer> 1494// CHECK-NEXT: <key>col</key><integer>3</integer> 1495// CHECK-NEXT: <key>file</key><integer>0</integer> 1496// CHECK-NEXT: </dict> 1497// CHECK-NEXT: <dict> 1498// CHECK-NEXT: <key>line</key><integer>166</integer> 1499// CHECK-NEXT: <key>col</key><integer>6</integer> 1500// CHECK-NEXT: <key>file</key><integer>0</integer> 1501// CHECK-NEXT: </dict> 1502// CHECK-NEXT: </array> 1503// CHECK-NEXT: </array> 1504// CHECK-NEXT: <key>depth</key><integer>0</integer> 1505// CHECK-NEXT: <key>extended_message</key> 1506// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'date' is not referenced later in this execution path and has a retain count of +1</string> 1507// CHECK-NEXT: <key>message</key> 1508// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'date' is not referenced later in this execution path and has a retain count of +1</string> 1509// CHECK-NEXT: </dict> 1510// CHECK-NEXT: </array> 1511// CHECK-NEXT: <key>description</key><string>Potential leak of an object stored into 'date'</string> 1512// CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 1513// CHECK-NEXT: <key>type</key><string>Leak</string> 1514// CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 1515// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1516// CHECK-NEXT: <key>issue_context</key><string>test_objc_unretainedObject</string> 1517// CHECK-NEXT: <key>issue_hash</key><string>2</string> 1518// CHECK-NEXT: <key>location</key> 1519// CHECK-NEXT: <dict> 1520// CHECK-NEXT: <key>line</key><integer>166</integer> 1521// CHECK-NEXT: <key>col</key><integer>3</integer> 1522// CHECK-NEXT: <key>file</key><integer>0</integer> 1523// CHECK-NEXT: </dict> 1524// CHECK-NEXT: </dict> 1525// CHECK-NEXT: <dict> 1526// CHECK-NEXT: <key>path</key> 1527// CHECK-NEXT: <array> 1528// CHECK-NEXT: <dict> 1529// CHECK-NEXT: <key>kind</key><string>control</string> 1530// CHECK-NEXT: <key>edges</key> 1531// CHECK-NEXT: <array> 1532// CHECK-NEXT: <dict> 1533// CHECK-NEXT: <key>start</key> 1534// CHECK-NEXT: <array> 1535// CHECK-NEXT: <dict> 1536// CHECK-NEXT: <key>line</key><integer>178</integer> 1537// CHECK-NEXT: <key>col</key><integer>9</integer> 1538// CHECK-NEXT: <key>file</key><integer>0</integer> 1539// CHECK-NEXT: </dict> 1540// CHECK-NEXT: <dict> 1541// CHECK-NEXT: <key>line</key><integer>178</integer> 1542// CHECK-NEXT: <key>col</key><integer>16</integer> 1543// CHECK-NEXT: <key>file</key><integer>0</integer> 1544// CHECK-NEXT: </dict> 1545// CHECK-NEXT: </array> 1546// CHECK-NEXT: <key>end</key> 1547// CHECK-NEXT: <array> 1548// CHECK-NEXT: <dict> 1549// CHECK-NEXT: <key>line</key><integer>181</integer> 1550// CHECK-NEXT: <key>col</key><integer>9</integer> 1551// CHECK-NEXT: <key>file</key><integer>0</integer> 1552// CHECK-NEXT: </dict> 1553// CHECK-NEXT: <dict> 1554// CHECK-NEXT: <key>line</key><integer>181</integer> 1555// CHECK-NEXT: <key>col</key><integer>9</integer> 1556// CHECK-NEXT: <key>file</key><integer>0</integer> 1557// CHECK-NEXT: </dict> 1558// CHECK-NEXT: </array> 1559// CHECK-NEXT: </dict> 1560// CHECK-NEXT: </array> 1561// CHECK-NEXT: </dict> 1562// CHECK-NEXT: <dict> 1563// CHECK-NEXT: <key>kind</key><string>control</string> 1564// CHECK-NEXT: <key>edges</key> 1565// CHECK-NEXT: <array> 1566// CHECK-NEXT: <dict> 1567// CHECK-NEXT: <key>start</key> 1568// CHECK-NEXT: <array> 1569// CHECK-NEXT: <dict> 1570// CHECK-NEXT: <key>line</key><integer>181</integer> 1571// CHECK-NEXT: <key>col</key><integer>9</integer> 1572// CHECK-NEXT: <key>file</key><integer>0</integer> 1573// CHECK-NEXT: </dict> 1574// CHECK-NEXT: <dict> 1575// CHECK-NEXT: <key>line</key><integer>181</integer> 1576// CHECK-NEXT: <key>col</key><integer>9</integer> 1577// CHECK-NEXT: <key>file</key><integer>0</integer> 1578// CHECK-NEXT: </dict> 1579// CHECK-NEXT: </array> 1580// CHECK-NEXT: <key>end</key> 1581// CHECK-NEXT: <array> 1582// CHECK-NEXT: <dict> 1583// CHECK-NEXT: <key>line</key><integer>185</integer> 1584// CHECK-NEXT: <key>col</key><integer>9</integer> 1585// CHECK-NEXT: <key>file</key><integer>0</integer> 1586// CHECK-NEXT: </dict> 1587// CHECK-NEXT: <dict> 1588// CHECK-NEXT: <key>line</key><integer>185</integer> 1589// CHECK-NEXT: <key>col</key><integer>16</integer> 1590// CHECK-NEXT: <key>file</key><integer>0</integer> 1591// CHECK-NEXT: </dict> 1592// CHECK-NEXT: </array> 1593// CHECK-NEXT: </dict> 1594// CHECK-NEXT: </array> 1595// CHECK-NEXT: </dict> 1596// CHECK-NEXT: <dict> 1597// CHECK-NEXT: <key>kind</key><string>control</string> 1598// CHECK-NEXT: <key>edges</key> 1599// CHECK-NEXT: <array> 1600// CHECK-NEXT: <dict> 1601// CHECK-NEXT: <key>start</key> 1602// CHECK-NEXT: <array> 1603// CHECK-NEXT: <dict> 1604// CHECK-NEXT: <key>line</key><integer>185</integer> 1605// CHECK-NEXT: <key>col</key><integer>9</integer> 1606// CHECK-NEXT: <key>file</key><integer>0</integer> 1607// CHECK-NEXT: </dict> 1608// CHECK-NEXT: <dict> 1609// CHECK-NEXT: <key>line</key><integer>185</integer> 1610// CHECK-NEXT: <key>col</key><integer>16</integer> 1611// CHECK-NEXT: <key>file</key><integer>0</integer> 1612// CHECK-NEXT: </dict> 1613// CHECK-NEXT: </array> 1614// CHECK-NEXT: <key>end</key> 1615// CHECK-NEXT: <array> 1616// CHECK-NEXT: <dict> 1617// CHECK-NEXT: <key>line</key><integer>189</integer> 1618// CHECK-NEXT: <key>col</key><integer>9</integer> 1619// CHECK-NEXT: <key>file</key><integer>0</integer> 1620// CHECK-NEXT: </dict> 1621// CHECK-NEXT: <dict> 1622// CHECK-NEXT: <key>line</key><integer>189</integer> 1623// CHECK-NEXT: <key>col</key><integer>9</integer> 1624// CHECK-NEXT: <key>file</key><integer>0</integer> 1625// CHECK-NEXT: </dict> 1626// CHECK-NEXT: </array> 1627// CHECK-NEXT: </dict> 1628// CHECK-NEXT: </array> 1629// CHECK-NEXT: </dict> 1630// CHECK-NEXT: <dict> 1631// CHECK-NEXT: <key>kind</key><string>control</string> 1632// CHECK-NEXT: <key>edges</key> 1633// CHECK-NEXT: <array> 1634// CHECK-NEXT: <dict> 1635// CHECK-NEXT: <key>start</key> 1636// CHECK-NEXT: <array> 1637// CHECK-NEXT: <dict> 1638// CHECK-NEXT: <key>line</key><integer>189</integer> 1639// CHECK-NEXT: <key>col</key><integer>9</integer> 1640// CHECK-NEXT: <key>file</key><integer>0</integer> 1641// CHECK-NEXT: </dict> 1642// CHECK-NEXT: <dict> 1643// CHECK-NEXT: <key>line</key><integer>189</integer> 1644// CHECK-NEXT: <key>col</key><integer>9</integer> 1645// CHECK-NEXT: <key>file</key><integer>0</integer> 1646// CHECK-NEXT: </dict> 1647// CHECK-NEXT: </array> 1648// CHECK-NEXT: <key>end</key> 1649// CHECK-NEXT: <array> 1650// CHECK-NEXT: <dict> 1651// CHECK-NEXT: <key>line</key><integer>193</integer> 1652// CHECK-NEXT: <key>col</key><integer>9</integer> 1653// CHECK-NEXT: <key>file</key><integer>0</integer> 1654// CHECK-NEXT: </dict> 1655// CHECK-NEXT: <dict> 1656// CHECK-NEXT: <key>line</key><integer>193</integer> 1657// CHECK-NEXT: <key>col</key><integer>16</integer> 1658// CHECK-NEXT: <key>file</key><integer>0</integer> 1659// CHECK-NEXT: </dict> 1660// CHECK-NEXT: </array> 1661// CHECK-NEXT: </dict> 1662// CHECK-NEXT: </array> 1663// CHECK-NEXT: </dict> 1664// CHECK-NEXT: <dict> 1665// CHECK-NEXT: <key>kind</key><string>control</string> 1666// CHECK-NEXT: <key>edges</key> 1667// CHECK-NEXT: <array> 1668// CHECK-NEXT: <dict> 1669// CHECK-NEXT: <key>start</key> 1670// CHECK-NEXT: <array> 1671// CHECK-NEXT: <dict> 1672// CHECK-NEXT: <key>line</key><integer>193</integer> 1673// CHECK-NEXT: <key>col</key><integer>9</integer> 1674// CHECK-NEXT: <key>file</key><integer>0</integer> 1675// CHECK-NEXT: </dict> 1676// CHECK-NEXT: <dict> 1677// CHECK-NEXT: <key>line</key><integer>193</integer> 1678// CHECK-NEXT: <key>col</key><integer>16</integer> 1679// CHECK-NEXT: <key>file</key><integer>0</integer> 1680// CHECK-NEXT: </dict> 1681// CHECK-NEXT: </array> 1682// CHECK-NEXT: <key>end</key> 1683// CHECK-NEXT: <array> 1684// CHECK-NEXT: <dict> 1685// CHECK-NEXT: <key>line</key><integer>196</integer> 1686// CHECK-NEXT: <key>col</key><integer>9</integer> 1687// CHECK-NEXT: <key>file</key><integer>0</integer> 1688// CHECK-NEXT: </dict> 1689// CHECK-NEXT: <dict> 1690// CHECK-NEXT: <key>line</key><integer>196</integer> 1691// CHECK-NEXT: <key>col</key><integer>9</integer> 1692// CHECK-NEXT: <key>file</key><integer>0</integer> 1693// CHECK-NEXT: </dict> 1694// CHECK-NEXT: </array> 1695// CHECK-NEXT: </dict> 1696// CHECK-NEXT: </array> 1697// CHECK-NEXT: </dict> 1698// CHECK-NEXT: <dict> 1699// CHECK-NEXT: <key>kind</key><string>control</string> 1700// CHECK-NEXT: <key>edges</key> 1701// CHECK-NEXT: <array> 1702// CHECK-NEXT: <dict> 1703// CHECK-NEXT: <key>start</key> 1704// CHECK-NEXT: <array> 1705// CHECK-NEXT: <dict> 1706// CHECK-NEXT: <key>line</key><integer>196</integer> 1707// CHECK-NEXT: <key>col</key><integer>9</integer> 1708// CHECK-NEXT: <key>file</key><integer>0</integer> 1709// CHECK-NEXT: </dict> 1710// CHECK-NEXT: <dict> 1711// CHECK-NEXT: <key>line</key><integer>196</integer> 1712// CHECK-NEXT: <key>col</key><integer>9</integer> 1713// CHECK-NEXT: <key>file</key><integer>0</integer> 1714// CHECK-NEXT: </dict> 1715// CHECK-NEXT: </array> 1716// CHECK-NEXT: <key>end</key> 1717// CHECK-NEXT: <array> 1718// CHECK-NEXT: <dict> 1719// CHECK-NEXT: <key>line</key><integer>200</integer> 1720// CHECK-NEXT: <key>col</key><integer>7</integer> 1721// CHECK-NEXT: <key>file</key><integer>0</integer> 1722// CHECK-NEXT: </dict> 1723// CHECK-NEXT: <dict> 1724// CHECK-NEXT: <key>line</key><integer>200</integer> 1725// CHECK-NEXT: <key>col</key><integer>20</integer> 1726// CHECK-NEXT: <key>file</key><integer>0</integer> 1727// CHECK-NEXT: </dict> 1728// CHECK-NEXT: </array> 1729// CHECK-NEXT: </dict> 1730// CHECK-NEXT: </array> 1731// CHECK-NEXT: </dict> 1732// CHECK-NEXT: <dict> 1733// CHECK-NEXT: <key>kind</key><string>event</string> 1734// CHECK-NEXT: <key>location</key> 1735// CHECK-NEXT: <dict> 1736// CHECK-NEXT: <key>line</key><integer>200</integer> 1737// CHECK-NEXT: <key>col</key><integer>7</integer> 1738// CHECK-NEXT: <key>file</key><integer>0</integer> 1739// CHECK-NEXT: </dict> 1740// CHECK-NEXT: <key>ranges</key> 1741// CHECK-NEXT: <array> 1742// CHECK-NEXT: <array> 1743// CHECK-NEXT: <dict> 1744// CHECK-NEXT: <key>line</key><integer>200</integer> 1745// CHECK-NEXT: <key>col</key><integer>7</integer> 1746// CHECK-NEXT: <key>file</key><integer>0</integer> 1747// CHECK-NEXT: </dict> 1748// CHECK-NEXT: <dict> 1749// CHECK-NEXT: <key>line</key><integer>200</integer> 1750// CHECK-NEXT: <key>col</key><integer>22</integer> 1751// CHECK-NEXT: <key>file</key><integer>0</integer> 1752// CHECK-NEXT: </dict> 1753// CHECK-NEXT: </array> 1754// CHECK-NEXT: </array> 1755// CHECK-NEXT: <key>depth</key><integer>0</integer> 1756// CHECK-NEXT: <key>extended_message</key> 1757// CHECK-NEXT: <string>Call to function 'CFCreateString' returns a Core Foundation object with a +1 retain count</string> 1758// CHECK-NEXT: <key>message</key> 1759// CHECK-NEXT: <string>Call to function 'CFCreateString' returns a Core Foundation object with a +1 retain count</string> 1760// CHECK-NEXT: </dict> 1761// CHECK-NEXT: <dict> 1762// CHECK-NEXT: <key>kind</key><string>control</string> 1763// CHECK-NEXT: <key>edges</key> 1764// CHECK-NEXT: <array> 1765// CHECK-NEXT: <dict> 1766// CHECK-NEXT: <key>start</key> 1767// CHECK-NEXT: <array> 1768// CHECK-NEXT: <dict> 1769// CHECK-NEXT: <key>line</key><integer>200</integer> 1770// CHECK-NEXT: <key>col</key><integer>7</integer> 1771// CHECK-NEXT: <key>file</key><integer>0</integer> 1772// CHECK-NEXT: </dict> 1773// CHECK-NEXT: <dict> 1774// CHECK-NEXT: <key>line</key><integer>200</integer> 1775// CHECK-NEXT: <key>col</key><integer>20</integer> 1776// CHECK-NEXT: <key>file</key><integer>0</integer> 1777// CHECK-NEXT: </dict> 1778// CHECK-NEXT: </array> 1779// CHECK-NEXT: <key>end</key> 1780// CHECK-NEXT: <array> 1781// CHECK-NEXT: <dict> 1782// CHECK-NEXT: <key>line</key><integer>202</integer> 1783// CHECK-NEXT: <key>col</key><integer>1</integer> 1784// CHECK-NEXT: <key>file</key><integer>0</integer> 1785// CHECK-NEXT: </dict> 1786// CHECK-NEXT: <dict> 1787// CHECK-NEXT: <key>line</key><integer>202</integer> 1788// CHECK-NEXT: <key>col</key><integer>1</integer> 1789// CHECK-NEXT: <key>file</key><integer>0</integer> 1790// CHECK-NEXT: </dict> 1791// CHECK-NEXT: </array> 1792// CHECK-NEXT: </dict> 1793// CHECK-NEXT: </array> 1794// CHECK-NEXT: </dict> 1795// CHECK-NEXT: <dict> 1796// CHECK-NEXT: <key>kind</key><string>event</string> 1797// CHECK-NEXT: <key>location</key> 1798// CHECK-NEXT: <dict> 1799// CHECK-NEXT: <key>line</key><integer>202</integer> 1800// CHECK-NEXT: <key>col</key><integer>1</integer> 1801// CHECK-NEXT: <key>file</key><integer>0</integer> 1802// CHECK-NEXT: </dict> 1803// CHECK-NEXT: <key>depth</key><integer>0</integer> 1804// CHECK-NEXT: <key>extended_message</key> 1805// CHECK-NEXT: <string>Object leaked: allocated object is not referenced later in this execution path and has a retain count of +1</string> 1806// CHECK-NEXT: <key>message</key> 1807// CHECK-NEXT: <string>Object leaked: allocated object is not referenced later in this execution path and has a retain count of +1</string> 1808// CHECK-NEXT: </dict> 1809// CHECK-NEXT: </array> 1810// CHECK-NEXT: <key>description</key><string>Potential leak of an object</string> 1811// CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 1812// CHECK-NEXT: <key>type</key><string>Leak</string> 1813// CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 1814// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1815// CHECK-NEXT: <key>issue_context</key><string>test_objc_arrays</string> 1816// CHECK-NEXT: <key>issue_hash</key><string>24</string> 1817// CHECK-NEXT: <key>location</key> 1818// CHECK-NEXT: <dict> 1819// CHECK-NEXT: <key>line</key><integer>202</integer> 1820// CHECK-NEXT: <key>col</key><integer>1</integer> 1821// CHECK-NEXT: <key>file</key><integer>0</integer> 1822// CHECK-NEXT: </dict> 1823// CHECK-NEXT: </dict> 1824// CHECK-NEXT: <dict> 1825// CHECK-NEXT: <key>path</key> 1826// CHECK-NEXT: <array> 1827// CHECK-NEXT: <dict> 1828// CHECK-NEXT: <key>kind</key><string>event</string> 1829// CHECK-NEXT: <key>location</key> 1830// CHECK-NEXT: <dict> 1831// CHECK-NEXT: <key>line</key><integer>214</integer> 1832// CHECK-NEXT: <key>col</key><integer>17</integer> 1833// CHECK-NEXT: <key>file</key><integer>0</integer> 1834// CHECK-NEXT: </dict> 1835// CHECK-NEXT: <key>ranges</key> 1836// CHECK-NEXT: <array> 1837// CHECK-NEXT: <array> 1838// CHECK-NEXT: <dict> 1839// CHECK-NEXT: <key>line</key><integer>214</integer> 1840// CHECK-NEXT: <key>col</key><integer>17</integer> 1841// CHECK-NEXT: <key>file</key><integer>0</integer> 1842// CHECK-NEXT: </dict> 1843// CHECK-NEXT: <dict> 1844// CHECK-NEXT: <key>line</key><integer>214</integer> 1845// CHECK-NEXT: <key>col</key><integer>39</integer> 1846// CHECK-NEXT: <key>file</key><integer>0</integer> 1847// CHECK-NEXT: </dict> 1848// CHECK-NEXT: </array> 1849// CHECK-NEXT: </array> 1850// CHECK-NEXT: <key>depth</key><integer>0</integer> 1851// CHECK-NEXT: <key>extended_message</key> 1852// CHECK-NEXT: <string>Method returns an Objective-C object with a +0 retain count</string> 1853// CHECK-NEXT: <key>message</key> 1854// CHECK-NEXT: <string>Method returns an Objective-C object with a +0 retain count</string> 1855// CHECK-NEXT: </dict> 1856// CHECK-NEXT: <dict> 1857// CHECK-NEXT: <key>kind</key><string>control</string> 1858// CHECK-NEXT: <key>edges</key> 1859// CHECK-NEXT: <array> 1860// CHECK-NEXT: <dict> 1861// CHECK-NEXT: <key>start</key> 1862// CHECK-NEXT: <array> 1863// CHECK-NEXT: <dict> 1864// CHECK-NEXT: <key>line</key><integer>214</integer> 1865// CHECK-NEXT: <key>col</key><integer>3</integer> 1866// CHECK-NEXT: <key>file</key><integer>0</integer> 1867// CHECK-NEXT: </dict> 1868// CHECK-NEXT: <dict> 1869// CHECK-NEXT: <key>line</key><integer>214</integer> 1870// CHECK-NEXT: <key>col</key><integer>10</integer> 1871// CHECK-NEXT: <key>file</key><integer>0</integer> 1872// CHECK-NEXT: </dict> 1873// CHECK-NEXT: </array> 1874// CHECK-NEXT: <key>end</key> 1875// CHECK-NEXT: <array> 1876// CHECK-NEXT: <dict> 1877// CHECK-NEXT: <key>line</key><integer>215</integer> 1878// CHECK-NEXT: <key>col</key><integer>3</integer> 1879// CHECK-NEXT: <key>file</key><integer>0</integer> 1880// CHECK-NEXT: </dict> 1881// CHECK-NEXT: <dict> 1882// CHECK-NEXT: <key>line</key><integer>215</integer> 1883// CHECK-NEXT: <key>col</key><integer>18</integer> 1884// CHECK-NEXT: <key>file</key><integer>0</integer> 1885// CHECK-NEXT: </dict> 1886// CHECK-NEXT: </array> 1887// CHECK-NEXT: </dict> 1888// CHECK-NEXT: </array> 1889// CHECK-NEXT: </dict> 1890// CHECK-NEXT: <dict> 1891// CHECK-NEXT: <key>kind</key><string>event</string> 1892// CHECK-NEXT: <key>location</key> 1893// CHECK-NEXT: <dict> 1894// CHECK-NEXT: <key>line</key><integer>215</integer> 1895// CHECK-NEXT: <key>col</key><integer>3</integer> 1896// CHECK-NEXT: <key>file</key><integer>0</integer> 1897// CHECK-NEXT: </dict> 1898// CHECK-NEXT: <key>ranges</key> 1899// CHECK-NEXT: <array> 1900// CHECK-NEXT: <array> 1901// CHECK-NEXT: <dict> 1902// CHECK-NEXT: <key>line</key><integer>215</integer> 1903// CHECK-NEXT: <key>col</key><integer>3</integer> 1904// CHECK-NEXT: <key>file</key><integer>0</integer> 1905// CHECK-NEXT: </dict> 1906// CHECK-NEXT: <dict> 1907// CHECK-NEXT: <key>line</key><integer>215</integer> 1908// CHECK-NEXT: <key>col</key><integer>21</integer> 1909// CHECK-NEXT: <key>file</key><integer>0</integer> 1910// CHECK-NEXT: </dict> 1911// CHECK-NEXT: </array> 1912// CHECK-NEXT: <array> 1913// CHECK-NEXT: <dict> 1914// CHECK-NEXT: <key>line</key><integer>215</integer> 1915// CHECK-NEXT: <key>col</key><integer>20</integer> 1916// CHECK-NEXT: <key>file</key><integer>0</integer> 1917// CHECK-NEXT: </dict> 1918// CHECK-NEXT: <dict> 1919// CHECK-NEXT: <key>line</key><integer>215</integer> 1920// CHECK-NEXT: <key>col</key><integer>20</integer> 1921// CHECK-NEXT: <key>file</key><integer>0</integer> 1922// CHECK-NEXT: </dict> 1923// CHECK-NEXT: </array> 1924// CHECK-NEXT: </array> 1925// CHECK-NEXT: <key>depth</key><integer>0</integer> 1926// CHECK-NEXT: <key>extended_message</key> 1927// CHECK-NEXT: <string>Reference count incremented. The object now has a +1 retain count</string> 1928// CHECK-NEXT: <key>message</key> 1929// CHECK-NEXT: <string>Reference count incremented. The object now has a +1 retain count</string> 1930// CHECK-NEXT: </dict> 1931// CHECK-NEXT: <dict> 1932// CHECK-NEXT: <key>kind</key><string>control</string> 1933// CHECK-NEXT: <key>edges</key> 1934// CHECK-NEXT: <array> 1935// CHECK-NEXT: <dict> 1936// CHECK-NEXT: <key>start</key> 1937// CHECK-NEXT: <array> 1938// CHECK-NEXT: <dict> 1939// CHECK-NEXT: <key>line</key><integer>215</integer> 1940// CHECK-NEXT: <key>col</key><integer>3</integer> 1941// CHECK-NEXT: <key>file</key><integer>0</integer> 1942// CHECK-NEXT: </dict> 1943// CHECK-NEXT: <dict> 1944// CHECK-NEXT: <key>line</key><integer>215</integer> 1945// CHECK-NEXT: <key>col</key><integer>18</integer> 1946// CHECK-NEXT: <key>file</key><integer>0</integer> 1947// CHECK-NEXT: </dict> 1948// CHECK-NEXT: </array> 1949// CHECK-NEXT: <key>end</key> 1950// CHECK-NEXT: <array> 1951// CHECK-NEXT: <dict> 1952// CHECK-NEXT: <key>line</key><integer>216</integer> 1953// CHECK-NEXT: <key>col</key><integer>1</integer> 1954// CHECK-NEXT: <key>file</key><integer>0</integer> 1955// CHECK-NEXT: </dict> 1956// CHECK-NEXT: <dict> 1957// CHECK-NEXT: <key>line</key><integer>216</integer> 1958// CHECK-NEXT: <key>col</key><integer>1</integer> 1959// CHECK-NEXT: <key>file</key><integer>0</integer> 1960// CHECK-NEXT: </dict> 1961// CHECK-NEXT: </array> 1962// CHECK-NEXT: </dict> 1963// CHECK-NEXT: </array> 1964// CHECK-NEXT: </dict> 1965// CHECK-NEXT: <dict> 1966// CHECK-NEXT: <key>kind</key><string>event</string> 1967// CHECK-NEXT: <key>location</key> 1968// CHECK-NEXT: <dict> 1969// CHECK-NEXT: <key>line</key><integer>216</integer> 1970// CHECK-NEXT: <key>col</key><integer>1</integer> 1971// CHECK-NEXT: <key>file</key><integer>0</integer> 1972// CHECK-NEXT: </dict> 1973// CHECK-NEXT: <key>depth</key><integer>0</integer> 1974// CHECK-NEXT: <key>extended_message</key> 1975// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'o' is not referenced later in this execution path and has a retain count of +1</string> 1976// CHECK-NEXT: <key>message</key> 1977// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'o' is not referenced later in this execution path and has a retain count of +1</string> 1978// CHECK-NEXT: </dict> 1979// CHECK-NEXT: </array> 1980// CHECK-NEXT: <key>description</key><string>Potential leak of an object stored into 'o'</string> 1981// CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string> 1982// CHECK-NEXT: <key>type</key><string>Leak</string> 1983// CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string> 1984// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 1985// CHECK-NEXT: <key>issue_context</key><string>rdar11059275_positive</string> 1986// CHECK-NEXT: <key>issue_hash</key><string>1</string> 1987// CHECK-NEXT: <key>location</key> 1988// CHECK-NEXT: <dict> 1989// CHECK-NEXT: <key>line</key><integer>216</integer> 1990// CHECK-NEXT: <key>col</key><integer>1</integer> 1991// CHECK-NEXT: <key>file</key><integer>0</integer> 1992// CHECK-NEXT: </dict> 1993// CHECK-NEXT: </dict> 1994// CHECK-NEXT: <dict> 1995// CHECK-NEXT: <key>path</key> 1996// CHECK-NEXT: <array> 1997// CHECK-NEXT: <dict> 1998// CHECK-NEXT: <key>kind</key><string>control</string> 1999// CHECK-NEXT: <key>edges</key> 2000// CHECK-NEXT: <array> 2001// CHECK-NEXT: <dict> 2002// CHECK-NEXT: <key>start</key> 2003// CHECK-NEXT: <array> 2004// CHECK-NEXT: <dict> 2005// CHECK-NEXT: <key>line</key><integer>229</integer> 2006// CHECK-NEXT: <key>col</key><integer>3</integer> 2007// CHECK-NEXT: <key>file</key><integer>0</integer> 2008// CHECK-NEXT: </dict> 2009// CHECK-NEXT: <dict> 2010// CHECK-NEXT: <key>line</key><integer>229</integer> 2011// CHECK-NEXT: <key>col</key><integer>4</integer> 2012// CHECK-NEXT: <key>file</key><integer>0</integer> 2013// CHECK-NEXT: </dict> 2014// CHECK-NEXT: </array> 2015// CHECK-NEXT: <key>end</key> 2016// CHECK-NEXT: <array> 2017// CHECK-NEXT: <dict> 2018// CHECK-NEXT: <key>line</key><integer>230</integer> 2019// CHECK-NEXT: <key>col</key><integer>3</integer> 2020// CHECK-NEXT: <key>file</key><integer>0</integer> 2021// CHECK-NEXT: </dict> 2022// CHECK-NEXT: <dict> 2023// CHECK-NEXT: <key>line</key><integer>230</integer> 2024// CHECK-NEXT: <key>col</key><integer>3</integer> 2025// CHECK-NEXT: <key>file</key><integer>0</integer> 2026// CHECK-NEXT: </dict> 2027// CHECK-NEXT: </array> 2028// CHECK-NEXT: </dict> 2029// CHECK-NEXT: </array> 2030// CHECK-NEXT: </dict> 2031// CHECK-NEXT: <dict> 2032// CHECK-NEXT: <key>kind</key><string>control</string> 2033// CHECK-NEXT: <key>edges</key> 2034// CHECK-NEXT: <array> 2035// CHECK-NEXT: <dict> 2036// CHECK-NEXT: <key>start</key> 2037// CHECK-NEXT: <array> 2038// CHECK-NEXT: <dict> 2039// CHECK-NEXT: <key>line</key><integer>230</integer> 2040// CHECK-NEXT: <key>col</key><integer>3</integer> 2041// CHECK-NEXT: <key>file</key><integer>0</integer> 2042// CHECK-NEXT: </dict> 2043// CHECK-NEXT: <dict> 2044// CHECK-NEXT: <key>line</key><integer>230</integer> 2045// CHECK-NEXT: <key>col</key><integer>3</integer> 2046// CHECK-NEXT: <key>file</key><integer>0</integer> 2047// CHECK-NEXT: </dict> 2048// CHECK-NEXT: </array> 2049// CHECK-NEXT: <key>end</key> 2050// CHECK-NEXT: <array> 2051// CHECK-NEXT: <dict> 2052// CHECK-NEXT: <key>line</key><integer>230</integer> 2053// CHECK-NEXT: <key>col</key><integer>22</integer> 2054// CHECK-NEXT: <key>file</key><integer>0</integer> 2055// CHECK-NEXT: </dict> 2056// CHECK-NEXT: <dict> 2057// CHECK-NEXT: <key>line</key><integer>230</integer> 2058// CHECK-NEXT: <key>col</key><integer>22</integer> 2059// CHECK-NEXT: <key>file</key><integer>0</integer> 2060// CHECK-NEXT: </dict> 2061// CHECK-NEXT: </array> 2062// CHECK-NEXT: </dict> 2063// CHECK-NEXT: </array> 2064// CHECK-NEXT: </dict> 2065// CHECK-NEXT: <dict> 2066// CHECK-NEXT: <key>kind</key><string>event</string> 2067// CHECK-NEXT: <key>location</key> 2068// CHECK-NEXT: <dict> 2069// CHECK-NEXT: <key>line</key><integer>230</integer> 2070// CHECK-NEXT: <key>col</key><integer>22</integer> 2071// CHECK-NEXT: <key>file</key><integer>0</integer> 2072// CHECK-NEXT: </dict> 2073// CHECK-NEXT: <key>ranges</key> 2074// CHECK-NEXT: <array> 2075// CHECK-NEXT: <array> 2076// CHECK-NEXT: <dict> 2077// CHECK-NEXT: <key>line</key><integer>230</integer> 2078// CHECK-NEXT: <key>col</key><integer>3</integer> 2079// CHECK-NEXT: <key>file</key><integer>0</integer> 2080// CHECK-NEXT: </dict> 2081// CHECK-NEXT: <dict> 2082// CHECK-NEXT: <key>line</key><integer>230</integer> 2083// CHECK-NEXT: <key>col</key><integer>24</integer> 2084// CHECK-NEXT: <key>file</key><integer>0</integer> 2085// CHECK-NEXT: </dict> 2086// CHECK-NEXT: </array> 2087// CHECK-NEXT: </array> 2088// CHECK-NEXT: <key>depth</key><integer>0</integer> 2089// CHECK-NEXT: <key>extended_message</key> 2090// CHECK-NEXT: <string>Dereference of null pointer</string> 2091// CHECK-NEXT: <key>message</key> 2092// CHECK-NEXT: <string>Dereference of null pointer</string> 2093// CHECK-NEXT: </dict> 2094// CHECK-NEXT: </array> 2095// CHECK-NEXT: <key>description</key><string>Dereference of null pointer</string> 2096// CHECK-NEXT: <key>category</key><string>Logic error</string> 2097// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string> 2098// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string> 2099// CHECK-NEXT: <key>issue_context_kind</key><string>function</string> 2100// CHECK-NEXT: <key>issue_context</key><string>rdar14061675</string> 2101// CHECK-NEXT: <key>issue_hash</key><string>4</string> 2102// CHECK-NEXT: <key>location</key> 2103// CHECK-NEXT: <dict> 2104// CHECK-NEXT: <key>line</key><integer>230</integer> 2105// CHECK-NEXT: <key>col</key><integer>22</integer> 2106// CHECK-NEXT: <key>file</key><integer>0</integer> 2107// CHECK-NEXT: </dict> 2108// CHECK-NEXT: </dict> 2109// CHECK-NEXT: </array> 2110