Reviewed By: jberdine Differential Revision: D3884466 fbshipit-source-id: 4ab17f3master
parent
b34a23c1b4
commit
da01c2b94a
@ -1,19 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2013 - 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 <assert.h>
|
||||
|
||||
struct MyPoint {
|
||||
int x;
|
||||
};
|
||||
|
||||
int test_assert(struct MyPoint* activeq) {
|
||||
assert(activeq != 0);
|
||||
return activeq->x;
|
||||
}
|
@ -1,64 +0,0 @@
|
||||
/* @generated */
|
||||
digraph iCFG {
|
||||
15 [label="15: ConditinalStmt Branch \n *&0$?%__sil_tmpSIL_temp_conditional___n$2:void =0 [line 17]\n " shape="box"]
|
||||
|
||||
|
||||
15 -> 4 ;
|
||||
14 [label="14: ConditinalStmt Branch \n *&0$?%__sil_tmpSIL_temp_conditional___n$2:void =-1 [line 17]\n " shape="box"]
|
||||
|
||||
|
||||
14 -> 4 ;
|
||||
13 [label="13: Prune (true branch) \n PRUNE(0, true); [line 17]\n " shape="invhouse"]
|
||||
|
||||
|
||||
13 -> 14 ;
|
||||
12 [label="12: Prune (false branch) \n n$5=*&0$?%__sil_tmpSIL_temp_conditional___n$3:int [line 17]\n PRUNE((n$5 == 0), false); [line 17]\n " shape="invhouse"]
|
||||
|
||||
|
||||
12 -> 15 ;
|
||||
11 [label="11: Prune (true branch) \n n$5=*&0$?%__sil_tmpSIL_temp_conditional___n$3:int [line 17]\n PRUNE((n$5 != 0), true); [line 17]\n " shape="invhouse"]
|
||||
|
||||
|
||||
11 -> 13 ;
|
||||
10 [label="10: ConditinalStmt Branch \n *&0$?%__sil_tmpSIL_temp_conditional___n$3:int =1 [line 17]\n " shape="box"]
|
||||
|
||||
|
||||
10 -> 5 ;
|
||||
9 [label="9: ConditinalStmt Branch \n *&0$?%__sil_tmpSIL_temp_conditional___n$3:int =0 [line 17]\n " shape="box"]
|
||||
|
||||
|
||||
9 -> 5 ;
|
||||
8 [label="8: Prune (false branch) \n PRUNE(((n$4 != 0) == 0), false); [line 17]\n " shape="invhouse"]
|
||||
|
||||
|
||||
8 -> 10 ;
|
||||
7 [label="7: Prune (true branch) \n PRUNE(((n$4 != 0) != 0), true); [line 17]\n " shape="invhouse"]
|
||||
|
||||
|
||||
7 -> 9 ;
|
||||
6 [label="6: BinaryOperatorStmt: NE \n n$4=*&activeq:struct MyPoint * [line 17]\n " shape="box"]
|
||||
|
||||
|
||||
6 -> 7 ;
|
||||
6 -> 8 ;
|
||||
5 [label="5: + \n " ]
|
||||
|
||||
|
||||
5 -> 11 ;
|
||||
5 -> 12 ;
|
||||
4 [label="4: + \n " ]
|
||||
|
||||
|
||||
4 -> 3 ;
|
||||
3 [label="3: Return Stmt \n n$0=*&activeq:struct MyPoint * [line 18]\n n$1=*n$0.x:int [line 18]\n *&return:int =n$1 [line 18]\n " shape="box"]
|
||||
|
||||
|
||||
3 -> 2 ;
|
||||
2 [label="2: Exit test_assert \n " color=yellow style=filled]
|
||||
|
||||
|
||||
1 [label="1: Start test_assert\nFormals: activeq:struct MyPoint *\nLocals: 0$?%__sil_tmpSIL_temp_conditional___n$2:void 0$?%__sil_tmpSIL_temp_conditional___n$3:int \n DECLARE_LOCALS(&return,&0$?%__sil_tmpSIL_temp_conditional___n$2,&0$?%__sil_tmpSIL_temp_conditional___n$3); [line 16]\n " color=yellow style=filled]
|
||||
|
||||
|
||||
1 -> 6 ;
|
||||
}
|
Loading…
Reference in new issue