callgraph: 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: 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 nonfreeing_fn 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) Clearing variable flags: Function name:cmd_debug.part.0/55: locals read: locals written: Function name:cmd_md.part.0/54: locals read: locals written: Function name:cmd_mm.part.0/53: locals read: locals written: Function name:cmd_main/41: locals read: locals written: Function name:execute_cmd/40: locals read: locals written: Function name:cmd_help/39: locals read: locals written: Function name:cmd_show/38: locals read: locals written: Function name:cmd_clear/37: locals read: locals written: Function name:cmd_reset/36: locals read: locals written: Function name:cmd_save/35: locals read: locals written: Function name:cmd_debug/34: locals read: locals written: Function name:cmd_md/33: locals read: locals written: Function name:cmd_mm/32: locals read: locals written: Function name:cmd_pwm/31: locals read: locals written: Function name:cmd_adc/30: locals read: locals written: ordered call graph: reduced cmd_main/41 (cmd_main) @087d4540 Type: function definition analyzed Visibility: externally_visible public Aux: @08216220 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 Aux: @08216240 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. Aux: @08216200 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. Aux: @08216380 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. Aux: @08216320 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. Aux: @08216080 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. Aux: @08216300 References: Referring: mmi_cmd/29 (addr) Availability: available Function flags: count:1073741824 (estimated locally) body nonfreeing_fn optimize_size Called by: Calls: cmd_debug/34 (cmd_debug) @08855a80 Type: function definition analyzed Visibility: externally_visible public Address is taken. Aux: @08216140 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_debug.part.0/55 (cmd_debug.part.0) @068c0540 Type: function definition analyzed Visibility: prevailing_def_ironly artificial Aux: @082160e0 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/33 (cmd_md) @088557e0 Type: function definition analyzed Visibility: externally_visible public Address is taken. Aux: @08216160 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_md.part.0/54 (cmd_md.part.0) @068c02a0 Type: function definition analyzed Visibility: prevailing_def_ironly artificial Aux: @082162e0 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/32 (cmd_mm) @08855540 Type: function definition analyzed Visibility: externally_visible public Address is taken. Aux: @082161a0 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_mm.part.0/53 (cmd_mm.part.0) @068b9e00 Type: function definition analyzed Visibility: prevailing_def_ironly artificial Aux: @08216400 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) cmd_pwm/31 (cmd_pwm) @088552a0 Type: function definition analyzed Visibility: externally_visible public Address is taken. Aux: @08216280 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. Aux: @082161e0 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) Function name:cmd_adc/30: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_pwm/31: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_mm.part.0/53: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_mm/32: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_md.part.0/54: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_md/33: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_debug.part.0/55: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_debug/34: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_save/35: locals read: locals written: globals read: globals written: Function name:cmd_reset/36: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_clear/37: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_show/38: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_help/39: locals read: locals written: globals read: ALL globals written: ALL Function name:execute_cmd/40: locals read: locals written: globals read: ALL globals written: ALL Function name:cmd_main/41: locals read: locals written: globals read: ALL globals written: ALL cmd_debug.part.0 () { int argc; char * * argv; [local count: 1073741824]: # DEBUG D#10 s=> argc # DEBUG argc => D#10 # DEBUG D#9 s=> argv # DEBUG argv => D#9 [local count: 1073741824]: # DEBUG BEGIN_STMT debug_printf ("DEBUG FLAG OFF\n"); # DEBUG BEGIN_STMT gb.debug = 1; [local count: 1073741824]: return; } cmd_md.part.0 () { u32 len; u32 i; u32 * addr; int argc; char * * argv; [local count: 1073741824]: # DEBUG D#6 s=> argc # DEBUG argc => D#6 # DEBUG D#5 s=> argv # DEBUG argv => D#5 [local count: 1073741824]: # 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 [local count: 1073741824]: return; } cmd_mm.part.0 (char * * argv) { u32 * addr; u32 val; int argc; char * _2; long unsigned int _3; char * _5; [local count: 1073741824]: # DEBUG D#2 s=> argc # DEBUG argc => D#2 [local count: 1073741824]: # DEBUG BEGIN_STMT _2 = MEM[(char * *)argv_1(D) + 4B]; _3 = strtoul (_2, 0B, 16); addr_4 = (u32 *) _3; # DEBUG addr => addr_4 # DEBUG BEGIN_STMT _5 = MEM[(char * *)argv_1(D) + 8B]; val_6 = strtoul (_5, 0B, 16); # DEBUG val => val_6 # DEBUG BEGIN_STMT *addr_4 = val_6; # DEBUG BEGIN_STMT debug_printf ("Memory value changed\n"); # DEBUG BEGIN_STMT [local count: 1073741824]: return; } cmd_main () { int argc; int ret; char * argv[8]; char * tmp; char _1; [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 ; [50.00%] else goto ; [50.00%] [local count: 343574836]: # DEBUG BEGIN_STMT _1 = gb.cmd_buf[0]; if (_1 == 0) goto ; [50.00%] else goto ; [50.00%] [local count: 171787418]: # DEBUG BEGIN_STMT debug_printf ("%s", "MR $ "); # DEBUG BEGIN_STMT goto ; [100.00%] [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 ; [100.00%] [local count: 954449109]: # DEBUG BEGIN_STMT if (tmp_2 != 0B) goto ; [94.50%] else goto ; [5.50%] [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 [local count: 1073741824]: # tmp_2 = PHI # argc_3 = PHI <0(5), argc_18(7)> # DEBUG argc => argc_3 # DEBUG tmp => tmp_2 # DEBUG BEGIN_STMT if (argc_3 != 8) goto ; [88.89%] else goto ; [11.11%] [local count: 171787418]: # argc_14 = PHI # DEBUG BEGIN_STMT ret_20 = execute_cmd (argc_14, &argv); # DEBUG ret => ret_20 # DEBUG BEGIN_STMT if (ret_20 == 1) goto ; [20.24%] else goto ; [79.76%] [local count: 34769773]: # DEBUG BEGIN_STMT debug_printf ("Command not found\r\n"); [local count: 171787418]: # DEBUG BEGIN_STMT debug_printf ("%s", "MR $ "); # DEBUG BEGIN_STMT goto ; [100.00%] [local count: 343574836]: argv ={v} {CLOBBER}; goto ; [100.00%] [local count: 343574836]: argv ={v} {CLOBBER}; [local count: 687149672]: return; } execute_cmd (int argc, char * * argv) { int i; char * _1; int _3; void (*) (int, char * *) _4; char * _5; int _7; [local count: 114863532]: # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG i => 0 goto ; [100.00%] [local count: 1014686025]: # DEBUG BEGIN_STMT _1 = *argv_10(D); _3 = strcmp (_1, _5); if (_3 == 0) goto ; [5.50%] else goto ; [94.50%] [local count: 55807731]: # i_2 = PHI # DEBUG BEGIN_STMT _4 = mmi_cmd[i_2].func; _4 (argc_12(D), argv_10(D)); # DEBUG BEGIN_STMT goto ; [100.00%] [local count: 958878293]: # DEBUG BEGIN_STMT i_11 = i_6 + 1; # DEBUG i => i_11 [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 ; [94.50%] else goto ; [5.50%] [local count: 114863532]: # _7 = PHI <0(4), 1(6)> return _7; } cmd_help (int argc, char * * argv) { int len; int j; int i; char * _1; unsigned int _2; char * _3; char * _4; [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 ; [100.00%] [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 ; [100.00%] [local count: 955630224]: # DEBUG BEGIN_STMT debug_printf (" "); # DEBUG BEGIN_STMT j_19 = j_6 + 1; # DEBUG j => j_19 [local count: 1073741824]: # j_6 = PHI <0(3), j_19(4)> # DEBUG j => j_6 # DEBUG BEGIN_STMT if (j_6 < len_15) goto ; [89.00%] else goto ; [11.00%] [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 [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 ; [89.00%] else goto ; [11.00%] [local count: 14598063]: # DEBUG BEGIN_STMT debug_printf ("---------------------------------------------------------\r\n"); # DEBUG BEGIN_STMT return; } cmd_show (int argc, char * * argv) { u32 i; long unsigned int _1; short unsigned int _2; int _3; [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 ; [100.00%] [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 [local count: 1073741824]: # i_4 = PHI <0(2), i_13(3)> # DEBUG i => i_4 # DEBUG BEGIN_STMT if (i_4 != 4) goto ; [80.00%] else goto ; [20.00%] [local count: 214748365]: # DEBUG BEGIN_STMT debug_printf ("---------------------------------------------------------\r\n"); # DEBUG BEGIN_STMT return; } cmd_clear (int argc, char * * argv) { [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; } cmd_reset (int argc, char * * argv) { [local count: 1073741824]: # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT debug_printf ("SYSTEM RESET\n"); # DEBUG BEGIN_STMT system_reset (); return; } cmd_save (int argc, char * * argv) { [local count: 1073741824]: # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT return; } cmd_debug (int argc, char * * argv) { int _1; char * _2; int _3; int _6; char * iftmp.1_7; [local count: 1073741824]: # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT if (argc_8(D) != 2) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: # DEBUG BEGIN_STMT _1 = gb.debug; if (_1 == 0) goto ; [50.00%] else goto ; [50.00%] [local count: 268435456]: [local count: 536870913]: # iftmp.1_7 = PHI <"ON"(3), "OFF"(4)> debug_printf ("DEBUG FLAG %s\n", iftmp.1_7); # DEBUG BEGIN_STMT goto ; [100.00%] [local count: 536870913]: # DEBUG BEGIN_STMT _2 = MEM[(char * *)argv_9(D) + 4B]; _3 = strncasecmp (_2, "ON", 2); if (_3 == 0) goto ; [33.00%] else goto ; [67.00%] [local count: 177167401]: # DEBUG BEGIN_STMT debug_printf ("DEBUG FLAG ON\n"); # DEBUG BEGIN_STMT gb.debug = 0; goto ; [100.00%] [local count: 359703511]: # DEBUG BEGIN_STMT _6 = strncasecmp (_2, "OFF", 3); if (_6 == 0) goto ; [33.00%] else goto ; [67.00%] [local count: 118702158]: # DEBUG D#7 => argc_8(D) # DEBUG D#8 => argv_9(D) cmd_debug.part.0 (); [local count: 1073741824]: return; } 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; [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 ; [26.75%] else goto ; [73.25%] [local count: 43132906]: # DEBUG D#3 => argc_17(D) # DEBUG D#4 => argv_18(D) cmd_md.part.0 (); goto ; [100.00%] [local count: 118111602]: # DEBUG BEGIN_STMT if (argc_17(D) == 2) goto ; [51.12%] else goto ; [48.88%] [local count: 57732951]: # DEBUG BEGIN_STMT _4 = MEM[(char * *)argv_18(D) + 8B]; len_21 = strtoul (_4, 0B, 16); # DEBUG len => len_21 [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 ; [100.00%] [local count: 955630223]: # DEBUG BEGIN_STMT _8 = i_12 & 7; if (_8 == 0) goto ; [33.00%] else goto ; [67.00%] [local count: 315357974]: # DEBUG BEGIN_STMT debug_printf ("\n0x%08X : ", addr_13); [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 [local count: 1073741824]: # len_11 = PHI # i_12 = PHI <0(6), i_28(9)> # addr_13 = PHI # DEBUG addr => addr_13 # DEBUG i => i_12 # DEBUG len => len_11 # DEBUG BEGIN_STMT if (len_11 != 0) goto ; [89.00%] else goto ; [11.00%] [local count: 118111601]: # DEBUG BEGIN_STMT debug_printf ("\n"); # DEBUG BEGIN_STMT [local count: 161244507]: return; } cmd_mm (int argc, char * * argv) { [local count: 1073741824]: # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT if (argc_3(D) != 3) goto ; [50.00%] else goto ; [50.00%] [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 ; [100.00%] [local count: 536870912]: # DEBUG D#1 => argc_3(D) cmd_mm.part.0 (argv_4(D)); [local count: 1073741824]: return; } cmd_pwm (int argc, char * * argv) { u32 ratio; u32 ch; char * _1; char * _2; [local count: 1073741824]: # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT if (argc_5(D) != 3) goto ; [67.00%] else goto ; [33.00%] [local count: 719407023]: # DEBUG BEGIN_STMT // predicted unlikely by goto predictor. goto ; [100.00%] [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 ; [34.00%] else goto ; [66.00%] [local count: 120473833]: # DEBUG BEGIN_STMT // predicted unlikely by goto predictor. goto ; [100.00%] [local count: 233860969]: # DEBUG BEGIN_STMT if (ratio_11 > 100) goto ; [51.12%] else goto ; [48.88%] [local count: 119549728]: # DEBUG BEGIN_STMT // predicted unlikely by goto predictor. goto ; [100.00%] [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 ; [100.00%] [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 [local count: 1073741824]: return; } cmd_adc (int argc, char * * argv) { u32 ch; char * _1; [local count: 1073741824]: # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT if (argc_4(D) != 2) goto ; [67.00%] else goto ; [33.00%] [local count: 719407023]: # DEBUG BEGIN_STMT // predicted unlikely by goto predictor. goto ; [100.00%] [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 ; [60.08%] else goto ; [39.92%] [local count: 212884349]: # DEBUG BEGIN_STMT // predicted unlikely by goto predictor. goto ; [100.00%] [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 ; [100.00%] [local count: 932291372]: usage: # DEBUG BEGIN_STMT debug_printf ("\r\nUsage:\r\n"); # DEBUG BEGIN_STMT debug_printf ("\tadc [channel]\n"); # DEBUG BEGIN_STMT [local count: 1073741824]: return; }