ADM/GW/Debug_RAM/src/board.c.077i.pure-const
2024-08-08 10:00:15 +09:00

1848 lines
65 KiB
Plaintext

local analysis of debug_printf
scanning: __builtin_va_start (&argptr, 0);
scanning: vsprintf (&str, msg_8(D), argptr);
scanning: __builtin_va_end (&argptr);
scanning: _1 = strlen (&str);
scanning: len_11 = (u8) _1;
scanning: _2 = (int) i_4;
scanning: _3 = str[_2];
scanning: put_char (_3);
scanning: i_15 = i_4 + 1;
scanning: if (i_4 < len_11)
scanning: return;
;; 2 loops found
;;
;; Loop 0
;; header 0, latch 1
;; depth 0, outer -1
;; nodes: 0 1 2 3 4 5
;;
;; Loop 1
;; header 4, latch 3
;; depth 1, outer 0
;; nodes: 4 3
;; 2 succs { 4 }
;; 3 succs { 4 }
;; 4 succs { 3 5 }
;; 5 succs { 1 }
Function is locally const.
Function can locally free.
local analysis of get_line
scanning: _1 = gb.cmd_idx;
scanning: _2 = &gb.cmd_buf[_1];
scanning: _3 = get_char (_2);
scanning: if (_3 == 1)
scanning: _4 = gb.cmd_idx;
scanning: _5 = gb.cmd_buf[_4];
scanning: switch (_5) <default: <L8> [25.00%], case 0: <L2> [25.00%], case 8: <L5> [25.00%], case 10: <L3> [25.00%], case 13: <L3> [25.00%]>
scanning: <L2>:
scanning: gb.cmd_idx = 0;
scanning: <L3>:
scanning: debug_printf ("\r\n");
scanning: _6 = gb.cmd_idx;
scanning: gb.cmd_buf[_6] = 0;
scanning: gb.cmd_idx = 0;
scanning: <L5>:
scanning: if (_4 != 0)
scanning: _7 = _4 + 4294967295;
scanning: gb.cmd_idx = _7;
scanning: debug_printf ("\b \b");
scanning: <L8>:
scanning: _8 = _5 + 224;
scanning: if (_8 <= 94)
scanning: put_char (_5);
scanning: _9 = gb.cmd_idx;
scanning: _10 = _9 + 1;
scanning: gb.cmd_idx = _10;
scanning: _11 = _5 + 80;
scanning: if (_11 <= 24)
scanning: _12 = _4 + 1;
scanning: gb.cmd_idx = _12;
scanning: _13 = &gb.cmd_buf[_12];
scanning: _14 = get_char (_13);
scanning: if (_14 == 0)
scanning: _15 = gb.cmd_idx;
scanning: _16 = _15 + 4294967295;
scanning: _17 = gb.cmd_buf[_16];
scanning: put_char (_17);
scanning: _18 = gb.cmd_idx;
scanning: _19 = gb.cmd_buf[_18];
scanning: put_char (_19);
scanning: _20 = gb.cmd_idx;
scanning: _21 = _20 + 1;
scanning: gb.cmd_idx = _21;
scanning: _22 = gb.cmd_idx;
scanning: _23 = _22 + 4294967295;
scanning: _24 = gb.cmd_buf[_23];
scanning: put_char (_24);
scanning: _25 = gb.cmd_idx;
scanning: if (_25 >= max_len_46(D))
scanning: _26 = max_len_46(D) + 4294967295;
scanning: gb.cmd_buf[_26] = 0;
scanning: gb.cmd_idx = 0;
scanning: return _27;
Function is locally const.
local analysis of put_char
scanning: Lpuart_Uart_Ip_SyncSend (0, &ch, 1);
scanning: return;
Function is locally const.
local analysis of get_char
scanning: _1 = gb.ubuf_head;
scanning: _2 = gb.ubuf_tail;
scanning: if (_1 == _2)
scanning: _3 = gb.ubuf[_1];
scanning: *ch_10(D) = _3;
Indirect ref write is not const/pure
scanning: _4 = gb.ubuf_head;
scanning: _5 = _4 + 1;
scanning: _6 = _5 & 255;
scanning: gb.ubuf_head = _6;
scanning: return _7;
local analysis of Gvar_init
scanning: gb.ubuf_head = 0;
scanning: gb.ubuf_tail = 0;
scanning: return;
Function is locally const.
local analysis of PrintLogo
scanning: debug_printf ("\n\r\n");
scanning: debug_printf ("================================================\r\n");
scanning: debug_printf (" MR S32K344 APPLICATION\n");
scanning: debug_printf (" Version %04X\n", 1);
scanning: debug_printf (" Author : sihong89@gmail.com\n");
scanning: debug_printf (" Last compiled : %s %s\n", "Oct 27 2021", "13:34:26");
scanning: debug_printf ("================================================\r\n");
scanning: return;
Function is locally const.
local analysis of UART0_RX_Callback
scanning: if (event_6(D) == 0)
scanning: _1 = gb.ubuf_tail;
scanning: _2 = gb.utemp[0];
scanning: gb.ubuf[_1] = _2;
scanning: _3 = _1 + 1;
scanning: _4 = _3 & 255;
scanning: gb.ubuf_tail = _4;
scanning: Lpuart_Uart_Ip_SetRxBuffer (instance_10(D), &gb.utemp, 1);
scanning: return;
Function is locally const.
local analysis of board_init
scanning: Lpuart_Uart_Ip_AsyncReceive (0, &gb.utemp, 1);
scanning: led_onoff (0);
scanning: return;
Function is locally const.
local analysis of system_reset
scanning: MEM[(u32 *)1076297728B] = 1;
Indirect ref write is not const/pure
scanning: return;
local analysis of Pit_Callback
scanning: _1 = gb.tmr_cnt;
scanning: _2 = _1 + 1;
scanning: gb.tmr_cnt = _2;
scanning: _3 = gb.led_cnt;
scanning: _4 = _3 + 1;
scanning: gb.led_cnt = _4;
scanning: if (_4 > 1000)
scanning: gb.led_cnt = 0;
scanning: _5 = gb.led_flag;
scanning: if (_5 == 1)
scanning: led_onoff (0);
scanning: led_onoff (1);
scanning: return;
Function is locally const.
local analysis of Adc1EndOfChainNoti
scanning: _1 = Adc_Sar_Ip_GetConvData (1, 35);
scanning: data ={v} _1;
Volatile stmt is not const/pure
Volatile operand is not const/pure
scanning: _2 = gb.adc[1].idx;
scanning: _3 = (int) _2;
scanning: data.7_4 ={v} data;
Volatile stmt is not const/pure
Volatile operand is not const/pure
scanning: gb.adc[1].raw[_3] = data.7_4;
scanning: _5 = _3 + 1;
scanning: _6 = _5 % 10;
scanning: _7 = (short unsigned int) _6;
scanning: gb.adc[1].idx = _7;
scanning: _8 = get_average (&gb.adc[1].raw, 10);
scanning: _9 = (short unsigned int) _8;
scanning: gb.adc[1].avr = _9;
scanning: _10 = Adc_Sar_Ip_GetConvData (1, 36);
scanning: data ={v} _10;
Volatile stmt is not const/pure
Volatile operand is not const/pure
scanning: _11 = gb.adc[0].idx;
scanning: _12 = (int) _11;
scanning: data.8_13 ={v} data;
Volatile stmt is not const/pure
Volatile operand is not const/pure
scanning: gb.adc[0].raw[_12] = data.8_13;
scanning: _14 = _12 + 1;
scanning: _15 = _14 % 10;
scanning: _16 = (short unsigned int) _15;
scanning: gb.adc[0].idx = _16;
scanning: _17 = get_average (&gb.adc[0].raw, 10);
scanning: _18 = (short unsigned int) _17;
scanning: gb.adc[0].avr = _18;
scanning: Adc_Sar_Ip_StartConversion (1, 0);
scanning: return;
local analysis of Adc0EndOfChainNoti
scanning: _1 = Adc_Sar_Ip_GetConvData (0, 33);
scanning: data ={v} _1;
Volatile stmt is not const/pure
Volatile operand is not const/pure
scanning: _2 = gb.adc[2].idx;
scanning: _3 = (int) _2;
scanning: data.5_4 ={v} data;
Volatile stmt is not const/pure
Volatile operand is not const/pure
scanning: gb.adc[2].raw[_3] = data.5_4;
scanning: _5 = _3 + 1;
scanning: _6 = _5 % 10;
scanning: _7 = (short unsigned int) _6;
scanning: gb.adc[2].idx = _7;
scanning: _8 = get_average (&gb.adc[2].raw, 10);
scanning: _9 = (short unsigned int) _8;
scanning: gb.adc[2].avr = _9;
scanning: _10 = Adc_Sar_Ip_GetConvData (0, 47);
scanning: data ={v} _10;
Volatile stmt is not const/pure
Volatile operand is not const/pure
scanning: _11 = gb.adc[3].idx;
scanning: _12 = (int) _11;
scanning: data.6_13 ={v} data;
Volatile stmt is not const/pure
Volatile operand is not const/pure
scanning: gb.adc[3].raw[_12] = data.6_13;
scanning: _14 = _12 + 1;
scanning: _15 = _14 % 10;
scanning: _16 = (short unsigned int) _15;
scanning: gb.adc[3].idx = _16;
scanning: _17 = get_average (&gb.adc[3].raw, 10);
scanning: _18 = (short unsigned int) _17;
scanning: gb.adc[3].avr = _18;
scanning: Adc_Sar_Ip_StartConversion (0, 0);
scanning: return;
local analysis of get_average
scanning: i.0_1 = (unsigned int) i_17;
scanning: _2 = i.0_1 * 2;
scanning: _3 = val_23(D) + _2;
scanning: _4 = *_3;
Indirect ref read is not const
scanning: _5 = (int) _4;
scanning: sum_24 = _5 + sum_16;
scanning: max_9 = MAX_EXPR <_5, max_15>;
scanning: min_20 = MIN_EXPR <_5, min_14>;
scanning: i_25 = i_17 + 1;
scanning: if (i_17 < len_19(D))
scanning: _10 = sum_8 - max_7;
scanning: _11 = _10 - min_6;
scanning: _12 = len_19(D) + -2;
scanning: _13 = _11 / _12;
scanning: _18 = _13 & 65535;
scanning: _21 = (u32) _18;
scanning: return _21;
;; 2 loops found
;;
;; Loop 0
;; header 0, latch 1
;; depth 0, outer -1
;; nodes: 0 1 2 3 4 5
;;
;; Loop 1
;; header 4, latch 3
;; depth 1, outer 0
;; nodes: 4 3
;; 2 succs { 4 }
;; 3 succs { 4 }
;; 4 succs { 3 5 }
;; 5 succs { 1 }
Function is locally pure.
local analysis of set_pwm
scanning: channel_7 = pwm_idx[ch_6(D)];
scanning: if (ratio_8(D) > 99)
scanning: if (ratio_8(D) == 0)
scanning: _1 = ratio_8(D) * 240;
scanning: val_9 = _1 / 100;
scanning: _2 = (unsigned char) channel_7;
scanning: _3 = (short unsigned int) val_4;
scanning: Flexio_Pwm_Ip_UpdatePeriodDuty (0, _2, 240, _3);
scanning: return;
Function is locally const.
local analysis of led_onoff
scanning: if (flag_2(D) == 1)
scanning: Siul2_Dio_Ip_WritePin (1076434692B, 13, 0);
scanning: Siul2_Dio_Ip_WritePin (1076434692B, 13, 1);
scanning: gb.led_flag = flag_2(D);
scanning: return;
Function is locally const.
callgraph:
strlen/56 (strlen) @0886b1c0
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: debug_printf/44 (118111600 (estimated locally),1.00 per call)
Calls:
__builtin_va_end/55 (__builtin_va_end) @0886b0e0
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: debug_printf/44 (118111600 (estimated locally),1.00 per call)
Calls:
vsprintf/54 (vsprintf) @0886b000
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: debug_printf/44 (118111600 (estimated locally),1.00 per call)
Calls:
__builtin_va_start/53 (__builtin_va_start) @0885cee0
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: debug_printf/44 (118111600 (estimated locally),1.00 per call)
Calls:
Lpuart_Uart_Ip_SyncSend/52 (Lpuart_Uart_Ip_SyncSend) @0885cc40
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: put_char/42 (1073741824 (estimated locally),1.00 per call)
Calls:
Lpuart_Uart_Ip_SetRxBuffer/51 (Lpuart_Uart_Ip_SetRxBuffer) @0885c620
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: UART0_RX_Callback/38 (354334802 (estimated locally),0.33 per call)
Calls:
Lpuart_Uart_Ip_AsyncReceive/50 (Lpuart_Uart_Ip_AsyncReceive) @0885c460
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: board_init/37 (1073741824 (estimated locally),1.00 per call)
Calls:
Adc_Sar_Ip_StartConversion/49 (Adc_Sar_Ip_StartConversion) @087ba2a0
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call)
Calls:
Adc_Sar_Ip_GetConvData/48 (Adc_Sar_Ip_GetConvData) @087ba000
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call)
Calls:
Flexio_Pwm_Ip_UpdatePeriodDuty/47 (Flexio_Pwm_Ip_UpdatePeriodDuty) @087bad20
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: set_pwm/31 (1073741824 (estimated locally),1.00 per call)
Calls:
Siul2_Dio_Ip_WritePin/45 (Siul2_Dio_Ip_WritePin) @087bab60
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: led_onoff/30 (708669605 (estimated locally),0.66 per call) led_onoff/30 (365072220 (estimated locally),0.34 per call)
Calls:
debug_printf/44 (debug_printf) @087ba700
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10750
References:
Referring:
Availability: available
Function flags: count:118111600 (estimated locally) body optimize_size
Called by: get_line/43 (70007698 (estimated locally),0.07 per call) get_line/43 (212144541 (estimated locally),0.20 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call)
Calls: put_char/42 (955630223 (estimated locally),8.09 per call) strlen/56 (118111600 (estimated locally),1.00 per call) __builtin_va_end/55 (118111600 (estimated locally),1.00 per call) vsprintf/54 (118111600 (estimated locally),1.00 per call) __builtin_va_start/53 (118111600 (estimated locally),1.00 per call)
get_line/43 (get_line) @087ba460
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10890
References: gb/46 (read)gb/46 (addr)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: put_char/42 (23452579 (estimated locally),0.02 per call) put_char/42 (23452579 (estimated locally),0.02 per call) put_char/42 (23452579 (estimated locally),0.02 per call) get_char/41 (46905158 (estimated locally),0.04 per call) put_char/42 (70007698 (estimated locally),0.07 per call) debug_printf/44 (70007698 (estimated locally),0.07 per call) debug_printf/44 (212144541 (estimated locally),0.20 per call) get_char/41 (1073741824 (estimated locally),1.00 per call)
put_char/42 (put_char) @087ba1c0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10790
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (70007698 (estimated locally),0.07 per call) debug_printf/44 (955630223 (estimated locally),8.09 per call)
Calls: Lpuart_Uart_Ip_SyncSend/52 (1073741824 (estimated locally),1.00 per call)
get_char/41 (get_char) @087b4e00
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10970
References: gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: get_line/43 (46905158 (estimated locally),0.04 per call) get_line/43 (1073741824 (estimated locally),1.00 per call)
Calls:
Gvar_init/40 (Gvar_init) @087b48c0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10910
References: gb/46 (write)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls:
PrintLogo/39 (PrintLogo) @087b40e0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10830
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call)
UART0_RX_Callback/38 (UART0_RX_Callback) @087b4d20
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c107b0
References: gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Lpuart_Uart_Ip_SetRxBuffer/51 (354334802 (estimated locally),0.33 per call)
board_init/37 (board_init) @087b4a80
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10770
References: gb/46 (addr)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: led_onoff/30 (1073741824 (estimated locally),1.00 per call) Lpuart_Uart_Ip_AsyncReceive/50 (1073741824 (estimated locally),1.00 per call)
system_reset/36 (system_reset) @087b47e0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10850
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls:
Pit_Callback/35 (Pit_Callback) @087b4540
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10630
References: gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (read)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: led_onoff/30 (354334802 (estimated locally),0.33 per call) led_onoff/30 (182536110 (estimated locally),0.17 per call)
Adc1EndOfChainNoti/34 (Adc1EndOfChainNoti) @087b42a0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10870
References: gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Adc_Sar_Ip_StartConversion/49 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call)
Adc0EndOfChainNoti/33 (Adc0EndOfChainNoti) @087b4000
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10650
References: gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Adc_Sar_Ip_StartConversion/49 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call)
get_average/32 (get_average) @087aac40
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c108b0
References:
Referring:
Availability: available
Function flags: count:118111600 (estimated locally) body optimize_size
Called by: Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call)
Calls:
set_pwm/31 (set_pwm) @087aae00
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c108d0
References: pwm_idx/29 (read)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Flexio_Pwm_Ip_UpdatePeriodDuty/47 (1073741824 (estimated locally),1.00 per call)
led_onoff/30 (led_onoff) @087aab60
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10670
References: gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: board_init/37 (1073741824 (estimated locally),1.00 per call) Pit_Callback/35 (354334802 (estimated locally),0.33 per call) Pit_Callback/35 (182536110 (estimated locally),0.17 per call)
Calls: Siul2_Dio_Ip_WritePin/45 (708669605 (estimated locally),0.66 per call) Siul2_Dio_Ip_WritePin/45 (365072220 (estimated locally),0.34 per call)
ordered call graph: reduced for nothrow
debug_printf/44 (debug_printf) @087ba700
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10750
References:
Referring:
Availability: available
Function flags: count:118111600 (estimated locally) body optimize_size
Called by: get_line/43 (70007698 (estimated locally),0.07 per call) get_line/43 (212144541 (estimated locally),0.20 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call)
Calls: put_char/42 (955630223 (estimated locally),8.09 per call) strlen/56 (118111600 (estimated locally),1.00 per call) __builtin_va_end/55 (118111600 (estimated locally),1.00 per call) vsprintf/54 (118111600 (estimated locally),1.00 per call) __builtin_va_start/53 (118111600 (estimated locally),1.00 per call)
get_line/43 (get_line) @087ba460
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10890
References: gb/46 (read)gb/46 (addr)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: put_char/42 (23452579 (estimated locally),0.02 per call) put_char/42 (23452579 (estimated locally),0.02 per call) put_char/42 (23452579 (estimated locally),0.02 per call) get_char/41 (46905158 (estimated locally),0.04 per call) put_char/42 (70007698 (estimated locally),0.07 per call) debug_printf/44 (70007698 (estimated locally),0.07 per call) debug_printf/44 (212144541 (estimated locally),0.20 per call) get_char/41 (1073741824 (estimated locally),1.00 per call)
put_char/42 (put_char) @087ba1c0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10790
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (70007698 (estimated locally),0.07 per call) debug_printf/44 (955630223 (estimated locally),8.09 per call)
Calls: Lpuart_Uart_Ip_SyncSend/52 (1073741824 (estimated locally),1.00 per call)
get_char/41 (get_char) @087b4e00
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10970
References: gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: get_line/43 (46905158 (estimated locally),0.04 per call) get_line/43 (1073741824 (estimated locally),1.00 per call)
Calls:
Gvar_init/40 (Gvar_init) @087b48c0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10910
References: gb/46 (write)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls:
PrintLogo/39 (PrintLogo) @087b40e0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10830
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call)
UART0_RX_Callback/38 (UART0_RX_Callback) @087b4d20
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c107b0
References: gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Lpuart_Uart_Ip_SetRxBuffer/51 (354334802 (estimated locally),0.33 per call)
board_init/37 (board_init) @087b4a80
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10770
References: gb/46 (addr)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: led_onoff/30 (1073741824 (estimated locally),1.00 per call) Lpuart_Uart_Ip_AsyncReceive/50 (1073741824 (estimated locally),1.00 per call)
system_reset/36 (system_reset) @087b47e0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10850
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls:
Pit_Callback/35 (Pit_Callback) @087b4540
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10630
References: gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (read)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: led_onoff/30 (354334802 (estimated locally),0.33 per call) led_onoff/30 (182536110 (estimated locally),0.17 per call)
Adc1EndOfChainNoti/34 (Adc1EndOfChainNoti) @087b42a0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10870
References: gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Adc_Sar_Ip_StartConversion/49 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call)
Adc0EndOfChainNoti/33 (Adc0EndOfChainNoti) @087b4000
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10650
References: gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Adc_Sar_Ip_StartConversion/49 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call)
get_average/32 (get_average) @087aac40
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c108b0
References:
Referring:
Availability: available
Function flags: count:118111600 (estimated locally) body optimize_size
Called by: Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call)
Calls:
set_pwm/31 (set_pwm) @087aae00
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c108d0
References: pwm_idx/29 (read)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Flexio_Pwm_Ip_UpdatePeriodDuty/47 (1073741824 (estimated locally),1.00 per call)
led_onoff/30 (led_onoff) @087aab60
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10670
References: gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: board_init/37 (1073741824 (estimated locally),1.00 per call) Pit_Callback/35 (354334802 (estimated locally),0.33 per call) Pit_Callback/35 (182536110 (estimated locally),0.17 per call)
Calls: Siul2_Dio_Ip_WritePin/45 (708669605 (estimated locally),0.66 per call) Siul2_Dio_Ip_WritePin/45 (365072220 (estimated locally),0.34 per call)
MALLOC LATTICE Initial:
debug_printf: malloc_bottom
get_line: malloc_bottom
put_char: malloc_bottom
get_char: malloc_bottom
Gvar_init: malloc_bottom
PrintLogo: malloc_bottom
UART0_RX_Callback: malloc_bottom
board_init: malloc_bottom
system_reset: malloc_bottom
Pit_Callback: malloc_bottom
Adc1EndOfChainNoti: malloc_bottom
Adc0EndOfChainNoti: malloc_bottom
get_average: malloc_bottom
set_pwm: malloc_bottom
led_onoff: malloc_bottom
MALLOC LATTICE after propagation:
debug_printf: malloc_bottom
get_line: malloc_bottom
put_char: malloc_bottom
get_char: malloc_bottom
Gvar_init: malloc_bottom
PrintLogo: malloc_bottom
UART0_RX_Callback: malloc_bottom
board_init: malloc_bottom
system_reset: malloc_bottom
Pit_Callback: malloc_bottom
Adc1EndOfChainNoti: malloc_bottom
Adc0EndOfChainNoti: malloc_bottom
get_average: malloc_bottom
set_pwm: malloc_bottom
led_onoff: malloc_bottom
callgraph:
strlen/56 (strlen) @0886b1c0
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: debug_printf/44 (118111600 (estimated locally),1.00 per call)
Calls:
__builtin_va_end/55 (__builtin_va_end) @0886b0e0
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: debug_printf/44 (118111600 (estimated locally),1.00 per call)
Calls:
vsprintf/54 (vsprintf) @0886b000
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: debug_printf/44 (118111600 (estimated locally),1.00 per call)
Calls:
__builtin_va_start/53 (__builtin_va_start) @0885cee0
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: debug_printf/44 (118111600 (estimated locally),1.00 per call)
Calls:
Lpuart_Uart_Ip_SyncSend/52 (Lpuart_Uart_Ip_SyncSend) @0885cc40
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: put_char/42 (1073741824 (estimated locally),1.00 per call)
Calls:
Lpuart_Uart_Ip_SetRxBuffer/51 (Lpuart_Uart_Ip_SetRxBuffer) @0885c620
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: UART0_RX_Callback/38 (354334802 (estimated locally),0.33 per call)
Calls:
Lpuart_Uart_Ip_AsyncReceive/50 (Lpuart_Uart_Ip_AsyncReceive) @0885c460
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: board_init/37 (1073741824 (estimated locally),1.00 per call)
Calls:
Adc_Sar_Ip_StartConversion/49 (Adc_Sar_Ip_StartConversion) @087ba2a0
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call)
Calls:
Adc_Sar_Ip_GetConvData/48 (Adc_Sar_Ip_GetConvData) @087ba000
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call)
Calls:
Flexio_Pwm_Ip_UpdatePeriodDuty/47 (Flexio_Pwm_Ip_UpdatePeriodDuty) @087bad20
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: set_pwm/31 (1073741824 (estimated locally),1.00 per call)
Calls:
Siul2_Dio_Ip_WritePin/45 (Siul2_Dio_Ip_WritePin) @087bab60
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: led_onoff/30 (708669605 (estimated locally),0.66 per call) led_onoff/30 (365072220 (estimated locally),0.34 per call)
Calls:
debug_printf/44 (debug_printf) @087ba700
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10970
References:
Referring:
Availability: available
Function flags: count:118111600 (estimated locally) body optimize_size
Called by: get_line/43 (70007698 (estimated locally),0.07 per call) get_line/43 (212144541 (estimated locally),0.20 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call)
Calls: put_char/42 (955630223 (estimated locally),8.09 per call) strlen/56 (118111600 (estimated locally),1.00 per call) __builtin_va_end/55 (118111600 (estimated locally),1.00 per call) vsprintf/54 (118111600 (estimated locally),1.00 per call) __builtin_va_start/53 (118111600 (estimated locally),1.00 per call)
get_line/43 (get_line) @087ba460
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10850
References: gb/46 (read)gb/46 (addr)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: put_char/42 (23452579 (estimated locally),0.02 per call) put_char/42 (23452579 (estimated locally),0.02 per call) put_char/42 (23452579 (estimated locally),0.02 per call) get_char/41 (46905158 (estimated locally),0.04 per call) put_char/42 (70007698 (estimated locally),0.07 per call) debug_printf/44 (70007698 (estimated locally),0.07 per call) debug_printf/44 (212144541 (estimated locally),0.20 per call) get_char/41 (1073741824 (estimated locally),1.00 per call)
put_char/42 (put_char) @087ba1c0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10690
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (70007698 (estimated locally),0.07 per call) debug_printf/44 (955630223 (estimated locally),8.09 per call)
Calls: Lpuart_Uart_Ip_SyncSend/52 (1073741824 (estimated locally),1.00 per call)
get_char/41 (get_char) @087b4e00
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10870
References: gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: get_line/43 (46905158 (estimated locally),0.04 per call) get_line/43 (1073741824 (estimated locally),1.00 per call)
Calls:
Gvar_init/40 (Gvar_init) @087b48c0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c107b0
References: gb/46 (write)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls:
PrintLogo/39 (PrintLogo) @087b40e0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10830
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call)
UART0_RX_Callback/38 (UART0_RX_Callback) @087b4d20
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10890
References: gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Lpuart_Uart_Ip_SetRxBuffer/51 (354334802 (estimated locally),0.33 per call)
board_init/37 (board_init) @087b4a80
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10750
References: gb/46 (addr)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: led_onoff/30 (1073741824 (estimated locally),1.00 per call) Lpuart_Uart_Ip_AsyncReceive/50 (1073741824 (estimated locally),1.00 per call)
system_reset/36 (system_reset) @087b47e0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10910
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls:
Pit_Callback/35 (Pit_Callback) @087b4540
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c108b0
References: gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (read)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: led_onoff/30 (354334802 (estimated locally),0.33 per call) led_onoff/30 (182536110 (estimated locally),0.17 per call)
Adc1EndOfChainNoti/34 (Adc1EndOfChainNoti) @087b42a0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10790
References: gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Adc_Sar_Ip_StartConversion/49 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call)
Adc0EndOfChainNoti/33 (Adc0EndOfChainNoti) @087b4000
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c108d0
References: gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Adc_Sar_Ip_StartConversion/49 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call)
get_average/32 (get_average) @087aac40
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10650
References:
Referring:
Availability: available
Function flags: count:118111600 (estimated locally) body optimize_size
Called by: Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call)
Calls:
set_pwm/31 (set_pwm) @087aae00
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10770
References: pwm_idx/29 (read)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Flexio_Pwm_Ip_UpdatePeriodDuty/47 (1073741824 (estimated locally),1.00 per call)
led_onoff/30 (led_onoff) @087aab60
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10670
References: gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: board_init/37 (1073741824 (estimated locally),1.00 per call) Pit_Callback/35 (354334802 (estimated locally),0.33 per call) Pit_Callback/35 (182536110 (estimated locally),0.17 per call)
Calls: Siul2_Dio_Ip_WritePin/45 (708669605 (estimated locally),0.66 per call) Siul2_Dio_Ip_WritePin/45 (365072220 (estimated locally),0.34 per call)
ordered call graph: reduced
get_line/43 (get_line) @087ba460
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10850
References: gb/46 (read)gb/46 (addr)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: put_char/42 (23452579 (estimated locally),0.02 per call) put_char/42 (23452579 (estimated locally),0.02 per call) put_char/42 (23452579 (estimated locally),0.02 per call) get_char/41 (46905158 (estimated locally),0.04 per call) put_char/42 (70007698 (estimated locally),0.07 per call) debug_printf/44 (70007698 (estimated locally),0.07 per call) debug_printf/44 (212144541 (estimated locally),0.20 per call) get_char/41 (1073741824 (estimated locally),1.00 per call)
get_char/41 (get_char) @087b4e00
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10870
References: gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (read)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: get_line/43 (46905158 (estimated locally),0.04 per call) get_line/43 (1073741824 (estimated locally),1.00 per call)
Calls:
Gvar_init/40 (Gvar_init) @087b48c0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c107b0
References: gb/46 (write)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls:
PrintLogo/39 (PrintLogo) @087b40e0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10830
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call) debug_printf/44 (1073741824 (estimated locally),1.00 per call)
debug_printf/44 (debug_printf) @087ba700
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10970
References:
Referring:
Availability: available
Function flags: count:118111600 (estimated locally) body optimize_size
Called by: get_line/43 (70007698 (estimated locally),0.07 per call) get_line/43 (212144541 (estimated locally),0.20 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call) PrintLogo/39 (1073741824 (estimated locally),1.00 per call)
Calls: put_char/42 (955630223 (estimated locally),8.09 per call) strlen/56 (118111600 (estimated locally),1.00 per call) __builtin_va_end/55 (118111600 (estimated locally),1.00 per call) vsprintf/54 (118111600 (estimated locally),1.00 per call) __builtin_va_start/53 (118111600 (estimated locally),1.00 per call)
put_char/42 (put_char) @087ba1c0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10690
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (23452579 (estimated locally),0.02 per call) get_line/43 (70007698 (estimated locally),0.07 per call) debug_printf/44 (955630223 (estimated locally),8.09 per call)
Calls: Lpuart_Uart_Ip_SyncSend/52 (1073741824 (estimated locally),1.00 per call)
UART0_RX_Callback/38 (UART0_RX_Callback) @087b4d20
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10890
References: gb/46 (read)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Lpuart_Uart_Ip_SetRxBuffer/51 (354334802 (estimated locally),0.33 per call)
board_init/37 (board_init) @087b4a80
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10750
References: gb/46 (addr)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: led_onoff/30 (1073741824 (estimated locally),1.00 per call) Lpuart_Uart_Ip_AsyncReceive/50 (1073741824 (estimated locally),1.00 per call)
system_reset/36 (system_reset) @087b47e0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10910
References:
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls:
Pit_Callback/35 (Pit_Callback) @087b4540
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c108b0
References: gb/46 (read)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (read)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: led_onoff/30 (354334802 (estimated locally),0.33 per call) led_onoff/30 (182536110 (estimated locally),0.17 per call)
Adc1EndOfChainNoti/34 (Adc1EndOfChainNoti) @087b42a0
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10790
References: gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Adc_Sar_Ip_StartConversion/49 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call)
Adc0EndOfChainNoti/33 (Adc0EndOfChainNoti) @087b4000
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c108d0
References: gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)gb/46 (read)gb/46 (write)gb/46 (write)gb/46 (addr)gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Adc_Sar_Ip_StartConversion/49 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call) get_average/32 (1073741824 (estimated locally),1.00 per call) Adc_Sar_Ip_GetConvData/48 (1073741824 (estimated locally),1.00 per call)
get_average/32 (get_average) @087aac40
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10650
References:
Referring:
Availability: available
Function flags: count:118111600 (estimated locally) body optimize_size
Called by: Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc1EndOfChainNoti/34 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call) Adc0EndOfChainNoti/33 (1073741824 (estimated locally),1.00 per call)
Calls:
set_pwm/31 (set_pwm) @087aae00
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10770
References: pwm_idx/29 (read)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by:
Calls: Flexio_Pwm_Ip_UpdatePeriodDuty/47 (1073741824 (estimated locally),1.00 per call)
led_onoff/30 (led_onoff) @087aab60
Type: function definition analyzed
Visibility: externally_visible public
Aux: @06c10670
References: gb/46 (write)
Referring:
Availability: available
Function flags: count:1073741824 (estimated locally) body optimize_size
Called by: board_init/37 (1073741824 (estimated locally),1.00 per call) Pit_Callback/35 (354334802 (estimated locally),0.33 per call) Pit_Callback/35 (182536110 (estimated locally),0.17 per call)
Calls: Siul2_Dio_Ip_WritePin/45 (708669605 (estimated locally),0.66 per call) Siul2_Dio_Ip_WritePin/45 (365072220 (estimated locally),0.34 per call)
Function found not to call free: get_average
Function found not to call free: system_reset
Function found not to call free: Gvar_init
Function found not to call free: get_char
debug_printf (char * msg)
{
u8 len;
u8 i;
struct va_list argptr;
char str[256];
unsigned int _1;
int _2;
char _3;
<bb 2> [local count: 118111600]:
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
__builtin_va_start (&argptr, 0);
# DEBUG BEGIN_STMT
vsprintf (&str, msg_8(D), argptr);
# DEBUG BEGIN_STMT
__builtin_va_end (&argptr);
# DEBUG BEGIN_STMT
_1 = strlen (&str);
len_11 = (u8) _1;
# DEBUG len => len_11
# DEBUG BEGIN_STMT
# DEBUG i => 0
goto <bb 4>; [100.00%]
<bb 3> [local count: 955630223]:
# DEBUG BEGIN_STMT
_2 = (int) i_4;
_3 = str[_2];
put_char (_3);
# DEBUG BEGIN_STMT
i_15 = i_4 + 1;
# DEBUG i => i_15
<bb 4> [local count: 1073741824]:
# i_4 = PHI <0(2), i_15(3)>
# DEBUG i => i_4
# DEBUG BEGIN_STMT
if (i_4 < len_11)
goto <bb 3>; [89.00%]
else
goto <bb 5>; [11.00%]
<bb 5> [local count: 118111601]:
str ={v} {CLOBBER};
argptr ={v} {CLOBBER};
return;
}
get_line (u32 max_len)
{
unsigned int _1;
char * _2;
int _3;
unsigned int _4;
char _5;
unsigned int _6;
unsigned int _7;
char _8;
unsigned int _9;
unsigned int _10;
char _11;
unsigned int _12;
char * _13;
int _14;
unsigned int _15;
unsigned int _16;
char _17;
unsigned int _18;
char _19;
unsigned int _20;
unsigned int _21;
unsigned int _22;
unsigned int _23;
char _24;
unsigned int _25;
unsigned int _26;
int _27;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
_1 = gb.cmd_idx;
_2 = &gb.cmd_buf[_1];
_3 = get_char (_2);
if (_3 == 1)
goto <bb 16>; [20.97%]
else
goto <bb 3>; [79.03%]
<bb 3> [local count: 848578164]:
# DEBUG BEGIN_STMT
_4 = gb.cmd_idx;
_5 = gb.cmd_buf[_4];
switch (_5) <default: <L8> [25.00%], case 0: <L2> [25.00%], case 8: <L5> [25.00%], case 10: <L3> [25.00%], case 13: <L3> [25.00%]>
<bb 4> [local count: 212144541]:
<L2>:
# DEBUG BEGIN_STMT
gb.cmd_idx = 0;
# DEBUG BEGIN_STMT
goto <bb 16>; [100.00%]
<bb 5> [local count: 212144541]:
<L3>:
# DEBUG BEGIN_STMT
debug_printf ("\r\n");
# DEBUG BEGIN_STMT
_6 = gb.cmd_idx;
gb.cmd_buf[_6] = 0;
# DEBUG BEGIN_STMT
gb.cmd_idx = 0;
# DEBUG BEGIN_STMT
goto <bb 16>; [100.00%]
<bb 6> [local count: 212144541]:
<L5>:
# DEBUG BEGIN_STMT
if (_4 != 0)
goto <bb 7>; [33.00%]
else
goto <bb 14>; [67.00%]
<bb 7> [local count: 70007698]:
# DEBUG BEGIN_STMT
_7 = _4 + 4294967295;
gb.cmd_idx = _7;
# DEBUG BEGIN_STMT
debug_printf ("\b \b");
goto <bb 14>; [100.00%]
<bb 8> [local count: 212144541]:
<L8>:
# DEBUG BEGIN_STMT
_8 = _5 + 224;
if (_8 <= 94)
goto <bb 9>; [33.00%]
else
goto <bb 10>; [67.00%]
<bb 9> [local count: 70007698]:
# DEBUG BEGIN_STMT
put_char (_5);
# DEBUG BEGIN_STMT
_9 = gb.cmd_idx;
_10 = _9 + 1;
gb.cmd_idx = _10;
goto <bb 14>; [100.00%]
<bb 10> [local count: 142136842]:
# DEBUG BEGIN_STMT
_11 = _5 + 80;
if (_11 <= 24)
goto <bb 11>; [33.00%]
else
goto <bb 14>; [67.00%]
<bb 11> [local count: 46905158]:
# DEBUG BEGIN_STMT
_12 = _4 + 1;
gb.cmd_idx = _12;
# DEBUG BEGIN_STMT
_13 = &gb.cmd_buf[_12];
_14 = get_char (_13);
if (_14 == 0)
goto <bb 12>; [50.00%]
else
goto <bb 13>; [50.00%]
<bb 12> [local count: 23452579]:
# DEBUG BEGIN_STMT
_15 = gb.cmd_idx;
_16 = _15 + 4294967295;
_17 = gb.cmd_buf[_16];
put_char (_17);
# DEBUG BEGIN_STMT
_18 = gb.cmd_idx;
_19 = gb.cmd_buf[_18];
put_char (_19);
# DEBUG BEGIN_STMT
_20 = gb.cmd_idx;
_21 = _20 + 1;
gb.cmd_idx = _21;
goto <bb 14>; [100.00%]
<bb 13> [local count: 23452579]:
# DEBUG BEGIN_STMT
_22 = gb.cmd_idx;
_23 = _22 + 4294967295;
_24 = gb.cmd_buf[_23];
put_char (_24);
<bb 14> [local count: 424289081]:
# DEBUG BEGIN_STMT
_25 = gb.cmd_idx;
if (_25 >= max_len_46(D))
goto <bb 15>; [34.00%]
else
goto <bb 16>; [66.00%]
<bb 15> [local count: 144258288]:
# DEBUG BEGIN_STMT
_26 = max_len_46(D) + 4294967295;
gb.cmd_buf[_26] = 0;
# DEBUG BEGIN_STMT
gb.cmd_idx = 0;
# DEBUG BEGIN_STMT
<bb 16> [local count: 1073741823]:
# _27 = PHI <1(2), 0(4), 0(5), 0(15), 1(14)>
return _27;
}
put_char (char ch)
{
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
Lpuart_Uart_Ip_SyncSend (0, &ch, 1);
return;
}
get_char (char * ch)
{
unsigned int _1;
unsigned int _2;
char _3;
unsigned int _4;
unsigned int _5;
unsigned int _6;
int _7;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
_1 = gb.ubuf_head;
_2 = gb.ubuf_tail;
if (_1 == _2)
goto <bb 4>; [20.97%]
else
goto <bb 3>; [79.03%]
<bb 3> [local count: 848578164]:
# DEBUG BEGIN_STMT
_3 = gb.ubuf[_1];
*ch_10(D) = _3;
# DEBUG BEGIN_STMT
_4 = gb.ubuf_head;
_5 = _4 + 1;
_6 = _5 & 255;
gb.ubuf_head = _6;
# DEBUG BEGIN_STMT
<bb 4> [local count: 1073741824]:
# _7 = PHI <1(2), 0(3)>
return _7;
}
Gvar_init ()
{
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
gb.ubuf_head = 0;
# DEBUG BEGIN_STMT
gb.ubuf_tail = 0;
return;
}
PrintLogo ()
{
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
debug_printf ("\n\r\n");
# DEBUG BEGIN_STMT
debug_printf ("================================================\r\n");
# DEBUG BEGIN_STMT
debug_printf (" MR S32K344 APPLICATION\n");
# DEBUG BEGIN_STMT
debug_printf (" Version %04X\n", 1);
# DEBUG BEGIN_STMT
debug_printf (" Author : sihong89@gmail.com\n");
# DEBUG BEGIN_STMT
debug_printf (" Last compiled : %s %s\n", "Oct 27 2021", "13:34:26");
# DEBUG BEGIN_STMT
debug_printf ("================================================\r\n");
return;
}
UART0_RX_Callback (uint32 instance, void * driverState, Lpuart_Uart_Ip_EventType event, void * userData)
{
unsigned int _1;
char _2;
unsigned int _3;
unsigned int _4;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
if (event_6(D) == 0)
goto <bb 3>; [33.00%]
else
goto <bb 4>; [67.00%]
<bb 3> [local count: 354334802]:
# DEBUG BEGIN_STMT
_1 = gb.ubuf_tail;
_2 = gb.utemp[0];
gb.ubuf[_1] = _2;
# DEBUG BEGIN_STMT
_3 = _1 + 1;
_4 = _3 & 255;
gb.ubuf_tail = _4;
# DEBUG BEGIN_STMT
Lpuart_Uart_Ip_SetRxBuffer (instance_10(D), &gb.utemp, 1);
<bb 4> [local count: 1073741824]:
return;
}
board_init ()
{
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
Lpuart_Uart_Ip_AsyncReceive (0, &gb.utemp, 1);
# DEBUG BEGIN_STMT
led_onoff (0);
return;
}
system_reset ()
{
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG addr => 1076297728B
# DEBUG BEGIN_STMT
MEM[(u32 *)1076297728B] = 1;
return;
}
Pit_Callback ()
{
long unsigned int _1;
long unsigned int _2;
unsigned int _3;
unsigned int _4;
int _5;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
_1 = gb.tmr_cnt;
_2 = _1 + 1;
gb.tmr_cnt = _2;
# DEBUG BEGIN_STMT
_3 = gb.led_cnt;
_4 = _3 + 1;
gb.led_cnt = _4;
# DEBUG BEGIN_STMT
if (_4 > 1000)
goto <bb 3>; [50.00%]
else
goto <bb 6>; [50.00%]
<bb 3> [local count: 536870913]:
# DEBUG BEGIN_STMT
gb.led_cnt = 0;
# DEBUG BEGIN_STMT
_5 = gb.led_flag;
if (_5 == 1)
goto <bb 4>; [34.00%]
else
goto <bb 5>; [66.00%]
<bb 4> [local count: 182536110]:
# DEBUG BEGIN_STMT
led_onoff (0);
goto <bb 6>; [100.00%]
<bb 5> [local count: 354334802]:
# DEBUG BEGIN_STMT
led_onoff (1);
<bb 6> [local count: 1073741824]:
return;
}
Adc1EndOfChainNoti ()
{
volatile u16 data;
short unsigned int _1;
short unsigned int _2;
int _3;
short unsigned int data.7_4;
int _5;
int _6;
short unsigned int _7;
unsigned int _8;
short unsigned int _9;
short unsigned int _10;
short unsigned int _11;
int _12;
short unsigned int data.8_13;
int _14;
int _15;
short unsigned int _16;
unsigned int _17;
short unsigned int _18;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
_1 = Adc_Sar_Ip_GetConvData (1, 35);
data ={v} _1;
# DEBUG BEGIN_STMT
_2 = gb.adc[1].idx;
_3 = (int) _2;
data.7_4 ={v} data;
gb.adc[1].raw[_3] = data.7_4;
# DEBUG BEGIN_STMT
_5 = _3 + 1;
_6 = _5 % 10;
_7 = (short unsigned int) _6;
gb.adc[1].idx = _7;
# DEBUG BEGIN_STMT
_8 = get_average (&gb.adc[1].raw, 10);
_9 = (short unsigned int) _8;
gb.adc[1].avr = _9;
# DEBUG BEGIN_STMT
_10 = Adc_Sar_Ip_GetConvData (1, 36);
data ={v} _10;
# DEBUG BEGIN_STMT
_11 = gb.adc[0].idx;
_12 = (int) _11;
data.8_13 ={v} data;
gb.adc[0].raw[_12] = data.8_13;
# DEBUG BEGIN_STMT
_14 = _12 + 1;
_15 = _14 % 10;
_16 = (short unsigned int) _15;
gb.adc[0].idx = _16;
# DEBUG BEGIN_STMT
_17 = get_average (&gb.adc[0].raw, 10);
_18 = (short unsigned int) _17;
gb.adc[0].avr = _18;
# DEBUG BEGIN_STMT
Adc_Sar_Ip_StartConversion (1, 0);
return;
}
Adc0EndOfChainNoti ()
{
volatile u16 data;
short unsigned int _1;
short unsigned int _2;
int _3;
short unsigned int data.5_4;
int _5;
int _6;
short unsigned int _7;
unsigned int _8;
short unsigned int _9;
short unsigned int _10;
short unsigned int _11;
int _12;
short unsigned int data.6_13;
int _14;
int _15;
short unsigned int _16;
unsigned int _17;
short unsigned int _18;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
_1 = Adc_Sar_Ip_GetConvData (0, 33);
data ={v} _1;
# DEBUG BEGIN_STMT
_2 = gb.adc[2].idx;
_3 = (int) _2;
data.5_4 ={v} data;
gb.adc[2].raw[_3] = data.5_4;
# DEBUG BEGIN_STMT
_5 = _3 + 1;
_6 = _5 % 10;
_7 = (short unsigned int) _6;
gb.adc[2].idx = _7;
# DEBUG BEGIN_STMT
_8 = get_average (&gb.adc[2].raw, 10);
_9 = (short unsigned int) _8;
gb.adc[2].avr = _9;
# DEBUG BEGIN_STMT
_10 = Adc_Sar_Ip_GetConvData (0, 47);
data ={v} _10;
# DEBUG BEGIN_STMT
_11 = gb.adc[3].idx;
_12 = (int) _11;
data.6_13 ={v} data;
gb.adc[3].raw[_12] = data.6_13;
# DEBUG BEGIN_STMT
_14 = _12 + 1;
_15 = _14 % 10;
_16 = (short unsigned int) _15;
gb.adc[3].idx = _16;
# DEBUG BEGIN_STMT
_17 = get_average (&gb.adc[3].raw, 10);
_18 = (short unsigned int) _17;
gb.adc[3].avr = _18;
# DEBUG BEGIN_STMT
Adc_Sar_Ip_StartConversion (0, 0);
return;
}
get_average (u16 * val, int len)
{
int i;
int sum;
int max;
int min;
unsigned int i.0_1;
unsigned int _2;
u16 * _3;
short unsigned int _4;
int _5;
int _10;
int _11;
int _12;
int _13;
int _18;
u32 _21;
<bb 2> [local count: 118111600]:
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
# DEBUG min => 65536
# DEBUG BEGIN_STMT
# DEBUG max => -65537
# DEBUG BEGIN_STMT
# DEBUG sum => 0
# DEBUG BEGIN_STMT
# DEBUG i => 0
goto <bb 4>; [100.00%]
<bb 3> [local count: 955630223]:
# DEBUG BEGIN_STMT
i.0_1 = (unsigned int) i_17;
_2 = i.0_1 * 2;
_3 = val_23(D) + _2;
_4 = *_3;
_5 = (int) _4;
sum_24 = _5 + sum_16;
# DEBUG sum => sum_24
# DEBUG BEGIN_STMT
max_9 = MAX_EXPR <_5, max_15>;
# DEBUG max => max_9
# DEBUG BEGIN_STMT
min_20 = MIN_EXPR <_5, min_14>;
# DEBUG min => min_20
# DEBUG BEGIN_STMT
i_25 = i_17 + 1;
# DEBUG i => i_25
<bb 4> [local count: 1073741824]:
# min_14 = PHI <65536(2), min_20(3)>
# max_15 = PHI <-65537(2), max_9(3)>
# sum_16 = PHI <0(2), sum_24(3)>
# i_17 = PHI <0(2), i_25(3)>
# DEBUG i => i_17
# DEBUG sum => sum_16
# DEBUG max => max_15
# DEBUG min => min_14
# DEBUG BEGIN_STMT
if (i_17 < len_19(D))
goto <bb 3>; [89.00%]
else
goto <bb 5>; [11.00%]
<bb 5> [local count: 118111601]:
# min_6 = PHI <min_14(4)>
# max_7 = PHI <max_15(4)>
# sum_8 = PHI <sum_16(4)>
# DEBUG BEGIN_STMT
_10 = sum_8 - max_7;
_11 = _10 - min_6;
_12 = len_19(D) + -2;
_13 = _11 / _12;
# DEBUG ret => (u16) _13
# DEBUG BEGIN_STMT
_18 = _13 & 65535;
_21 = (u32) _18;
return _21;
}
set_pwm (u32 ch, u32 ratio)
{
u32 val;
u32 channel;
unsigned int _1;
unsigned char _2;
short unsigned int _3;
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
# DEBUG BEGIN_STMT
channel_7 = pwm_idx[ch_6(D)];
# DEBUG channel => channel_7
# DEBUG BEGIN_STMT
if (ratio_8(D) > 99)
goto <bb 5>; [50.00%]
else
goto <bb 3>; [50.00%]
<bb 3> [local count: 536870913]:
# DEBUG BEGIN_STMT
if (ratio_8(D) == 0)
goto <bb 5>; [50.00%]
else
goto <bb 4>; [50.00%]
<bb 4> [local count: 268435456]:
# DEBUG BEGIN_STMT
_1 = ratio_8(D) * 240;
val_9 = _1 / 100;
# DEBUG val => val_9
<bb 5> [local count: 1073741824]:
# val_4 = PHI <240(2), 0(3), val_9(4)>
# DEBUG val => val_4
# DEBUG BEGIN_STMT
_2 = (unsigned char) channel_7;
_3 = (short unsigned int) val_4;
Flexio_Pwm_Ip_UpdatePeriodDuty (0, _2, 240, _3);
return;
}
led_onoff (int flag)
{
<bb 2> [local count: 1073741824]:
# DEBUG BEGIN_STMT
if (flag_2(D) == 1)
goto <bb 3>; [34.00%]
else
goto <bb 4>; [66.00%]
<bb 3> [local count: 365072220]:
# DEBUG BEGIN_STMT
Siul2_Dio_Ip_WritePin (1076434692B, 13, 0);
goto <bb 5>; [100.00%]
<bb 4> [local count: 708669605]:
# DEBUG BEGIN_STMT
Siul2_Dio_Ip_WritePin (1076434692B, 13, 1);
<bb 5> [local count: 1073741824]:
# DEBUG BEGIN_STMT
gb.led_flag = flag_2(D);
return;
}