Update tests

This commit is contained in:
Sergi Àlvarez i Capilla 2022-03-15 10:36:12 +01:00 committed by pancake
parent f44932aafa
commit cedcd24508
5 changed files with 31 additions and 3 deletions

View File

@ -2,9 +2,9 @@
#define INCLUDE_ANAL_ABI
#if R2_VERSION_MAJOR >= 5 && R2_VERSION_MINOR >= 7
#define R_ABI
#define R_ABI R_API
#else
#define R_ABI static
#define R_ABI R_UNUSED static
#endif
R_ABI int r_anal_function_instrcount(RAnalFunction *fcn) {

View File

@ -39,7 +39,11 @@ cyclomatic-complexity: 1
bits: 32
type: fcn [NEW]
num-bbs: 5
num-instrs: 19
edges: 6
minbound: 0x00004438
maxbound: 0x00004476
is-lineal: true
end-bbs: 0
call-refs: 0x00004558 C 0x0000447a C 0x00004484 C 0x00004558 C 0x0000446a J 0x00004558 C 0x0000449c C 0x00004470 J
data-refs:

View File

@ -2798,7 +2798,11 @@ cyclomatic-complexity: 0
bits: 64
type: fcn [NEW]
num-bbs: 2
num-instrs: 1
edges: 2
minbound: 0x00000000
maxbound: 0x00000007
is-lineal: true
end-bbs: 0
call-refs:
data-refs:
@ -2857,7 +2861,11 @@ cyclomatic-complexity: 1
bits: 64
type: fcn [NEW]
num-bbs: 2
num-instrs: 5
edges: 1
minbound: 0x00000000
maxbound: 0x0000000d
is-lineal: false
end-bbs: 1
call-refs: 0x00000004 J
data-refs: 0x0000002c
@ -2932,7 +2940,11 @@ cyclomatic-complexity: 0
bits: 64
type: fcn [NEW]
num-bbs: 2
num-instrs: 5
edges: 2
minbound: 0x00000000
maxbound: 0x0000000e
is-lineal: false
end-bbs: 0
call-refs: 0x00000004 J 0x00000004 J
data-refs: 0x0000002c
@ -3015,7 +3027,11 @@ cyclomatic-complexity: 0
bits: 64
type: fcn [NEW]
num-bbs: 3
num-instrs: 5
edges: 3
minbound: 0x00000000
maxbound: 0x0000000e
is-lineal: false
end-bbs: 0
call-refs: 0x00000004 J 0x00000005 J
data-refs: 0x0000002c
@ -3107,7 +3123,11 @@ cyclomatic-complexity: 0
bits: 64
type: fcn [NEW]
num-bbs: 4
num-instrs: 7
edges: 4
minbound: 0x00000000
maxbound: 0x00000013
is-lineal: false
end-bbs: 0
call-refs: 0x00000009 J 0x00000003 J
data-refs: 0x0000002c

View File

@ -299,7 +299,11 @@ cyclomatic-complexity: 1
bits: 64
type: sym [NEW]
num-bbs: 1
num-instrs: 8
edges: 0
minbound: 0x00001119
maxbound: 0x00001133
is-lineal: true
end-bbs: 1
call-refs:
data-refs:

View File

@ -7,7 +7,7 @@ afi.
afb.
EOF
EXPECT=<<EOF
33
37
main
0x1000011e8 0x100001211 00:0000 41 j 0x100001216 f 0x100001211
EOF