Det_stub.c.082i.materialize-all-clones 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. Det_TestNoTransientFault ()
  2. {
  3. uint32 u32CoreId;
  4. boolean result;
  5. boolean D.5685;
  6. int iftmp.5;
  7. short unsigned int _1;
  8. unsigned char _2;
  9. unsigned char _3;
  10. unsigned char _4;
  11. int _5;
  12. _Bool _6;
  13. _Bool _7;
  14. int _8;
  15. int iftmp.5_9;
  16. int iftmp.5_13;
  17. int iftmp.5_14;
  18. boolean _20;
  19. <bb 2> :
  20. result_10 = 0;
  21. u32CoreId_11 = 0;
  22. _1 = Det_TransientModuleId[u32CoreId_11];
  23. if (_1 != 0)
  24. goto <bb 6>; [INV]
  25. else
  26. goto <bb 3>; [INV]
  27. <bb 3> :
  28. _2 = Det_TransientInstanceId[u32CoreId_11];
  29. if (_2 != 0)
  30. goto <bb 6>; [INV]
  31. else
  32. goto <bb 4>; [INV]
  33. <bb 4> :
  34. _3 = Det_TransientApiId[u32CoreId_11];
  35. if (_3 != 0)
  36. goto <bb 6>; [INV]
  37. else
  38. goto <bb 5>; [INV]
  39. <bb 5> :
  40. _4 = Det_TransientFaultId[u32CoreId_11];
  41. if (_4 != 0)
  42. goto <bb 6>; [INV]
  43. else
  44. goto <bb 7>; [INV]
  45. <bb 6> :
  46. iftmp.5_14 = 1;
  47. goto <bb 8>; [INV]
  48. <bb 7> :
  49. iftmp.5_13 = 0;
  50. <bb 8> :
  51. # iftmp.5_9 = PHI <iftmp.5_14(6), iftmp.5_13(7)>
  52. result_15 = (boolean) iftmp.5_9;
  53. Det_TransientModuleId[u32CoreId_11] = 0;
  54. Det_TransientInstanceId[u32CoreId_11] = 0;
  55. Det_TransientApiId[u32CoreId_11] = 0;
  56. Det_TransientFaultId[u32CoreId_11] = 0;
  57. _5 = (int) result_15;
  58. _6 = _5 != 0;
  59. _7 = ~_6;
  60. _8 = (int) _7;
  61. _20 = (boolean) _8;
  62. <bb 9> :
  63. <L6>:
  64. return _20;
  65. }
  66. Det_TestNoRuntimeError ()
  67. {
  68. uint32 u32CoreId;
  69. boolean result;
  70. boolean D.5676;
  71. int iftmp.4;
  72. short unsigned int _1;
  73. unsigned char _2;
  74. unsigned char _3;
  75. unsigned char _4;
  76. int _5;
  77. _Bool _6;
  78. _Bool _7;
  79. int _8;
  80. int iftmp.4_9;
  81. int iftmp.4_13;
  82. int iftmp.4_14;
  83. boolean _20;
  84. <bb 2> :
  85. result_10 = 0;
  86. u32CoreId_11 = 0;
  87. _1 = Det_RuntimeModuleId[u32CoreId_11];
  88. if (_1 != 0)
  89. goto <bb 6>; [INV]
  90. else
  91. goto <bb 3>; [INV]
  92. <bb 3> :
  93. _2 = Det_RuntimeInstanceId[u32CoreId_11];
  94. if (_2 != 0)
  95. goto <bb 6>; [INV]
  96. else
  97. goto <bb 4>; [INV]
  98. <bb 4> :
  99. _3 = Det_RuntimeApiId[u32CoreId_11];
  100. if (_3 != 0)
  101. goto <bb 6>; [INV]
  102. else
  103. goto <bb 5>; [INV]
  104. <bb 5> :
  105. _4 = Det_RuntimeErrorId[u32CoreId_11];
  106. if (_4 != 0)
  107. goto <bb 6>; [INV]
  108. else
  109. goto <bb 7>; [INV]
  110. <bb 6> :
  111. iftmp.4_14 = 1;
  112. goto <bb 8>; [INV]
  113. <bb 7> :
  114. iftmp.4_13 = 0;
  115. <bb 8> :
  116. # iftmp.4_9 = PHI <iftmp.4_14(6), iftmp.4_13(7)>
  117. result_15 = (boolean) iftmp.4_9;
  118. Det_RuntimeModuleId[u32CoreId_11] = 0;
  119. Det_RuntimeInstanceId[u32CoreId_11] = 0;
  120. Det_RuntimeApiId[u32CoreId_11] = 0;
  121. Det_RuntimeErrorId[u32CoreId_11] = 0;
  122. _5 = (int) result_15;
  123. _6 = _5 != 0;
  124. _7 = ~_6;
  125. _8 = (int) _7;
  126. _20 = (boolean) _8;
  127. <bb 9> :
  128. <L6>:
  129. return _20;
  130. }
  131. Det_TestNoError ()
  132. {
  133. uint32 u32CoreId;
  134. boolean result;
  135. boolean D.5667;
  136. int iftmp.3;
  137. short unsigned int _1;
  138. unsigned char _2;
  139. unsigned char _3;
  140. unsigned char _4;
  141. int _5;
  142. _Bool _6;
  143. _Bool _7;
  144. int _8;
  145. int iftmp.3_9;
  146. int iftmp.3_13;
  147. int iftmp.3_14;
  148. boolean _20;
  149. <bb 2> :
  150. result_10 = 0;
  151. u32CoreId_11 = 0;
  152. _1 = Det_ModuleId[u32CoreId_11];
  153. if (_1 != 0)
  154. goto <bb 6>; [INV]
  155. else
  156. goto <bb 3>; [INV]
  157. <bb 3> :
  158. _2 = Det_InstanceId[u32CoreId_11];
  159. if (_2 != 0)
  160. goto <bb 6>; [INV]
  161. else
  162. goto <bb 4>; [INV]
  163. <bb 4> :
  164. _3 = Det_ApiId[u32CoreId_11];
  165. if (_3 != 0)
  166. goto <bb 6>; [INV]
  167. else
  168. goto <bb 5>; [INV]
  169. <bb 5> :
  170. _4 = Det_ErrorId[u32CoreId_11];
  171. if (_4 != 0)
  172. goto <bb 6>; [INV]
  173. else
  174. goto <bb 7>; [INV]
  175. <bb 6> :
  176. iftmp.3_14 = 1;
  177. goto <bb 8>; [INV]
  178. <bb 7> :
  179. iftmp.3_13 = 0;
  180. <bb 8> :
  181. # iftmp.3_9 = PHI <iftmp.3_14(6), iftmp.3_13(7)>
  182. result_15 = (boolean) iftmp.3_9;
  183. Det_ModuleId[u32CoreId_11] = 0;
  184. Det_InstanceId[u32CoreId_11] = 0;
  185. Det_ApiId[u32CoreId_11] = 0;
  186. Det_ErrorId[u32CoreId_11] = 0;
  187. _5 = (int) result_15;
  188. _6 = _5 != 0;
  189. _7 = ~_6;
  190. _8 = (int) _7;
  191. _20 = (boolean) _8;
  192. <bb 9> :
  193. <L6>:
  194. return _20;
  195. }
  196. Det_TestLastReportTransientFault (uint16 ModuleId, uint8 InstanceId, uint8 ApiId, uint8 FaultId)
  197. {
  198. uint32 u32CoreId;
  199. boolean result;
  200. boolean D.5658;
  201. int iftmp.2;
  202. short unsigned int _1;
  203. unsigned char _2;
  204. unsigned char _3;
  205. unsigned char _4;
  206. int iftmp.2_5;
  207. int iftmp.2_13;
  208. int iftmp.2_14;
  209. boolean _20;
  210. <bb 2> :
  211. result_6 = 0;
  212. u32CoreId_7 = 0;
  213. _1 = Det_TransientModuleId[u32CoreId_7];
  214. if (ModuleId_9(D) == _1)
  215. goto <bb 3>; [INV]
  216. else
  217. goto <bb 7>; [INV]
  218. <bb 3> :
  219. _2 = Det_TransientInstanceId[u32CoreId_7];
  220. if (InstanceId_10(D) == _2)
  221. goto <bb 4>; [INV]
  222. else
  223. goto <bb 7>; [INV]
  224. <bb 4> :
  225. _3 = Det_TransientApiId[u32CoreId_7];
  226. if (ApiId_11(D) == _3)
  227. goto <bb 5>; [INV]
  228. else
  229. goto <bb 7>; [INV]
  230. <bb 5> :
  231. _4 = Det_TransientFaultId[u32CoreId_7];
  232. if (FaultId_12(D) == _4)
  233. goto <bb 6>; [INV]
  234. else
  235. goto <bb 7>; [INV]
  236. <bb 6> :
  237. iftmp.2_13 = 1;
  238. goto <bb 8>; [INV]
  239. <bb 7> :
  240. iftmp.2_14 = 0;
  241. <bb 8> :
  242. # iftmp.2_5 = PHI <iftmp.2_13(6), iftmp.2_14(7)>
  243. result_15 = (boolean) iftmp.2_5;
  244. Det_TransientModuleId[u32CoreId_7] = 0;
  245. Det_TransientInstanceId[u32CoreId_7] = 0;
  246. Det_TransientApiId[u32CoreId_7] = 0;
  247. Det_TransientFaultId[u32CoreId_7] = 0;
  248. _20 = result_15;
  249. <bb 9> :
  250. <L6>:
  251. return _20;
  252. }
  253. Det_TestLastReportRuntimeError (uint16 ModuleId, uint8 InstanceId, uint8 ApiId, uint8 ErrorId)
  254. {
  255. uint32 u32CoreId;
  256. boolean result;
  257. boolean D.5649;
  258. int iftmp.1;
  259. short unsigned int _1;
  260. unsigned char _2;
  261. unsigned char _3;
  262. unsigned char _4;
  263. int iftmp.1_5;
  264. int iftmp.1_13;
  265. int iftmp.1_14;
  266. boolean _20;
  267. <bb 2> :
  268. result_6 = 0;
  269. u32CoreId_7 = 0;
  270. _1 = Det_RuntimeModuleId[u32CoreId_7];
  271. if (ModuleId_9(D) == _1)
  272. goto <bb 3>; [INV]
  273. else
  274. goto <bb 7>; [INV]
  275. <bb 3> :
  276. _2 = Det_RuntimeInstanceId[u32CoreId_7];
  277. if (InstanceId_10(D) == _2)
  278. goto <bb 4>; [INV]
  279. else
  280. goto <bb 7>; [INV]
  281. <bb 4> :
  282. _3 = Det_RuntimeApiId[u32CoreId_7];
  283. if (ApiId_11(D) == _3)
  284. goto <bb 5>; [INV]
  285. else
  286. goto <bb 7>; [INV]
  287. <bb 5> :
  288. _4 = Det_RuntimeErrorId[u32CoreId_7];
  289. if (ErrorId_12(D) == _4)
  290. goto <bb 6>; [INV]
  291. else
  292. goto <bb 7>; [INV]
  293. <bb 6> :
  294. iftmp.1_13 = 1;
  295. goto <bb 8>; [INV]
  296. <bb 7> :
  297. iftmp.1_14 = 0;
  298. <bb 8> :
  299. # iftmp.1_5 = PHI <iftmp.1_13(6), iftmp.1_14(7)>
  300. result_15 = (boolean) iftmp.1_5;
  301. Det_RuntimeModuleId[u32CoreId_7] = 0;
  302. Det_RuntimeInstanceId[u32CoreId_7] = 0;
  303. Det_RuntimeApiId[u32CoreId_7] = 0;
  304. Det_RuntimeErrorId[u32CoreId_7] = 0;
  305. _20 = result_15;
  306. <bb 9> :
  307. <L6>:
  308. return _20;
  309. }
  310. Det_TestLastReportError (uint16 ModuleId, uint8 InstanceId, uint8 ApiId, uint8 ErrorId)
  311. {
  312. uint32 u32CoreId;
  313. boolean result;
  314. boolean D.5640;
  315. int iftmp.0;
  316. short unsigned int _1;
  317. unsigned char _2;
  318. unsigned char _3;
  319. unsigned char _4;
  320. int iftmp.0_5;
  321. int iftmp.0_13;
  322. int iftmp.0_14;
  323. boolean _20;
  324. <bb 2> :
  325. result_6 = 0;
  326. u32CoreId_7 = 0;
  327. _1 = Det_ModuleId[u32CoreId_7];
  328. if (ModuleId_9(D) == _1)
  329. goto <bb 3>; [INV]
  330. else
  331. goto <bb 7>; [INV]
  332. <bb 3> :
  333. _2 = Det_InstanceId[u32CoreId_7];
  334. if (InstanceId_10(D) == _2)
  335. goto <bb 4>; [INV]
  336. else
  337. goto <bb 7>; [INV]
  338. <bb 4> :
  339. _3 = Det_ApiId[u32CoreId_7];
  340. if (ApiId_11(D) == _3)
  341. goto <bb 5>; [INV]
  342. else
  343. goto <bb 7>; [INV]
  344. <bb 5> :
  345. _4 = Det_ErrorId[u32CoreId_7];
  346. if (ErrorId_12(D) == _4)
  347. goto <bb 6>; [INV]
  348. else
  349. goto <bb 7>; [INV]
  350. <bb 6> :
  351. iftmp.0_13 = 1;
  352. goto <bb 8>; [INV]
  353. <bb 7> :
  354. iftmp.0_14 = 0;
  355. <bb 8> :
  356. # iftmp.0_5 = PHI <iftmp.0_13(6), iftmp.0_14(7)>
  357. result_15 = (boolean) iftmp.0_5;
  358. Det_ModuleId[u32CoreId_7] = 0;
  359. Det_InstanceId[u32CoreId_7] = 0;
  360. Det_ApiId[u32CoreId_7] = 0;
  361. Det_ErrorId[u32CoreId_7] = 0;
  362. _20 = result_15;
  363. <bb 9> :
  364. <L6>:
  365. return _20;
  366. }