mirror of
https://github.com/Dev-KATECH/ADM.git
synced 2026-05-17 09:53:59 +09:00
1824 lines
59 KiB
Plaintext
1824 lines
59 KiB
Plaintext
IPA function summary for cmd_debug.part.0/55 inlinable
|
|
global time: 14.000000
|
|
self size: 6
|
|
global size: 6
|
|
min size: 4
|
|
self stack: 0
|
|
global stack: 0
|
|
size:1.000000, time:1.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_md.part.0/54 inlinable
|
|
global time: 35.000000
|
|
self size: 9
|
|
global size: 9
|
|
min size: 12
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_mm.part.0/53 inlinable
|
|
global time: 44.000000
|
|
self size: 18
|
|
global size: 18
|
|
min size: 24
|
|
self stack: 0
|
|
global stack: 0
|
|
size:2.000000, time:2.000000
|
|
size:4.000000, time:3.000000, executed if:(not inlined)
|
|
calls:
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:1.00 size: 5 time: 14
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:1.00 size: 5 time: 14
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_main/41 inlinable
|
|
global time: 56.648838
|
|
self size: 39
|
|
global size: 39
|
|
min size: 46
|
|
self stack: 32
|
|
global stack: 32
|
|
size:13.000000, time:12.528405
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.25 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.05 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
execute_cmd/40 function not considered for inlining
|
|
loop depth: 0 freq:0.25 size: 4 time: 13callee size:10 stack: 0
|
|
op1 is compile time invariant
|
|
strtok/52 function body not available
|
|
loop depth: 1 freq:1.31 size: 4 time: 13
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
strtok/52 function body not available
|
|
loop depth: 0 freq:0.25 size: 4 time: 13
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.25 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
get_line/51 function body not available
|
|
loop depth: 0 freq:1.00 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for execute_cmd/40 inlinable
|
|
global time: 188.478850
|
|
self size: 20
|
|
global size: 20
|
|
min size: 18
|
|
self stack: 0
|
|
global stack: 0
|
|
size:7.000000, time:54.545454
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:0.500000, time:4.416920, executed if:(not inlined), nonconst if:(op1[ref offset: 0] changed) && (not inlined)
|
|
size:0.500000, time:4.416920, nonconst if:(op1[ref offset: 0] changed)
|
|
calls:
|
|
strcmp/50 function body not available
|
|
loop depth: 1 freq:8.83 size: 4 time: 13
|
|
indirect call loop depth: 0 freq:0.49 size: 5 time: 17
|
|
|
|
IPA function summary for cmd_help/39 inlinable
|
|
global time: 1318.570339
|
|
self size: 30
|
|
global size: 30
|
|
min size: 34
|
|
self stack: 0
|
|
global stack: 0
|
|
size:10.000000, time:272.206631
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:8.09 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 2 freq:65.46 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
strlen/49 function body not available
|
|
loop depth: 1 freq:8.09 size: 3 time: 12
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:8.09 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_show/38 inlinable
|
|
global time: 129.000000
|
|
self size: 23
|
|
global size: 23
|
|
min size: 30
|
|
self stack: 0
|
|
global stack: 0
|
|
size:5.000000, time:19.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:4.00 size: 4 time: 13
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_clear/37 inlinable
|
|
global time: 15.000000
|
|
self size: 7
|
|
global size: 7
|
|
min size: 8
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 4 time: 13
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
|
|
IPA function summary for cmd_reset/36 inlinable
|
|
global time: 23.000000
|
|
self size: 6
|
|
global size: 6
|
|
min size: 6
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
system_reset/48 function body not available
|
|
loop depth: 0 freq:1.00 size: 1 time: 10
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_save/35 inlinable
|
|
global time: 2.000000
|
|
self size: 3
|
|
global size: 3
|
|
min size: 0
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
|
|
IPA function summary for cmd_debug/34 inlinable
|
|
global time: 28.445500
|
|
self size: 30
|
|
global size: 30
|
|
min size: 0
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:2.000000, time:2.000000, nonconst if:(op0 changed)
|
|
size:0.500000, time:0.250000, executed if:(op0 == 2) && (not inlined)
|
|
size:5.500000, time:2.085000, executed if:(op0 == 2)
|
|
size:3.000000, time:1.500000, executed if:(op0 != 2)
|
|
calls:
|
|
cmd_debug.part.0/55 function not considered for inlining
|
|
loop depth: 0 freq:0.11 size: 1 time: 10callee size: 3 stack: 0 predicate: (op0 == 2)
|
|
strncasecmp/47 function body not available
|
|
loop depth: 0 freq:0.33 size: 5 time: 14 predicate: (op0 == 2)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.17 size: 2 time: 11 predicate: (op0 == 2)
|
|
op0 is compile time invariant
|
|
strncasecmp/47 function body not available
|
|
loop depth: 0 freq:0.50 size: 5 time: 14 predicate: (op0 == 2)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.50 size: 3 time: 12 predicate: (op0 != 2)
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_md/33 inlinable
|
|
global time: 182.948397
|
|
self size: 38
|
|
global size: 38
|
|
min size: 28
|
|
self stack: 0
|
|
global stack: 0
|
|
size:9.500000, time:55.170568
|
|
size:3.500000, time:2.366250, executed if:(not inlined)
|
|
size:5.000000, time:4.465000, nonconst if:(op0 changed)
|
|
size:0.500000, time:0.179023, executed if:(op0 != 2) && (not inlined)
|
|
size:0.500000, time:0.179023, executed if:(op0 != 2)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.73 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:5.93 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:1.96 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.73 size: 5 time: 14
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.36 size: 5 time: 14 predicate: (op0 != 2)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
cmd_md.part.0/54 function not considered for inlining
|
|
loop depth: 0 freq:0.27 size: 1 time: 10callee size: 4 stack: 0
|
|
|
|
IPA function summary for cmd_mm/32 inlinable
|
|
global time: 20.500000
|
|
self size: 11
|
|
global size: 11
|
|
min size: 0
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:2.000000, time:2.000000, nonconst if:(op0 changed)
|
|
calls:
|
|
cmd_mm.part.0/53 function not considered for inlining
|
|
loop depth: 0 freq:0.50 size: 2 time: 11callee size: 9 stack: 0 predicate: (op0 == 3)
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.50 size: 2 time: 11 predicate: (op0 != 3)
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.50 size: 2 time: 11 predicate: (op0 != 3)
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_pwm/31 inlinable
|
|
global time: 37.314982
|
|
self size: 32
|
|
global size: 32
|
|
min size: 8
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:2.000000, time:2.000000, nonconst if:(op0 changed)
|
|
size:1.000000, time:0.330000, executed if:(op0 == 3) && (not inlined)
|
|
size:5.000000, time:1.425600, executed if:(op0 == 3)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.89 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.89 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
set_pwm/45 function body not available
|
|
loop depth: 0 freq:0.11 size: 3 time: 12 predicate: (op0 == 3)
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.11 size: 4 time: 13 predicate: (op0 == 3)
|
|
op0 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.33 size: 5 time: 14 predicate: (op0 == 3)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.33 size: 5 time: 14 predicate: (op0 == 3)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
|
|
IPA function summary for cmd_adc/30 inlinable
|
|
global time: 31.873472
|
|
self size: 23
|
|
global size: 23
|
|
min size: 8
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:2.000000, time:2.000000, nonconst if:(op0 changed)
|
|
size:0.500000, time:0.165000, executed if:(op0 == 2) && (not inlined)
|
|
size:2.500000, time:0.825000, executed if:(op0 == 2)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.87 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.87 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
Adc_Sar_Ip_StartConversion/44 function body not available
|
|
loop depth: 0 freq:0.13 size: 3 time: 12 predicate: (op0 == 2)
|
|
op1 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.13 size: 3 time: 12 predicate: (op0 == 2)
|
|
op0 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.33 size: 5 time: 14 predicate: (op0 == 2)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
|
|
|
|
Flattening functions:
|
|
Overall time estimate: 2126.780380 weighted by profile: 0.000000
|
|
|
|
Deciding on inlining of small functions. Starting with size 0.
|
|
Enqueueing calls in cmd_debug.part.0/55.
|
|
Enqueueing calls in cmd_md.part.0/54.
|
|
Enqueueing calls in cmd_mm.part.0/53.
|
|
Enqueueing calls in cmd_main/41.
|
|
Enqueueing calls in execute_cmd/40.
|
|
Enqueueing calls in cmd_help/39.
|
|
Enqueueing calls in cmd_show/38.
|
|
Enqueueing calls in cmd_clear/37.
|
|
Enqueueing calls in cmd_reset/36.
|
|
Enqueueing calls in cmd_save/35.
|
|
Enqueueing calls in cmd_debug/34.
|
|
Enqueueing calls in cmd_md/33.
|
|
Enqueueing calls in cmd_mm/32.
|
|
Enqueueing calls in cmd_pwm/31.
|
|
Enqueueing calls in cmd_adc/30.
|
|
|
|
Considering cmd_mm.part.0/53 with 18 size
|
|
to be inlined into cmd_mm/32 in unknown:0
|
|
Estimated badness is -0.101449, frequency 0.50.
|
|
|
|
Considering cmd_debug.part.0/55 with 6 size
|
|
to be inlined into cmd_debug/34 in unknown:0
|
|
Estimated badness is -0.082912, frequency 0.11.
|
|
|
|
Considering cmd_md.part.0/54 with 9 size
|
|
to be inlined into cmd_md/33 in unknown:0
|
|
Estimated badness is -0.059721, frequency 0.27.
|
|
|
|
Reclaiming functions:
|
|
Reclaiming variables:
|
|
Clearing address taken flags:
|
|
|
|
Deciding on functions to be inlined into all callers and removing useless speculations:
|
|
Overall time estimate: 2055.153980 weighted by profile: 0.000000
|
|
|
|
Why inlining failed?
|
|
function body not available : 52 calls, 136.291047 freq, 0 count
|
|
call is unlikely and code size would grow : 1 calls, 0.250000 freq, 0 count
|
|
IPA function summary for cmd_main/41 inlinable
|
|
global time: 56.648838
|
|
self size: 39
|
|
global size: 39
|
|
min size: 46
|
|
self stack: 32
|
|
global stack: 32
|
|
size:13.000000, time:12.528405
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.25 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.05 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
execute_cmd/40 call is unlikely and code size would grow
|
|
loop depth: 0 freq:0.25 size: 4 time: 13callee size:10 stack: 0
|
|
op1 is compile time invariant
|
|
strtok/52 function body not available
|
|
loop depth: 1 freq:1.31 size: 4 time: 13
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
strtok/52 function body not available
|
|
loop depth: 0 freq:0.25 size: 4 time: 13
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.25 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
get_line/51 function body not available
|
|
loop depth: 0 freq:1.00 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for execute_cmd/40 inlinable
|
|
global time: 188.478850
|
|
self size: 20
|
|
global size: 20
|
|
min size: 7
|
|
self stack: 0
|
|
global stack: 0
|
|
estimated growth:13
|
|
size:7.000000, time:54.545454
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:0.500000, time:4.416920, executed if:(not inlined), nonconst if:(op1[ref offset: 0] changed) && (not inlined)
|
|
size:0.500000, time:4.416920, nonconst if:(op1[ref offset: 0] changed)
|
|
calls:
|
|
strcmp/50 function body not available
|
|
loop depth: 1 freq:8.83 size: 4 time: 13
|
|
indirect call loop depth: 0 freq:0.49 size: 5 time: 17
|
|
|
|
IPA function summary for cmd_help/39 inlinable
|
|
global time: 1318.570339
|
|
self size: 30
|
|
global size: 30
|
|
min size: 34
|
|
self stack: 0
|
|
global stack: 0
|
|
size:10.000000, time:272.206631
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:8.09 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 2 freq:65.46 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
strlen/49 function body not available
|
|
loop depth: 1 freq:8.09 size: 3 time: 12
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:8.09 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_show/38 inlinable
|
|
global time: 129.000000
|
|
self size: 23
|
|
global size: 23
|
|
min size: 30
|
|
self stack: 0
|
|
global stack: 0
|
|
size:5.000000, time:19.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:4.00 size: 4 time: 13
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_clear/37 inlinable
|
|
global time: 15.000000
|
|
self size: 7
|
|
global size: 7
|
|
min size: 8
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 4 time: 13
|
|
op0 is compile time invariant
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
|
|
IPA function summary for cmd_reset/36 inlinable
|
|
global time: 23.000000
|
|
self size: 6
|
|
global size: 6
|
|
min size: 6
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
system_reset/48 function body not available
|
|
loop depth: 0 freq:1.00 size: 1 time: 10
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:1.00 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_save/35 inlinable
|
|
global time: 2.000000
|
|
self size: 3
|
|
global size: 3
|
|
min size: 0
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
calls:
|
|
|
|
IPA function summary for cmd_debug/34 inlinable
|
|
global time: 28.666600
|
|
self size: 30
|
|
global size: 32
|
|
min size: 0
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:2.000000, time:2.000000, nonconst if:(op0 changed)
|
|
size:0.500000, time:0.250000, executed if:(op0 == 2) && (not inlined)
|
|
size:6.500000, time:2.195550, executed if:(op0 == 2)
|
|
size:3.000000, time:1.500000, executed if:(op0 != 2)
|
|
calls:
|
|
cmd_debug.part.0/55 inlined
|
|
loop depth: 0 freq:0.11 size: 1 time: 10callee size: 3 stack: 0
|
|
Stack frame offset 0, callee self size 0, callee size 0
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.11 size: 2 time: 11 predicate: (op0 == 2)
|
|
op0 is compile time invariant
|
|
strncasecmp/47 function body not available
|
|
loop depth: 0 freq:0.33 size: 5 time: 14 predicate: (op0 == 2)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.17 size: 2 time: 11 predicate: (op0 == 2)
|
|
op0 is compile time invariant
|
|
strncasecmp/47 function body not available
|
|
loop depth: 0 freq:0.50 size: 5 time: 14 predicate: (op0 == 2)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.50 size: 3 time: 12 predicate: (op0 != 2)
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_md/33 inlinable
|
|
global time: 189.100898
|
|
self size: 38
|
|
global size: 43
|
|
min size: 66
|
|
self stack: 0
|
|
global stack: 0
|
|
size:9.500000, time:55.170568
|
|
size:3.500000, time:2.366250, executed if:(not inlined)
|
|
size:5.000000, time:4.465000, nonconst if:(op0 changed)
|
|
size:0.500000, time:0.179023, executed if:(op0 != 2) && (not inlined)
|
|
size:0.500000, time:0.179023, executed if:(op0 != 2)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.73 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:5.93 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 1 freq:1.96 size: 3 time: 12
|
|
op0 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.73 size: 5 time: 14
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.36 size: 5 time: 14 predicate: (op0 != 2)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
cmd_md.part.0/54 inlined
|
|
loop depth: 0 freq:0.27 size: 1 time: 10callee size: 4 stack: 0
|
|
Stack frame offset 0, callee self size 0, callee size 0
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.27 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.27 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.27 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_mm/32 inlinable
|
|
global time: 35.500000
|
|
self size: 11
|
|
global size: 23
|
|
min size: 0
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:2.000000, time:2.000000, nonconst if:(op0 changed)
|
|
size:2.000000, time:1.000000, executed if:(op0 == 3)
|
|
calls:
|
|
cmd_mm.part.0/53 inlined
|
|
loop depth: 0 freq:0.50 size: 2 time: 11callee size: 9 stack: 0
|
|
Stack frame offset 0, callee self size 0, callee size 0
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.50 size: 5 time: 14 predicate: (op0 == 3)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.50 size: 5 time: 14 predicate: (op0 == 3)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.50 size: 2 time: 11 predicate: (op0 == 3)
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.50 size: 2 time: 11 predicate: (op0 != 3)
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.50 size: 2 time: 11 predicate: (op0 != 3)
|
|
op0 is compile time invariant
|
|
|
|
IPA function summary for cmd_pwm/31 inlinable
|
|
global time: 37.314982
|
|
self size: 32
|
|
global size: 32
|
|
min size: 8
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:2.000000, time:2.000000, nonconst if:(op0 changed)
|
|
size:1.000000, time:0.330000, executed if:(op0 == 3) && (not inlined)
|
|
size:5.000000, time:1.425600, executed if:(op0 == 3)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.89 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.89 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
set_pwm/45 function body not available
|
|
loop depth: 0 freq:0.11 size: 3 time: 12 predicate: (op0 == 3)
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.11 size: 4 time: 13 predicate: (op0 == 3)
|
|
op0 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.33 size: 5 time: 14 predicate: (op0 == 3)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.33 size: 5 time: 14 predicate: (op0 == 3)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
|
|
IPA function summary for cmd_adc/30 inlinable
|
|
global time: 31.873472
|
|
self size: 23
|
|
global size: 23
|
|
min size: 8
|
|
self stack: 0
|
|
global stack: 0
|
|
size:0.000000, time:0.000000
|
|
size:3.000000, time:2.000000, executed if:(not inlined)
|
|
size:2.000000, time:2.000000, nonconst if:(op0 changed)
|
|
size:0.500000, time:0.165000, executed if:(op0 == 2) && (not inlined)
|
|
size:2.500000, time:0.825000, executed if:(op0 == 2)
|
|
calls:
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.87 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.87 size: 2 time: 11
|
|
op0 is compile time invariant
|
|
Adc_Sar_Ip_StartConversion/44 function body not available
|
|
loop depth: 0 freq:0.13 size: 3 time: 12 predicate: (op0 == 2)
|
|
op1 is compile time invariant
|
|
debug_printf/43 function body not available
|
|
loop depth: 0 freq:0.13 size: 3 time: 12 predicate: (op0 == 2)
|
|
op0 is compile time invariant
|
|
strtoul/42 function body not available
|
|
loop depth: 0 freq:0.33 size: 5 time: 14 predicate: (op0 == 2)
|
|
op1 is compile time invariant
|
|
op2 is compile time invariant
|
|
|
|
Symbol table:
|
|
|
|
cmd_debug.part.0/55 (cmd_debug.part.0) @068c0540
|
|
Type: function definition analyzed
|
|
Visibility: prevailing_def_ironly artificial
|
|
References: gb/46 (write)
|
|
Referring:
|
|
Function cmd_debug.part.0/55 is inline copy in cmd_debug/34
|
|
Availability: local
|
|
Function flags: count:118702158 (estimated locally) first_run:1 body local split_part optimize_size
|
|
Called by: cmd_debug/34 (inlined) (118702158 (estimated locally),0.11 per call)
|
|
Calls: debug_printf/43 (118702158 (estimated locally),0.11 per call)
|
|
cmd_md.part.0/54 (cmd_md.part.0) @068c02a0
|
|
Type: function definition analyzed
|
|
Visibility: prevailing_def_ironly artificial
|
|
References:
|
|
Referring:
|
|
Function cmd_md.part.0/54 is inline copy in cmd_md/33
|
|
Availability: local
|
|
Function flags: count:43132906 (estimated locally) first_run:1 body local split_part optimize_size
|
|
Called by: cmd_md/33 (inlined) (43132906 (estimated locally),0.27 per call)
|
|
Calls: debug_printf/43 (43132906 (estimated locally),0.27 per call) debug_printf/43 (43132906 (estimated locally),0.27 per call) debug_printf/43 (43132906 (estimated locally),0.27 per call)
|
|
cmd_mm.part.0/53 (cmd_mm.part.0) @068b9e00
|
|
Type: function definition analyzed
|
|
Visibility: prevailing_def_ironly artificial
|
|
References:
|
|
Referring:
|
|
Function cmd_mm.part.0/53 is inline copy in cmd_mm/32
|
|
Availability: local
|
|
Function flags: count:536870912 (estimated locally) first_run:1 body local split_part optimize_size
|
|
Called by: cmd_mm/32 (inlined) (536870912 (estimated locally),0.50 per call)
|
|
Calls: strtoul/42 (536870912 (estimated locally),0.50 per call) strtoul/42 (536870912 (estimated locally),0.50 per call) debug_printf/43 (536870912 (estimated locally),0.50 per call)
|
|
strtok/52 (strtok) @087f2a80
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: cmd_main/41 (901954409 (estimated locally),1.31 per call) cmd_main/41 (171787418 (estimated locally),0.25 per call)
|
|
Calls:
|
|
get_line/51 (get_line) @087f29a0
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: cmd_main/41 (687149673 (estimated locally),1.00 per call)
|
|
Calls:
|
|
strcmp/50 (strcmp) @087f27e0
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: execute_cmd/40 (1014686025 (estimated locally),8.83 per call)
|
|
Calls:
|
|
strlen/49 (strlen) @087f2620
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: cmd_help/39 (118111600 (estimated locally),8.09 per call)
|
|
Calls:
|
|
system_reset/48 (system_reset) @087f22a0
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: cmd_reset/36 (1073741824 (estimated locally),1.00 per call)
|
|
Calls:
|
|
strncasecmp/47 (strncasecmp) @087f2000
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: cmd_debug/34 (359703511 (estimated locally),0.33 per call) cmd_debug/34 (536870913 (estimated locally),0.50 per call)
|
|
Calls:
|
|
gb/46 (gb) @087dac18
|
|
Type: variable
|
|
Body removed by symtab_remove_unreachable_nodes
|
|
Visibility: external public
|
|
References:
|
|
Referring: cmd_show/38 (read)cmd_debug/34 (read)cmd_debug/34 (write)cmd_show/38 (read)cmd_debug.part.0/55 (write)cmd_main/41 (read)cmd_main/41 (addr)
|
|
Availability: not_available
|
|
Varpool flags:
|
|
set_pwm/45 (set_pwm) @087d4e00
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: cmd_pwm/31 (114311242 (estimated locally),0.11 per call)
|
|
Calls:
|
|
Adc_Sar_Ip_StartConversion/44 (Adc_Sar_Ip_StartConversion) @087d4c40
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: cmd_adc/30 (141450453 (estimated locally),0.13 per call)
|
|
Calls:
|
|
debug_printf/43 (debug_printf) @087d4b60
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: cmd_main/41 (171787418 (estimated locally),0.25 per call) cmd_main/41 (34769773 (estimated locally),0.05 per call) cmd_main/41 (171787418 (estimated locally),0.25 per call) cmd_help/39 (14598063 (estimated locally),1.00 per call) cmd_help/39 (118111601 (estimated locally),8.09 per call) cmd_help/39 (955630224 (estimated locally),65.46 per call) cmd_help/39 (118111600 (estimated locally),8.09 per call) cmd_help/39 (14598062 (estimated locally),1.00 per call) cmd_help/39 (14598062 (estimated locally),1.00 per call) cmd_reset/36 (1073741824 (estimated locally),1.00 per call) cmd_debug/34 (177167401 (estimated locally),0.17 per call) cmd_debug/34 (536870913 (estimated locally),0.50 per call) cmd_debug.part.0/55 (118702158 (estimated locally),0.11 per call) cmd_pwm/31 (959430584 (estimated locally),0.89 per call) cmd_pwm/31 (959430584 (estimated locally),0.89 per call) cmd_pwm/31 (114311242 (estimated locally),0.11 per call) cmd_adc/30 (932291372 (estimated locally),0.87 per call) cmd_adc/30 (932291372 (estimated locally),0.87 per call) cmd_adc/30 (141450453 (estimated locally),0.13 per call) cmd_show/38 (214748365 (estimated locally),1.00 per call) cmd_show/38 (858993459 (estimated locally),4.00 per call) cmd_show/38 (214748364 (estimated locally),1.00 per call) cmd_show/38 (214748364 (estimated locally),1.00 per call) cmd_show/38 (214748364 (estimated locally),1.00 per call) cmd_show/38 (214748364 (estimated locally),1.00 per call) cmd_clear/37 (1073741824 (estimated locally),1.00 per call) cmd_md/33 (118111601 (estimated locally),0.73 per call) cmd_md/33 (955630224 (estimated locally),5.93 per call) cmd_md/33 (315357974 (estimated locally),1.96 per call) cmd_md.part.0/54 (43132906 (estimated locally),0.27 per call) cmd_md.part.0/54 (43132906 (estimated locally),0.27 per call) cmd_md.part.0/54 (43132906 (estimated locally),0.27 per call) cmd_mm/32 (536870913 (estimated locally),0.50 per call) cmd_mm/32 (536870913 (estimated locally),0.50 per call) cmd_mm.part.0/53 (536870912 (estimated locally),0.50 per call)
|
|
Calls:
|
|
strtoul/42 (strtoul) @087d4a80
|
|
Type: function
|
|
Visibility: external public
|
|
References:
|
|
Referring:
|
|
Availability: not_available
|
|
Function flags: optimize_size
|
|
Called by: cmd_pwm/31 (354334802 (estimated locally),0.33 per call) cmd_pwm/31 (354334802 (estimated locally),0.33 per call) cmd_adc/30 (354334802 (estimated locally),0.33 per call) cmd_md/33 (118111602 (estimated locally),0.73 per call) cmd_md/33 (57732951 (estimated locally),0.36 per call) cmd_mm.part.0/53 (536870912 (estimated locally),0.50 per call) cmd_mm.part.0/53 (536870912 (estimated locally),0.50 per call)
|
|
Calls:
|
|
cmd_main/41 (cmd_main) @087d4540
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
References: gb/46 (read)gb/46 (addr)
|
|
Referring:
|
|
Availability: available
|
|
Function flags: count:687149673 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: debug_printf/43 (171787418 (estimated locally),0.25 per call) debug_printf/43 (34769773 (estimated locally),0.05 per call) execute_cmd/40 (171787418 (estimated locally),0.25 per call) strtok/52 (901954409 (estimated locally),1.31 per call) strtok/52 (171787418 (estimated locally),0.25 per call) debug_printf/43 (171787418 (estimated locally),0.25 per call) get_line/51 (687149673 (estimated locally),1.00 per call)
|
|
execute_cmd/40 (execute_cmd) @087d42a0
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
References: mmi_cmd/29 (read)mmi_cmd/29 (read)
|
|
Referring:
|
|
Availability: available
|
|
Function flags: count:114863532 (estimated locally) body optimize_size
|
|
Called by: cmd_main/41 (171787418 (estimated locally),0.25 per call)
|
|
Calls: strcmp/50 (1014686025 (estimated locally),8.83 per call)
|
|
Indirect call(55807731 (estimated locally),0.49 per call)
|
|
cmd_help/39 (cmd_help) @087d4000
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References: mmi_cmd/29 (read)mmi_cmd/29 (read)mmi_cmd/29 (read)
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:14598062 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: debug_printf/43 (14598063 (estimated locally),1.00 per call) debug_printf/43 (118111601 (estimated locally),8.09 per call) debug_printf/43 (955630224 (estimated locally),65.46 per call) strlen/49 (118111600 (estimated locally),8.09 per call) debug_printf/43 (118111600 (estimated locally),8.09 per call) debug_printf/43 (14598062 (estimated locally),1.00 per call) debug_printf/43 (14598062 (estimated locally),1.00 per call)
|
|
cmd_show/38 (cmd_show) @08855b60
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References: gb/46 (read)gb/46 (read)
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:214748364 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: debug_printf/43 (214748365 (estimated locally),1.00 per call) debug_printf/43 (858993459 (estimated locally),4.00 per call) debug_printf/43 (214748364 (estimated locally),1.00 per call) debug_printf/43 (214748364 (estimated locally),1.00 per call) debug_printf/43 (214748364 (estimated locally),1.00 per call) debug_printf/43 (214748364 (estimated locally),1.00 per call)
|
|
cmd_clear/37 (cmd_clear) @08855620
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References:
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:1073741824 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: debug_printf/43 (1073741824 (estimated locally),1.00 per call)
|
|
cmd_reset/36 (cmd_reset) @088550e0
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References:
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:1073741824 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: system_reset/48 (1073741824 (estimated locally),1.00 per call) debug_printf/43 (1073741824 (estimated locally),1.00 per call)
|
|
cmd_save/35 (cmd_save) @08855d20
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References:
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:1073741824 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls:
|
|
cmd_debug/34 (cmd_debug) @08855a80
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References: gb/46 (read)gb/46 (write)
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:1073741824 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: cmd_debug.part.0/55 (inlined) (118702158 (estimated locally),0.11 per call) strncasecmp/47 (359703511 (estimated locally),0.33 per call) debug_printf/43 (177167401 (estimated locally),0.17 per call) strncasecmp/47 (536870913 (estimated locally),0.50 per call) debug_printf/43 (536870913 (estimated locally),0.50 per call)
|
|
cmd_md/33 (cmd_md) @088557e0
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References:
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:161244508 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: debug_printf/43 (118111601 (estimated locally),0.73 per call) debug_printf/43 (955630224 (estimated locally),5.93 per call) debug_printf/43 (315357974 (estimated locally),1.96 per call) strtoul/42 (118111602 (estimated locally),0.73 per call) strtoul/42 (57732951 (estimated locally),0.36 per call) cmd_md.part.0/54 (inlined) (43132906 (estimated locally),0.27 per call)
|
|
cmd_mm/32 (cmd_mm) @08855540
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References:
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:1073741824 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: cmd_mm.part.0/53 (inlined) (536870912 (estimated locally),0.50 per call) debug_printf/43 (536870913 (estimated locally),0.50 per call) debug_printf/43 (536870913 (estimated locally),0.50 per call)
|
|
cmd_pwm/31 (cmd_pwm) @088552a0
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References:
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:1073741824 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: debug_printf/43 (959430584 (estimated locally),0.89 per call) debug_printf/43 (959430584 (estimated locally),0.89 per call) set_pwm/45 (114311242 (estimated locally),0.11 per call) debug_printf/43 (114311242 (estimated locally),0.11 per call) strtoul/42 (354334802 (estimated locally),0.33 per call) strtoul/42 (354334802 (estimated locally),0.33 per call)
|
|
cmd_adc/30 (cmd_adc) @08855000
|
|
Type: function definition analyzed
|
|
Visibility: externally_visible public
|
|
Address is taken.
|
|
References:
|
|
Referring: mmi_cmd/29 (addr)
|
|
Availability: available
|
|
Function flags: count:1073741824 (estimated locally) body optimize_size
|
|
Called by:
|
|
Calls: debug_printf/43 (932291372 (estimated locally),0.87 per call) debug_printf/43 (932291372 (estimated locally),0.87 per call) Adc_Sar_Ip_StartConversion/44 (141450453 (estimated locally),0.13 per call) debug_printf/43 (141450453 (estimated locally),0.13 per call) strtoul/42 (354334802 (estimated locally),0.33 per call)
|
|
mmi_cmd/29 (mmi_cmd) @06a6f288
|
|
Type: variable definition analyzed
|
|
Visibility: externally_visible public
|
|
References: cmd_reset/36 (addr)cmd_clear/37 (addr)cmd_show/38 (addr)cmd_save/35 (addr)cmd_md/33 (addr)cmd_adc/30 (addr)cmd_mm/32 (addr)cmd_pwm/31 (addr)cmd_debug/34 (addr)cmd_help/39 (addr)
|
|
Referring: cmd_help/39 (read)cmd_help/39 (read)cmd_help/39 (read)execute_cmd/40 (read)execute_cmd/40 (read)
|
|
Availability: available
|
|
Varpool flags: initialized
|
|
|
|
;; Function cmd_save (cmd_save, funcdef_no=34, decl_uid=10673, cgraph_uid=35, symbol_order=35)
|
|
|
|
cmd_save (int argc, char * * argv)
|
|
{
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_clear (cmd_clear, funcdef_no=36, decl_uid=10664, cgraph_uid=37, symbol_order=37)
|
|
|
|
cmd_clear (int argc, char * * argv)
|
|
{
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("%c[2J%c[H", 27, 27);
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_show (cmd_show, funcdef_no=37, decl_uid=10670, cgraph_uid=38, symbol_order=38)
|
|
|
|
cmd_show (int argc, char * * argv)
|
|
{
|
|
u32 i;
|
|
long unsigned int _1;
|
|
short unsigned int _2;
|
|
int _3;
|
|
|
|
<bb 2> [local count: 214748364]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\r\nShow Information\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("---------------------------------------------------------\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
_1 = gb.tmr_cnt;
|
|
debug_printf (" TMR COUNTER : %d\n", _1);
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("---------------------------------------------------------\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG i => 0
|
|
goto <bb 4>; [100.00%]
|
|
|
|
<bb 3> [local count: 858993459]:
|
|
# DEBUG BEGIN_STMT
|
|
_2 = gb.adc[i_4].avr;
|
|
_3 = (int) _2;
|
|
debug_printf (" ADC [%d] : %d\n", i_4, _3);
|
|
# DEBUG BEGIN_STMT
|
|
i_13 = i_4 + 1;
|
|
# DEBUG i => i_13
|
|
|
|
<bb 4> [local count: 1073741824]:
|
|
# i_4 = PHI <0(2), i_13(3)>
|
|
# DEBUG i => i_4
|
|
# DEBUG BEGIN_STMT
|
|
if (i_4 != 4)
|
|
goto <bb 3>; [80.00%]
|
|
else
|
|
goto <bb 5>; [20.00%]
|
|
|
|
<bb 5> [local count: 214748365]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("---------------------------------------------------------\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_adc (cmd_adc, funcdef_no=29, decl_uid=10679, cgraph_uid=30, symbol_order=30)
|
|
|
|
cmd_adc (int argc, char * * argv)
|
|
{
|
|
u32 ch;
|
|
char * _1;
|
|
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
if (argc_4(D) != 2)
|
|
goto <bb 3>; [67.00%]
|
|
else
|
|
goto <bb 4>; [33.00%]
|
|
|
|
<bb 3> [local count: 719407023]:
|
|
# DEBUG BEGIN_STMT
|
|
// predicted unlikely by goto predictor.
|
|
goto <bb 7>; [100.00%]
|
|
|
|
<bb 4> [local count: 354334802]:
|
|
# DEBUG BEGIN_STMT
|
|
_1 = MEM[(char * *)argv_5(D) + 4B];
|
|
ch_8 = strtoul (_1, 0B, 10);
|
|
# DEBUG ch => ch_8
|
|
# DEBUG BEGIN_STMT
|
|
if (ch_8 > 1)
|
|
goto <bb 5>; [60.08%]
|
|
else
|
|
goto <bb 6>; [39.92%]
|
|
|
|
<bb 5> [local count: 212884349]:
|
|
# DEBUG BEGIN_STMT
|
|
// predicted unlikely by goto predictor.
|
|
goto <bb 7>; [100.00%]
|
|
|
|
<bb 6> [local count: 141450453]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("START ADC CH[%d]\n", ch_8);
|
|
# DEBUG BEGIN_STMT
|
|
Adc_Sar_Ip_StartConversion (ch_8, 0);
|
|
# DEBUG BEGIN_STMT
|
|
goto <bb 8>; [100.00%]
|
|
|
|
<bb 7> [local count: 932291372]:
|
|
usage:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\r\nUsage:\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\tadc [channel]\n");
|
|
# DEBUG BEGIN_STMT
|
|
|
|
<bb 8> [local count: 1073741824]:
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_pwm (cmd_pwm, funcdef_no=30, decl_uid=10685, cgraph_uid=31, symbol_order=31)
|
|
|
|
cmd_pwm (int argc, char * * argv)
|
|
{
|
|
u32 ratio;
|
|
u32 ch;
|
|
char * _1;
|
|
char * _2;
|
|
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
if (argc_5(D) != 3)
|
|
goto <bb 3>; [67.00%]
|
|
else
|
|
goto <bb 4>; [33.00%]
|
|
|
|
<bb 3> [local count: 719407023]:
|
|
# DEBUG BEGIN_STMT
|
|
// predicted unlikely by goto predictor.
|
|
goto <bb 9>; [100.00%]
|
|
|
|
<bb 4> [local count: 354334802]:
|
|
# DEBUG BEGIN_STMT
|
|
_1 = MEM[(char * *)argv_6(D) + 4B];
|
|
ch_9 = strtoul (_1, 0B, 10);
|
|
# DEBUG ch => ch_9
|
|
# DEBUG BEGIN_STMT
|
|
_2 = MEM[(char * *)argv_6(D) + 8B];
|
|
ratio_11 = strtoul (_2, 0B, 10);
|
|
# DEBUG ratio => ratio_11
|
|
# DEBUG BEGIN_STMT
|
|
if (ch_9 > 7)
|
|
goto <bb 5>; [34.00%]
|
|
else
|
|
goto <bb 6>; [66.00%]
|
|
|
|
<bb 5> [local count: 120473833]:
|
|
# DEBUG BEGIN_STMT
|
|
// predicted unlikely by goto predictor.
|
|
goto <bb 9>; [100.00%]
|
|
|
|
<bb 6> [local count: 233860969]:
|
|
# DEBUG BEGIN_STMT
|
|
if (ratio_11 > 100)
|
|
goto <bb 7>; [51.12%]
|
|
else
|
|
goto <bb 8>; [48.88%]
|
|
|
|
<bb 7> [local count: 119549728]:
|
|
# DEBUG BEGIN_STMT
|
|
// predicted unlikely by goto predictor.
|
|
goto <bb 9>; [100.00%]
|
|
|
|
<bb 8> [local count: 114311242]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("PWM SET[%d], %d[%%]\n", ch_9, ratio_11);
|
|
# DEBUG BEGIN_STMT
|
|
set_pwm (ch_9, ratio_11);
|
|
# DEBUG BEGIN_STMT
|
|
goto <bb 10>; [100.00%]
|
|
|
|
<bb 9> [local count: 959430584]:
|
|
usage:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\r\nUsage:\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\tpwm [channel] [ratio]\n");
|
|
# DEBUG BEGIN_STMT
|
|
|
|
<bb 10> [local count: 1073741824]:
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_reset (cmd_reset, funcdef_no=35, decl_uid=10661, cgraph_uid=36, symbol_order=36)
|
|
|
|
cmd_reset (int argc, char * * argv)
|
|
{
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("SYSTEM RESET\n");
|
|
# DEBUG BEGIN_STMT
|
|
system_reset ();
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_help (cmd_help, funcdef_no=38, decl_uid=10667, cgraph_uid=39, symbol_order=39)
|
|
|
|
cmd_help (int argc, char * * argv)
|
|
{
|
|
int len;
|
|
int j;
|
|
int i;
|
|
char * _1;
|
|
unsigned int _2;
|
|
char * _3;
|
|
char * _4;
|
|
|
|
<bb 2> [local count: 14598062]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\r\nShow using command\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("---------------------------------------------------------\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG i => 0
|
|
goto <bb 7>; [100.00%]
|
|
|
|
<bb 3> [local count: 118111600]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf (" %s", _4);
|
|
# DEBUG BEGIN_STMT
|
|
_1 = mmi_cmd[i_5].name;
|
|
_2 = strlen (_1);
|
|
len_14 = (int) _2;
|
|
# DEBUG len => len_14
|
|
# DEBUG BEGIN_STMT
|
|
len_15 = 20 - len_14;
|
|
# DEBUG len => len_15
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG j => 0
|
|
goto <bb 5>; [100.00%]
|
|
|
|
<bb 4> [local count: 955630224]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf (" ");
|
|
# DEBUG BEGIN_STMT
|
|
j_19 = j_6 + 1;
|
|
# DEBUG j => j_19
|
|
|
|
<bb 5> [local count: 1073741824]:
|
|
# j_6 = PHI <0(3), j_19(4)>
|
|
# DEBUG j => j_6
|
|
# DEBUG BEGIN_STMT
|
|
if (j_6 < len_15)
|
|
goto <bb 4>; [89.00%]
|
|
else
|
|
goto <bb 6>; [11.00%]
|
|
|
|
<bb 6> [local count: 118111601]:
|
|
# DEBUG BEGIN_STMT
|
|
_3 = mmi_cmd[i_5].usage;
|
|
debug_printf ("%s\r\n", _3);
|
|
# DEBUG BEGIN_STMT
|
|
i_17 = i_5 + 1;
|
|
# DEBUG i => i_17
|
|
|
|
<bb 7> [local count: 132709663]:
|
|
# i_5 = PHI <0(2), i_17(6)>
|
|
# DEBUG i => i_5
|
|
# DEBUG BEGIN_STMT
|
|
_4 = mmi_cmd[i_5].name;
|
|
if (_4 != 0B)
|
|
goto <bb 3>; [89.00%]
|
|
else
|
|
goto <bb 8>; [11.00%]
|
|
|
|
<bb 8> [local count: 14598063]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("---------------------------------------------------------\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_mm (cmd_mm, funcdef_no=31, decl_uid=10682, cgraph_uid=32, symbol_order=32)
|
|
|
|
|
|
Symbols to be put in SSA form
|
|
{ D.10833 }
|
|
Incremental SSA update started at block: 0
|
|
Number of blocks in CFG: 10
|
|
Number of blocks to update: 9 ( 90%)
|
|
|
|
|
|
Removing basic block 4
|
|
Removing basic block 6
|
|
Removing basic block 7
|
|
Merging blocks 8 and 9
|
|
;; 1 loops found
|
|
;;
|
|
;; Loop 0
|
|
;; header 0, latch 1
|
|
;; depth 0, outer -1
|
|
;; nodes: 0 1 2 3 4 5
|
|
;; 2 succs { 3 4 }
|
|
;; 3 succs { 5 }
|
|
;; 4 succs { 5 }
|
|
;; 5 succs { 1 }
|
|
cmd_mm (int argc, char * * argv)
|
|
{
|
|
u32 val;
|
|
u32 * addr;
|
|
char * _8;
|
|
long unsigned int _9;
|
|
char * _11;
|
|
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
if (argc_3(D) != 3)
|
|
goto <bb 3>; [50.00%]
|
|
else
|
|
goto <bb 4>; [50.00%]
|
|
|
|
<bb 3> [local count: 536870913]:
|
|
# DEBUG BEGIN_STMT
|
|
// predicted unlikely by goto predictor.
|
|
# DEBUG usage => NULL
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\r\nUsage:\r\n");
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\tmm [addr] [value]\n");
|
|
# DEBUG BEGIN_STMT
|
|
goto <bb 5>; [100.00%]
|
|
|
|
<bb 4> [local count: 536870913]:
|
|
# DEBUG D#1 => argc_3(D)
|
|
# DEBUG argv => argv_4(D)
|
|
# DEBUG INLINE_ENTRY cmd_mm
|
|
# DEBUG D#2 => D#1
|
|
# DEBUG argc => D#2
|
|
# DEBUG BEGIN_STMT
|
|
_8 = MEM[(char * *)argv_4(D) + 4B];
|
|
_9 = strtoul (_8, 0B, 16);
|
|
addr_10 = (u32 *) _9;
|
|
# DEBUG addr => addr_10
|
|
# DEBUG BEGIN_STMT
|
|
_11 = MEM[(char * *)argv_4(D) + 8B];
|
|
val_12 = strtoul (_11, 0B, 16);
|
|
# DEBUG val => val_12
|
|
# DEBUG BEGIN_STMT
|
|
*addr_10 = val_12;
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("Memory value changed\n");
|
|
# DEBUG BEGIN_STMT
|
|
|
|
<bb 5> [local count: 1073741824]:
|
|
# DEBUG argv => NULL
|
|
# DEBUG addr => NULL
|
|
# DEBUG val => NULL
|
|
# DEBUG argc => NULL
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_md (cmd_md, funcdef_no=32, decl_uid=10676, cgraph_uid=33, symbol_order=33)
|
|
|
|
|
|
Symbols to be put in SSA form
|
|
{ D.10834 }
|
|
Incremental SSA update started at block: 0
|
|
Number of blocks in CFG: 17
|
|
Number of blocks to update: 16 ( 94%)
|
|
|
|
|
|
Removing basic block 3
|
|
Removing basic block 13
|
|
Removing basic block 14
|
|
Merging blocks 15 and 16
|
|
;; 2 loops found
|
|
;;
|
|
;; Loop 0
|
|
;; header 0, latch 1
|
|
;; depth 0, outer -1
|
|
;; nodes: 0 1 2 3 4 5 6 7 8 9 10 11 12
|
|
;;
|
|
;; Loop 1
|
|
;; header 10, latch 9
|
|
;; depth 1, outer 0
|
|
;; nodes: 10 9 7 8
|
|
;; 2 succs { 3 4 }
|
|
;; 3 succs { 12 }
|
|
;; 4 succs { 6 5 }
|
|
;; 5 succs { 6 }
|
|
;; 6 succs { 10 }
|
|
;; 7 succs { 8 9 }
|
|
;; 8 succs { 9 }
|
|
;; 9 succs { 10 }
|
|
;; 10 succs { 7 11 }
|
|
;; 11 succs { 12 }
|
|
;; 12 succs { 1 }
|
|
cmd_md (int argc, char * * argv)
|
|
{
|
|
u32 * addr;
|
|
u32 i;
|
|
u32 len;
|
|
unsigned int argc.0_1;
|
|
unsigned int _2;
|
|
char * _4;
|
|
char * _6;
|
|
long unsigned int _7;
|
|
unsigned int _8;
|
|
unsigned int _9;
|
|
|
|
<bb 2> [local count: 161244508]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
argc.0_1 = (unsigned int) argc_17(D);
|
|
_2 = argc.0_1 + 4294967294;
|
|
if (_2 > 1)
|
|
goto <bb 3>; [26.75%]
|
|
else
|
|
goto <bb 4>; [73.25%]
|
|
|
|
<bb 3> [local count: 43132906]:
|
|
# DEBUG D#3 => argc_17(D)
|
|
# DEBUG D#4 => argv_18(D)
|
|
# DEBUG INLINE_ENTRY cmd_md
|
|
# DEBUG D#6 => D#3
|
|
# DEBUG argc => D#6
|
|
# DEBUG D#5 => D#4
|
|
# DEBUG argv => D#5
|
|
# DEBUG BEGIN_STMT
|
|
// predicted unlikely by goto predictor.
|
|
# DEBUG usage => NULL
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\nUsage:\n");
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\tmd [addr]\n");
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\tmd [addr] [length]\n");
|
|
# DEBUG BEGIN_STMT
|
|
goto <bb 12>; [100.00%]
|
|
|
|
<bb 4> [local count: 118111602]:
|
|
# DEBUG BEGIN_STMT
|
|
if (argc_17(D) == 2)
|
|
goto <bb 6>; [51.12%]
|
|
else
|
|
goto <bb 5>; [48.88%]
|
|
|
|
<bb 5> [local count: 57732951]:
|
|
# DEBUG BEGIN_STMT
|
|
_4 = MEM[(char * *)argv_18(D) + 8B];
|
|
len_21 = strtoul (_4, 0B, 16);
|
|
# DEBUG len => len_21
|
|
|
|
<bb 6> [local count: 118111602]:
|
|
# len_10 = PHI <1(4), len_21(5)>
|
|
# DEBUG len => len_10
|
|
# DEBUG BEGIN_STMT
|
|
_6 = MEM[(char * *)argv_18(D) + 4B];
|
|
_7 = strtoul (_6, 0B, 16);
|
|
addr_23 = (u32 *) _7;
|
|
# DEBUG addr => addr_23
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG i => 0
|
|
# DEBUG BEGIN_STMT
|
|
goto <bb 10>; [100.00%]
|
|
|
|
<bb 7> [local count: 955630223]:
|
|
# DEBUG BEGIN_STMT
|
|
_8 = i_12 & 7;
|
|
if (_8 == 0)
|
|
goto <bb 8>; [33.00%]
|
|
else
|
|
goto <bb 9>; [67.00%]
|
|
|
|
<bb 8> [local count: 315357974]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\n0x%08X : ", addr_13);
|
|
|
|
<bb 9> [local count: 955630224]:
|
|
# DEBUG BEGIN_STMT
|
|
_9 = *addr_13;
|
|
debug_printf ("0x%08X ", _9);
|
|
# DEBUG BEGIN_STMT
|
|
addr_27 = addr_13 + 4;
|
|
# DEBUG addr => addr_27
|
|
# DEBUG BEGIN_STMT
|
|
i_28 = i_12 + 1;
|
|
# DEBUG i => i_28
|
|
# DEBUG BEGIN_STMT
|
|
len_29 = len_11 + 4294967295;
|
|
# DEBUG len => len_29
|
|
|
|
<bb 10> [local count: 1073741824]:
|
|
# len_11 = PHI <len_10(6), len_29(9)>
|
|
# i_12 = PHI <0(6), i_28(9)>
|
|
# addr_13 = PHI <addr_23(6), addr_27(9)>
|
|
# DEBUG addr => addr_13
|
|
# DEBUG i => i_12
|
|
# DEBUG len => len_11
|
|
# DEBUG BEGIN_STMT
|
|
if (len_11 != 0)
|
|
goto <bb 7>; [89.00%]
|
|
else
|
|
goto <bb 11>; [11.00%]
|
|
|
|
<bb 11> [local count: 118111601]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("\n");
|
|
# DEBUG BEGIN_STMT
|
|
|
|
<bb 12> [local count: 161244507]:
|
|
# DEBUG len => NULL
|
|
# DEBUG i => NULL
|
|
# DEBUG addr => NULL
|
|
# DEBUG argc => NULL
|
|
# DEBUG argv => NULL
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_debug (cmd_debug, funcdef_no=33, decl_uid=10688, cgraph_uid=34, symbol_order=34)
|
|
|
|
|
|
Symbols to be put in SSA form
|
|
{ D.10839 }
|
|
Incremental SSA update started at block: 0
|
|
Number of blocks in CFG: 15
|
|
Number of blocks to update: 14 ( 93%)
|
|
|
|
|
|
Removing basic block 9
|
|
Removing basic block 11
|
|
Removing basic block 12
|
|
Merging blocks 13 and 14
|
|
;; 1 loops found
|
|
;;
|
|
;; Loop 0
|
|
;; header 0, latch 1
|
|
;; depth 0, outer -1
|
|
;; nodes: 0 1 2 3 4 5 6 7 8 9 10
|
|
;; 2 succs { 3 6 }
|
|
;; 3 succs { 5 4 }
|
|
;; 4 succs { 5 }
|
|
;; 5 succs { 10 }
|
|
;; 6 succs { 7 8 }
|
|
;; 7 succs { 10 }
|
|
;; 8 succs { 9 10 }
|
|
;; 9 succs { 10 }
|
|
;; 10 succs { 1 }
|
|
cmd_debug (int argc, char * * argv)
|
|
{
|
|
int _1;
|
|
char * _2;
|
|
int _3;
|
|
int _6;
|
|
char * iftmp.1_7;
|
|
|
|
<bb 2> [local count: 1073741824]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
if (argc_8(D) != 2)
|
|
goto <bb 3>; [50.00%]
|
|
else
|
|
goto <bb 6>; [50.00%]
|
|
|
|
<bb 3> [local count: 536870913]:
|
|
# DEBUG BEGIN_STMT
|
|
_1 = gb.debug;
|
|
if (_1 == 0)
|
|
goto <bb 5>; [50.00%]
|
|
else
|
|
goto <bb 4>; [50.00%]
|
|
|
|
<bb 4> [local count: 268435456]:
|
|
|
|
<bb 5> [local count: 536870913]:
|
|
# iftmp.1_7 = PHI <"ON"(3), "OFF"(4)>
|
|
debug_printf ("DEBUG FLAG %s\n", iftmp.1_7);
|
|
# DEBUG BEGIN_STMT
|
|
goto <bb 10>; [100.00%]
|
|
|
|
<bb 6> [local count: 536870913]:
|
|
# DEBUG BEGIN_STMT
|
|
_2 = MEM[(char * *)argv_9(D) + 4B];
|
|
_3 = strncasecmp (_2, "ON", 2);
|
|
if (_3 == 0)
|
|
goto <bb 7>; [33.00%]
|
|
else
|
|
goto <bb 8>; [67.00%]
|
|
|
|
<bb 7> [local count: 177167401]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("DEBUG FLAG ON\n");
|
|
# DEBUG BEGIN_STMT
|
|
gb.debug = 0;
|
|
goto <bb 10>; [100.00%]
|
|
|
|
<bb 8> [local count: 359703511]:
|
|
# DEBUG BEGIN_STMT
|
|
_6 = strncasecmp (_2, "OFF", 3);
|
|
if (_6 == 0)
|
|
goto <bb 9>; [33.00%]
|
|
else
|
|
goto <bb 10>; [67.00%]
|
|
|
|
<bb 9> [local count: 118702159]:
|
|
# DEBUG D#7 => argc_8(D)
|
|
# DEBUG D#8 => argv_9(D)
|
|
# DEBUG INLINE_ENTRY cmd_debug
|
|
# DEBUG D#10 => D#7
|
|
# DEBUG argc => D#10
|
|
# DEBUG D#9 => D#8
|
|
# DEBUG argv => D#9
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("DEBUG FLAG OFF\n");
|
|
# DEBUG BEGIN_STMT
|
|
gb.debug = 1;
|
|
|
|
<bb 10> [local count: 1073741824]:
|
|
# DEBUG argc => NULL
|
|
# DEBUG argv => NULL
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function execute_cmd (execute_cmd, funcdef_no=39, decl_uid=10760, cgraph_uid=40, symbol_order=40)
|
|
|
|
execute_cmd (int argc, char * * argv)
|
|
{
|
|
int i;
|
|
char * _1;
|
|
int _3;
|
|
void (*<Ta94>) (int, char * *) _4;
|
|
char * _5;
|
|
int _7;
|
|
|
|
<bb 2> [local count: 114863532]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG i => 0
|
|
goto <bb 6>; [100.00%]
|
|
|
|
<bb 3> [local count: 1014686025]:
|
|
# DEBUG BEGIN_STMT
|
|
_1 = *argv_10(D);
|
|
_3 = strcmp (_1, _5);
|
|
if (_3 == 0)
|
|
goto <bb 4>; [5.50%]
|
|
else
|
|
goto <bb 5>; [94.50%]
|
|
|
|
<bb 4> [local count: 55807731]:
|
|
# i_2 = PHI <i_6(3)>
|
|
# DEBUG BEGIN_STMT
|
|
_4 = mmi_cmd[i_2].func;
|
|
_4 (argc_12(D), argv_10(D));
|
|
# DEBUG BEGIN_STMT
|
|
goto <bb 7>; [100.00%]
|
|
|
|
<bb 5> [local count: 958878293]:
|
|
# DEBUG BEGIN_STMT
|
|
i_11 = i_6 + 1;
|
|
# DEBUG i => i_11
|
|
|
|
<bb 6> [local count: 1073741824]:
|
|
# i_6 = PHI <0(2), i_11(5)>
|
|
# DEBUG i => i_6
|
|
# DEBUG BEGIN_STMT
|
|
_5 = mmi_cmd[i_6].name;
|
|
if (_5 != 0B)
|
|
goto <bb 3>; [94.50%]
|
|
else
|
|
goto <bb 7>; [5.50%]
|
|
|
|
<bb 7> [local count: 114863532]:
|
|
# _7 = PHI <0(4), 1(6)>
|
|
return _7;
|
|
|
|
}
|
|
|
|
|
|
|
|
;; Function cmd_main (cmd_main, funcdef_no=40, decl_uid=10651, cgraph_uid=41, symbol_order=41)
|
|
|
|
cmd_main ()
|
|
{
|
|
int argc;
|
|
int ret;
|
|
char * argv[8];
|
|
char * tmp;
|
|
char _1;
|
|
|
|
<bb 2> [local count: 687149673]:
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG BEGIN_STMT
|
|
ret_10 = get_line (128);
|
|
# DEBUG ret => ret_10
|
|
# DEBUG BEGIN_STMT
|
|
if (ret_10 == 0)
|
|
goto <bb 3>; [50.00%]
|
|
else
|
|
goto <bb 12>; [50.00%]
|
|
|
|
<bb 3> [local count: 343574836]:
|
|
# DEBUG BEGIN_STMT
|
|
_1 = gb.cmd_buf[0];
|
|
if (_1 == 0)
|
|
goto <bb 4>; [50.00%]
|
|
else
|
|
goto <bb 5>; [50.00%]
|
|
|
|
<bb 4> [local count: 171787418]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("%s", "MR $ ");
|
|
# DEBUG BEGIN_STMT
|
|
goto <bb 13>; [100.00%]
|
|
|
|
<bb 5> [local count: 171787418]:
|
|
# DEBUG BEGIN_STMT
|
|
tmp_13 = strtok (&gb.cmd_buf, " \r\n\t");
|
|
# DEBUG tmp => tmp_13
|
|
# DEBUG BEGIN_STMT
|
|
# DEBUG argc => 0
|
|
goto <bb 8>; [100.00%]
|
|
|
|
<bb 6> [local count: 954449109]:
|
|
# DEBUG BEGIN_STMT
|
|
if (tmp_2 != 0B)
|
|
goto <bb 7>; [94.50%]
|
|
else
|
|
goto <bb 9>; [5.50%]
|
|
|
|
<bb 7> [local count: 901954409]:
|
|
# DEBUG BEGIN_STMT
|
|
argv[argc_3] = tmp_2;
|
|
# DEBUG BEGIN_STMT
|
|
tmp_17 = strtok (0B, " \r\n\t");
|
|
# DEBUG tmp => tmp_17
|
|
# DEBUG BEGIN_STMT
|
|
argc_18 = argc_3 + 1;
|
|
# DEBUG argc => argc_18
|
|
|
|
<bb 8> [local count: 1073741824]:
|
|
# tmp_2 = PHI <tmp_13(5), tmp_17(7)>
|
|
# argc_3 = PHI <0(5), argc_18(7)>
|
|
# DEBUG argc => argc_3
|
|
# DEBUG tmp => tmp_2
|
|
# DEBUG BEGIN_STMT
|
|
if (argc_3 != 8)
|
|
goto <bb 6>; [88.89%]
|
|
else
|
|
goto <bb 9>; [11.11%]
|
|
|
|
<bb 9> [local count: 171787418]:
|
|
# argc_14 = PHI <argc_3(6), argc_3(8)>
|
|
# DEBUG BEGIN_STMT
|
|
ret_20 = execute_cmd (argc_14, &argv);
|
|
# DEBUG ret => ret_20
|
|
# DEBUG BEGIN_STMT
|
|
if (ret_20 == 1)
|
|
goto <bb 10>; [20.24%]
|
|
else
|
|
goto <bb 11>; [79.76%]
|
|
|
|
<bb 10> [local count: 34769773]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("Command not found\r\n");
|
|
|
|
<bb 11> [local count: 171787418]:
|
|
# DEBUG BEGIN_STMT
|
|
debug_printf ("%s", "MR $ ");
|
|
# DEBUG BEGIN_STMT
|
|
goto <bb 13>; [100.00%]
|
|
|
|
<bb 12> [local count: 343574836]:
|
|
argv ={v} {CLOBBER};
|
|
goto <bb 14>; [100.00%]
|
|
|
|
<bb 13> [local count: 343574836]:
|
|
argv ={v} {CLOBBER};
|
|
|
|
<bb 14> [local count: 687149672]:
|
|
return;
|
|
|
|
}
|
|
|
|
|