Marking local functions: Swt_Ip_IsKeyedServiceMode Swt_Ip_CheckTimeout Swt_Ip_RegisterConfig Swt_Ip_Unlock Swt_Ip_Lock Swt_Ip_GetLock Marking externally visible functions: Swt_Ip_IrqHandler Swt_Ip_StopTimer Swt_Ip_StartTimer Swt_Ip_SetTimeout Swt_Ip_Config Swt_Ip_Service Swt_Ip_Deinit Swt_Ip_Init Marking externally visible variables: Clearing variable flags: Swt_Ip_apCallbackPtr (non-addressable) s_swtBase (non-addressable) Reclaiming functions: Reclaiming variables: Clearing address taken flags: Symbol table: SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_11/34 (SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_11) @069b2ee0 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: Swt_Ip_StopTimer/24 (1073741824 (estimated locally),1.00 per call) Calls: SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_11/33 (SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_11) @069b2e00 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: Swt_Ip_StopTimer/24 (1073741824 (estimated locally),1.00 per call) Calls: SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_10/32 (SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_10) @069b2c40 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: Swt_Ip_StartTimer/23 (1073741824 (estimated locally),1.00 per call) Calls: SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_10/31 (SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_10) @069b2b60 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: Swt_Ip_StartTimer/23 (1073741824 (estimated locally),1.00 per call) Calls: SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_09/30 (SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_09) @069b2460 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: Swt_Ip_Service/20 (1073741824 (estimated locally),1.00 per call) Calls: SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_09/29 (SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_09) @069b2380 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: Swt_Ip_Service/20 (1073741824 (estimated locally),1.00 per call) Calls: OsIf_GetElapsed/28 (OsIf_GetElapsed) @069a3c40 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: Swt_Ip_Unlock/8 (958878292 (estimated locally),1.38 per call) Calls: OsIf_GetCounter/27 (OsIf_GetCounter) @069a3b60 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: Swt_Ip_Unlock/8 (114863532 (estimated locally),0.16 per call) Calls: OsIf_MicrosToTicks/26 (OsIf_MicrosToTicks) @069a3a80 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: Swt_Ip_Unlock/8 (696142619 (estimated locally),1.00 per call) Calls: Swt_Ip_IrqHandler/25 (Swt_Ip_IrqHandler) @069a3460 Type: function definition analyzed Visibility: externally_visible public References: s_swtBase/1 (read)Swt_Ip_apCallbackPtr/2 (read) Referring: Availability: available Function flags: count:1073741824 (estimated locally) body optimize_size Called by: Calls: Indirect call(187904819 (estimated locally),0.17 per call) Swt_Ip_StopTimer/24 (Swt_Ip_StopTimer) @069a31c0 Type: function definition analyzed Visibility: externally_visible public References: s_swtBase/1 (read) Referring: Availability: available Function flags: count:1073741824 (estimated locally) body optimize_size Called by: Calls: SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_11/34 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Lock/7 (354334802 (estimated locally),0.33 per call) Swt_Ip_Unlock/8 (1073741824 (estimated locally),1.00 per call) SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_11/33 (1073741824 (estimated locally),1.00 per call) Swt_Ip_GetLock/6 (1073741824 (estimated locally),1.00 per call) Swt_Ip_StartTimer/23 (Swt_Ip_StartTimer) @0699bd20 Type: function definition analyzed Visibility: externally_visible public References: s_swtBase/1 (read) Referring: Availability: available Function flags: count:1073741824 (estimated locally) body optimize_size Called by: Calls: SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_10/32 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Lock/7 (354334802 (estimated locally),0.33 per call) Swt_Ip_Unlock/8 (1073741824 (estimated locally),1.00 per call) SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_10/31 (1073741824 (estimated locally),1.00 per call) Swt_Ip_GetLock/6 (1073741824 (estimated locally),1.00 per call) Swt_Ip_SetTimeout/22 (Swt_Ip_SetTimeout) @0699b7e0 Type: function definition analyzed Visibility: externally_visible public References: s_swtBase/1 (read) Referring: Availability: available Function flags: count:1073741824 (estimated locally) body optimize_size Called by: Calls: Swt_Ip_Lock/7 (233860969 (estimated locally),0.22 per call) Swt_Ip_Unlock/8 (354334802 (estimated locally),0.33 per call) Swt_Ip_CheckTimeout/10 (1073741824 (estimated locally),1.00 per call) Swt_Ip_GetLock/6 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Config/21 (Swt_Ip_Config) @0699bee0 Type: function definition analyzed Visibility: externally_visible public References: s_swtBase/1 (read) Referring: Availability: available Function flags: count:1073741824 (estimated locally) body optimize_size Called by: Calls: Swt_Ip_Lock/7 (233860969 (estimated locally),0.22 per call) Swt_Ip_RegisterConfig/9 (233860969 (estimated locally),0.22 per call) Swt_Ip_Unlock/8 (354334802 (estimated locally),0.33 per call) Swt_Ip_CheckTimeout/10 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Service/20 (Swt_Ip_Service) @0699bc40 Type: function definition analyzed Visibility: externally_visible public References: s_swtBase/1 (read) Referring: Availability: available Function flags: count:1073741824 (estimated locally) body optimize_size Called by: Calls: SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_09/30 (1073741824 (estimated locally),1.00 per call) Swt_Ip_GetLock/6 (536870913 (estimated locally),0.50 per call) Swt_Ip_IsKeyedServiceMode/12 (1073741824 (estimated locally),1.00 per call) SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_09/29 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Deinit/19 (Swt_Ip_Deinit) @0699b9a0 Type: function definition analyzed Visibility: externally_visible public References: s_swtBase/1 (read) Referring: Availability: available Function flags: count:1073741824 (estimated locally) body optimize_size Called by: Calls: Swt_Ip_Unlock/8 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Init/18 (Swt_Ip_Init) @0699b700 Type: function definition analyzed Visibility: externally_visible public References: s_swtBase/1 (read)Swt_Ip_apCallbackPtr/2 (write) Referring: Availability: available Function flags: count:1073741823 (estimated locally) body optimize_size Called by: Calls: Swt_Ip_Lock/7 (77174120 (estimated locally),0.07 per call) Swt_Ip_RegisterConfig/9 (77174120 (estimated locally),0.07 per call) Swt_Ip_CheckTimeout/10 (233860969 (estimated locally),0.22 per call) Swt_Ip_Unlock/8 (354334802 (estimated locally),0.33 per call) Swt_Ip_IsKeyedServiceMode/12 (Swt_Ip_IsKeyedServiceMode) @06998540 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: count:1073741824 (estimated locally) body local optimize_size Called by: Swt_Ip_Service/20 (1073741824 (estimated locally),1.00 per call) Calls: Swt_Ip_CheckTimeout/10 (Swt_Ip_CheckTimeout) @06925ee0 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: count:1073741824 (estimated locally) body local optimize_size Called by: Swt_Ip_SetTimeout/22 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Config/21 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Init/18 (233860969 (estimated locally),0.22 per call) Calls: Swt_Ip_RegisterConfig/9 (Swt_Ip_RegisterConfig) @06925c40 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: count:1073741824 (estimated locally) body local optimize_size Called by: Swt_Ip_Config/21 (233860969 (estimated locally),0.22 per call) Swt_Ip_Init/18 (77174120 (estimated locally),0.07 per call) Calls: Swt_Ip_Unlock/8 (Swt_Ip_Unlock) @069257e0 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: count:696142619 (estimated locally) body local optimize_size Called by: Swt_Ip_StopTimer/24 (1073741824 (estimated locally),1.00 per call) Swt_Ip_StartTimer/23 (1073741824 (estimated locally),1.00 per call) Swt_Ip_SetTimeout/22 (354334802 (estimated locally),0.33 per call) Swt_Ip_Config/21 (354334802 (estimated locally),0.33 per call) Swt_Ip_Deinit/19 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Init/18 (354334802 (estimated locally),0.33 per call) Calls: OsIf_GetElapsed/28 (958878292 (estimated locally),1.38 per call) OsIf_GetCounter/27 (114863532 (estimated locally),0.16 per call) OsIf_MicrosToTicks/26 (696142619 (estimated locally),1.00 per call) Swt_Ip_Lock/7 (Swt_Ip_Lock) @06925380 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: count:1073741824 (estimated locally) body local optimize_size Called by: Swt_Ip_StopTimer/24 (354334802 (estimated locally),0.33 per call) Swt_Ip_StartTimer/23 (354334802 (estimated locally),0.33 per call) Swt_Ip_SetTimeout/22 (233860969 (estimated locally),0.22 per call) Swt_Ip_Config/21 (233860969 (estimated locally),0.22 per call) Swt_Ip_Init/18 (77174120 (estimated locally),0.07 per call) Calls: Swt_Ip_GetLock/6 (Swt_Ip_GetLock) @06920ee0 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: count:1073741824 (estimated locally) body local optimize_size Called by: Swt_Ip_StopTimer/24 (1073741824 (estimated locally),1.00 per call) Swt_Ip_StartTimer/23 (1073741824 (estimated locally),1.00 per call) Swt_Ip_SetTimeout/22 (1073741824 (estimated locally),1.00 per call) Swt_Ip_Service/20 (536870913 (estimated locally),0.50 per call) Calls: Swt_Ip_apCallbackPtr/2 (Swt_Ip_apCallbackPtr) @0691cd38 Type: variable definition analyzed Visibility: prevailing_def_ironly References: Referring: Swt_Ip_Init/18 (write)Swt_Ip_IrqHandler/25 (read) Availability: available Varpool flags: s_swtBase/1 (s_swtBase) @0691cca8 Type: variable definition analyzed Visibility: prevailing_def_ironly References: Referring: Swt_Ip_StartTimer/23 (read)Swt_Ip_StopTimer/24 (read)Swt_Ip_Init/18 (read)Swt_Ip_Deinit/19 (read)Swt_Ip_Service/20 (read)Swt_Ip_Config/21 (read)Swt_Ip_SetTimeout/22 (read)Swt_Ip_IrqHandler/25 (read) Availability: available Varpool flags: initialized read-only const-value-known Swt_Ip_IrqHandler (uint32 u32Instance) { struct SWT_Type * const base; void (*) (void) _1; long unsigned int _7; _Bool _8; long unsigned int _9; long unsigned int _10; long unsigned int _11; long unsigned int _12; [local count: 1073741824]: # DEBUG BEGIN_STMT base_5 = s_swtBase[u32Instance_4(D)]; # DEBUG base => base_5 # DEBUG BEGIN_STMT # DEBUG base => base_5 # DEBUG INLINE_ENTRY Swt_Ip_GetIntFlag # DEBUG BEGIN_STMT _7 ={v} MEM[(const struct SWT_Type *)base_5].IR; _8 = (_Bool) _7; # DEBUG base => NULL if (_8 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: # DEBUG BEGIN_STMT # DEBUG base => base_5 # DEBUG INLINE_ENTRY Swt_Ip_ClearIntFlag # DEBUG BEGIN_STMT _9 ={v} base_5->IR; _10 = _9 & 1; base_5->IR ={v} _10; # DEBUG base => NULL # DEBUG BEGIN_STMT _1 = Swt_Ip_apCallbackPtr[u32Instance_4(D)]; if (_1 != 0B) goto ; [70.00%] else goto ; [30.00%] [local count: 375809639]: # DEBUG base => base_5 # DEBUG INLINE_ENTRY Swt_Ip_IsIntEnabled # DEBUG BEGIN_STMT _11 ={v} MEM[(const struct SWT_Type *)base_5].CR; _12 = _11 & 64; # DEBUG base => NULL if (_12 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 187904819]: # DEBUG BEGIN_STMT _1 (); [local count: 1073741824]: return; } Swt_Ip_StopTimer (const uint32 u32Instance) { Swt_Ip_StatusType ret; Swt_Ip_LockType lockConfig; struct SWT_Type * const base; long unsigned int _12; long unsigned int _13; [local count: 1073741824]: # DEBUG BEGIN_STMT base_4 = s_swtBase[u32Instance_3(D)]; # DEBUG base => base_4 # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT lockConfig_6 = Swt_Ip_GetLock (base_4); # DEBUG lockConfig => lockConfig_6 # DEBUG BEGIN_STMT SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_11 (); # DEBUG BEGIN_STMT ret_9 = Swt_Ip_Unlock (base_4); # DEBUG ret => ret_9 # DEBUG BEGIN_STMT if (ret_9 == 0) goto ; [33.00%] else goto ; [67.00%] [local count: 354334802]: # DEBUG BEGIN_STMT # DEBUG base => base_4 # DEBUG INLINE_ENTRY Swt_Ip_Disable # DEBUG BEGIN_STMT _12 ={v} base_4->CR; _13 = _12 & 4294967294; base_4->CR ={v} _13; # DEBUG base => NULL # DEBUG BEGIN_STMT Swt_Ip_Lock (base_4, lockConfig_6); [local count: 1073741824]: # DEBUG BEGIN_STMT SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_11 (); # DEBUG BEGIN_STMT return ret_9; } Swt_Ip_StartTimer (const uint32 u32Instance) { Swt_Ip_StatusType ret; Swt_Ip_LockType lockConfig; struct SWT_Type * const base; long unsigned int _12; long unsigned int _13; [local count: 1073741824]: # DEBUG BEGIN_STMT base_4 = s_swtBase[u32Instance_3(D)]; # DEBUG base => base_4 # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT lockConfig_6 = Swt_Ip_GetLock (base_4); # DEBUG lockConfig => lockConfig_6 # DEBUG BEGIN_STMT SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_10 (); # DEBUG BEGIN_STMT ret_9 = Swt_Ip_Unlock (base_4); # DEBUG ret => ret_9 # DEBUG BEGIN_STMT if (ret_9 == 0) goto ; [33.00%] else goto ; [67.00%] [local count: 354334802]: # DEBUG BEGIN_STMT # DEBUG base => base_4 # DEBUG INLINE_ENTRY Swt_Ip_Enable # DEBUG BEGIN_STMT _12 ={v} base_4->CR; _13 = _12 | 1; base_4->CR ={v} _13; # DEBUG base => NULL # DEBUG BEGIN_STMT Swt_Ip_Lock (base_4, lockConfig_6); [local count: 1073741824]: # DEBUG BEGIN_STMT SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_10 (); # DEBUG BEGIN_STMT return ret_9; } Swt_Ip_SetTimeout (const uint32 u32Instance, const uint32 u32TimeoutValue, const uint32 u32WindowValue) { Swt_Ip_StatusType ret; Swt_Ip_LockType lockConfig; struct SWT_Type * const base; _1; long unsigned int _2; long unsigned int _3; long unsigned int _4; long unsigned int _5; long unsigned int _16; long unsigned int _24; long unsigned int _25; long unsigned int _26; [local count: 1073741824]: # DEBUG BEGIN_STMT base_11 = s_swtBase[u32Instance_10(D)]; # DEBUG base => base_11 # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT lockConfig_13 = Swt_Ip_GetLock (base_11); # DEBUG lockConfig => lockConfig_13 # DEBUG BEGIN_STMT ret_17 = Swt_Ip_CheckTimeout (u32TimeoutValue_14(D), u32WindowValue_15(D)); # DEBUG ret => ret_17 # DEBUG BEGIN_STMT if (ret_17 == 0) goto ; [33.00%] else goto ; [67.00%] [local count: 354334802]: # DEBUG BEGIN_STMT _1 = Swt_Ip_Unlock (base_11); if (_1 == 1) goto ; [34.00%] else goto ; [66.00%] [local count: 233860969]: # DEBUG BEGIN_STMT # DEBUG base => base_11 # DEBUG INLINE_ENTRY Swt_Ip_Disable # DEBUG BEGIN_STMT _16 ={v} base_11->CR; _24 = _16 & 4294967294; base_11->CR ={v} _24; # DEBUG base => NULL # DEBUG BEGIN_STMT base_11->TO ={v} u32TimeoutValue_14(D); # DEBUG BEGIN_STMT if (u32WindowValue_15(D) != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 116930485]: # DEBUG BEGIN_STMT base_11->WN ={v} u32WindowValue_15(D); # DEBUG BEGIN_STMT _2 ={v} base_11->CR; _3 = _2 | 128; base_11->CR ={v} _3; goto ; [100.00%] [local count: 116930485]: # DEBUG BEGIN_STMT _4 ={v} base_11->CR; _5 = _4 & 4294967167; base_11->CR ={v} _5; [local count: 233860969]: # DEBUG BEGIN_STMT # DEBUG base => base_11 # DEBUG INLINE_ENTRY Swt_Ip_Enable # DEBUG BEGIN_STMT _25 ={v} base_11->CR; _26 = _25 | 1; base_11->CR ={v} _26; # DEBUG base => NULL # DEBUG BEGIN_STMT Swt_Ip_Lock (base_11, lockConfig_13); [local count: 1073741824]: # ret_6 = PHI # DEBUG ret => ret_6 # DEBUG BEGIN_STMT return ret_6; } Swt_Ip_Config (const uint32 u32Instance, const struct Swt_Ip_ConfigType * const Swt_Ip_pConfig) { Swt_Ip_StatusType ret; struct SWT_Type * const base; long unsigned int _1; long unsigned int _2; _3; _4; long unsigned int _13; _Bool _18; long unsigned int _19; long unsigned int _20; long unsigned int _21; long unsigned int _22; [local count: 1073741824]: # DEBUG BEGIN_STMT base_11 = s_swtBase[u32Instance_10(D)]; # DEBUG base => base_11 # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _1 = Swt_Ip_pConfig_12(D)->u32TimeoutValue; _2 = Swt_Ip_pConfig_12(D)->u32WindowValue; ret_14 = Swt_Ip_CheckTimeout (_1, _2); # DEBUG ret => ret_14 # DEBUG BEGIN_STMT if (ret_14 == 0) goto ; [33.00%] else goto ; [67.00%] [local count: 354334802]: # DEBUG BEGIN_STMT _3 = Swt_Ip_Unlock (base_11); if (_3 == 1) goto ; [34.00%] else goto ; [66.00%] [local count: 233860969]: # DEBUG BEGIN_STMT # DEBUG base => base_11 # DEBUG INLINE_ENTRY Swt_Ip_IsEnable # DEBUG BEGIN_STMT _13 ={v} MEM[(const struct SWT_Type *)base_11].CR; _18 = (_Bool) _13; # DEBUG base => NULL # DEBUG bSwtEnabled => _18 # DEBUG BEGIN_STMT if (_18 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 116930485]: # DEBUG BEGIN_STMT # DEBUG base => base_11 # DEBUG INLINE_ENTRY Swt_Ip_Disable # DEBUG BEGIN_STMT _19 ={v} base_11->CR; _20 = _19 & 4294967294; base_11->CR ={v} _20; [local count: 233860969]: # DEBUG base => NULL # DEBUG BEGIN_STMT Swt_Ip_RegisterConfig (base_11, Swt_Ip_pConfig_12(D)); # DEBUG BEGIN_STMT if (_18 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 116930485]: # DEBUG BEGIN_STMT # DEBUG base => base_11 # DEBUG INLINE_ENTRY Swt_Ip_Enable # DEBUG BEGIN_STMT _21 ={v} base_11->CR; _22 = _21 | 1; base_11->CR ={v} _22; [local count: 233860969]: # DEBUG base => NULL # DEBUG BEGIN_STMT _4 = Swt_Ip_pConfig_12(D)->lockConfig; Swt_Ip_Lock (base_11, _4); [local count: 1073741824]: # ret_5 = PHI # DEBUG ret => ret_5 # DEBUG BEGIN_STMT return ret_5; } Swt_Ip_Service (const uint32 u32Instance) { struct SWT_Type * const base; _Bool _1; _2; boolean iftmp.6_3; boolean iftmp.7_4; long unsigned int _13; short unsigned int _14; short unsigned int _15; long unsigned int _16; short unsigned int _17; short unsigned int _18; long unsigned int _19; long unsigned int _20; long unsigned int _21; long unsigned int _22; long unsigned int _23; short unsigned int _24; short unsigned int _25; short unsigned int _26; long unsigned int _27; long unsigned int _28; long unsigned int _29; long unsigned int _30; long unsigned int _31; short unsigned int _32; short unsigned int _33; short unsigned int _34; long unsigned int _35; long unsigned int _36; long unsigned int _37; long unsigned int _38; long unsigned int _39; long unsigned int _40; long unsigned int _41; long unsigned int _42; long unsigned int _43; long unsigned int _44; long unsigned int _45; [local count: 1073741824]: # DEBUG BEGIN_STMT base_8 = s_swtBase[u32Instance_7(D)]; # DEBUG base => base_8 # DEBUG BEGIN_STMT # DEBUG bUnlockSequence => 0 # DEBUG BEGIN_STMT SchM_Enter_Wdg_WDG_EXCLUSIVE_AREA_09 (); # DEBUG BEGIN_STMT _1 = Swt_Ip_IsKeyedServiceMode (base_8); if (_1 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: # DEBUG BEGIN_STMT # DEBUG base => base_8 # DEBUG INLINE_ENTRY Swt_Ip_ServiceKeyGen # DEBUG BEGIN_STMT _13 ={v} MEM[(const struct SWT_Type *)base_8].SK; _14 = (short unsigned int) _13; _15 = _14 * 17; # DEBUG base => NULL if (_15 == 50461) goto ; [34.00%] else goto ; [66.00%] [local count: 354334802]: [local count: 536870913]: # iftmp.6_3 = PHI <1(3), 0(4)> # DEBUG bUnlockSequence => iftmp.6_3 # DEBUG BEGIN_STMT # DEBUG base => base_8 # DEBUG INLINE_ENTRY Swt_Ip_ServiceKeyGen # DEBUG BEGIN_STMT _23 ={v} MEM[(const struct SWT_Type *)base_8].SK; _24 = (short unsigned int) _23; _25 = _24 * 17; _26 = _25 + 3; # DEBUG base => NULL # DEBUG base => base_8 # DEBUG u16ServiceKey => _26 # DEBUG INLINE_ENTRY Swt_Ip_ServiceCmd # DEBUG BEGIN_STMT _19 ={v} base_8->SR; _20 = _19 & 4294901760; _21 = (long unsigned int) _26; _22 = _20 | _21; base_8->SR ={v} _22; # DEBUG base => NULL # DEBUG u16ServiceKey => NULL # DEBUG BEGIN_STMT # DEBUG base => base_8 # DEBUG INLINE_ENTRY Swt_Ip_ServiceKeyGen # DEBUG BEGIN_STMT _16 ={v} MEM[(const struct SWT_Type *)base_8].SK; _17 = (short unsigned int) _16; _18 = _17 * 17; # DEBUG base => NULL if (_18 == 50461) goto ; [34.00%] else goto ; [66.00%] [local count: 354334802]: if (iftmp.6_3 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 177167401]: [local count: 536870913]: # iftmp.7_4 = PHI <1(6), 0(7), 1(5)> # DEBUG bUnlockSequence => iftmp.7_4 # DEBUG BEGIN_STMT # DEBUG base => base_8 # DEBUG INLINE_ENTRY Swt_Ip_ServiceKeyGen # DEBUG BEGIN_STMT _31 ={v} MEM[(const struct SWT_Type *)base_8].SK; _32 = (short unsigned int) _31; _33 = _32 * 17; _34 = _33 + 3; # DEBUG base => NULL # DEBUG base => base_8 # DEBUG u16ServiceKey => _34 # DEBUG INLINE_ENTRY Swt_Ip_ServiceCmd # DEBUG BEGIN_STMT _27 ={v} base_8->SR; _28 = _27 & 4294901760; _29 = (long unsigned int) _34; _30 = _28 | _29; base_8->SR ={v} _30; # DEBUG base => NULL # DEBUG u16ServiceKey => NULL # DEBUG BEGIN_STMT _2 = Swt_Ip_GetLock (base_8); if (_2 == 1) goto ; [34.00%] else goto ; [66.00%] [local count: 182536110]: if (iftmp.7_4 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 91268055]: # DEBUG BEGIN_STMT # DEBUG base => base_8 # DEBUG u16ServiceKey => 55592 # DEBUG INLINE_ENTRY Swt_Ip_ServiceCmd # DEBUG BEGIN_STMT _37 ={v} base_8->SR; _38 = _37 & 4294901760; _39 = _38 | 55592; base_8->SR ={v} _39; # DEBUG base => NULL # DEBUG u16ServiceKey => NULL # DEBUG BEGIN_STMT # DEBUG base => base_8 # DEBUG lockConfig => 1 # DEBUG INLINE_ENTRY Swt_Ip_Lock # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _35 ={v} base_8->CR; _36 = _35 | 16; base_8->CR ={v} _36; # DEBUG BEGIN_STMT goto ; [100.00%] [local count: 536870913]: # DEBUG BEGIN_STMT # DEBUG base => base_8 # DEBUG u16ServiceKey => 42498 # DEBUG INLINE_ENTRY Swt_Ip_ServiceCmd # DEBUG BEGIN_STMT _43 ={v} base_8->SR; _44 = _43 & 4294901760; _45 = _44 | 42498; base_8->SR ={v} _45; # DEBUG base => NULL # DEBUG u16ServiceKey => NULL # DEBUG BEGIN_STMT # DEBUG base => base_8 # DEBUG u16ServiceKey => 46208 # DEBUG INLINE_ENTRY Swt_Ip_ServiceCmd # DEBUG BEGIN_STMT _40 ={v} base_8->SR; _41 = _40 & 4294901760; _42 = _41 | 46208; base_8->SR ={v} _42; [local count: 1073741824]: # DEBUG base => NULL # DEBUG u16ServiceKey => NULL # DEBUG base => NULL # DEBUG lockConfig => NULL # DEBUG BEGIN_STMT SchM_Exit_Wdg_WDG_EXCLUSIVE_AREA_09 (); return; } Swt_Ip_Deinit (const uint32 u32Instance) { Swt_Ip_StatusType ret; struct SWT_Type * const base; long unsigned int _12; long unsigned int _13; [local count: 1073741824]: # DEBUG BEGIN_STMT base_4 = s_swtBase[u32Instance_3(D)]; # DEBUG base => base_4 # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT ret_6 = Swt_Ip_Unlock (base_4); # DEBUG ret => ret_6 # DEBUG BEGIN_STMT if (ret_6 == 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: # DEBUG BEGIN_STMT # DEBUG base => base_4 # DEBUG INLINE_ENTRY Swt_Ip_Disable # DEBUG BEGIN_STMT _12 ={v} base_4->CR; _13 = _12 & 4294967294; base_4->CR ={v} _13; # DEBUG base => NULL # DEBUG BEGIN_STMT base_4->IR ={v} 1; # DEBUG BEGIN_STMT base_4->TO ={v} 7601632; # DEBUG BEGIN_STMT base_4->WN ={v} 0; # DEBUG BEGIN_STMT base_4->SK ={v} 0; # DEBUG BEGIN_STMT base_4->CR ={v} 4278190346; # DEBUG BEGIN_STMT # DEBUG base => base_4 # DEBUG INLINE_ENTRY Swt_Ip_ClearRequest # DEBUG BEGIN_STMT base_4->RRR ={v} 1; [local count: 1073741824]: # DEBUG base => NULL # DEBUG BEGIN_STMT return ret_6; } Swt_Ip_Init (const uint32 u32Instance, const struct Swt_Ip_ConfigType * const Swt_Ip_pConfig) { Swt_Ip_StatusType ret; struct SWT_Type * const base; _1; long unsigned int _2; long unsigned int _3; _Bool _4; void (*) (void) _5; _6; long unsigned int _15; _Bool _20; long unsigned int _21; long unsigned int _22; [local count: 1073741823]: # DEBUG BEGIN_STMT base_12 = s_swtBase[u32Instance_11(D)]; # DEBUG base => base_12 # DEBUG BEGIN_STMT # DEBUG ret => 0 # DEBUG BEGIN_STMT # DEBUG base => base_12 # DEBUG INLINE_ENTRY Swt_Ip_IsEnable # DEBUG BEGIN_STMT _15 ={v} MEM[(const struct SWT_Type *)base_12].CR; _20 = (_Bool) _15; # DEBUG base => NULL if (_20 != 0) goto ; [67.00%] else goto ; [33.00%] [local count: 354334802]: _1 = Swt_Ip_Unlock (base_12); if (_1 == 1) goto ; [34.00%] else goto ; [66.00%] [local count: 233860969]: # DEBUG BEGIN_STMT _2 = Swt_Ip_pConfig_14(D)->u32TimeoutValue; _3 = Swt_Ip_pConfig_14(D)->u32WindowValue; ret_16 = Swt_Ip_CheckTimeout (_2, _3); # DEBUG ret => ret_16 # DEBUG BEGIN_STMT if (ret_16 == 0) goto ; [33.00%] else goto ; [67.00%] [local count: 77174120]: # DEBUG BEGIN_STMT Swt_Ip_RegisterConfig (base_12, Swt_Ip_pConfig_14(D)); # DEBUG BEGIN_STMT _4 = Swt_Ip_pConfig_14(D)->bEnInterrupt; if (_4 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 38587060]: # DEBUG BEGIN_STMT _5 = Swt_Ip_pConfig_14(D)->pfSwtCallback; Swt_Ip_apCallbackPtr[u32Instance_11(D)] = _5; [local count: 77174120]: # DEBUG BEGIN_STMT # DEBUG base => base_12 # DEBUG INLINE_ENTRY Swt_Ip_Enable # DEBUG BEGIN_STMT _21 ={v} base_12->CR; _22 = _21 | 1; base_12->CR ={v} _22; # DEBUG base => NULL # DEBUG BEGIN_STMT _6 = Swt_Ip_pConfig_14(D)->lockConfig; Swt_Ip_Lock (base_12, _6); [local count: 1073741824]: # ret_7 = PHI <1(3), ret_16(5), 0(8), 1(2)> # DEBUG ret => ret_7 # DEBUG BEGIN_STMT return ret_7; } Swt_Ip_IsKeyedServiceMode (const struct SWT_Type * const base) { long unsigned int _1; long unsigned int _2; long unsigned int _3; boolean _6; [local count: 1073741824]: # DEBUG BEGIN_STMT _1 ={v} base_5(D)->CR; _2 = _1 >> 9; _3 = _2 & 3; _6 = _3 == 1; return _6; } Swt_Ip_CheckTimeout (uint32 u32TimeoutValue, uint32 u32WindowValue) { Swt_Ip_StatusType ret; [local count: 1073741824]: # DEBUG BEGIN_STMT # DEBUG ret => 0 # DEBUG BEGIN_STMT if (u32TimeoutValue_3(D) <= 2) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: # DEBUG BEGIN_STMT # DEBUG ret => 1 [local count: 1073741824]: # ret_1 = PHI <0(2), 1(3)> # DEBUG ret => ret_1 # DEBUG BEGIN_STMT if (u32WindowValue_4(D) != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: if (u32TimeoutValue_3(D) <= u32WindowValue_4(D)) goto ; [50.00%] else goto ; [50.00%] [local count: 268435456]: # DEBUG BEGIN_STMT # DEBUG ret => 1 [local count: 1073741824]: # ret_2 = PHI # DEBUG ret => ret_2 # DEBUG BEGIN_STMT return ret_2; } Swt_Ip_RegisterConfig (struct SWT_Type * const base, const struct Swt_Ip_ConfigType * const Swt_Ip_pConfig) { uint32 cr; unsigned char _1; long unsigned int _2; long unsigned int _3; _Bool _4; long unsigned int _5; _Bool _6; long unsigned int _7; _Bool _8; long unsigned int _9; _Bool _10; long unsigned int _11; _Bool _12; long unsigned int _13; _Bool _14; long unsigned int _15; long unsigned int _16; short unsigned int _17; long unsigned int _18; long unsigned int iftmp.0_19; long unsigned int iftmp.1_20; long unsigned int iftmp.2_21; long unsigned int iftmp.3_22; long unsigned int iftmp.4_23; long unsigned int iftmp.5_24; [local count: 1073741824]: # DEBUG BEGIN_STMT # DEBUG cr => 0 # DEBUG BEGIN_STMT _1 = Swt_Ip_pConfig_28(D)->u8MapEnBitmask; _2 = (long unsigned int) _1; _3 = _2 << 24; _4 = Swt_Ip_pConfig_28(D)->bEnKeyedService; if (_4 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: [local count: 1073741824]: # iftmp.0_19 = PHI <512(2), 0(3)> _5 = _3 | iftmp.0_19; _6 = Swt_Ip_pConfig_28(D)->bEnResetOnInvalidAccess; if (_6 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: [local count: 1073741824]: # iftmp.1_20 = PHI <256(4), 0(5)> _7 = _5 | iftmp.1_20; _8 = Swt_Ip_pConfig_28(D)->bEnWindow; if (_8 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: [local count: 1073741824]: # iftmp.2_21 = PHI <128(6), 0(7)> _9 = _7 | iftmp.2_21; _10 = Swt_Ip_pConfig_28(D)->bEnInterrupt; if (_10 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: [local count: 1073741824]: # iftmp.3_22 = PHI <64(8), 0(9)> _11 = _9 | iftmp.3_22; _12 = Swt_Ip_pConfig_28(D)->bEnRunInStopMode; if (_12 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: [local count: 1073741824]: # iftmp.4_23 = PHI <0(10), 4(11)> _13 = _11 | iftmp.4_23; _14 = Swt_Ip_pConfig_28(D)->bEnRunInDebugMode; if (_14 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: [local count: 1073741824]: # iftmp.5_24 = PHI <0(12), 2(13)> cr_29 = _13 | iftmp.5_24; # DEBUG cr => cr_29 # DEBUG BEGIN_STMT base_30(D)->CR ={v} cr_29; # DEBUG BEGIN_STMT base_30(D)->IR ={v} 1; # DEBUG BEGIN_STMT _15 = Swt_Ip_pConfig_28(D)->u32TimeoutValue; base_30(D)->TO ={v} _15; # DEBUG BEGIN_STMT if (_8 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: # DEBUG BEGIN_STMT _16 = Swt_Ip_pConfig_28(D)->u32WindowValue; base_30(D)->WN ={v} _16; [local count: 1073741824]: # DEBUG BEGIN_STMT if (_4 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: # DEBUG BEGIN_STMT _17 = Swt_Ip_pConfig_28(D)->u16InitialKey; _18 = (long unsigned int) _17; base_30(D)->SK ={v} _18; [local count: 1073741824]: return; } Swt_Ip_Unlock (struct SWT_Type * const base) { uint32 ElapsedTicks; uint32 CurrentTicks; uint32 TimeoutTicks; Swt_Ip_StatusType ret; long unsigned int _1; long unsigned int _2; long unsigned int _3; long unsigned int _4; long unsigned int _5; long unsigned int _6; long unsigned int _7; long unsigned int _22; [local count: 696142619]: # DEBUG BEGIN_STMT # DEBUG ret => 0 # DEBUG BEGIN_STMT TimeoutTicks_14 = OsIf_MicrosToTicks (3000, 0); # DEBUG TimeoutTicks => TimeoutTicks_14 # DEBUG BEGIN_STMT CurrentTicks = 0; # DEBUG BEGIN_STMT # DEBUG ElapsedTicks => 0 # DEBUG BEGIN_STMT _1 ={v} base_16(D)->CR; _2 = _1 & 32; if (_2 != 0) goto ; [50.00%] else goto ; [50.00%] [local count: 348071309]: # DEBUG BEGIN_STMT _3 ={v} base_16(D)->CR; _4 = _3 & 16; if (_4 != 0) goto ; [33.00%] else goto ; [67.00%] [local count: 114863532]: # DEBUG BEGIN_STMT base_16(D)->SR ={v} 50464; # DEBUG BEGIN_STMT base_16(D)->SR ={v} 55592; # DEBUG BEGIN_STMT _5 = OsIf_GetCounter (0); CurrentTicks = _5; # DEBUG BEGIN_STMT goto ; [100.00%] [local count: 958878292]: # DEBUG BEGIN_STMT _22 = OsIf_GetElapsed (&CurrentTicks, 0); ElapsedTicks_23 = ElapsedTicks_9 + _22; # DEBUG ElapsedTicks => ElapsedTicks_23 [local count: 1073741824]: # ElapsedTicks_9 = PHI <0(4), ElapsedTicks_23(5)> # DEBUG ElapsedTicks => ElapsedTicks_9 # DEBUG BEGIN_STMT _6 ={v} base_16(D)->CR; _7 = _6 & 16; if (_7 != 0) goto ; [94.50%] else goto ; [5.50%] [local count: 1014686025]: if (ElapsedTicks_9 < TimeoutTicks_14) goto ; [94.50%] else goto ; [5.50%] [local count: 114863532]: # ElapsedTicks_24 = PHI # DEBUG BEGIN_STMT if (TimeoutTicks_14 <= ElapsedTicks_24) goto ; [50.00%] else goto ; [50.00%] [local count: 57431766]: # DEBUG BEGIN_STMT # DEBUG ret => 1 [local count: 696142618]: # ret_8 = PHI <1(2), 0(3), 1(9), 0(8)> # DEBUG ret => ret_8 # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT CurrentTicks ={v} {CLOBBER}; return ret_8; } Swt_Ip_Lock (struct SWT_Type * const base, Swt_Ip_LockType lockConfig) { long unsigned int _1; long unsigned int _2; long unsigned int _3; long unsigned int _4; [local count: 1073741824]: # DEBUG BEGIN_STMT switch (lockConfig_6(D)) [33.33%], case 1: [33.33%], case 2: [33.33%]> [local count: 357878150]: : # DEBUG BEGIN_STMT _1 ={v} base_8(D)->CR; _2 = _1 | 32; base_8(D)->CR ={v} _2; # DEBUG BEGIN_STMT goto ; [100.00%] [local count: 357878150]: : # DEBUG BEGIN_STMT _3 ={v} base_8(D)->CR; _4 = _3 | 16; base_8(D)->CR ={v} _4; # DEBUG BEGIN_STMT [local count: 1073634451]: : return; } Swt_Ip_GetLock (const struct SWT_Type * const base) { Swt_Ip_LockType lockMode; long unsigned int _1; long unsigned int _2; long unsigned int _3; _8; unsigned int _10; [local count: 1073741824]: # DEBUG BEGIN_STMT # DEBUG lockMode => 0 # DEBUG BEGIN_STMT _1 ={v} base_7(D)->CR; _2 = _1 >> 4; _3 = _2 & 3; _10 = _3; if (_10 <= 2) goto ; [50.00%] else goto ; [50.00%] [local count: 536870913]: : lockMode_9 = 2; goto ; [100.00%] [local count: 536870913]: : _8 = () _3; lockMode_5 = _8; [local count: 1073741824]: # lockMode_4 = PHI : : # DEBUG lockMode => lockMode_4 # DEBUG BEGIN_STMT return lockMode_4; }