123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- Det_TestNoTransientFault ()
- {
- uint32 u32CoreId;
- boolean result;
- boolean D.5685;
- int iftmp.5;
- short unsigned int _1;
- unsigned char _2;
- unsigned char _3;
- unsigned char _4;
- int _5;
- _Bool _6;
- _Bool _7;
- int _8;
- int iftmp.5_9;
- int iftmp.5_13;
- int iftmp.5_14;
- boolean _20;
- <bb 2> :
- result_10 = 0;
- u32CoreId_11 = 0;
- _1 = Det_TransientModuleId[u32CoreId_11];
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 3>; [INV]
- <bb 3> :
- _2 = Det_TransientInstanceId[u32CoreId_11];
- if (_2 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 4> :
- _3 = Det_TransientApiId[u32CoreId_11];
- if (_3 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- _4 = Det_TransientFaultId[u32CoreId_11];
- if (_4 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- iftmp.5_14 = 1;
- goto <bb 8>; [INV]
- <bb 7> :
- iftmp.5_13 = 0;
- <bb 8> :
- # iftmp.5_9 = PHI <iftmp.5_14(6), iftmp.5_13(7)>
- result_15 = (boolean) iftmp.5_9;
- Det_TransientModuleId[u32CoreId_11] = 0;
- Det_TransientInstanceId[u32CoreId_11] = 0;
- Det_TransientApiId[u32CoreId_11] = 0;
- Det_TransientFaultId[u32CoreId_11] = 0;
- _5 = (int) result_15;
- _6 = _5 != 0;
- _7 = ~_6;
- _8 = (int) _7;
- _20 = (boolean) _8;
- <bb 9> :
- <L6>:
- return _20;
- }
- Det_TestNoRuntimeError ()
- {
- uint32 u32CoreId;
- boolean result;
- boolean D.5676;
- int iftmp.4;
- short unsigned int _1;
- unsigned char _2;
- unsigned char _3;
- unsigned char _4;
- int _5;
- _Bool _6;
- _Bool _7;
- int _8;
- int iftmp.4_9;
- int iftmp.4_13;
- int iftmp.4_14;
- boolean _20;
- <bb 2> :
- result_10 = 0;
- u32CoreId_11 = 0;
- _1 = Det_RuntimeModuleId[u32CoreId_11];
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 3>; [INV]
- <bb 3> :
- _2 = Det_RuntimeInstanceId[u32CoreId_11];
- if (_2 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 4> :
- _3 = Det_RuntimeApiId[u32CoreId_11];
- if (_3 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- _4 = Det_RuntimeErrorId[u32CoreId_11];
- if (_4 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- iftmp.4_14 = 1;
- goto <bb 8>; [INV]
- <bb 7> :
- iftmp.4_13 = 0;
- <bb 8> :
- # iftmp.4_9 = PHI <iftmp.4_14(6), iftmp.4_13(7)>
- result_15 = (boolean) iftmp.4_9;
- Det_RuntimeModuleId[u32CoreId_11] = 0;
- Det_RuntimeInstanceId[u32CoreId_11] = 0;
- Det_RuntimeApiId[u32CoreId_11] = 0;
- Det_RuntimeErrorId[u32CoreId_11] = 0;
- _5 = (int) result_15;
- _6 = _5 != 0;
- _7 = ~_6;
- _8 = (int) _7;
- _20 = (boolean) _8;
- <bb 9> :
- <L6>:
- return _20;
- }
- Det_TestNoError ()
- {
- uint32 u32CoreId;
- boolean result;
- boolean D.5667;
- int iftmp.3;
- short unsigned int _1;
- unsigned char _2;
- unsigned char _3;
- unsigned char _4;
- int _5;
- _Bool _6;
- _Bool _7;
- int _8;
- int iftmp.3_9;
- int iftmp.3_13;
- int iftmp.3_14;
- boolean _20;
- <bb 2> :
- result_10 = 0;
- u32CoreId_11 = 0;
- _1 = Det_ModuleId[u32CoreId_11];
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 3>; [INV]
- <bb 3> :
- _2 = Det_InstanceId[u32CoreId_11];
- if (_2 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 4> :
- _3 = Det_ApiId[u32CoreId_11];
- if (_3 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- _4 = Det_ErrorId[u32CoreId_11];
- if (_4 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- iftmp.3_14 = 1;
- goto <bb 8>; [INV]
- <bb 7> :
- iftmp.3_13 = 0;
- <bb 8> :
- # iftmp.3_9 = PHI <iftmp.3_14(6), iftmp.3_13(7)>
- result_15 = (boolean) iftmp.3_9;
- Det_ModuleId[u32CoreId_11] = 0;
- Det_InstanceId[u32CoreId_11] = 0;
- Det_ApiId[u32CoreId_11] = 0;
- Det_ErrorId[u32CoreId_11] = 0;
- _5 = (int) result_15;
- _6 = _5 != 0;
- _7 = ~_6;
- _8 = (int) _7;
- _20 = (boolean) _8;
- <bb 9> :
- <L6>:
- return _20;
- }
- Det_TestLastReportTransientFault (uint16 ModuleId, uint8 InstanceId, uint8 ApiId, uint8 FaultId)
- {
- uint32 u32CoreId;
- boolean result;
- boolean D.5658;
- int iftmp.2;
- short unsigned int _1;
- unsigned char _2;
- unsigned char _3;
- unsigned char _4;
- int iftmp.2_5;
- int iftmp.2_13;
- int iftmp.2_14;
- boolean _20;
- <bb 2> :
- result_6 = 0;
- u32CoreId_7 = 0;
- _1 = Det_TransientModuleId[u32CoreId_7];
- if (ModuleId_9(D) == _1)
- goto <bb 3>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 3> :
- _2 = Det_TransientInstanceId[u32CoreId_7];
- if (InstanceId_10(D) == _2)
- goto <bb 4>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 4> :
- _3 = Det_TransientApiId[u32CoreId_7];
- if (ApiId_11(D) == _3)
- goto <bb 5>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 5> :
- _4 = Det_TransientFaultId[u32CoreId_7];
- if (FaultId_12(D) == _4)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- iftmp.2_13 = 1;
- goto <bb 8>; [INV]
- <bb 7> :
- iftmp.2_14 = 0;
- <bb 8> :
- # iftmp.2_5 = PHI <iftmp.2_13(6), iftmp.2_14(7)>
- result_15 = (boolean) iftmp.2_5;
- Det_TransientModuleId[u32CoreId_7] = 0;
- Det_TransientInstanceId[u32CoreId_7] = 0;
- Det_TransientApiId[u32CoreId_7] = 0;
- Det_TransientFaultId[u32CoreId_7] = 0;
- _20 = result_15;
- <bb 9> :
- <L6>:
- return _20;
- }
- Det_TestLastReportRuntimeError (uint16 ModuleId, uint8 InstanceId, uint8 ApiId, uint8 ErrorId)
- {
- uint32 u32CoreId;
- boolean result;
- boolean D.5649;
- int iftmp.1;
- short unsigned int _1;
- unsigned char _2;
- unsigned char _3;
- unsigned char _4;
- int iftmp.1_5;
- int iftmp.1_13;
- int iftmp.1_14;
- boolean _20;
- <bb 2> :
- result_6 = 0;
- u32CoreId_7 = 0;
- _1 = Det_RuntimeModuleId[u32CoreId_7];
- if (ModuleId_9(D) == _1)
- goto <bb 3>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 3> :
- _2 = Det_RuntimeInstanceId[u32CoreId_7];
- if (InstanceId_10(D) == _2)
- goto <bb 4>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 4> :
- _3 = Det_RuntimeApiId[u32CoreId_7];
- if (ApiId_11(D) == _3)
- goto <bb 5>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 5> :
- _4 = Det_RuntimeErrorId[u32CoreId_7];
- if (ErrorId_12(D) == _4)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- iftmp.1_13 = 1;
- goto <bb 8>; [INV]
- <bb 7> :
- iftmp.1_14 = 0;
- <bb 8> :
- # iftmp.1_5 = PHI <iftmp.1_13(6), iftmp.1_14(7)>
- result_15 = (boolean) iftmp.1_5;
- Det_RuntimeModuleId[u32CoreId_7] = 0;
- Det_RuntimeInstanceId[u32CoreId_7] = 0;
- Det_RuntimeApiId[u32CoreId_7] = 0;
- Det_RuntimeErrorId[u32CoreId_7] = 0;
- _20 = result_15;
- <bb 9> :
- <L6>:
- return _20;
- }
- Det_TestLastReportError (uint16 ModuleId, uint8 InstanceId, uint8 ApiId, uint8 ErrorId)
- {
- uint32 u32CoreId;
- boolean result;
- boolean D.5640;
- int iftmp.0;
- short unsigned int _1;
- unsigned char _2;
- unsigned char _3;
- unsigned char _4;
- int iftmp.0_5;
- int iftmp.0_13;
- int iftmp.0_14;
- boolean _20;
- <bb 2> :
- result_6 = 0;
- u32CoreId_7 = 0;
- _1 = Det_ModuleId[u32CoreId_7];
- if (ModuleId_9(D) == _1)
- goto <bb 3>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 3> :
- _2 = Det_InstanceId[u32CoreId_7];
- if (InstanceId_10(D) == _2)
- goto <bb 4>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 4> :
- _3 = Det_ApiId[u32CoreId_7];
- if (ApiId_11(D) == _3)
- goto <bb 5>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 5> :
- _4 = Det_ErrorId[u32CoreId_7];
- if (ErrorId_12(D) == _4)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- iftmp.0_13 = 1;
- goto <bb 8>; [INV]
- <bb 7> :
- iftmp.0_14 = 0;
- <bb 8> :
- # iftmp.0_5 = PHI <iftmp.0_13(6), iftmp.0_14(7)>
- result_15 = (boolean) iftmp.0_5;
- Det_ModuleId[u32CoreId_7] = 0;
- Det_InstanceId[u32CoreId_7] = 0;
- Det_ApiId[u32CoreId_7] = 0;
- Det_ErrorId[u32CoreId_7] = 0;
- _20 = result_15;
- <bb 9> :
- <L6>:
- return _20;
- }
|