Fix indentation of multiline copyright comment

Summary:
public
Lines other than the first of multi-line comments in non-ocaml files
were flush right instead of aligned.

Reviewed By: jvillard

Differential Revision: D2739752

fb-gh-sync-id: c85f56e
master
Josh Berdine 9 years ago committed by facebook-github-bot-7
parent d390568aed
commit 63b57790f9

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
class Hello { class Hello {
int test() { int test() {
String s = null; String s = null;

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@interface Hello: NSObject @interface Hello: NSObject

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package infer.inferandroidexample; package infer.inferandroidexample;
import android.app.Application; import android.app.Application;

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>

@ -1,6 +1,9 @@
#include <stdlib.h> /*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
void test() {
int *s = NULL;
*s = 42;
}

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// //
// AppDelegate.h // AppDelegate.h
// HelloWorldApp // HelloWorldApp

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// //
// AppDelegate.m // AppDelegate.m
// HelloWorldApp // HelloWorldApp

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// //
// Hello.h // Hello.h
// HelloWorldApp // HelloWorldApp

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// //
// Hello.m // Hello.m
// HelloWorldApp // HelloWorldApp

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// //
// ViewController.h // ViewController.h
// HelloWorldApp // HelloWorldApp

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// //
// ViewController.m // ViewController.m
// HelloWorldApp // HelloWorldApp

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// //
// main.m // main.m
// HelloWorldApp // HelloWorldApp

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
// //
// HelloWorldAppTests.m // HelloWorldAppTests.m
// HelloWorldAppTests // HelloWorldAppTests

@ -96,4 +96,3 @@ public final class SQLiteDatabase {
SQLiteQuery query); SQLiteQuery query);
} }
} }

@ -55,4 +55,3 @@ public class StrictLineReader implements Closeable {
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGDataConsumerRef);
void CGDataConsumerRelease ( CGDataConsumerRef consumer ) { void CGDataConsumerRelease ( CGDataConsumerRef consumer ) {
if (consumer) __objc_release_cf(consumer); if (consumer) __objc_release_cf(consumer);
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGFunctionRef);
void CGFunctionRelease ( CGFunctionRef function ) { void CGFunctionRelease ( CGFunctionRef function ) {
if (function) __objc_release_cf(function); if (function) __objc_release_cf(function);
} }

@ -42,5 +42,3 @@ void CGImageSourceRelease ( CGImageSourceRef image )
{ {
if (image) __objc_release_cf(image); if (image) __objc_release_cf(image);
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGLayerRef);
void CGLayerRelease ( CGLayerRef layer ){ void CGLayerRelease ( CGLayerRef layer ){
if (layer) __objc_release_cf(layer); if (layer) __objc_release_cf(layer);
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGPDFContentStreamRef);
void CGPDFContentStreamRelease ( CGPDFContentStreamRef cs ) { void CGPDFContentStreamRelease ( CGPDFContentStreamRef cs ) {
if (cs) __objc_release_cf(cs); if (cs) __objc_release_cf(cs);
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGPDFDocumentRef);
void CGPDFDocumentRelease ( CGPDFDocumentRef document ) { void CGPDFDocumentRelease ( CGPDFDocumentRef document ) {
if (document) __objc_release_cf(document); if (document) __objc_release_cf(document);
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGPDFOperatorTableRef);
void CGPDFOperatorTableRelease ( CGPDFOperatorTableRef table ) { void CGPDFOperatorTableRelease ( CGPDFOperatorTableRef table ) {
if (table) __objc_release_cf(table); if (table) __objc_release_cf(table);
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGPDFPageRef);
void CGPDFPageRelease ( CGPDFPageRef page ) { void CGPDFPageRelease ( CGPDFPageRef page ) {
if (page) __objc_release_cf(page); if (page) __objc_release_cf(page);
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGPDFScannerRef);
void CGPDFScannerRelease ( CGPDFScannerRef scanner ) { void CGPDFScannerRelease ( CGPDFScannerRef scanner ) {
if (scanner) __objc_release_cf(scanner); if (scanner) __objc_release_cf(scanner);
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGPatternRef);
void CGPatternRelease ( CGPatternRef pattern ) { void CGPatternRelease ( CGPatternRef pattern ) {
if (pattern) __objc_release_cf(pattern); if (pattern) __objc_release_cf(pattern);
} }

@ -14,4 +14,3 @@ void __objc_release_cf(CGShadingRef);
void CGShadingRelease ( CGShadingRef shading ) { void CGShadingRelease ( CGShadingRef shading ) {
if (shading) __objc_release_cf(shading); if (shading) __objc_release_cf(shading);
} }

@ -35,4 +35,3 @@ void __get_array_size(const UInt8);
} }
@end @end

@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*) *)
{ {
open CodequeryParser open CodequeryParser

@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*) *)
{ {
open Lexing open Lexing
open LParser open LParser

@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*) *)
%{ %{
open Utils open Utils
open LAst open LAst

@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*) *)
open LAst open LAst
let concatmap (sep : string) (f : 'a -> string) (l : 'a list) : string = let concatmap (sep : string) (f : 'a -> string) (l : 'a list) : string =

@ -41,6 +41,10 @@ let default_start_line_of_com_style style = match style with
| Line _ -> 2 | Line _ -> 2
| Block _ -> 0 | Block _ -> 0
let prefix_of_comment_style = function
| Line _ -> ""
| Block (_, inter, _) -> String.make (String.length inter) ' '
(** If true, update the copyright message of the files. *) (** If true, update the copyright message of the files. *)
let update_files = ref false let update_files = ref false
@ -226,7 +230,7 @@ let check_copyright fname = match read_file fname with
let year = 1900 + (Unix.localtime (Unix.time ())).Unix.tm_year in let year = 1900 + (Unix.localtime (Unix.time ())).Unix.tm_year in
let ext = get_filename_extension fname in let ext = get_filename_extension fname in
let com_style = IList.assoc string_equal ext com_style_of_lang in let com_style = IList.assoc string_equal ext com_style_of_lang in
let prefix = if com_style = comment_style_ocaml then " " else "" in let prefix = prefix_of_comment_style com_style in
let start = default_start_line_of_com_style com_style in let start = default_start_line_of_com_style com_style in
output_diff fname (Array.of_list []) start (-1) (-1) 0 false year com_style prefix; output_diff fname (Array.of_list []) start (-1) (-1) 0 false year com_style prefix;
exit copyright_modified_exit_code exit copyright_modified_exit_code
@ -245,7 +249,7 @@ let check_copyright fname = match read_file fname with
L.stderr "Can't find fb year: %s@." fname; L.stderr "Can't find fb year: %s@." fname;
exit copyright_malformed_exit_code exit copyright_malformed_exit_code
| Some fb_year -> | Some fb_year ->
let prefix = if com_style = comment_style_ocaml then " " else "" in let prefix = prefix_of_comment_style com_style in
if copyright_has_changed mono fb_year com_style prefix cstart cend lines_arr then if copyright_has_changed mono fb_year com_style prefix cstart cend lines_arr then
begin begin
output_diff fname lines_arr cstart n cend len mono fb_year com_style prefix; output_diff fname lines_arr cstart n cend len mono fb_year com_style prefix;

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include <stdlib.h> #include <stdlib.h>
extern int add_all_ints(int x, int y, int z, ...) __attribute__((sentinel)); extern int add_all_ints(int x, int y, int z, ...) __attribute__((sentinel));

@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
struct l2 { struct l2 {
int b; int b;
struct l2 *a; struct l2 *a;

@ -400,6 +400,3 @@ void nocrash_fsetpos()
fclose(f); fclose(f);
} }
} }

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
struct X { struct X {
int a; int a;
int b; int b;

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
struct X { struct X {
int a; int a;
int b; int b;

@ -1,16 +1,16 @@
digraph iCFG { digraph iCFG {
4 [label="4: BinaryOperatorStmt: Assign \n *&x.a:int =10 [line 8]\n " shape="box"] 4 [label="4: BinaryOperatorStmt: Assign \n *&x.a:int =10 [line 17]\n " shape="box"]
4 -> 3 ; 4 -> 3 ;
3 [label="3: BinaryOperatorStmt: Assign \n *&x.b:int =20 [line 9]\n APPLY_ABSTRACTION; [line 9]\n " shape="box"] 3 [label="3: BinaryOperatorStmt: Assign \n *&x.b:int =20 [line 18]\n APPLY_ABSTRACTION; [line 18]\n " shape="box"]
3 -> 2 ; 3 -> 2 ;
2 [label="2: Exit test \n " color=yellow style=filled] 2 [label="2: Exit test \n " color=yellow style=filled]
1 [label="1: Start test\nFormals: \nLocals: x:struct X \n DECLARE_LOCALS(&return,&x); [line 6]\n NULLIFY(&x,false); [line 6]\n " color=yellow style=filled] 1 [label="1: Start test\nFormals: \nLocals: x:struct X \n DECLARE_LOCALS(&return,&x); [line 15]\n NULLIFY(&x,false); [line 15]\n " color=yellow style=filled]
1 -> 4 ; 1 -> 4 ;

@ -1,3 +1,12 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
struct X_struct { struct X_struct {
int a; int a;
int b; int b;

@ -1,24 +1,24 @@
digraph iCFG { digraph iCFG {
6 [label="6: BinaryOperatorStmt: Assign \n n$3=*&xs:struct X_struct * [line 15]\n *n$3.a:int =10 [line 15]\n REMOVE_TEMPS(n$3); [line 15]\n " shape="box"] 6 [label="6: BinaryOperatorStmt: Assign \n n$3=*&xs:struct X_struct * [line 24]\n *n$3.a:int =10 [line 24]\n REMOVE_TEMPS(n$3); [line 24]\n " shape="box"]
6 -> 5 ; 6 -> 5 ;
5 [label="5: BinaryOperatorStmt: Assign \n n$2=*&xs:struct X_struct * [line 16]\n *n$2.b:int =20 [line 16]\n REMOVE_TEMPS(n$2); [line 16]\n NULLIFY(&xs,false); [line 16]\n " shape="box"] 5 [label="5: BinaryOperatorStmt: Assign \n n$2=*&xs:struct X_struct * [line 25]\n *n$2.b:int =20 [line 25]\n REMOVE_TEMPS(n$2); [line 25]\n NULLIFY(&xs,false); [line 25]\n " shape="box"]
5 -> 4 ; 5 -> 4 ;
4 [label="4: BinaryOperatorStmt: Assign \n n$1=*&xc:class X_class * [line 19]\n *n$1.a:int =10 [line 19]\n REMOVE_TEMPS(n$1); [line 19]\n " shape="box"] 4 [label="4: BinaryOperatorStmt: Assign \n n$1=*&xc:class X_class * [line 28]\n *n$1.a:int =10 [line 28]\n REMOVE_TEMPS(n$1); [line 28]\n " shape="box"]
4 -> 3 ; 4 -> 3 ;
3 [label="3: BinaryOperatorStmt: Assign \n n$0=*&xc:class X_class * [line 20]\n *n$0.b:int =20 [line 20]\n REMOVE_TEMPS(n$0); [line 20]\n NULLIFY(&xc,false); [line 20]\n APPLY_ABSTRACTION; [line 20]\n " shape="box"] 3 [label="3: BinaryOperatorStmt: Assign \n n$0=*&xc:class X_class * [line 29]\n *n$0.b:int =20 [line 29]\n REMOVE_TEMPS(n$0); [line 29]\n NULLIFY(&xc,false); [line 29]\n APPLY_ABSTRACTION; [line 29]\n " shape="box"]
3 -> 2 ; 3 -> 2 ;
2 [label="2: Exit test \n " color=yellow style=filled] 2 [label="2: Exit test \n " color=yellow style=filled]
1 [label="1: Start test\nFormals: \nLocals: xc:class X_class * xs:struct X_struct * \n DECLARE_LOCALS(&return,&xc,&xs); [line 12]\n " color=yellow style=filled] 1 [label="1: Start test\nFormals: \nLocals: xc:class X_class * xs:struct X_struct * \n DECLARE_LOCALS(&return,&xc,&xs); [line 21]\n " color=yellow style=filled]
1 -> 6 ; 1 -> 6 ;

@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
package codetoanalyze.java.eradicate; package codetoanalyze.java.eradicate;
import java.lang.ref.PhantomReference; import java.lang.ref.PhantomReference;

@ -293,4 +293,3 @@ public class NullMethodCall {
} }
} }
} }

@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
package codetoanalyze.java.eradicate; package codetoanalyze.java.eradicate;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;

@ -21,4 +21,3 @@ public class ReturnValueIgnored {
} }
} }

@ -69,4 +69,3 @@ void test7 (A *a) {
if (a) if (a)
__objc_release(a); __objc_release(a);
} }

@ -135,6 +135,3 @@ void unsafeunretainedcycle() {
[parent setChild:child]; [parent setChild:child];
[child setParent: parent]; [child setParent: parent];
} }

@ -63,4 +63,3 @@ void test_virtual_call() {
} }
[fraction release]; [fraction release];
} }

@ -13,4 +13,3 @@
} }
@property int aProperty; @property int aProperty;
@end @end

@ -27,4 +27,3 @@
else return x; else return x;
} }
@end @end

@ -1,65 +1,65 @@
digraph iCFG { digraph iCFG {
52 [label="52: DeclStmt \n n$44=_fun___objc_alloc_no_fail(sizeof(class NSArray ):unsigned long ) [line 30]\n n$45=_fun_NSArray_init(n$44:class NSArray *) virtual [line 30]\n *&a:class NSArray *=n$45 [line 30]\n REMOVE_TEMPS(n$44,n$45); [line 30]\n " shape="box"] 52 [label="52: DeclStmt \n n$44=_fun___objc_alloc_no_fail(sizeof(class NSArray ):unsigned long ) [line 38]\n n$45=_fun_NSArray_init(n$44:class NSArray *) virtual [line 38]\n *&a:class NSArray *=n$45 [line 38]\n REMOVE_TEMPS(n$44,n$45); [line 38]\n " shape="box"]
52 -> 51 ; 52 -> 51 ;
51 [label="51: DeclStmt \n n$43=*&a:class NSArray * [line 32]\n *&objects:class NSArray *=n$43 [line 32]\n REMOVE_TEMPS(n$43); [line 32]\n NULLIFY(&a,false); [line 32]\n " shape="box"] 51 [label="51: DeclStmt \n n$43=*&a:class NSArray * [line 40]\n *&objects:class NSArray *=n$43 [line 40]\n REMOVE_TEMPS(n$43); [line 40]\n NULLIFY(&a,false); [line 40]\n " shape="box"]
51 -> 50 ; 51 -> 50 ;
50 [label="50: DeclStmt \n DECLARE_LOCALS(&__objc_anonymous_block_MyBlock_array_trans______2); [line 35]\n n$42=_fun___objc_alloc_no_fail(sizeof(class __objc_anonymous_block_MyBlock_array_trans______2 ):unsigned long ) [line 35]\n *&__objc_anonymous_block_MyBlock_array_trans______2:class __objc_anonymous_block_MyBlock_array_trans______2 =n$42 [line 35]\n *&enumerateObjectsUsingBlock:_fn_ (*)=(_fun___objc_anonymous_block_MyBlock_array_trans______2) [line 35]\n REMOVE_TEMPS(n$42); [line 35]\n " shape="box"] 50 [label="50: DeclStmt \n DECLARE_LOCALS(&__objc_anonymous_block_MyBlock_array_trans______2); [line 43]\n n$42=_fun___objc_alloc_no_fail(sizeof(class __objc_anonymous_block_MyBlock_array_trans______2 ):unsigned long ) [line 43]\n *&__objc_anonymous_block_MyBlock_array_trans______2:class __objc_anonymous_block_MyBlock_array_trans______2 =n$42 [line 43]\n *&enumerateObjectsUsingBlock:_fn_ (*)=(_fun___objc_anonymous_block_MyBlock_array_trans______2) [line 43]\n REMOVE_TEMPS(n$42); [line 43]\n " shape="box"]
50 -> 43 ; 50 -> 43 ;
49 [label="49: BinaryOperatorStmt: Assign \n NULLIFY(&ShouldStop,false); [line 40]\n n$41=*&stop:_Bool * [line 40]\n *n$41:_Bool =1 [line 40]\n REMOVE_TEMPS(n$41); [line 40]\n NULLIFY(&stop,false); [line 40]\n APPLY_ABSTRACTION; [line 40]\n " shape="box"] 49 [label="49: BinaryOperatorStmt: Assign \n NULLIFY(&ShouldStop,false); [line 48]\n n$41=*&stop:_Bool * [line 48]\n *n$41:_Bool =1 [line 48]\n REMOVE_TEMPS(n$41); [line 48]\n NULLIFY(&stop,false); [line 48]\n APPLY_ABSTRACTION; [line 48]\n " shape="box"]
49 -> 46 ; 49 -> 46 ;
48 [label="48: Prune (false branch) \n n$40=*&ShouldStop:int [line 39]\n PRUNE((n$40 == 0), false); [line 39]\n REMOVE_TEMPS(n$40); [line 39]\n APPLY_ABSTRACTION; [line 39]\n " shape="invhouse"] 48 [label="48: Prune (false branch) \n n$40=*&ShouldStop:int [line 47]\n PRUNE((n$40 == 0), false); [line 47]\n REMOVE_TEMPS(n$40); [line 47]\n APPLY_ABSTRACTION; [line 47]\n " shape="invhouse"]
48 -> 46 ; 48 -> 46 ;
47 [label="47: Prune (true branch) \n n$40=*&ShouldStop:int [line 39]\n PRUNE((n$40 != 0), true); [line 39]\n REMOVE_TEMPS(n$40); [line 39]\n " shape="invhouse"] 47 [label="47: Prune (true branch) \n n$40=*&ShouldStop:int [line 47]\n PRUNE((n$40 != 0), true); [line 47]\n REMOVE_TEMPS(n$40); [line 47]\n " shape="invhouse"]
47 -> 49 ; 47 -> 49 ;
46 [label="46: + \n NULLIFY(&ShouldStop,false); [line 39]\n NULLIFY(&stop,false); [line 39]\n " ] 46 [label="46: + \n NULLIFY(&ShouldStop,false); [line 47]\n NULLIFY(&stop,false); [line 47]\n " ]
46 -> 45 ; 46 -> 45 ;
45 [label="45: Exit __objc_anonymous_block_MyBlock_array_trans______2 \n " color=yellow style=filled] 45 [label="45: Exit __objc_anonymous_block_MyBlock_array_trans______2 \n " color=yellow style=filled]
44 [label="44: Start __objc_anonymous_block_MyBlock_array_trans______2\nFormals: object:struct objc_object * idx:unsigned long stop:_Bool *\nLocals: ShouldStop:int \n DECLARE_LOCALS(&return,&ShouldStop); [line 35]\n NULLIFY(&idx,false); [line 35]\n NULLIFY(&object,false); [line 35]\n " color=yellow style=filled] 44 [label="44: Start __objc_anonymous_block_MyBlock_array_trans______2\nFormals: object:struct objc_object * idx:unsigned long stop:_Bool *\nLocals: ShouldStop:int \n DECLARE_LOCALS(&return,&ShouldStop); [line 43]\n NULLIFY(&idx,false); [line 43]\n NULLIFY(&object,false); [line 43]\n " color=yellow style=filled]
44 -> 47 ; 44 -> 47 ;
44 -> 48 ; 44 -> 48 ;
43 [label="43: DeclStmt \n n$39=_fun_malloc_no_fail(sizeof(_Bool ):_Bool ) [line 43]\n *&stop:_Bool *=n$39 [line 43]\n REMOVE_TEMPS(n$39); [line 43]\n " shape="box"] 43 [label="43: DeclStmt \n n$39=_fun_malloc_no_fail(sizeof(_Bool ):_Bool ) [line 51]\n *&stop:_Bool *=n$39 [line 51]\n REMOVE_TEMPS(n$39); [line 51]\n " shape="box"]
43 -> 42 ; 43 -> 42 ;
42 [label="42: BinaryOperatorStmt: Assign \n n$38=*&stop:_Bool * [line 44]\n *n$38:_Bool =0 [line 44]\n REMOVE_TEMPS(n$38); [line 44]\n " shape="box"] 42 [label="42: BinaryOperatorStmt: Assign \n n$38=*&stop:_Bool * [line 52]\n *n$38:_Bool =0 [line 52]\n REMOVE_TEMPS(n$38); [line 52]\n " shape="box"]
42 -> 31 ; 42 -> 31 ;
41 [label="41: DeclStmt \n n$35=*&objects:class NSArray * [line 49]\n n$36=*&idx:unsigned long [line 49]\n n$37=_fun_NSArray_objectAtIndexedSubscript:(n$35:class NSArray *,n$36:unsigned long ) virtual [line 49]\n *&object:struct objc_object *=n$37 [line 49]\n REMOVE_TEMPS(n$35,n$36,n$37); [line 49]\n " shape="box"] 41 [label="41: DeclStmt \n n$35=*&objects:class NSArray * [line 57]\n n$36=*&idx:unsigned long [line 57]\n n$37=_fun_NSArray_objectAtIndexedSubscript:(n$35:class NSArray *,n$36:unsigned long ) virtual [line 57]\n *&object:struct objc_object *=n$37 [line 57]\n REMOVE_TEMPS(n$35,n$36,n$37); [line 57]\n " shape="box"]
41 -> 40 ; 41 -> 40 ;
40 [label="40: Call n$31 \n n$31=*&enumerateObjectsUsingBlock:_fn_ (*) [line 50]\n n$32=*&object:struct objc_object * [line 50]\n n$33=*&idx:unsigned long [line 50]\n n$34=*&stop:_Bool * [line 50]\n n$31(n$32:struct objc_object *,n$33:unsigned long ,n$34:_Bool *) [line 50]\n REMOVE_TEMPS(n$31,n$32,n$33,n$34); [line 50]\n NULLIFY(&object,false); [line 50]\n " shape="box"] 40 [label="40: Call n$31 \n n$31=*&enumerateObjectsUsingBlock:_fn_ (*) [line 58]\n n$32=*&object:struct objc_object * [line 58]\n n$33=*&idx:unsigned long [line 58]\n n$34=*&stop:_Bool * [line 58]\n n$31(n$32:struct objc_object *,n$33:unsigned long ,n$34:_Bool *) [line 58]\n REMOVE_TEMPS(n$31,n$32,n$33,n$34); [line 58]\n NULLIFY(&object,false); [line 58]\n " shape="box"]
40 -> 37 ; 40 -> 37 ;
39 [label="39: Prune (false branch) \n PRUNE(((n$30 == 1) == 0), false); [line 51]\n REMOVE_TEMPS(n$29,n$30); [line 51]\n " shape="invhouse"] 39 [label="39: Prune (false branch) \n PRUNE(((n$30 == 1) == 0), false); [line 59]\n REMOVE_TEMPS(n$29,n$30); [line 59]\n " shape="invhouse"]
39 -> 36 ; 39 -> 36 ;
38 [label="38: Prune (true branch) \n PRUNE(((n$30 == 1) != 0), true); [line 51]\n REMOVE_TEMPS(n$29,n$30); [line 51]\n APPLY_ABSTRACTION; [line 51]\n " shape="invhouse"] 38 [label="38: Prune (true branch) \n PRUNE(((n$30 == 1) != 0), true); [line 59]\n REMOVE_TEMPS(n$29,n$30); [line 59]\n APPLY_ABSTRACTION; [line 59]\n " shape="invhouse"]
38 -> 29 ; 38 -> 29 ;
37 [label="37: BinaryOperatorStmt: EQ \n n$29=*&stop:_Bool * [line 51]\n n$30=*n$29:_Bool [line 51]\n " shape="box"] 37 [label="37: BinaryOperatorStmt: EQ \n n$29=*&stop:_Bool * [line 59]\n n$30=*n$29:_Bool [line 59]\n " shape="box"]
37 -> 38 ; 37 -> 38 ;
@ -68,24 +68,24 @@ digraph iCFG {
36 -> 32 ; 36 -> 32 ;
35 [label="35: Prune (false branch) \n PRUNE(((n$26 < n$28) == 0), false); [line 46]\n REMOVE_TEMPS(n$26,n$27,n$28); [line 46]\n APPLY_ABSTRACTION; [line 46]\n " shape="invhouse"] 35 [label="35: Prune (false branch) \n PRUNE(((n$26 < n$28) == 0), false); [line 54]\n REMOVE_TEMPS(n$26,n$27,n$28); [line 54]\n APPLY_ABSTRACTION; [line 54]\n " shape="invhouse"]
35 -> 29 ; 35 -> 29 ;
34 [label="34: Prune (true branch) \n PRUNE(((n$26 < n$28) != 0), true); [line 46]\n REMOVE_TEMPS(n$26,n$27,n$28); [line 46]\n " shape="invhouse"] 34 [label="34: Prune (true branch) \n PRUNE(((n$26 < n$28) != 0), true); [line 54]\n REMOVE_TEMPS(n$26,n$27,n$28); [line 54]\n " shape="invhouse"]
34 -> 41 ; 34 -> 41 ;
33 [label="33: BinaryOperatorStmt: LT \n n$26=*&idx:unsigned long [line 46]\n n$27=*&objects:class NSArray * [line 46]\n n$28=_fun_NSArray_count(n$27:class NSArray *) [line 46]\n " shape="box"] 33 [label="33: BinaryOperatorStmt: LT \n n$26=*&idx:unsigned long [line 54]\n n$27=*&objects:class NSArray * [line 54]\n n$28=_fun_NSArray_count(n$27:class NSArray *) [line 54]\n " shape="box"]
33 -> 34 ; 33 -> 34 ;
33 -> 35 ; 33 -> 35 ;
32 [label="32: UnaryOperator \n n$25=*&idx:unsigned long [line 46]\n *&idx:unsigned long =(n$25 + 1) [line 46]\n REMOVE_TEMPS(n$25); [line 46]\n APPLY_ABSTRACTION; [line 46]\n " shape="box"] 32 [label="32: UnaryOperator \n n$25=*&idx:unsigned long [line 54]\n *&idx:unsigned long =(n$25 + 1) [line 54]\n REMOVE_TEMPS(n$25); [line 54]\n APPLY_ABSTRACTION; [line 54]\n " shape="box"]
32 -> 30 ; 32 -> 30 ;
31 [label="31: DeclStmt \n *&idx:unsigned long =0 [line 46]\n APPLY_ABSTRACTION; [line 46]\n " shape="box"] 31 [label="31: DeclStmt \n *&idx:unsigned long =0 [line 54]\n APPLY_ABSTRACTION; [line 54]\n " shape="box"]
31 -> 30 ; 31 -> 30 ;
@ -93,78 +93,78 @@ digraph iCFG {
30 -> 33 ; 30 -> 33 ;
29 [label="29: Call _fun_free \n NULLIFY(&enumerateObjectsUsingBlock,false); [line 53]\n NULLIFY(&idx,false); [line 53]\n NULLIFY(&objects,false); [line 53]\n n$24=*&stop:_Bool * [line 53]\n _fun_free(n$24:void *) [line 53]\n REMOVE_TEMPS(n$24); [line 53]\n NULLIFY(&__objc_anonymous_block_MyBlock_array_trans______2,true); [line 53]\n NULLIFY(&stop,false); [line 53]\n APPLY_ABSTRACTION; [line 53]\n " shape="box"] 29 [label="29: Call _fun_free \n NULLIFY(&enumerateObjectsUsingBlock,false); [line 61]\n NULLIFY(&idx,false); [line 61]\n NULLIFY(&objects,false); [line 61]\n n$24=*&stop:_Bool * [line 61]\n _fun_free(n$24:void *) [line 61]\n REMOVE_TEMPS(n$24); [line 61]\n NULLIFY(&__objc_anonymous_block_MyBlock_array_trans______2,true); [line 61]\n NULLIFY(&stop,false); [line 61]\n APPLY_ABSTRACTION; [line 61]\n " shape="box"]
29 -> 28 ; 29 -> 28 ;
28 [label="28: Exit MyBlock_array_trans \n " color=yellow style=filled] 28 [label="28: Exit MyBlock_array_trans \n " color=yellow style=filled]
27 [label="27: Start MyBlock_array_trans\nFormals: self:class MyBlock *\nLocals: idx:unsigned long object:struct objc_object * stop:_Bool * enumerateObjectsUsingBlock:_fn_ (*) objects:class NSArray * a:class NSArray * \n DECLARE_LOCALS(&return,&idx,&object,&stop,&enumerateObjectsUsingBlock,&objects,&a); [line 28]\n NULLIFY(&a,false); [line 28]\n NULLIFY(&enumerateObjectsUsingBlock,false); [line 28]\n NULLIFY(&idx,false); [line 28]\n NULLIFY(&object,false); [line 28]\n NULLIFY(&objects,false); [line 28]\n NULLIFY(&self,false); [line 28]\n NULLIFY(&stop,false); [line 28]\n " color=yellow style=filled] 27 [label="27: Start MyBlock_array_trans\nFormals: self:class MyBlock *\nLocals: idx:unsigned long object:struct objc_object * stop:_Bool * enumerateObjectsUsingBlock:_fn_ (*) objects:class NSArray * a:class NSArray * \n DECLARE_LOCALS(&return,&idx,&object,&stop,&enumerateObjectsUsingBlock,&objects,&a); [line 36]\n NULLIFY(&a,false); [line 36]\n NULLIFY(&enumerateObjectsUsingBlock,false); [line 36]\n NULLIFY(&idx,false); [line 36]\n NULLIFY(&object,false); [line 36]\n NULLIFY(&objects,false); [line 36]\n NULLIFY(&self,false); [line 36]\n NULLIFY(&stop,false); [line 36]\n " color=yellow style=filled]
27 -> 52 ; 27 -> 52 ;
26 [label="26: DeclStmt \n n$22=_fun___objc_alloc_no_fail(sizeof(class NSArray ):unsigned long ) [line 14]\n n$23=_fun_NSArray_init(n$22:class NSArray *) virtual [line 14]\n *&a:class NSArray *=n$23 [line 14]\n REMOVE_TEMPS(n$22,n$23); [line 14]\n " shape="box"] 26 [label="26: DeclStmt \n n$22=_fun___objc_alloc_no_fail(sizeof(class NSArray ):unsigned long ) [line 22]\n n$23=_fun_NSArray_init(n$22:class NSArray *) virtual [line 22]\n *&a:class NSArray *=n$23 [line 22]\n REMOVE_TEMPS(n$22,n$23); [line 22]\n " shape="box"]
26 -> 25 ; 26 -> 25 ;
25 [label="25: DeclStmt \n n$21=*&a:class NSArray * [line 15]\n *&objects:class NSArray *=n$21 [line 15]\n REMOVE_TEMPS(n$21); [line 15]\n NULLIFY(&a,false); [line 15]\n " shape="box"] 25 [label="25: DeclStmt \n n$21=*&a:class NSArray * [line 23]\n *&objects:class NSArray *=n$21 [line 23]\n REMOVE_TEMPS(n$21); [line 23]\n NULLIFY(&a,false); [line 23]\n " shape="box"]
25 -> 24 ; 25 -> 24 ;
24 [label="24: DeclStmt \n DECLARE_LOCALS(&__objc_anonymous_block_MyBlock_array______1); [line 15]\n n$20=_fun___objc_alloc_no_fail(sizeof(class __objc_anonymous_block_MyBlock_array______1 ):unsigned long ) [line 15]\n *&__objc_anonymous_block_MyBlock_array______1:class __objc_anonymous_block_MyBlock_array______1 =n$20 [line 15]\n *&infer___objc_anonymous_block_MyBlock_array______1:_fn_ (*)=(_fun___objc_anonymous_block_MyBlock_array______1) [line 15]\n REMOVE_TEMPS(n$20); [line 15]\n " shape="box"] 24 [label="24: DeclStmt \n DECLARE_LOCALS(&__objc_anonymous_block_MyBlock_array______1); [line 23]\n n$20=_fun___objc_alloc_no_fail(sizeof(class __objc_anonymous_block_MyBlock_array______1 ):unsigned long ) [line 23]\n *&__objc_anonymous_block_MyBlock_array______1:class __objc_anonymous_block_MyBlock_array______1 =n$20 [line 23]\n *&infer___objc_anonymous_block_MyBlock_array______1:_fn_ (*)=(_fun___objc_anonymous_block_MyBlock_array______1) [line 23]\n REMOVE_TEMPS(n$20); [line 23]\n " shape="box"]
24 -> 17 ; 24 -> 17 ;
23 [label="23: BinaryOperatorStmt: Assign \n NULLIFY(&ShouldStop,false); [line 22]\n n$19=*&stop:_Bool * [line 22]\n *n$19:_Bool =1 [line 22]\n REMOVE_TEMPS(n$19); [line 22]\n NULLIFY(&stop,false); [line 22]\n APPLY_ABSTRACTION; [line 22]\n " shape="box"] 23 [label="23: BinaryOperatorStmt: Assign \n NULLIFY(&ShouldStop,false); [line 30]\n n$19=*&stop:_Bool * [line 30]\n *n$19:_Bool =1 [line 30]\n REMOVE_TEMPS(n$19); [line 30]\n NULLIFY(&stop,false); [line 30]\n APPLY_ABSTRACTION; [line 30]\n " shape="box"]
23 -> 20 ; 23 -> 20 ;
22 [label="22: Prune (false branch) \n n$18=*&ShouldStop:int [line 20]\n PRUNE((n$18 == 0), false); [line 20]\n REMOVE_TEMPS(n$18); [line 20]\n APPLY_ABSTRACTION; [line 20]\n " shape="invhouse"] 22 [label="22: Prune (false branch) \n n$18=*&ShouldStop:int [line 28]\n PRUNE((n$18 == 0), false); [line 28]\n REMOVE_TEMPS(n$18); [line 28]\n APPLY_ABSTRACTION; [line 28]\n " shape="invhouse"]
22 -> 20 ; 22 -> 20 ;
21 [label="21: Prune (true branch) \n n$18=*&ShouldStop:int [line 20]\n PRUNE((n$18 != 0), true); [line 20]\n REMOVE_TEMPS(n$18); [line 20]\n " shape="invhouse"] 21 [label="21: Prune (true branch) \n n$18=*&ShouldStop:int [line 28]\n PRUNE((n$18 != 0), true); [line 28]\n REMOVE_TEMPS(n$18); [line 28]\n " shape="invhouse"]
21 -> 23 ; 21 -> 23 ;
20 [label="20: + \n NULLIFY(&ShouldStop,false); [line 20]\n NULLIFY(&stop,false); [line 20]\n " ] 20 [label="20: + \n NULLIFY(&ShouldStop,false); [line 28]\n NULLIFY(&stop,false); [line 28]\n " ]
20 -> 19 ; 20 -> 19 ;
19 [label="19: Exit __objc_anonymous_block_MyBlock_array______1 \n " color=yellow style=filled] 19 [label="19: Exit __objc_anonymous_block_MyBlock_array______1 \n " color=yellow style=filled]
18 [label="18: Start __objc_anonymous_block_MyBlock_array______1\nFormals: object:struct objc_object * idx:unsigned long stop:_Bool *\nLocals: ShouldStop:int \n DECLARE_LOCALS(&return,&ShouldStop); [line 15]\n NULLIFY(&idx,false); [line 15]\n NULLIFY(&object,false); [line 15]\n " color=yellow style=filled] 18 [label="18: Start __objc_anonymous_block_MyBlock_array______1\nFormals: object:struct objc_object * idx:unsigned long stop:_Bool *\nLocals: ShouldStop:int \n DECLARE_LOCALS(&return,&ShouldStop); [line 23]\n NULLIFY(&idx,false); [line 23]\n NULLIFY(&object,false); [line 23]\n " color=yellow style=filled]
18 -> 21 ; 18 -> 21 ;
18 -> 22 ; 18 -> 22 ;
17 [label="17: DeclStmt \n n$17=_fun_malloc_no_fail(sizeof(signed char ):signed char ) [line 15]\n *&stop:_Bool *=n$17 [line 15]\n REMOVE_TEMPS(n$17); [line 15]\n " shape="box"] 17 [label="17: DeclStmt \n n$17=_fun_malloc_no_fail(sizeof(signed char ):signed char ) [line 23]\n *&stop:_Bool *=n$17 [line 23]\n REMOVE_TEMPS(n$17); [line 23]\n " shape="box"]
17 -> 16 ; 17 -> 16 ;
16 [label="16: BinaryOperatorStmt: Assign \n n$16=*&stop:_Bool * [line 15]\n *n$16:void =0 [line 15]\n REMOVE_TEMPS(n$16); [line 15]\n " shape="box"] 16 [label="16: BinaryOperatorStmt: Assign \n n$16=*&stop:_Bool * [line 23]\n *n$16:void =0 [line 23]\n REMOVE_TEMPS(n$16); [line 23]\n " shape="box"]
16 -> 5 ; 16 -> 5 ;
15 [label="15: DeclStmt \n n$13=*&objects:class NSArray * [line 15]\n n$14=*&idx:unsigned long [line 15]\n n$15=_fun_NSArray_objectAtIndexedSubscript:(n$13:class NSArray *,n$14:unsigned long ) virtual [line 15]\n *&object:struct objc_object *=n$15 [line 15]\n REMOVE_TEMPS(n$13,n$14,n$15); [line 15]\n NULLIFY(&object,false); [line 15]\n " shape="box"] 15 [label="15: DeclStmt \n n$13=*&objects:class NSArray * [line 23]\n n$14=*&idx:unsigned long [line 23]\n n$15=_fun_NSArray_objectAtIndexedSubscript:(n$13:class NSArray *,n$14:unsigned long ) virtual [line 23]\n *&object:struct objc_object *=n$15 [line 23]\n REMOVE_TEMPS(n$13,n$14,n$15); [line 23]\n NULLIFY(&object,false); [line 23]\n " shape="box"]
15 -> 14 ; 15 -> 14 ;
14 [label="14: Call n$8 \n n$8=*&infer___objc_anonymous_block_MyBlock_array______1:_fn_ (*) [line 15]\n n$9=*&object:struct objc_object * [line 15]\n n$10=*&idx:unsigned long [line 15]\n n$11=*&stop:_Bool * [line 15]\n n$12=n$8(n$9:struct objc_object *,n$10:unsigned long ,n$11:_Bool *) [line 15]\n REMOVE_TEMPS(n$8,n$9,n$10,n$11,n$12); [line 15]\n " shape="box"] 14 [label="14: Call n$8 \n n$8=*&infer___objc_anonymous_block_MyBlock_array______1:_fn_ (*) [line 23]\n n$9=*&object:struct objc_object * [line 23]\n n$10=*&idx:unsigned long [line 23]\n n$11=*&stop:_Bool * [line 23]\n n$12=n$8(n$9:struct objc_object *,n$10:unsigned long ,n$11:_Bool *) [line 23]\n REMOVE_TEMPS(n$8,n$9,n$10,n$11,n$12); [line 23]\n " shape="box"]
14 -> 11 ; 14 -> 11 ;
13 [label="13: Prune (false branch) \n n$7=*n$6:signed char [line 15]\n PRUNE((n$7 == 0), false); [line 15]\n REMOVE_TEMPS(n$6,n$7); [line 15]\n " shape="invhouse"] 13 [label="13: Prune (false branch) \n n$7=*n$6:signed char [line 23]\n PRUNE((n$7 == 0), false); [line 23]\n REMOVE_TEMPS(n$6,n$7); [line 23]\n " shape="invhouse"]
13 -> 10 ; 13 -> 10 ;
12 [label="12: Prune (true branch) \n n$7=*n$6:signed char [line 15]\n PRUNE((n$7 != 0), true); [line 15]\n REMOVE_TEMPS(n$6,n$7); [line 15]\n APPLY_ABSTRACTION; [line 15]\n " shape="invhouse"] 12 [label="12: Prune (true branch) \n n$7=*n$6:signed char [line 23]\n PRUNE((n$7 != 0), true); [line 23]\n REMOVE_TEMPS(n$6,n$7); [line 23]\n APPLY_ABSTRACTION; [line 23]\n " shape="invhouse"]
12 -> 3 ; 12 -> 3 ;
11 [label="11: UnaryOperator \n n$6=*&stop:_Bool * [line 15]\n " shape="box"] 11 [label="11: UnaryOperator \n n$6=*&stop:_Bool * [line 23]\n " shape="box"]
11 -> 12 ; 11 -> 12 ;
@ -173,24 +173,24 @@ digraph iCFG {
10 -> 6 ; 10 -> 6 ;
9 [label="9: Prune (false branch) \n PRUNE(((n$3 < n$5) == 0), false); [line 15]\n REMOVE_TEMPS(n$3,n$4,n$5); [line 15]\n APPLY_ABSTRACTION; [line 15]\n " shape="invhouse"] 9 [label="9: Prune (false branch) \n PRUNE(((n$3 < n$5) == 0), false); [line 23]\n REMOVE_TEMPS(n$3,n$4,n$5); [line 23]\n APPLY_ABSTRACTION; [line 23]\n " shape="invhouse"]
9 -> 3 ; 9 -> 3 ;
8 [label="8: Prune (true branch) \n PRUNE(((n$3 < n$5) != 0), true); [line 15]\n REMOVE_TEMPS(n$3,n$4,n$5); [line 15]\n " shape="invhouse"] 8 [label="8: Prune (true branch) \n PRUNE(((n$3 < n$5) != 0), true); [line 23]\n REMOVE_TEMPS(n$3,n$4,n$5); [line 23]\n " shape="invhouse"]
8 -> 15 ; 8 -> 15 ;
7 [label="7: BinaryOperatorStmt: LT \n n$3=*&idx:unsigned long [line 15]\n n$4=*&objects:class NSArray * [line 15]\n n$5=_fun_NSArray_count(n$4:class NSArray *) virtual [line 15]\n " shape="box"] 7 [label="7: BinaryOperatorStmt: LT \n n$3=*&idx:unsigned long [line 23]\n n$4=*&objects:class NSArray * [line 23]\n n$5=_fun_NSArray_count(n$4:class NSArray *) virtual [line 23]\n " shape="box"]
7 -> 8 ; 7 -> 8 ;
7 -> 9 ; 7 -> 9 ;
6 [label="6: UnaryOperator \n n$2=*&idx:unsigned long [line 15]\n *&idx:unsigned long =(n$2 + 1) [line 15]\n REMOVE_TEMPS(n$2); [line 15]\n APPLY_ABSTRACTION; [line 15]\n " shape="box"] 6 [label="6: UnaryOperator \n n$2=*&idx:unsigned long [line 23]\n *&idx:unsigned long =(n$2 + 1) [line 23]\n REMOVE_TEMPS(n$2); [line 23]\n APPLY_ABSTRACTION; [line 23]\n " shape="box"]
6 -> 4 ; 6 -> 4 ;
5 [label="5: DeclStmt \n *&idx:unsigned long =0 [line 15]\n APPLY_ABSTRACTION; [line 15]\n " shape="box"] 5 [label="5: DeclStmt \n *&idx:unsigned long =0 [line 23]\n APPLY_ABSTRACTION; [line 23]\n " shape="box"]
5 -> 4 ; 5 -> 4 ;
@ -198,14 +198,14 @@ digraph iCFG {
4 -> 7 ; 4 -> 7 ;
3 [label="3: Call _fun_free \n NULLIFY(&idx,false); [line 15]\n NULLIFY(&infer___objc_anonymous_block_MyBlock_array______1,false); [line 15]\n NULLIFY(&objects,false); [line 15]\n n$0=*&stop:_Bool * [line 15]\n n$1=_fun_free(n$0:void *) [line 15]\n NULLIFY(&object,true); [line 15]\n NULLIFY(&idx,true); [line 15]\n NULLIFY(&stop,true); [line 15]\n NULLIFY(&objects,true); [line 15]\n REMOVE_TEMPS(n$0,n$1); [line 15]\n NULLIFY(&__objc_anonymous_block_MyBlock_array______1,true); [line 15]\n NULLIFY(&infer___objc_anonymous_block_MyBlock_array______1,true); [line 15]\n NULLIFY(&idx,false); [line 15]\n NULLIFY(&infer___objc_anonymous_block_MyBlock_array______1,false); [line 15]\n NULLIFY(&objects,false); [line 15]\n NULLIFY(&stop,false); [line 15]\n APPLY_ABSTRACTION; [line 15]\n " shape="box"] 3 [label="3: Call _fun_free \n NULLIFY(&idx,false); [line 23]\n NULLIFY(&infer___objc_anonymous_block_MyBlock_array______1,false); [line 23]\n NULLIFY(&objects,false); [line 23]\n n$0=*&stop:_Bool * [line 23]\n n$1=_fun_free(n$0:void *) [line 23]\n NULLIFY(&object,true); [line 23]\n NULLIFY(&idx,true); [line 23]\n NULLIFY(&stop,true); [line 23]\n NULLIFY(&objects,true); [line 23]\n REMOVE_TEMPS(n$0,n$1); [line 23]\n NULLIFY(&__objc_anonymous_block_MyBlock_array______1,true); [line 23]\n NULLIFY(&infer___objc_anonymous_block_MyBlock_array______1,true); [line 23]\n NULLIFY(&idx,false); [line 23]\n NULLIFY(&infer___objc_anonymous_block_MyBlock_array______1,false); [line 23]\n NULLIFY(&objects,false); [line 23]\n NULLIFY(&stop,false); [line 23]\n APPLY_ABSTRACTION; [line 23]\n " shape="box"]
3 -> 2 ; 3 -> 2 ;
2 [label="2: Exit MyBlock_array \n " color=yellow style=filled] 2 [label="2: Exit MyBlock_array \n " color=yellow style=filled]
1 [label="1: Start MyBlock_array\nFormals: self:class MyBlock *\nLocals: idx:unsigned long object:struct objc_object * stop:_Bool * infer___objc_anonymous_block_MyBlock_array______1:_fn_ (*) objects:class NSArray * a:class NSArray * \n DECLARE_LOCALS(&return,&idx,&object,&stop,&infer___objc_anonymous_block_MyBlock_array______1,&objects,&a); [line 12]\n NULLIFY(&a,false); [line 12]\n NULLIFY(&idx,false); [line 12]\n NULLIFY(&infer___objc_anonymous_block_MyBlock_array______1,false); [line 12]\n NULLIFY(&object,false); [line 12]\n NULLIFY(&objects,false); [line 12]\n NULLIFY(&self,false); [line 12]\n NULLIFY(&stop,false); [line 12]\n " color=yellow style=filled] 1 [label="1: Start MyBlock_array\nFormals: self:class MyBlock *\nLocals: idx:unsigned long object:struct objc_object * stop:_Bool * infer___objc_anonymous_block_MyBlock_array______1:_fn_ (*) objects:class NSArray * a:class NSArray * \n DECLARE_LOCALS(&return,&idx,&object,&stop,&infer___objc_anonymous_block_MyBlock_array______1,&objects,&a); [line 20]\n NULLIFY(&a,false); [line 20]\n NULLIFY(&idx,false); [line 20]\n NULLIFY(&infer___objc_anonymous_block_MyBlock_array______1,false); [line 20]\n NULLIFY(&object,false); [line 20]\n NULLIFY(&objects,false); [line 20]\n NULLIFY(&self,false); [line 20]\n NULLIFY(&stop,false); [line 20]\n " color=yellow style=filled]
1 -> 26 ; 1 -> 26 ;

@ -1,3 +1,11 @@
/*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@ -55,4 +63,3 @@ NSArray *a = [[NSArray alloc] init];
@end @end

@ -50,4 +50,3 @@ int main1 (int y) {
int main () { int main () {
return main1(4); return main1(4);
} }

@ -47,9 +47,3 @@ int main () {
if (b == 0) return *p; if (b == 0) return *p;
else return 0; else return 0;
} }

@ -22,4 +22,3 @@ NSDictionary* get_array2() {
return @{@"firstName" : @"Matt", @"lastName" : @"Galloway", @"age" : @28}; return @{@"firstName" : @"Matt", @"lastName" : @"Galloway", @"age" : @28};
} }

@ -13,4 +13,3 @@
} }
- (int)myNumber; - (int)myNumber;
@end @end

@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import <Foundation/NSObject.h> #import <Foundation/NSObject.h>
typedef struct { typedef struct {

@ -1,6 +1,10 @@
/* /*
* Copyright (c) 2013- Facebook. * Copyright (c) 2013 - present Facebook, Inc.
* All rights reserved. * All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package endtoend.c; package endtoend.c;

@ -6,8 +6,8 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
package endtoend.java.infer;
package endtoend.java.infer;
import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;
import static utils.matchers.ResultContainsErrorInMethod.contains; import static utils.matchers.ResultContainsErrorInMethod.contains;

@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
//Class to tests resource leaks on the class FilterInputStream and its subclasses //Class to tests resource leaks on the class FilterInputStream and its subclasses
package endtoend.java.infer; package endtoend.java.infer;
import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;

@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
//Class to tests resource leaks on the class FilterOutputStream and its subclasses //Class to tests resource leaks on the class FilterOutputStream and its subclasses
package endtoend.java.infer; package endtoend.java.infer;
import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;

@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory. * of patent rights can be found in the PATENTS file in the same directory.
*/ */
//Class to tests resource leaks on the class FilterOutputStream and its subclasses //Class to tests resource leaks on the class FilterOutputStream and its subclasses
package endtoend.java.infer; package endtoend.java.infer;
import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.MatcherAssert.assertThat;

@ -84,4 +84,3 @@ public class ArcExampleTest {
newDotFile, dotFileEqualTo(arc_dotty)); newDotFile, dotFileEqualTo(arc_dotty));
} }
} }

Loading…
Cancel
Save