ADM/GW/Debug_FLASH/src/IDB_RCU/BREAK_Speed.c.072i.cp

258 lines
7.5 KiB
C++

IPA constant propagation start:
IPA structures before propagation:
Jump functions:
Jump functions of caller RateLimiter_step/9:
Jump functions of caller BREAK_Speed/4:
Propagating constants:
Not considering BREAK_Speed for cloning; -fipa-cp-clone disabled.
overall_size: 44, max_new_size: 11001
IPA lattices after all propagation:
Lattices:
Node: BREAK_Speed/4:
IPA decision stage:
IPA constant propagation end
Reclaiming functions:
Reclaiming variables:
Clearing address taken flags:
Symbol table:
GV_RCU_BrakeTorqueCommand/13 (GV_RCU_BrakeTorqueCommand) @06966cf0
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: BREAK_Speed/4 (write)
Availability: not_available
Varpool flags:
GV_BrakeTorqueCommand/12 (GV_BrakeTorqueCommand) @06966ca8
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: BREAK_Speed/4 (write)
Availability: not_available
Varpool flags:
GV_VCU_Vx_Fbk/11 (GV_VCU_Vx_Fbk) @06966c60
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: BREAK_Speed/4 (read)
Availability: not_available
Varpool flags:
RateLimiter_Y/10 (RateLimiter_Y) @06966c18
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: BREAK_Speed/4 (read)
Availability: not_available
Varpool flags:
RateLimiter_step/9 (RateLimiter_step) @06969540
Type: function
Visibility: external public
References:
Referring:
Availability: not_available
Function flags: optimize_size
Called by: BREAK_Speed/4 (217325345 (estimated locally),0.20 per call)
Calls:
GV_Break_Slewrate/8 (GV_Break_Slewrate) @06966b88
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: BREAK_Speed/4 (read)
Availability: not_available
Varpool flags:
RateLimiter_U/7 (RateLimiter_U) @06966b40
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: BREAK_Speed/4 (write)BREAK_Speed/4 (write)BREAK_Speed/4 (write)
Availability: not_available
Varpool flags:
GV_RC_BrakeTorqueCommand/6 (GV_RC_BrakeTorqueCommand) @06966af8
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: BREAK_Speed/4 (read)BREAK_Speed/4 (write)
Availability: not_available
Varpool flags:
GV_Operation_Mode/5 (GV_Operation_Mode) @06966ab0
Type: variable
Body removed by symtab_remove_unreachable_nodes
Visibility: external public
References:
Referring: BREAK_Speed/4 (read)BREAK_Speed/4 (read)
Availability: not_available
Varpool flags:
BREAK_Speed/4 (BREAK_Speed) @06969000
Type: function definition analyzed
Visibility: externally_visible public
References: GV_Operation_Mode/5 (read)GV_RC_BrakeTorqueCommand/6 (read)RateLimiter_U/7 (write)GV_Break_Slewrate/8 (read)RateLimiter_U/7 (write)RateLimiter_U/7 (write)RateLimiter_Y/10 (read)GV_RC_BrakeTorqueCommand/6 (write)GV_Operation_Mode/5 (read)Auto_Brake_Flag/1 (read)Auto_Brake_Flag/1 (write)Auto_Brake_Flag/1 (read)GV_VCU_Vx_Fbk/11 (read)temp_Vehicle_Speed/2 (write)Auto_Brake_Flag/1 (write)Auto_Brake_Flag/1 (read)temp_Vehicle_Speed/2 (read)Auto_Brake_Tunning/3 (read)GV_BrakeTorqueCommand/12 (write)GV_RCU_BrakeTorqueCommand/13 (write)Auto_Brake_Flag/1 (write)
Referring:
Availability: available
Function flags: count:1073741823 (estimated locally) body optimize_size
Called by:
Calls: RateLimiter_step/9 (217325345 (estimated locally),0.20 per call)
Auto_Brake_Tunning/3 (Auto_Brake_Tunning) @06966090
Type: variable definition analyzed
Visibility: externally_visible public
References:
Referring: BREAK_Speed/4 (read)
Availability: available
Varpool flags: initialized
temp_Vehicle_Speed/2 (temp_Vehicle_Speed) @06966000
Type: variable definition analyzed
Visibility: externally_visible public
References:
Referring: BREAK_Speed/4 (write)BREAK_Speed/4 (read)
Availability: available
Varpool flags: initialized
Auto_Brake_Flag/1 (Auto_Brake_Flag) @06aaff30
Type: variable definition analyzed
Visibility: externally_visible public
References:
Referring: BREAK_Speed/4 (read)BREAK_Speed/4 (write)BREAK_Speed/4 (read)BREAK_Speed/4 (write)BREAK_Speed/4 (read)BREAK_Speed/4 (write)
Availability: available
Varpool flags: initialized
BREAK_Speed_limit/0 (BREAK_Speed_limit) @06aafea0
Type: variable definition analyzed
Visibility: externally_visible public
References:
Referring:
Availability: available
Varpool flags: initialized
;; Function BREAK_Speed (BREAK_Speed, funcdef_no=0, decl_uid=4017, cgraph_uid=1, symbol_order=4)
Modification phase of node BREAK_Speed/4
BREAK_Speed ()
{
unsigned char GV_Operation_Mode.0_1;
float GV_RC_BrakeTorqueCommand.1_2;
double _3;
long unsigned int GV_Break_Slewrate.2_4;
long unsigned int _5;
double _6;
double _7;
double _8;
float _9;
unsigned char GV_Operation_Mode.4_10;
int Auto_Brake_Flag.5_11;
int Auto_Brake_Flag.6_12;
float GV_VCU_Vx_Fbk.7_13;
int Auto_Brake_Flag.8_14;
float temp_Vehicle_Speed.9_15;
float _16;
float Auto_Brake_Tunning.10_17;
float _18;
<bb 2> [local count: 1073741823]:
# DEBUG BEGIN_STMT
GV_Operation_Mode.0_1 = GV_Operation_Mode;
if (GV_Operation_Mode.0_1 == 1)
goto <bb 3>; [20.24%]
else
goto <bb 4>; [79.76%]
<bb 3> [local count: 217325345]:
# DEBUG BEGIN_STMT
GV_RC_BrakeTorqueCommand.1_2 = GV_RC_BrakeTorqueCommand;
_3 = (double) GV_RC_BrakeTorqueCommand.1_2;
RateLimiter_U.Data_Input = _3;
# DEBUG BEGIN_STMT
GV_Break_Slewrate.2_4 = GV_Break_Slewrate;
_5 = -GV_Break_Slewrate.2_4;
_6 = (double) _5;
RateLimiter_U.Down_Slewrate = _6;
# DEBUG BEGIN_STMT
_7 = (double) GV_Break_Slewrate.2_4;
RateLimiter_U.Upper_Slewrate = _7;
# DEBUG BEGIN_STMT
RateLimiter_step ();
# DEBUG BEGIN_STMT
_8 = RateLimiter_Y.Data_Output;
_9 = (float) _8;
GV_RC_BrakeTorqueCommand = _9;
<bb 4> [local count: 1073741823]:
# DEBUG BEGIN_STMT
GV_Operation_Mode.4_10 = GV_Operation_Mode;
if (GV_Operation_Mode.4_10 == 2)
goto <bb 5>; [34.00%]
else
goto <bb 11>; [66.00%]
<bb 5> [local count: 365072220]:
# DEBUG BEGIN_STMT
Auto_Brake_Flag.5_11 = Auto_Brake_Flag;
if (Auto_Brake_Flag.5_11 == 0)
goto <bb 6>; [50.00%]
else
goto <bb 7>; [50.00%]
<bb 6> [local count: 182536110]:
# DEBUG BEGIN_STMT
Auto_Brake_Flag = 1;
<bb 7> [local count: 365072220]:
# DEBUG BEGIN_STMT
Auto_Brake_Flag.6_12 = Auto_Brake_Flag;
if (Auto_Brake_Flag.6_12 == 1)
goto <bb 8>; [34.00%]
else
goto <bb 9>; [66.00%]
<bb 8> [local count: 124124555]:
# DEBUG BEGIN_STMT
GV_VCU_Vx_Fbk.7_13 = GV_VCU_Vx_Fbk;
temp_Vehicle_Speed = GV_VCU_Vx_Fbk.7_13;
# DEBUG BEGIN_STMT
Auto_Brake_Flag = 2;
<bb 9> [local count: 365072220]:
# DEBUG BEGIN_STMT
Auto_Brake_Flag.8_14 = Auto_Brake_Flag;
if (Auto_Brake_Flag.8_14 == 2)
goto <bb 10>; [34.00%]
else
goto <bb 12>; [66.00%]
<bb 10> [local count: 124124555]:
# DEBUG BEGIN_STMT
temp_Vehicle_Speed.9_15 = temp_Vehicle_Speed;
_16 = temp_Vehicle_Speed.9_15 * 1.0e+1;
Auto_Brake_Tunning.10_17 = Auto_Brake_Tunning;
_18 = _16 * Auto_Brake_Tunning.10_17;
GV_BrakeTorqueCommand = _18;
# DEBUG BEGIN_STMT
GV_RCU_BrakeTorqueCommand = _18;
goto <bb 12>; [100.00%]
<bb 11> [local count: 708669604]:
# DEBUG BEGIN_STMT
Auto_Brake_Flag = 0;
<bb 12> [local count: 1073741824]:
return;
}