stream_buffer.c.070i.icf 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563
  1. Parsed function:xStreamBufferSpacesAvailable.part.0
  2. Parsed function:prvReadBytesFromBuffer.part.0
  3. Parsed function:prvWriteBytesToBuffer.part.0
  4. Parsed function:prvInitialiseNewStreamBuffer.part.0
  5. Parsed function:ucStreamBufferGetStreamBufferType
  6. Parsed function:vStreamBufferSetStreamBufferNumber
  7. Parsed function:uxStreamBufferGetStreamBufferNumber
  8. Parsed function:prvInitialiseNewStreamBuffer
  9. Parsed function:prvBytesInBuffer
  10. Parsed function:prvReadBytesFromBuffer
  11. Parsed function:prvWriteBytesToBuffer
  12. Parsed function:xStreamBufferReceiveCompletedFromISR
  13. Parsed function:xStreamBufferSendCompletedFromISR
  14. Parsed function:xStreamBufferIsFull
  15. Parsed function:xStreamBufferIsEmpty
  16. Parsed function:prvReadMessageFromBuffer
  17. Parsed function:xStreamBufferReceiveFromISR
  18. Parsed function:xStreamBufferNextMessageLengthBytes
  19. Parsed function:xStreamBufferReceive
  20. Parsed function:prvWriteMessageToBuffer
  21. Parsed function:xStreamBufferSendFromISR
  22. Parsed function:xStreamBufferSend
  23. Parsed function:xStreamBufferBytesAvailable
  24. Parsed function:xStreamBufferSpacesAvailable
  25. Parsed function:xStreamBufferSetTriggerLevel
  26. Parsed function:xStreamBufferReset
  27. Parsed function:vStreamBufferDelete
  28. Parsed function:xStreamBufferGenericCreate
  29. Dump after hash based groups
  30. Congruence classes: 26 (unique hash values: 26), with total: 28 items
  31. Class size histogram [num of members]: number of classe number of classess
  32. [1]: 24 classes
  33. [2]: 2 classes
  34. Dump after WPA based types groups
  35. Congruence classes: 26 (unique hash values: 26), with total: 28 items
  36. Class size histogram [num of members]: number of classe number of classess
  37. [1]: 24 classes
  38. [2]: 2 classes
  39. Worklist has been filled with: 10
  40. Address reference subdivision created: 0 new classes.
  41. Dump after callgraph-based congruence reduction
  42. Congruence classes: 27 (unique hash values: 26), with total: 28 items
  43. Class size histogram [num of members]: number of classe number of classess
  44. [1]: 26 classes
  45. [2]: 1 classes
  46. Init called for 2 items (7.14%).
  47. Dump after full equality comparison of groups
  48. Congruence classes: 28 (unique hash values: 26), with total: 28 items
  49. Class size histogram [num of members]: number of classe number of classess
  50. [1]: 28 classes
  51. Worklist has been filled with: 11
  52. Address reference subdivision created: 0 new classes.
  53. Congruence classes: 28 (unique hash values: 26), with total: 28 items
  54. Class size histogram [num of members]: number of classe number of classess
  55. [1]: 28 classes
  56. Item count: 28
  57. Congruent classes before: 28, after: 28
  58. Average class size before: 1.00, after: 1.00
  59. Average non-singular class size: 0.00, count: 0
  60. Equal symbols: 0
  61. Fraction of visited symbols: 0.00%
  62. xStreamBufferSpacesAvailable.part.0 ()
  63. {
  64. const struct StreamBuffer_t * const pxStreamBuffer;
  65. size_t xSpace;
  66. size_t xOriginalTail;
  67. uint32_t ulNewBASEPRI;
  68. struct StreamBufferDef_t * xStreamBuffer;
  69. <bb 5> [local count: 107374]:
  70. # DEBUG D#2 s=> xStreamBuffer
  71. # DEBUG xStreamBuffer => D#2
  72. <bb 2> [local count: 107374]:
  73. # DEBUG BEGIN_STMT
  74. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  75. # DEBUG BEGIN_STMT
  76. # DEBUG BEGIN_STMT
  77. __asm__ __volatile__(" mov %0, %1
  78. msr basepri, %0
  79. isb
  80. dsb
  81. " : "=r" ulNewBASEPRI_1 : "i" 16 : "memory");
  82. # DEBUG ulNewBASEPRI => ulNewBASEPRI_1
  83. <bb 3> [local count: 1073741824]:
  84. # DEBUG ulNewBASEPRI => NULL
  85. # DEBUG BEGIN_STMT
  86. # DEBUG BEGIN_STMT
  87. # DEBUG BEGIN_STMT
  88. <bb 4> [local count: 1073741824]:
  89. goto <bb 3>; [100.00%]
  90. }
  91. prvReadBytesFromBuffer.part.0 (struct StreamBuffer_t * pxStreamBuffer, uint8_t * pucData, size_t xCount, size_t xTail)
  92. {
  93. size_t xFirstLength;
  94. uint32_t ulNewBASEPRI;
  95. uint32_t ulNewBASEPRI;
  96. uint32_t ulNewBASEPRI;
  97. unsigned int _2;
  98. unsigned int _4;
  99. unsigned int _8;
  100. uint8_t * _10;
  101. uint8_t * _11;
  102. uint8_t * _13;
  103. uint8_t * _14;
  104. unsigned int _15;
  105. unsigned int _17;
  106. <bb 15> [local count: 214748]:
  107. <bb 2> [local count: 214748]:
  108. # DEBUG BEGIN_STMT
  109. # DEBUG BEGIN_STMT
  110. _2 = pxStreamBuffer_1(D)->xLength;
  111. _4 = _2 - xTail_3(D);
  112. xFirstLength_6 = MIN_EXPR <_4, xCount_5(D)>;
  113. # DEBUG xFirstLength => xFirstLength_6
  114. # DEBUG BEGIN_STMT
  115. if (xCount_5(D) < xFirstLength_6)
  116. goto <bb 3>; [50.00%]
  117. else
  118. goto <bb 6>; [50.00%]
  119. <bb 3> [local count: 107374]:
  120. # DEBUG BEGIN_STMT
  121. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  122. # DEBUG BEGIN_STMT
  123. # DEBUG BEGIN_STMT
  124. __asm__ __volatile__(" mov %0, %1
  125. msr basepri, %0
  126. isb
  127. dsb
  128. " : "=r" ulNewBASEPRI_7 : "i" 16 : "memory");
  129. # DEBUG ulNewBASEPRI => ulNewBASEPRI_7
  130. <bb 4> [local count: 1073741824]:
  131. # DEBUG ulNewBASEPRI => NULL
  132. # DEBUG BEGIN_STMT
  133. # DEBUG BEGIN_STMT
  134. # DEBUG BEGIN_STMT
  135. <bb 5> [local count: 1073741824]:
  136. goto <bb 4>; [100.00%]
  137. <bb 6> [local count: 107374]:
  138. # DEBUG BEGIN_STMT
  139. # DEBUG BEGIN_STMT
  140. _8 = xTail_3(D) + xFirstLength_6;
  141. if (_2 < _8)
  142. goto <bb 7>; [67.00%]
  143. else
  144. goto <bb 10>; [33.00%]
  145. <bb 7> [local count: 71941]:
  146. # DEBUG BEGIN_STMT
  147. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  148. # DEBUG BEGIN_STMT
  149. # DEBUG BEGIN_STMT
  150. __asm__ __volatile__(" mov %0, %1
  151. msr basepri, %0
  152. isb
  153. dsb
  154. " : "=r" ulNewBASEPRI_9 : "i" 16 : "memory");
  155. # DEBUG ulNewBASEPRI => ulNewBASEPRI_9
  156. <bb 8> [local count: 719407023]:
  157. # DEBUG ulNewBASEPRI => NULL
  158. # DEBUG BEGIN_STMT
  159. # DEBUG BEGIN_STMT
  160. # DEBUG BEGIN_STMT
  161. <bb 9> [local count: 719407023]:
  162. goto <bb 8>; [100.00%]
  163. <bb 10> [local count: 35433]:
  164. # DEBUG BEGIN_STMT
  165. # DEBUG BEGIN_STMT
  166. _10 = pxStreamBuffer_1(D)->pucBuffer;
  167. _11 = _10 + xTail_3(D);
  168. memcpy (pucData_12(D), _11, xFirstLength_6);
  169. # DEBUG BEGIN_STMT
  170. if (xCount_5(D) > xFirstLength_6)
  171. goto <bb 11>; [33.00%]
  172. else
  173. goto <bb 12>; [67.00%]
  174. <bb 11> [local count: 11693]:
  175. # DEBUG BEGIN_STMT
  176. _13 = pucData_12(D) + xFirstLength_6;
  177. _14 = pxStreamBuffer_1(D)->pucBuffer;
  178. _15 = xCount_5(D) - xFirstLength_6;
  179. memcpy (_13, _14, _15);
  180. <bb 12> [local count: 35433]:
  181. # DEBUG BEGIN_STMT
  182. # DEBUG BEGIN_STMT
  183. xTail_16 = xTail_3(D) + xCount_5(D);
  184. # DEBUG xTail => xTail_16
  185. # DEBUG BEGIN_STMT
  186. _17 = pxStreamBuffer_1(D)->xLength;
  187. if (xTail_16 >= _17)
  188. goto <bb 13>; [50.00%]
  189. else
  190. goto <bb 14>; [50.00%]
  191. <bb 13> [local count: 17717]:
  192. # DEBUG BEGIN_STMT
  193. xTail_18 = xTail_16 - _17;
  194. # DEBUG xTail => xTail_18
  195. <bb 14> [local count: 35433]:
  196. # xTail_19 = PHI <xTail_16(12), xTail_18(13)>
  197. # DEBUG xTail => xTail_19
  198. # DEBUG BEGIN_STMT
  199. return xTail_19;
  200. }
  201. prvWriteBytesToBuffer.part.0 (struct StreamBuffer_t * const pxStreamBuffer, const uint8_t * pucData, size_t xCount, size_t xHead)
  202. {
  203. size_t xFirstLength;
  204. uint32_t ulNewBASEPRI;
  205. uint32_t ulNewBASEPRI;
  206. uint32_t ulNewBASEPRI;
  207. unsigned int _2;
  208. unsigned int _4;
  209. unsigned int _7;
  210. uint8_t * _9;
  211. uint8_t * _10;
  212. unsigned int _12;
  213. unsigned int _13;
  214. uint8_t * _15;
  215. const uint8_t * _16;
  216. unsigned int _18;
  217. <bb 15> [local count: 160260]:
  218. <bb 2> [local count: 160260]:
  219. # DEBUG BEGIN_STMT
  220. # DEBUG BEGIN_STMT
  221. _2 = pxStreamBuffer_1(D)->xLength;
  222. _4 = _2 - xHead_3(D);
  223. xFirstLength_6 = MIN_EXPR <_4, xCount_5(D)>;
  224. # DEBUG xFirstLength => xFirstLength_6
  225. # DEBUG BEGIN_STMT
  226. _7 = xHead_3(D) + xFirstLength_6;
  227. if (_2 < _7)
  228. goto <bb 3>; [67.00%]
  229. else
  230. goto <bb 6>; [33.00%]
  231. <bb 3> [local count: 107374]:
  232. # DEBUG BEGIN_STMT
  233. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  234. # DEBUG BEGIN_STMT
  235. # DEBUG BEGIN_STMT
  236. __asm__ __volatile__(" mov %0, %1
  237. msr basepri, %0
  238. isb
  239. dsb
  240. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  241. # DEBUG ulNewBASEPRI => ulNewBASEPRI_8
  242. <bb 4> [local count: 1073741824]:
  243. # DEBUG ulNewBASEPRI => NULL
  244. # DEBUG BEGIN_STMT
  245. # DEBUG BEGIN_STMT
  246. # DEBUG BEGIN_STMT
  247. <bb 5> [local count: 1073741824]:
  248. goto <bb 4>; [100.00%]
  249. <bb 6> [local count: 52886]:
  250. # DEBUG BEGIN_STMT
  251. # DEBUG BEGIN_STMT
  252. _9 = pxStreamBuffer_1(D)->pucBuffer;
  253. _10 = _9 + xHead_3(D);
  254. memcpy (_10, pucData_11(D), xFirstLength_6);
  255. # DEBUG BEGIN_STMT
  256. if (xCount_5(D) > xFirstLength_6)
  257. goto <bb 7>; [50.00%]
  258. else
  259. goto <bb 12>; [50.00%]
  260. <bb 7> [local count: 26443]:
  261. # DEBUG BEGIN_STMT
  262. _12 = xCount_5(D) - xFirstLength_6;
  263. _13 = pxStreamBuffer_1(D)->xLength;
  264. if (_12 > _13)
  265. goto <bb 8>; [67.00%]
  266. else
  267. goto <bb 11>; [33.00%]
  268. <bb 8> [local count: 17717]:
  269. # DEBUG BEGIN_STMT
  270. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  271. # DEBUG BEGIN_STMT
  272. # DEBUG BEGIN_STMT
  273. __asm__ __volatile__(" mov %0, %1
  274. msr basepri, %0
  275. isb
  276. dsb
  277. " : "=r" ulNewBASEPRI_14 : "i" 16 : "memory");
  278. # DEBUG ulNewBASEPRI => ulNewBASEPRI_14
  279. <bb 9> [local count: 177167401]:
  280. # DEBUG ulNewBASEPRI => NULL
  281. # DEBUG BEGIN_STMT
  282. # DEBUG BEGIN_STMT
  283. # DEBUG BEGIN_STMT
  284. <bb 10> [local count: 177167401]:
  285. goto <bb 9>; [100.00%]
  286. <bb 11> [local count: 8726]:
  287. # DEBUG BEGIN_STMT
  288. # DEBUG BEGIN_STMT
  289. _15 = pxStreamBuffer_1(D)->pucBuffer;
  290. _16 = pucData_11(D) + xFirstLength_6;
  291. memcpy (_15, _16, _12);
  292. <bb 12> [local count: 35169]:
  293. # DEBUG BEGIN_STMT
  294. # DEBUG BEGIN_STMT
  295. xHead_17 = xHead_3(D) + xCount_5(D);
  296. # DEBUG xHead => xHead_17
  297. # DEBUG BEGIN_STMT
  298. _18 = pxStreamBuffer_1(D)->xLength;
  299. if (xHead_17 >= _18)
  300. goto <bb 13>; [50.00%]
  301. else
  302. goto <bb 14>; [50.00%]
  303. <bb 13> [local count: 17584]:
  304. # DEBUG BEGIN_STMT
  305. xHead_19 = xHead_17 - _18;
  306. # DEBUG xHead => xHead_19
  307. <bb 14> [local count: 35169]:
  308. # xHead_20 = PHI <xHead_17(12), xHead_19(13)>
  309. # DEBUG xHead => xHead_20
  310. # DEBUG BEGIN_STMT
  311. # DEBUG BEGIN_STMT
  312. return xHead_20;
  313. }
  314. prvInitialiseNewStreamBuffer.part.0 (struct StreamBuffer_t * const pxStreamBuffer, uint8_t * const pucBuffer, size_t xBufferSizeBytes, size_t xTriggerLevelBytes, uint8_t ucFlags)
  315. {
  316. const BaseType_t xWriteValue;
  317. uint32_t ulNewBASEPRI;
  318. <bb 3> [local count: 1073741824]:
  319. <bb 2> [local count: 1073741824]:
  320. # DEBUG BEGIN_STMT
  321. # DEBUG BEGIN_STMT
  322. memset (pxStreamBuffer_1(D), 0, 36);
  323. # DEBUG BEGIN_STMT
  324. pxStreamBuffer_1(D)->pucBuffer = pucBuffer_2(D);
  325. # DEBUG BEGIN_STMT
  326. pxStreamBuffer_1(D)->xLength = xBufferSizeBytes_3(D);
  327. # DEBUG BEGIN_STMT
  328. pxStreamBuffer_1(D)->xTriggerLevelBytes = xTriggerLevelBytes_4(D);
  329. # DEBUG BEGIN_STMT
  330. pxStreamBuffer_1(D)->ucFlags = ucFlags_5(D);
  331. return;
  332. }
  333. ucStreamBufferGetStreamBufferType (struct StreamBufferDef_t * xStreamBuffer)
  334. {
  335. unsigned char _1;
  336. uint8_t _4;
  337. <bb 2> [local count: 1073741824]:
  338. # DEBUG BEGIN_STMT
  339. _1 = xStreamBuffer_3(D)->ucFlags;
  340. _4 = _1 & 1;
  341. return _4;
  342. }
  343. vStreamBufferSetStreamBufferNumber (struct StreamBufferDef_t * xStreamBuffer, UBaseType_t uxStreamBufferNumber)
  344. {
  345. <bb 2> [local count: 1073741824]:
  346. # DEBUG BEGIN_STMT
  347. xStreamBuffer_2(D)->uxStreamBufferNumber = uxStreamBufferNumber_3(D);
  348. return;
  349. }
  350. uxStreamBufferGetStreamBufferNumber (struct StreamBufferDef_t * xStreamBuffer)
  351. {
  352. UBaseType_t _3;
  353. <bb 2> [local count: 1073741824]:
  354. # DEBUG BEGIN_STMT
  355. _3 = xStreamBuffer_2(D)->uxStreamBufferNumber;
  356. return _3;
  357. }
  358. prvInitialiseNewStreamBuffer (struct StreamBuffer_t * const pxStreamBuffer, uint8_t * const pucBuffer, size_t xBufferSizeBytes, size_t xTriggerLevelBytes, uint8_t ucFlags)
  359. {
  360. uint32_t ulNewBASEPRI;
  361. void * _1;
  362. <bb 2> [local count: 130040]:
  363. # DEBUG BEGIN_STMT
  364. # DEBUG xWriteValue => 85
  365. # DEBUG BEGIN_STMT
  366. _1 = memset (pucBuffer_4(D), 85, xBufferSizeBytes_5(D));
  367. if (_1 != pucBuffer_4(D))
  368. goto <bb 3>; [82.57%]
  369. else
  370. goto <bb 5>; [17.43%]
  371. <bb 3> [local count: 107374]:
  372. # DEBUG BEGIN_STMT
  373. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  374. # DEBUG BEGIN_STMT
  375. # DEBUG BEGIN_STMT
  376. __asm__ __volatile__(" mov %0, %1
  377. msr basepri, %0
  378. isb
  379. dsb
  380. " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
  381. # DEBUG ulNewBASEPRI => ulNewBASEPRI_10
  382. <bb 4> [local count: 1073741824]:
  383. # DEBUG ulNewBASEPRI => NULL
  384. # DEBUG BEGIN_STMT
  385. # DEBUG BEGIN_STMT
  386. # DEBUG BEGIN_STMT
  387. <bb 6> [local count: 1073741824]:
  388. goto <bb 4>; [100.00%]
  389. <bb 5> [local count: 22666]:
  390. prvInitialiseNewStreamBuffer.part.0 (pxStreamBuffer_7(D), pucBuffer_4(D), xBufferSizeBytes_5(D), xTriggerLevelBytes_8(D), ucFlags_9(D));
  391. return;
  392. }
  393. prvBytesInBuffer (const struct StreamBuffer_t * const pxStreamBuffer)
  394. {
  395. size_t xCount;
  396. unsigned int _1;
  397. unsigned int _2;
  398. unsigned int _7;
  399. <bb 2> [local count: 1073741824]:
  400. # DEBUG BEGIN_STMT
  401. # DEBUG BEGIN_STMT
  402. _1 = pxStreamBuffer_5(D)->xLength;
  403. _2 ={v} pxStreamBuffer_5(D)->xHead;
  404. xCount_6 = _1 + _2;
  405. # DEBUG xCount => xCount_6
  406. # DEBUG BEGIN_STMT
  407. _7 ={v} pxStreamBuffer_5(D)->xTail;
  408. xCount_8 = xCount_6 - _7;
  409. # DEBUG xCount => xCount_8
  410. # DEBUG BEGIN_STMT
  411. if (_1 <= xCount_8)
  412. goto <bb 3>; [50.00%]
  413. else
  414. goto <bb 4>; [50.00%]
  415. <bb 3> [local count: 536870913]:
  416. # DEBUG BEGIN_STMT
  417. xCount_9 = xCount_8 - _1;
  418. # DEBUG xCount => xCount_9
  419. <bb 4> [local count: 1073741824]:
  420. # xCount_3 = PHI <xCount_8(2), xCount_9(3)>
  421. # DEBUG xCount => xCount_3
  422. # DEBUG BEGIN_STMT
  423. # DEBUG BEGIN_STMT
  424. return xCount_3;
  425. }
  426. prvReadBytesFromBuffer (struct StreamBuffer_t * pxStreamBuffer, uint8_t * pucData, size_t xCount, size_t xTail)
  427. {
  428. uint32_t ulNewBASEPRI;
  429. <bb 2> [local count: 214748]:
  430. # DEBUG BEGIN_STMT
  431. # DEBUG BEGIN_STMT
  432. if (xCount_3(D) == 0)
  433. goto <bb 3>; [50.00%]
  434. else
  435. goto <bb 5>; [50.00%]
  436. <bb 3> [local count: 107374]:
  437. # DEBUG BEGIN_STMT
  438. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  439. # DEBUG BEGIN_STMT
  440. # DEBUG BEGIN_STMT
  441. __asm__ __volatile__(" mov %0, %1
  442. msr basepri, %0
  443. isb
  444. dsb
  445. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  446. # DEBUG ulNewBASEPRI => ulNewBASEPRI_8
  447. <bb 4> [local count: 1073741824]:
  448. # DEBUG ulNewBASEPRI => NULL
  449. # DEBUG BEGIN_STMT
  450. # DEBUG BEGIN_STMT
  451. # DEBUG BEGIN_STMT
  452. <bb 6> [local count: 1073741824]:
  453. goto <bb 4>; [100.00%]
  454. <bb 5> [local count: 107374]:
  455. xTail_1 = prvReadBytesFromBuffer.part.0 (pxStreamBuffer_5(D), pucData_7(D), xCount_3(D), xTail_6(D));
  456. # DEBUG xTail => xTail_1
  457. # DEBUG BEGIN_STMT
  458. return xTail_1;
  459. }
  460. prvWriteBytesToBuffer (struct StreamBuffer_t * const pxStreamBuffer, const uint8_t * pucData, size_t xCount, size_t xHead)
  461. {
  462. uint32_t ulNewBASEPRI;
  463. <bb 2> [local count: 214748]:
  464. # DEBUG BEGIN_STMT
  465. # DEBUG BEGIN_STMT
  466. if (xCount_3(D) == 0)
  467. goto <bb 3>; [50.00%]
  468. else
  469. goto <bb 5>; [50.00%]
  470. <bb 3> [local count: 107374]:
  471. # DEBUG BEGIN_STMT
  472. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  473. # DEBUG BEGIN_STMT
  474. # DEBUG BEGIN_STMT
  475. __asm__ __volatile__(" mov %0, %1
  476. msr basepri, %0
  477. isb
  478. dsb
  479. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  480. # DEBUG ulNewBASEPRI => ulNewBASEPRI_8
  481. <bb 4> [local count: 1073741824]:
  482. # DEBUG ulNewBASEPRI => NULL
  483. # DEBUG BEGIN_STMT
  484. # DEBUG BEGIN_STMT
  485. # DEBUG BEGIN_STMT
  486. <bb 6> [local count: 1073741824]:
  487. goto <bb 4>; [100.00%]
  488. <bb 5> [local count: 107374]:
  489. xHead_1 = prvWriteBytesToBuffer.part.0 (pxStreamBuffer_5(D), pucData_7(D), xCount_3(D), xHead_6(D));
  490. # DEBUG xHead => xHead_1
  491. # DEBUG BEGIN_STMT
  492. # DEBUG BEGIN_STMT
  493. return xHead_1;
  494. }
  495. xStreamBufferReceiveCompletedFromISR (struct StreamBufferDef_t * xStreamBuffer, BaseType_t * pxHigherPriorityTaskWoken)
  496. {
  497. uint32_t ulOriginalBASEPRI;
  498. uint32_t ulNewBASEPRI;
  499. uint32_t ulNewBASEPRI;
  500. BaseType_t xReturn;
  501. struct tskTaskControlBlock * _1;
  502. struct tskTaskControlBlock * _2;
  503. <bb 2> [local count: 357913]:
  504. # DEBUG BEGIN_STMT
  505. # DEBUG pxStreamBuffer => xStreamBuffer_5(D)
  506. # DEBUG BEGIN_STMT
  507. # DEBUG BEGIN_STMT
  508. # DEBUG BEGIN_STMT
  509. if (xStreamBuffer_5(D) == 0B)
  510. goto <bb 3>; [30.00%]
  511. else
  512. goto <bb 5>; [70.00%]
  513. <bb 3> [local count: 107374]:
  514. # DEBUG BEGIN_STMT
  515. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  516. # DEBUG BEGIN_STMT
  517. # DEBUG BEGIN_STMT
  518. __asm__ __volatile__(" mov %0, %1
  519. msr basepri, %0
  520. isb
  521. dsb
  522. " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
  523. # DEBUG ulNewBASEPRI => ulNewBASEPRI_10
  524. <bb 4> [local count: 1073741824]:
  525. # DEBUG ulNewBASEPRI => NULL
  526. # DEBUG BEGIN_STMT
  527. # DEBUG BEGIN_STMT
  528. # DEBUG BEGIN_STMT
  529. <bb 8> [local count: 1073741824]:
  530. goto <bb 4>; [100.00%]
  531. <bb 5> [local count: 250539]:
  532. # DEBUG BEGIN_STMT
  533. # DEBUG BEGIN_STMT
  534. # DEBUG INLINE_ENTRY ulPortRaiseBASEPRI
  535. # DEBUG BEGIN_STMT
  536. # DEBUG BEGIN_STMT
  537. __asm__ __volatile__(" mrs %0, basepri
  538. mov %1, %2
  539. msr basepri, %1
  540. isb
  541. dsb
  542. " : "=r" ulOriginalBASEPRI_11, "=r" ulNewBASEPRI_12 : "i" 16 : "memory");
  543. # DEBUG ulNewBASEPRI => ulNewBASEPRI_12
  544. # DEBUG ulOriginalBASEPRI => ulOriginalBASEPRI_11
  545. # DEBUG BEGIN_STMT
  546. # DEBUG ulNewBASEPRI => NULL
  547. # DEBUG ulOriginalBASEPRI => NULL
  548. # DEBUG uxSavedInterruptStatus => ulOriginalBASEPRI_11
  549. # DEBUG BEGIN_STMT
  550. _1 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToSend;
  551. if (_1 != 0B)
  552. goto <bb 6>; [53.47%]
  553. else
  554. goto <bb 7>; [46.53%]
  555. <bb 6> [local count: 133963]:
  556. # DEBUG BEGIN_STMT
  557. _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToSend;
  558. xTaskGenericNotifyFromISR (_2, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_7(D));
  559. # DEBUG BEGIN_STMT
  560. MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToSend ={v} 0B;
  561. # DEBUG BEGIN_STMT
  562. # DEBUG xReturn => 1
  563. <bb 7> [local count: 250539]:
  564. # xReturn_3 = PHI <1(6), 0(5)>
  565. # DEBUG xReturn => xReturn_3
  566. # DEBUG BEGIN_STMT
  567. # DEBUG ulNewMaskValue => ulOriginalBASEPRI_11
  568. # DEBUG INLINE_ENTRY vPortSetBASEPRI
  569. # DEBUG BEGIN_STMT
  570. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulOriginalBASEPRI_11 : "memory");
  571. # DEBUG ulNewMaskValue => NULL
  572. # DEBUG BEGIN_STMT
  573. return xReturn_3;
  574. }
  575. xStreamBufferSendCompletedFromISR (struct StreamBufferDef_t * xStreamBuffer, BaseType_t * pxHigherPriorityTaskWoken)
  576. {
  577. uint32_t ulOriginalBASEPRI;
  578. uint32_t ulNewBASEPRI;
  579. uint32_t ulNewBASEPRI;
  580. BaseType_t xReturn;
  581. struct tskTaskControlBlock * _1;
  582. struct tskTaskControlBlock * _2;
  583. <bb 2> [local count: 357913]:
  584. # DEBUG BEGIN_STMT
  585. # DEBUG pxStreamBuffer => xStreamBuffer_5(D)
  586. # DEBUG BEGIN_STMT
  587. # DEBUG BEGIN_STMT
  588. # DEBUG BEGIN_STMT
  589. if (xStreamBuffer_5(D) == 0B)
  590. goto <bb 3>; [30.00%]
  591. else
  592. goto <bb 5>; [70.00%]
  593. <bb 3> [local count: 107374]:
  594. # DEBUG BEGIN_STMT
  595. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  596. # DEBUG BEGIN_STMT
  597. # DEBUG BEGIN_STMT
  598. __asm__ __volatile__(" mov %0, %1
  599. msr basepri, %0
  600. isb
  601. dsb
  602. " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
  603. # DEBUG ulNewBASEPRI => ulNewBASEPRI_10
  604. <bb 4> [local count: 1073741824]:
  605. # DEBUG ulNewBASEPRI => NULL
  606. # DEBUG BEGIN_STMT
  607. # DEBUG BEGIN_STMT
  608. # DEBUG BEGIN_STMT
  609. <bb 8> [local count: 1073741824]:
  610. goto <bb 4>; [100.00%]
  611. <bb 5> [local count: 250539]:
  612. # DEBUG BEGIN_STMT
  613. # DEBUG BEGIN_STMT
  614. # DEBUG INLINE_ENTRY ulPortRaiseBASEPRI
  615. # DEBUG BEGIN_STMT
  616. # DEBUG BEGIN_STMT
  617. __asm__ __volatile__(" mrs %0, basepri
  618. mov %1, %2
  619. msr basepri, %1
  620. isb
  621. dsb
  622. " : "=r" ulOriginalBASEPRI_11, "=r" ulNewBASEPRI_12 : "i" 16 : "memory");
  623. # DEBUG ulNewBASEPRI => ulNewBASEPRI_12
  624. # DEBUG ulOriginalBASEPRI => ulOriginalBASEPRI_11
  625. # DEBUG BEGIN_STMT
  626. # DEBUG ulNewBASEPRI => NULL
  627. # DEBUG ulOriginalBASEPRI => NULL
  628. # DEBUG uxSavedInterruptStatus => ulOriginalBASEPRI_11
  629. # DEBUG BEGIN_STMT
  630. _1 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToReceive;
  631. if (_1 != 0B)
  632. goto <bb 6>; [53.47%]
  633. else
  634. goto <bb 7>; [46.53%]
  635. <bb 6> [local count: 133963]:
  636. # DEBUG BEGIN_STMT
  637. _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToReceive;
  638. xTaskGenericNotifyFromISR (_2, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_7(D));
  639. # DEBUG BEGIN_STMT
  640. MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToReceive ={v} 0B;
  641. # DEBUG BEGIN_STMT
  642. # DEBUG xReturn => 1
  643. <bb 7> [local count: 250539]:
  644. # xReturn_3 = PHI <1(6), 0(5)>
  645. # DEBUG xReturn => xReturn_3
  646. # DEBUG BEGIN_STMT
  647. # DEBUG ulNewMaskValue => ulOriginalBASEPRI_11
  648. # DEBUG INLINE_ENTRY vPortSetBASEPRI
  649. # DEBUG BEGIN_STMT
  650. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulOriginalBASEPRI_11 : "memory");
  651. # DEBUG ulNewMaskValue => NULL
  652. # DEBUG BEGIN_STMT
  653. return xReturn_3;
  654. }
  655. xStreamBufferIsFull (struct StreamBufferDef_t * xStreamBuffer)
  656. {
  657. uint32_t ulNewBASEPRI;
  658. size_t xBytesToStoreMessageLength;
  659. BaseType_t xReturn;
  660. unsigned char _1;
  661. unsigned int _2;
  662. unsigned char _6;
  663. <bb 2> [local count: 357913]:
  664. # DEBUG BEGIN_STMT
  665. # DEBUG BEGIN_STMT
  666. # DEBUG BEGIN_STMT
  667. # DEBUG pxStreamBuffer => xStreamBuffer_5(D)
  668. # DEBUG BEGIN_STMT
  669. if (xStreamBuffer_5(D) == 0B)
  670. goto <bb 3>; [30.00%]
  671. else
  672. goto <bb 5>; [70.00%]
  673. <bb 3> [local count: 107374]:
  674. # DEBUG BEGIN_STMT
  675. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  676. # DEBUG BEGIN_STMT
  677. # DEBUG BEGIN_STMT
  678. __asm__ __volatile__(" mov %0, %1
  679. msr basepri, %0
  680. isb
  681. dsb
  682. " : "=r" ulNewBASEPRI_9 : "i" 16 : "memory");
  683. # DEBUG ulNewBASEPRI => ulNewBASEPRI_9
  684. <bb 4> [local count: 1073741824]:
  685. # DEBUG ulNewBASEPRI => NULL
  686. # DEBUG BEGIN_STMT
  687. # DEBUG BEGIN_STMT
  688. # DEBUG BEGIN_STMT
  689. <bb 10> [local count: 1073741824]:
  690. goto <bb 4>; [100.00%]
  691. <bb 5> [local count: 250539]:
  692. # DEBUG BEGIN_STMT
  693. # DEBUG BEGIN_STMT
  694. _1 = MEM[(const struct StreamBuffer_t *)xStreamBuffer_5(D)].ucFlags;
  695. _6 = _1 & 1;
  696. if (_6 != 0)
  697. goto <bb 7>; [50.00%]
  698. else
  699. goto <bb 6>; [50.00%]
  700. <bb 6> [local count: 125270]:
  701. # DEBUG BEGIN_STMT
  702. # DEBUG xBytesToStoreMessageLength => 0
  703. <bb 7> [local count: 250539]:
  704. # xBytesToStoreMessageLength_4 = PHI <4(5), 0(6)>
  705. # DEBUG xBytesToStoreMessageLength => xBytesToStoreMessageLength_4
  706. # DEBUG BEGIN_STMT
  707. _2 = xStreamBufferSpacesAvailable (xStreamBuffer_5(D));
  708. if (_2 <= xBytesToStoreMessageLength_4)
  709. goto <bb 9>; [50.00%]
  710. else
  711. goto <bb 8>; [50.00%]
  712. <bb 8> [local count: 125270]:
  713. # DEBUG BEGIN_STMT
  714. # DEBUG xReturn => 0
  715. <bb 9> [local count: 250539]:
  716. # xReturn_3 = PHI <1(7), 0(8)>
  717. # DEBUG xReturn => xReturn_3
  718. # DEBUG BEGIN_STMT
  719. return xReturn_3;
  720. }
  721. xStreamBufferIsEmpty (struct StreamBufferDef_t * xStreamBuffer)
  722. {
  723. uint32_t ulNewBASEPRI;
  724. size_t xTail;
  725. BaseType_t xReturn;
  726. unsigned int _1;
  727. <bb 2> [local count: 357913]:
  728. # DEBUG BEGIN_STMT
  729. # DEBUG pxStreamBuffer => xStreamBuffer_3(D)
  730. # DEBUG BEGIN_STMT
  731. # DEBUG BEGIN_STMT
  732. # DEBUG BEGIN_STMT
  733. if (xStreamBuffer_3(D) == 0B)
  734. goto <bb 3>; [30.00%]
  735. else
  736. goto <bb 5>; [70.00%]
  737. <bb 3> [local count: 107374]:
  738. # DEBUG BEGIN_STMT
  739. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  740. # DEBUG BEGIN_STMT
  741. # DEBUG BEGIN_STMT
  742. __asm__ __volatile__(" mov %0, %1
  743. msr basepri, %0
  744. isb
  745. dsb
  746. " : "=r" ulNewBASEPRI_6 : "i" 16 : "memory");
  747. # DEBUG ulNewBASEPRI => ulNewBASEPRI_6
  748. <bb 4> [local count: 1073741824]:
  749. # DEBUG ulNewBASEPRI => NULL
  750. # DEBUG BEGIN_STMT
  751. # DEBUG BEGIN_STMT
  752. # DEBUG BEGIN_STMT
  753. <bb 8> [local count: 1073741824]:
  754. goto <bb 4>; [100.00%]
  755. <bb 5> [local count: 250539]:
  756. # DEBUG BEGIN_STMT
  757. # DEBUG BEGIN_STMT
  758. xTail_5 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_3(D)].xTail;
  759. # DEBUG xTail => xTail_5
  760. # DEBUG BEGIN_STMT
  761. _1 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_3(D)].xHead;
  762. if (_1 == xTail_5)
  763. goto <bb 7>; [34.00%]
  764. else
  765. goto <bb 6>; [66.00%]
  766. <bb 6> [local count: 165356]:
  767. # DEBUG BEGIN_STMT
  768. # DEBUG xReturn => 0
  769. <bb 7> [local count: 250539]:
  770. # xReturn_2 = PHI <1(5), 0(6)>
  771. # DEBUG xReturn => xReturn_2
  772. # DEBUG BEGIN_STMT
  773. return xReturn_2;
  774. }
  775. prvReadMessageFromBuffer (struct StreamBuffer_t * pxStreamBuffer, void * pvRxData, size_t xBufferLengthBytes, size_t xBytesAvailable)
  776. {
  777. size_t xTail;
  778. size_t xNextTail;
  779. size_t xTempNextMessageLength;
  780. size_t xNextMessageLength;
  781. size_t xCount;
  782. unsigned char _1;
  783. unsigned int _2;
  784. unsigned char _12;
  785. <bb 2> [local count: 1073741824]:
  786. # DEBUG BEGIN_STMT
  787. # DEBUG BEGIN_STMT
  788. # DEBUG BEGIN_STMT
  789. xNextTail_10 ={v} pxStreamBuffer_9(D)->xTail;
  790. # DEBUG xNextTail => xNextTail_10
  791. # DEBUG BEGIN_STMT
  792. _1 = pxStreamBuffer_9(D)->ucFlags;
  793. _12 = _1 & 1;
  794. if (_12 != 0)
  795. goto <bb 3>; [33.00%]
  796. else
  797. goto <bb 5>; [67.00%]
  798. <bb 3> [local count: 354334802]:
  799. # DEBUG BEGIN_STMT
  800. # DEBUG pxStreamBuffer => pxStreamBuffer_9(D)
  801. # DEBUG pucData => &xTempNextMessageLength
  802. # DEBUG xCount => 4
  803. # DEBUG xTail => xNextTail_10
  804. # DEBUG INLINE_ENTRY prvReadBytesFromBuffer
  805. # DEBUG BEGIN_STMT
  806. # DEBUG BEGIN_STMT
  807. xTail_21 = prvReadBytesFromBuffer.part.0 (pxStreamBuffer_9(D), &xTempNextMessageLength, 4, xNextTail_10);
  808. # DEBUG xTail => xTail_21
  809. # DEBUG BEGIN_STMT
  810. # DEBUG pxStreamBuffer => NULL
  811. # DEBUG pucData => NULL
  812. # DEBUG xCount => NULL
  813. # DEBUG xTail => NULL
  814. # DEBUG ulNewBASEPRI => NULL
  815. # DEBUG xNextTail => xTail_21
  816. # DEBUG BEGIN_STMT
  817. xNextMessageLength_14 = xTempNextMessageLength;
  818. # DEBUG xNextMessageLength => xNextMessageLength_14
  819. # DEBUG BEGIN_STMT
  820. xBytesAvailable_15 = xBytesAvailable_13(D) + 4294967292;
  821. # DEBUG xBytesAvailable => xBytesAvailable_15
  822. # DEBUG BEGIN_STMT
  823. if (xBufferLengthBytes_11(D) < xNextMessageLength_14)
  824. goto <bb 4>; [50.00%]
  825. else
  826. goto <bb 5>; [50.00%]
  827. <bb 4> [local count: 177167401]:
  828. # DEBUG BEGIN_STMT
  829. # DEBUG xNextMessageLength => 0
  830. <bb 5> [local count: 1073741824]:
  831. # xBytesAvailable_3 = PHI <xBytesAvailable_15(4), xBytesAvailable_13(D)(2), xBytesAvailable_15(3)>
  832. # xNextMessageLength_4 = PHI <0(4), xBufferLengthBytes_11(D)(2), xNextMessageLength_14(3)>
  833. # xNextTail_5 = PHI <xTail_21(4), xNextTail_10(2), xTail_21(3)>
  834. # DEBUG xNextTail => xNextTail_5
  835. # DEBUG xNextMessageLength => xNextMessageLength_4
  836. # DEBUG xBytesAvailable => xBytesAvailable_3
  837. # DEBUG BEGIN_STMT
  838. xCount_16 = MIN_EXPR <xBytesAvailable_3, xNextMessageLength_4>;
  839. # DEBUG xCount => xCount_16
  840. # DEBUG BEGIN_STMT
  841. if (xCount_16 != 0)
  842. goto <bb 6>; [33.00%]
  843. else
  844. goto <bb 7>; [67.00%]
  845. <bb 6> [local count: 354334802]:
  846. # DEBUG BEGIN_STMT
  847. _2 = prvReadBytesFromBuffer (pxStreamBuffer_9(D), pvRxData_17(D), xCount_16, xNextTail_5);
  848. pxStreamBuffer_9(D)->xTail ={v} _2;
  849. <bb 7> [local count: 1073741824]:
  850. # DEBUG BEGIN_STMT
  851. xTempNextMessageLength ={v} {CLOBBER};
  852. return xCount_16;
  853. }
  854. xStreamBufferReceiveFromISR (struct StreamBufferDef_t * xStreamBuffer, void * pvRxData, size_t xBufferLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken)
  855. {
  856. uint32_t ulOriginalBASEPRI;
  857. uint32_t ulNewBASEPRI;
  858. uint32_t ulNewBASEPRI;
  859. uint32_t ulNewBASEPRI;
  860. size_t xBytesToStoreMessageLength;
  861. size_t xBytesAvailable;
  862. size_t xReceivedLength;
  863. unsigned char _1;
  864. struct tskTaskControlBlock * _2;
  865. struct tskTaskControlBlock * _3;
  866. unsigned char _9;
  867. <bb 2> [local count: 357913]:
  868. # DEBUG BEGIN_STMT
  869. # DEBUG pxStreamBuffer => xStreamBuffer_8(D)
  870. # DEBUG BEGIN_STMT
  871. # DEBUG xReceivedLength => 0
  872. # DEBUG BEGIN_STMT
  873. if (pvRxData_10(D) == 0B)
  874. goto <bb 3>; [30.00%]
  875. else
  876. goto <bb 5>; [70.00%]
  877. <bb 3> [local count: 107374]:
  878. # DEBUG BEGIN_STMT
  879. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  880. # DEBUG BEGIN_STMT
  881. # DEBUG BEGIN_STMT
  882. __asm__ __volatile__(" mov %0, %1
  883. msr basepri, %0
  884. isb
  885. dsb
  886. " : "=r" ulNewBASEPRI_20 : "i" 16 : "memory");
  887. # DEBUG ulNewBASEPRI => ulNewBASEPRI_20
  888. <bb 4> [local count: 1073741824]:
  889. # DEBUG ulNewBASEPRI => NULL
  890. # DEBUG BEGIN_STMT
  891. # DEBUG BEGIN_STMT
  892. # DEBUG BEGIN_STMT
  893. <bb 16> [local count: 1073741824]:
  894. goto <bb 4>; [100.00%]
  895. <bb 5> [local count: 250539]:
  896. # DEBUG BEGIN_STMT
  897. # DEBUG BEGIN_STMT
  898. if (xStreamBuffer_8(D) == 0B)
  899. goto <bb 6>; [30.00%]
  900. else
  901. goto <bb 8>; [70.00%]
  902. <bb 6> [local count: 75162]:
  903. # DEBUG BEGIN_STMT
  904. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  905. # DEBUG BEGIN_STMT
  906. # DEBUG BEGIN_STMT
  907. __asm__ __volatile__(" mov %0, %1
  908. msr basepri, %0
  909. isb
  910. dsb
  911. " : "=r" ulNewBASEPRI_21 : "i" 16 : "memory");
  912. # DEBUG ulNewBASEPRI => ulNewBASEPRI_21
  913. <bb 7> [local count: 751619279]:
  914. # DEBUG ulNewBASEPRI => NULL
  915. # DEBUG BEGIN_STMT
  916. # DEBUG BEGIN_STMT
  917. # DEBUG BEGIN_STMT
  918. <bb 17> [local count: 751619279]:
  919. goto <bb 7>; [100.00%]
  920. <bb 8> [local count: 175378]:
  921. # DEBUG BEGIN_STMT
  922. # DEBUG BEGIN_STMT
  923. _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_8(D)].ucFlags;
  924. _9 = _1 & 1;
  925. if (_9 != 0)
  926. goto <bb 10>; [50.00%]
  927. else
  928. goto <bb 9>; [50.00%]
  929. <bb 9> [local count: 87689]:
  930. # DEBUG BEGIN_STMT
  931. # DEBUG xBytesToStoreMessageLength => 0
  932. <bb 10> [local count: 175378]:
  933. # xBytesToStoreMessageLength_5 = PHI <4(8), 0(9)>
  934. # DEBUG xBytesToStoreMessageLength => xBytesToStoreMessageLength_5
  935. # DEBUG BEGIN_STMT
  936. xBytesAvailable_13 = prvBytesInBuffer (xStreamBuffer_8(D));
  937. # DEBUG xBytesAvailable => xBytesAvailable_13
  938. # DEBUG BEGIN_STMT
  939. if (xBytesToStoreMessageLength_5 < xBytesAvailable_13)
  940. goto <bb 11>; [33.00%]
  941. else
  942. goto <bb 15>; [67.00%]
  943. <bb 11> [local count: 57875]:
  944. # DEBUG BEGIN_STMT
  945. xReceivedLength_16 = prvReadMessageFromBuffer (xStreamBuffer_8(D), pvRxData_10(D), xBufferLengthBytes_14(D), xBytesAvailable_13);
  946. # DEBUG xReceivedLength => xReceivedLength_16
  947. # DEBUG BEGIN_STMT
  948. if (xReceivedLength_16 != 0)
  949. goto <bb 12>; [50.00%]
  950. else
  951. goto <bb 15>; [50.00%]
  952. <bb 12> [local count: 28937]:
  953. # DEBUG BEGIN_STMT
  954. # DEBUG BEGIN_STMT
  955. # DEBUG INLINE_ENTRY ulPortRaiseBASEPRI
  956. # DEBUG BEGIN_STMT
  957. # DEBUG BEGIN_STMT
  958. __asm__ __volatile__(" mrs %0, basepri
  959. mov %1, %2
  960. msr basepri, %1
  961. isb
  962. dsb
  963. " : "=r" ulOriginalBASEPRI_22, "=r" ulNewBASEPRI_23 : "i" 16 : "memory");
  964. # DEBUG ulNewBASEPRI => ulNewBASEPRI_23
  965. # DEBUG ulOriginalBASEPRI => ulOriginalBASEPRI_22
  966. # DEBUG BEGIN_STMT
  967. # DEBUG ulNewBASEPRI => NULL
  968. # DEBUG ulOriginalBASEPRI => NULL
  969. # DEBUG uxSavedInterruptStatus => ulOriginalBASEPRI_22
  970. # DEBUG BEGIN_STMT
  971. _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_8(D)].xTaskWaitingToSend;
  972. if (_2 != 0B)
  973. goto <bb 13>; [53.47%]
  974. else
  975. goto <bb 14>; [46.53%]
  976. <bb 13> [local count: 15473]:
  977. # DEBUG BEGIN_STMT
  978. _3 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_8(D)].xTaskWaitingToSend;
  979. xTaskGenericNotifyFromISR (_3, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_17(D));
  980. # DEBUG BEGIN_STMT
  981. MEM[(struct StreamBuffer_t *)xStreamBuffer_8(D)].xTaskWaitingToSend ={v} 0B;
  982. <bb 14> [local count: 28937]:
  983. # DEBUG BEGIN_STMT
  984. # DEBUG ulNewMaskValue => ulOriginalBASEPRI_22
  985. # DEBUG INLINE_ENTRY vPortSetBASEPRI
  986. # DEBUG BEGIN_STMT
  987. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulOriginalBASEPRI_22 : "memory");
  988. <bb 15> [local count: 175378]:
  989. # xReceivedLength_4 = PHI <0(10), xReceivedLength_16(14), xReceivedLength_16(11)>
  990. # DEBUG ulNewMaskValue => NULL
  991. # DEBUG xReceivedLength => xReceivedLength_4
  992. # DEBUG BEGIN_STMT
  993. # DEBUG BEGIN_STMT
  994. # DEBUG BEGIN_STMT
  995. return xReceivedLength_4;
  996. }
  997. xStreamBufferNextMessageLengthBytes (struct StreamBufferDef_t * xStreamBuffer)
  998. {
  999. uint32_t ulNewBASEPRI;
  1000. uint32_t ulNewBASEPRI;
  1001. size_t xTempReturn;
  1002. size_t xBytesAvailable;
  1003. size_t xReturn;
  1004. unsigned char _1;
  1005. unsigned int _2;
  1006. unsigned char _6;
  1007. <bb 2> [local count: 357913]:
  1008. # DEBUG BEGIN_STMT
  1009. # DEBUG pxStreamBuffer => xStreamBuffer_5(D)
  1010. # DEBUG BEGIN_STMT
  1011. # DEBUG BEGIN_STMT
  1012. # DEBUG BEGIN_STMT
  1013. if (xStreamBuffer_5(D) == 0B)
  1014. goto <bb 3>; [30.00%]
  1015. else
  1016. goto <bb 5>; [70.00%]
  1017. <bb 3> [local count: 107374]:
  1018. # DEBUG BEGIN_STMT
  1019. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1020. # DEBUG BEGIN_STMT
  1021. # DEBUG BEGIN_STMT
  1022. __asm__ __volatile__(" mov %0, %1
  1023. msr basepri, %0
  1024. isb
  1025. dsb
  1026. " : "=r" ulNewBASEPRI_13 : "i" 16 : "memory");
  1027. # DEBUG ulNewBASEPRI => ulNewBASEPRI_13
  1028. <bb 4> [local count: 1073741824]:
  1029. # DEBUG ulNewBASEPRI => NULL
  1030. # DEBUG BEGIN_STMT
  1031. # DEBUG BEGIN_STMT
  1032. # DEBUG BEGIN_STMT
  1033. <bb 12> [local count: 1073741824]:
  1034. goto <bb 4>; [100.00%]
  1035. <bb 5> [local count: 250539]:
  1036. # DEBUG BEGIN_STMT
  1037. # DEBUG BEGIN_STMT
  1038. _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].ucFlags;
  1039. _6 = _1 & 1;
  1040. if (_6 != 0)
  1041. goto <bb 6>; [33.00%]
  1042. else
  1043. goto <bb 11>; [67.00%]
  1044. <bb 6> [local count: 82678]:
  1045. # DEBUG BEGIN_STMT
  1046. xBytesAvailable_9 = prvBytesInBuffer (xStreamBuffer_5(D));
  1047. # DEBUG xBytesAvailable => xBytesAvailable_9
  1048. # DEBUG BEGIN_STMT
  1049. if (xBytesAvailable_9 > 4)
  1050. goto <bb 7>; [33.00%]
  1051. else
  1052. goto <bb 8>; [67.00%]
  1053. <bb 7> [local count: 27284]:
  1054. # DEBUG BEGIN_STMT
  1055. _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTail;
  1056. prvReadBytesFromBuffer (xStreamBuffer_5(D), &xTempReturn, 4, _2);
  1057. # DEBUG BEGIN_STMT
  1058. xReturn_11 = xTempReturn;
  1059. # DEBUG xReturn => xReturn_11
  1060. goto <bb 11>; [100.00%]
  1061. <bb 8> [local count: 55394]:
  1062. # DEBUG BEGIN_STMT
  1063. if (xBytesAvailable_9 != 0)
  1064. goto <bb 9>; [50.00%]
  1065. else
  1066. goto <bb 11>; [50.00%]
  1067. <bb 9> [local count: 27697]:
  1068. # DEBUG BEGIN_STMT
  1069. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1070. # DEBUG BEGIN_STMT
  1071. # DEBUG BEGIN_STMT
  1072. __asm__ __volatile__(" mov %0, %1
  1073. msr basepri, %0
  1074. isb
  1075. dsb
  1076. " : "=r" ulNewBASEPRI_14 : "i" 16 : "memory");
  1077. # DEBUG ulNewBASEPRI => ulNewBASEPRI_14
  1078. <bb 10> [local count: 276971704]:
  1079. # DEBUG ulNewBASEPRI => NULL
  1080. # DEBUG BEGIN_STMT
  1081. # DEBUG BEGIN_STMT
  1082. # DEBUG BEGIN_STMT
  1083. <bb 13> [local count: 276971704]:
  1084. goto <bb 10>; [100.00%]
  1085. <bb 11> [local count: 222842]:
  1086. # xReturn_3 = PHI <0(8), 0(5), xReturn_11(7)>
  1087. # DEBUG xReturn => xReturn_3
  1088. # DEBUG BEGIN_STMT
  1089. xTempReturn ={v} {CLOBBER};
  1090. return xReturn_3;
  1091. }
  1092. xStreamBufferReceive (struct StreamBufferDef_t * xStreamBuffer, void * pvRxData, size_t xBufferLengthBytes, TickType_t xTicksToWait)
  1093. {
  1094. uint32_t ulNewBASEPRI;
  1095. uint32_t ulNewBASEPRI;
  1096. uint32_t ulNewBASEPRI;
  1097. size_t xBytesToStoreMessageLength;
  1098. size_t xBytesAvailable;
  1099. size_t xReceivedLength;
  1100. unsigned char _1;
  1101. struct tskTaskControlBlock * _2;
  1102. struct tskTaskControlBlock * _3;
  1103. struct tskTaskControlBlock * _4;
  1104. struct tskTaskControlBlock * _5;
  1105. unsigned char _14;
  1106. <bb 2> [local count: 357913]:
  1107. # DEBUG BEGIN_STMT
  1108. # DEBUG pxStreamBuffer => xStreamBuffer_13(D)
  1109. # DEBUG BEGIN_STMT
  1110. # DEBUG xReceivedLength => 0
  1111. # DEBUG BEGIN_STMT
  1112. if (pvRxData_15(D) == 0B)
  1113. goto <bb 3>; [30.00%]
  1114. else
  1115. goto <bb 5>; [70.00%]
  1116. <bb 3> [local count: 107374]:
  1117. # DEBUG BEGIN_STMT
  1118. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1119. # DEBUG BEGIN_STMT
  1120. # DEBUG BEGIN_STMT
  1121. __asm__ __volatile__(" mov %0, %1
  1122. msr basepri, %0
  1123. isb
  1124. dsb
  1125. " : "=r" ulNewBASEPRI_38 : "i" 16 : "memory");
  1126. # DEBUG ulNewBASEPRI => ulNewBASEPRI_38
  1127. <bb 4> [local count: 1073741824]:
  1128. # DEBUG ulNewBASEPRI => NULL
  1129. # DEBUG BEGIN_STMT
  1130. # DEBUG BEGIN_STMT
  1131. # DEBUG BEGIN_STMT
  1132. <bb 25> [local count: 1073741824]:
  1133. goto <bb 4>; [100.00%]
  1134. <bb 5> [local count: 250539]:
  1135. # DEBUG BEGIN_STMT
  1136. # DEBUG BEGIN_STMT
  1137. if (xStreamBuffer_13(D) == 0B)
  1138. goto <bb 6>; [30.00%]
  1139. else
  1140. goto <bb 8>; [70.00%]
  1141. <bb 6> [local count: 75162]:
  1142. # DEBUG BEGIN_STMT
  1143. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1144. # DEBUG BEGIN_STMT
  1145. # DEBUG BEGIN_STMT
  1146. __asm__ __volatile__(" mov %0, %1
  1147. msr basepri, %0
  1148. isb
  1149. dsb
  1150. " : "=r" ulNewBASEPRI_39 : "i" 16 : "memory");
  1151. # DEBUG ulNewBASEPRI => ulNewBASEPRI_39
  1152. <bb 7> [local count: 751619279]:
  1153. # DEBUG ulNewBASEPRI => NULL
  1154. # DEBUG BEGIN_STMT
  1155. # DEBUG BEGIN_STMT
  1156. # DEBUG BEGIN_STMT
  1157. <bb 26> [local count: 751619279]:
  1158. goto <bb 7>; [100.00%]
  1159. <bb 8> [local count: 175378]:
  1160. # DEBUG BEGIN_STMT
  1161. # DEBUG BEGIN_STMT
  1162. _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].ucFlags;
  1163. _14 = _1 & 1;
  1164. if (_14 != 0)
  1165. goto <bb 10>; [50.00%]
  1166. else
  1167. goto <bb 9>; [50.00%]
  1168. <bb 9> [local count: 87689]:
  1169. # DEBUG BEGIN_STMT
  1170. # DEBUG xBytesToStoreMessageLength => 0
  1171. <bb 10> [local count: 175378]:
  1172. # xBytesToStoreMessageLength_8 = PHI <4(8), 0(9)>
  1173. # DEBUG xBytesToStoreMessageLength => xBytesToStoreMessageLength_8
  1174. # DEBUG BEGIN_STMT
  1175. if (xTicksToWait_17(D) != 0)
  1176. goto <bb 11>; [50.00%]
  1177. else
  1178. goto <bb 18>; [50.00%]
  1179. <bb 11> [local count: 87689]:
  1180. # DEBUG BEGIN_STMT
  1181. vPortEnterCritical ();
  1182. # DEBUG BEGIN_STMT
  1183. xBytesAvailable_22 = prvBytesInBuffer (xStreamBuffer_13(D));
  1184. # DEBUG xBytesAvailable => xBytesAvailable_22
  1185. # DEBUG BEGIN_STMT
  1186. if (xBytesToStoreMessageLength_8 >= xBytesAvailable_22)
  1187. goto <bb 12>; [50.00%]
  1188. else
  1189. goto <bb 16>; [50.00%]
  1190. <bb 12> [local count: 43844]:
  1191. # DEBUG BEGIN_STMT
  1192. xTaskGenericNotifyStateClear (0B, 0);
  1193. # DEBUG BEGIN_STMT
  1194. _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToReceive;
  1195. if (_2 != 0B)
  1196. goto <bb 13>; [82.57%]
  1197. else
  1198. goto <bb 15>; [17.43%]
  1199. <bb 13> [local count: 36202]:
  1200. # DEBUG BEGIN_STMT
  1201. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1202. # DEBUG BEGIN_STMT
  1203. # DEBUG BEGIN_STMT
  1204. __asm__ __volatile__(" mov %0, %1
  1205. msr basepri, %0
  1206. isb
  1207. dsb
  1208. " : "=r" ulNewBASEPRI_40 : "i" 16 : "memory");
  1209. # DEBUG ulNewBASEPRI => ulNewBASEPRI_40
  1210. <bb 14> [local count: 362023689]:
  1211. # DEBUG ulNewBASEPRI => NULL
  1212. # DEBUG BEGIN_STMT
  1213. # DEBUG BEGIN_STMT
  1214. # DEBUG BEGIN_STMT
  1215. <bb 27> [local count: 362023689]:
  1216. goto <bb 14>; [100.00%]
  1217. <bb 15> [local count: 7642]:
  1218. # DEBUG BEGIN_STMT
  1219. # DEBUG BEGIN_STMT
  1220. _3 = xTaskGetCurrentTaskHandle ();
  1221. MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToReceive ={v} _3;
  1222. <bb 16> [local count: 51486]:
  1223. # DEBUG BEGIN_STMT
  1224. # DEBUG BEGIN_STMT
  1225. vPortExitCritical ();
  1226. # DEBUG BEGIN_STMT
  1227. if (xBytesToStoreMessageLength_8 >= xBytesAvailable_22)
  1228. goto <bb 17>; [33.00%]
  1229. else
  1230. goto <bb 19>; [67.00%]
  1231. <bb 17> [local count: 16991]:
  1232. # DEBUG BEGIN_STMT
  1233. # DEBUG BEGIN_STMT
  1234. xTaskGenericNotifyWait (0, 0, 0, 0B, xTicksToWait_17(D));
  1235. # DEBUG BEGIN_STMT
  1236. MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToReceive ={v} 0B;
  1237. # DEBUG BEGIN_STMT
  1238. xBytesAvailable_30 = prvBytesInBuffer (xStreamBuffer_13(D));
  1239. # DEBUG xBytesAvailable => xBytesAvailable_30
  1240. goto <bb 19>; [100.00%]
  1241. <bb 18> [local count: 87689]:
  1242. # DEBUG BEGIN_STMT
  1243. xBytesAvailable_19 = prvBytesInBuffer (xStreamBuffer_13(D));
  1244. # DEBUG xBytesAvailable => xBytesAvailable_19
  1245. <bb 19> [local count: 139175]:
  1246. # xBytesAvailable_7 = PHI <xBytesAvailable_30(17), xBytesAvailable_19(18), xBytesAvailable_22(16)>
  1247. # DEBUG xBytesAvailable => xBytesAvailable_7
  1248. # DEBUG BEGIN_STMT
  1249. if (xBytesAvailable_7 > xBytesToStoreMessageLength_8)
  1250. goto <bb 20>; [33.00%]
  1251. else
  1252. goto <bb 24>; [67.00%]
  1253. <bb 20> [local count: 45928]:
  1254. # DEBUG BEGIN_STMT
  1255. xReceivedLength_33 = prvReadMessageFromBuffer (xStreamBuffer_13(D), pvRxData_15(D), xBufferLengthBytes_31(D), xBytesAvailable_7);
  1256. # DEBUG xReceivedLength => xReceivedLength_33
  1257. # DEBUG BEGIN_STMT
  1258. if (xReceivedLength_33 != 0)
  1259. goto <bb 21>; [33.00%]
  1260. else
  1261. goto <bb 24>; [67.00%]
  1262. <bb 21> [local count: 15156]:
  1263. # DEBUG BEGIN_STMT
  1264. # DEBUG BEGIN_STMT
  1265. vTaskSuspendAll ();
  1266. # DEBUG BEGIN_STMT
  1267. _4 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToSend;
  1268. if (_4 != 0B)
  1269. goto <bb 22>; [53.47%]
  1270. else
  1271. goto <bb 23>; [46.53%]
  1272. <bb 22> [local count: 8104]:
  1273. # DEBUG BEGIN_STMT
  1274. _5 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToSend;
  1275. xTaskGenericNotify (_5, 0, 0, 0, 0B);
  1276. # DEBUG BEGIN_STMT
  1277. MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToSend ={v} 0B;
  1278. <bb 23> [local count: 15156]:
  1279. # DEBUG BEGIN_STMT
  1280. xTaskResumeAll ();
  1281. # DEBUG BEGIN_STMT
  1282. <bb 24> [local count: 139175]:
  1283. # xReceivedLength_6 = PHI <0(19), xReceivedLength_33(23), xReceivedLength_33(20)>
  1284. # DEBUG xReceivedLength => xReceivedLength_6
  1285. # DEBUG BEGIN_STMT
  1286. # DEBUG BEGIN_STMT
  1287. # DEBUG BEGIN_STMT
  1288. return xReceivedLength_6;
  1289. }
  1290. prvWriteMessageToBuffer (struct StreamBuffer_t * const pxStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, size_t xSpace, size_t xRequiredSpace)
  1291. {
  1292. size_t xHead;
  1293. size_t xNextHead;
  1294. unsigned char _1;
  1295. unsigned int xDataLengthBytes.2_2;
  1296. unsigned int _3;
  1297. unsigned int xDataLengthBytes.3_4;
  1298. unsigned int _5;
  1299. size_t _19;
  1300. unsigned char _22;
  1301. <bb 2> [local count: 1073741824]:
  1302. # DEBUG BEGIN_STMT
  1303. xNextHead_11 ={v} pxStreamBuffer_10(D)->xHead;
  1304. # DEBUG xNextHead => xNextHead_11
  1305. # DEBUG BEGIN_STMT
  1306. _1 = pxStreamBuffer_10(D)->ucFlags;
  1307. _22 = _1 & 1;
  1308. if (_22 != 0)
  1309. goto <bb 3>; [50.00%]
  1310. else
  1311. goto <bb 6>; [50.00%]
  1312. <bb 3> [local count: 536870913]:
  1313. # DEBUG BEGIN_STMT
  1314. if (xSpace_12(D) >= xRequiredSpace_14(D))
  1315. goto <bb 4>; [33.00%]
  1316. else
  1317. goto <bb 5>; [67.00%]
  1318. <bb 4> [local count: 177167401]:
  1319. # DEBUG BEGIN_STMT
  1320. # DEBUG pxStreamBuffer => pxStreamBuffer_10(D)
  1321. # DEBUG pucData => &xDataLengthBytes
  1322. # DEBUG xCount => 4
  1323. # DEBUG xHead => xNextHead_11
  1324. # DEBUG INLINE_ENTRY prvWriteBytesToBuffer
  1325. # DEBUG BEGIN_STMT
  1326. # DEBUG BEGIN_STMT
  1327. xHead_20 = prvWriteBytesToBuffer.part.0 (pxStreamBuffer_10(D), &xDataLengthBytes, 4, xNextHead_11);
  1328. # DEBUG xHead => xHead_20
  1329. # DEBUG BEGIN_STMT
  1330. # DEBUG BEGIN_STMT
  1331. # DEBUG pxStreamBuffer => NULL
  1332. # DEBUG pucData => NULL
  1333. # DEBUG xCount => NULL
  1334. # DEBUG xHead => NULL
  1335. # DEBUG ulNewBASEPRI => NULL
  1336. # DEBUG xNextHead => xHead_20
  1337. goto <bb 7>; [100.00%]
  1338. <bb 5> [local count: 359703511]:
  1339. # DEBUG BEGIN_STMT
  1340. xDataLengthBytes = 0;
  1341. goto <bb 7>; [100.00%]
  1342. <bb 6> [local count: 536870913]:
  1343. # DEBUG BEGIN_STMT
  1344. xDataLengthBytes.2_2 = xDataLengthBytes;
  1345. _3 = MIN_EXPR <xDataLengthBytes.2_2, xSpace_12(D)>;
  1346. xDataLengthBytes = _3;
  1347. <bb 7> [local count: 1073741824]:
  1348. # xNextHead_6 = PHI <xNextHead_11(5), xNextHead_11(6), xHead_20(4)>
  1349. # DEBUG xNextHead => xNextHead_6
  1350. # DEBUG BEGIN_STMT
  1351. xDataLengthBytes.3_4 = xDataLengthBytes;
  1352. if (xDataLengthBytes.3_4 != 0)
  1353. goto <bb 8>; [33.00%]
  1354. else
  1355. goto <bb 9>; [67.00%]
  1356. <bb 8> [local count: 354334802]:
  1357. # DEBUG BEGIN_STMT
  1358. _5 = prvWriteBytesToBuffer (pxStreamBuffer_10(D), pvTxData_16(D), xDataLengthBytes.3_4, xNextHead_6);
  1359. pxStreamBuffer_10(D)->xHead ={v} _5;
  1360. <bb 9> [local count: 1073741824]:
  1361. # DEBUG BEGIN_STMT
  1362. _19 = xDataLengthBytes;
  1363. return _19;
  1364. }
  1365. xStreamBufferSendFromISR (struct StreamBufferDef_t * xStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken)
  1366. {
  1367. uint32_t ulOriginalBASEPRI;
  1368. uint32_t ulNewBASEPRI;
  1369. uint32_t ulNewBASEPRI;
  1370. uint32_t ulNewBASEPRI;
  1371. size_t xRequiredSpace;
  1372. size_t xSpace;
  1373. size_t xReturn;
  1374. unsigned char _1;
  1375. unsigned int _2;
  1376. unsigned int _3;
  1377. struct tskTaskControlBlock * _4;
  1378. struct tskTaskControlBlock * _5;
  1379. unsigned char _10;
  1380. <bb 2> [local count: 357913]:
  1381. # DEBUG BEGIN_STMT
  1382. # DEBUG pxStreamBuffer => xStreamBuffer_9(D)
  1383. # DEBUG BEGIN_STMT
  1384. # DEBUG BEGIN_STMT
  1385. # DEBUG xRequiredSpace => xDataLengthBytes_11(D)
  1386. # DEBUG BEGIN_STMT
  1387. if (pvTxData_12(D) == 0B)
  1388. goto <bb 3>; [30.00%]
  1389. else
  1390. goto <bb 5>; [70.00%]
  1391. <bb 3> [local count: 107374]:
  1392. # DEBUG BEGIN_STMT
  1393. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1394. # DEBUG BEGIN_STMT
  1395. # DEBUG BEGIN_STMT
  1396. __asm__ __volatile__(" mov %0, %1
  1397. msr basepri, %0
  1398. isb
  1399. dsb
  1400. " : "=r" ulNewBASEPRI_23 : "i" 16 : "memory");
  1401. # DEBUG ulNewBASEPRI => ulNewBASEPRI_23
  1402. <bb 4> [local count: 1073741824]:
  1403. # DEBUG ulNewBASEPRI => NULL
  1404. # DEBUG BEGIN_STMT
  1405. # DEBUG BEGIN_STMT
  1406. # DEBUG BEGIN_STMT
  1407. <bb 16> [local count: 1073741824]:
  1408. goto <bb 4>; [100.00%]
  1409. <bb 5> [local count: 250539]:
  1410. # DEBUG BEGIN_STMT
  1411. # DEBUG BEGIN_STMT
  1412. if (xStreamBuffer_9(D) == 0B)
  1413. goto <bb 6>; [30.00%]
  1414. else
  1415. goto <bb 8>; [70.00%]
  1416. <bb 6> [local count: 75162]:
  1417. # DEBUG BEGIN_STMT
  1418. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1419. # DEBUG BEGIN_STMT
  1420. # DEBUG BEGIN_STMT
  1421. __asm__ __volatile__(" mov %0, %1
  1422. msr basepri, %0
  1423. isb
  1424. dsb
  1425. " : "=r" ulNewBASEPRI_24 : "i" 16 : "memory");
  1426. # DEBUG ulNewBASEPRI => ulNewBASEPRI_24
  1427. <bb 7> [local count: 751619279]:
  1428. # DEBUG ulNewBASEPRI => NULL
  1429. # DEBUG BEGIN_STMT
  1430. # DEBUG BEGIN_STMT
  1431. # DEBUG BEGIN_STMT
  1432. <bb 17> [local count: 751619279]:
  1433. goto <bb 7>; [100.00%]
  1434. <bb 8> [local count: 175378]:
  1435. # DEBUG BEGIN_STMT
  1436. # DEBUG BEGIN_STMT
  1437. _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].ucFlags;
  1438. _10 = _1 & 1;
  1439. if (_10 != 0)
  1440. goto <bb 9>; [50.00%]
  1441. else
  1442. goto <bb 10>; [50.00%]
  1443. <bb 9> [local count: 87689]:
  1444. # DEBUG BEGIN_STMT
  1445. xRequiredSpace_14 = xDataLengthBytes_11(D) + 4;
  1446. # DEBUG xRequiredSpace => xRequiredSpace_14
  1447. <bb 10> [local count: 175378]:
  1448. # xRequiredSpace_6 = PHI <xDataLengthBytes_11(D)(8), xRequiredSpace_14(9)>
  1449. # DEBUG xRequiredSpace => xRequiredSpace_6
  1450. # DEBUG BEGIN_STMT
  1451. # DEBUG BEGIN_STMT
  1452. xSpace_16 = xStreamBufferSpacesAvailable (xStreamBuffer_9(D));
  1453. # DEBUG xSpace => xSpace_16
  1454. # DEBUG BEGIN_STMT
  1455. xReturn_18 = prvWriteMessageToBuffer (xStreamBuffer_9(D), pvTxData_12(D), xDataLengthBytes_11(D), xSpace_16, xRequiredSpace_6);
  1456. # DEBUG xReturn => xReturn_18
  1457. # DEBUG BEGIN_STMT
  1458. if (xReturn_18 != 0)
  1459. goto <bb 11>; [33.00%]
  1460. else
  1461. goto <bb 15>; [67.00%]
  1462. <bb 11> [local count: 57875]:
  1463. # DEBUG BEGIN_STMT
  1464. _2 = prvBytesInBuffer (xStreamBuffer_9(D));
  1465. _3 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTriggerLevelBytes;
  1466. if (_2 >= _3)
  1467. goto <bb 12>; [50.00%]
  1468. else
  1469. goto <bb 15>; [50.00%]
  1470. <bb 12> [local count: 28937]:
  1471. # DEBUG BEGIN_STMT
  1472. # DEBUG BEGIN_STMT
  1473. # DEBUG INLINE_ENTRY ulPortRaiseBASEPRI
  1474. # DEBUG BEGIN_STMT
  1475. # DEBUG BEGIN_STMT
  1476. __asm__ __volatile__(" mrs %0, basepri
  1477. mov %1, %2
  1478. msr basepri, %1
  1479. isb
  1480. dsb
  1481. " : "=r" ulOriginalBASEPRI_25, "=r" ulNewBASEPRI_26 : "i" 16 : "memory");
  1482. # DEBUG ulNewBASEPRI => ulNewBASEPRI_26
  1483. # DEBUG ulOriginalBASEPRI => ulOriginalBASEPRI_25
  1484. # DEBUG BEGIN_STMT
  1485. # DEBUG ulNewBASEPRI => NULL
  1486. # DEBUG ulOriginalBASEPRI => NULL
  1487. # DEBUG uxSavedInterruptStatus => ulOriginalBASEPRI_25
  1488. # DEBUG BEGIN_STMT
  1489. _4 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToReceive;
  1490. if (_4 != 0B)
  1491. goto <bb 13>; [53.47%]
  1492. else
  1493. goto <bb 14>; [46.53%]
  1494. <bb 13> [local count: 15473]:
  1495. # DEBUG BEGIN_STMT
  1496. _5 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToReceive;
  1497. xTaskGenericNotifyFromISR (_5, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_20(D));
  1498. # DEBUG BEGIN_STMT
  1499. MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToReceive ={v} 0B;
  1500. <bb 14> [local count: 28937]:
  1501. # DEBUG BEGIN_STMT
  1502. # DEBUG ulNewMaskValue => ulOriginalBASEPRI_25
  1503. # DEBUG INLINE_ENTRY vPortSetBASEPRI
  1504. # DEBUG BEGIN_STMT
  1505. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulOriginalBASEPRI_25 : "memory");
  1506. <bb 15> [local count: 175378]:
  1507. # DEBUG ulNewMaskValue => NULL
  1508. # DEBUG BEGIN_STMT
  1509. # DEBUG BEGIN_STMT
  1510. # DEBUG BEGIN_STMT
  1511. return xReturn_18;
  1512. }
  1513. xStreamBufferSend (struct StreamBufferDef_t * xStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, TickType_t xTicksToWait)
  1514. {
  1515. uint32_t ulNewBASEPRI;
  1516. uint32_t ulNewBASEPRI;
  1517. uint32_t ulNewBASEPRI;
  1518. uint32_t ulNewBASEPRI;
  1519. size_t xMaxReportedSpace;
  1520. struct TimeOut_t xTimeOut;
  1521. size_t xRequiredSpace;
  1522. size_t xSpace;
  1523. size_t xReturn;
  1524. unsigned int _1;
  1525. unsigned char _2;
  1526. unsigned int _3;
  1527. long unsigned int xTicksToWait.0_4;
  1528. struct tskTaskControlBlock * _5;
  1529. struct tskTaskControlBlock * _6;
  1530. long unsigned int xTicksToWait.1_7;
  1531. long int _8;
  1532. unsigned int _9;
  1533. unsigned int _10;
  1534. struct tskTaskControlBlock * _11;
  1535. struct tskTaskControlBlock * _12;
  1536. unsigned char _23;
  1537. <bb 2> [local count: 357913]:
  1538. # DEBUG BEGIN_STMT
  1539. # DEBUG pxStreamBuffer => xStreamBuffer_22(D)
  1540. # DEBUG BEGIN_STMT
  1541. # DEBUG xSpace => 0
  1542. # DEBUG BEGIN_STMT
  1543. # DEBUG xRequiredSpace => xDataLengthBytes_25(D)
  1544. # DEBUG BEGIN_STMT
  1545. # DEBUG BEGIN_STMT
  1546. # DEBUG xMaxReportedSpace => 0
  1547. # DEBUG BEGIN_STMT
  1548. if (pvTxData_27(D) == 0B)
  1549. goto <bb 3>; [30.00%]
  1550. else
  1551. goto <bb 5>; [70.00%]
  1552. <bb 3> [local count: 107374]:
  1553. # DEBUG BEGIN_STMT
  1554. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1555. # DEBUG BEGIN_STMT
  1556. # DEBUG BEGIN_STMT
  1557. __asm__ __volatile__(" mov %0, %1
  1558. msr basepri, %0
  1559. isb
  1560. dsb
  1561. " : "=r" ulNewBASEPRI_54 : "i" 16 : "memory");
  1562. # DEBUG ulNewBASEPRI => ulNewBASEPRI_54
  1563. <bb 4> [local count: 1073741824]:
  1564. # DEBUG ulNewBASEPRI => NULL
  1565. # DEBUG BEGIN_STMT
  1566. # DEBUG BEGIN_STMT
  1567. # DEBUG BEGIN_STMT
  1568. <bb 31> [local count: 1073741824]:
  1569. goto <bb 4>; [100.00%]
  1570. <bb 5> [local count: 250539]:
  1571. # DEBUG BEGIN_STMT
  1572. # DEBUG BEGIN_STMT
  1573. if (xStreamBuffer_22(D) == 0B)
  1574. goto <bb 6>; [30.00%]
  1575. else
  1576. goto <bb 8>; [70.00%]
  1577. <bb 6> [local count: 75162]:
  1578. # DEBUG BEGIN_STMT
  1579. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1580. # DEBUG BEGIN_STMT
  1581. # DEBUG BEGIN_STMT
  1582. __asm__ __volatile__(" mov %0, %1
  1583. msr basepri, %0
  1584. isb
  1585. dsb
  1586. " : "=r" ulNewBASEPRI_55 : "i" 16 : "memory");
  1587. # DEBUG ulNewBASEPRI => ulNewBASEPRI_55
  1588. <bb 7> [local count: 751619279]:
  1589. # DEBUG ulNewBASEPRI => NULL
  1590. # DEBUG BEGIN_STMT
  1591. # DEBUG BEGIN_STMT
  1592. # DEBUG BEGIN_STMT
  1593. <bb 32> [local count: 751619279]:
  1594. goto <bb 7>; [100.00%]
  1595. <bb 8> [local count: 175378]:
  1596. # DEBUG BEGIN_STMT
  1597. # DEBUG BEGIN_STMT
  1598. _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xLength;
  1599. xMaxReportedSpace_29 = _1 + 4294967295;
  1600. # DEBUG xMaxReportedSpace => xMaxReportedSpace_29
  1601. # DEBUG BEGIN_STMT
  1602. _2 = MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].ucFlags;
  1603. _23 = _2 & 1;
  1604. if (_23 != 0)
  1605. goto <bb 9>; [50.00%]
  1606. else
  1607. goto <bb 14>; [50.00%]
  1608. <bb 9> [local count: 87689]:
  1609. # DEBUG BEGIN_STMT
  1610. xRequiredSpace_30 = xDataLengthBytes_25(D) + 4;
  1611. # DEBUG xRequiredSpace => xRequiredSpace_30
  1612. # DEBUG BEGIN_STMT
  1613. if (xDataLengthBytes_25(D) >= xRequiredSpace_30)
  1614. goto <bb 10>; [50.00%]
  1615. else
  1616. goto <bb 12>; [50.00%]
  1617. <bb 10> [local count: 43844]:
  1618. # DEBUG BEGIN_STMT
  1619. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1620. # DEBUG BEGIN_STMT
  1621. # DEBUG BEGIN_STMT
  1622. __asm__ __volatile__(" mov %0, %1
  1623. msr basepri, %0
  1624. isb
  1625. dsb
  1626. " : "=r" ulNewBASEPRI_56 : "i" 16 : "memory");
  1627. # DEBUG ulNewBASEPRI => ulNewBASEPRI_56
  1628. <bb 11> [local count: 438444579]:
  1629. # DEBUG ulNewBASEPRI => NULL
  1630. # DEBUG BEGIN_STMT
  1631. # DEBUG BEGIN_STMT
  1632. # DEBUG BEGIN_STMT
  1633. <bb 33> [local count: 438444579]:
  1634. goto <bb 11>; [100.00%]
  1635. <bb 12> [local count: 43844]:
  1636. # DEBUG BEGIN_STMT
  1637. # DEBUG BEGIN_STMT
  1638. if (xMaxReportedSpace_29 < xRequiredSpace_30)
  1639. goto <bb 13>; [50.00%]
  1640. else
  1641. goto <bb 15>; [50.00%]
  1642. <bb 13> [local count: 21922]:
  1643. # DEBUG BEGIN_STMT
  1644. xTicksToWait = 0;
  1645. goto <bb 15>; [100.00%]
  1646. <bb 14> [local count: 87689]:
  1647. # DEBUG BEGIN_STMT
  1648. _3 = MIN_EXPR <xMaxReportedSpace_29, xDataLengthBytes_25(D)>;
  1649. <bb 15> [local count: 131533]:
  1650. # xRequiredSpace_15 = PHI <xRequiredSpace_30(13), _3(14), xRequiredSpace_30(12)>
  1651. # DEBUG xRequiredSpace => xRequiredSpace_15
  1652. # DEBUG BEGIN_STMT
  1653. # DEBUG BEGIN_STMT
  1654. xTicksToWait.0_4 = xTicksToWait;
  1655. if (xTicksToWait.0_4 != 0)
  1656. goto <bb 16>; [50.00%]
  1657. else
  1658. goto <bb 24>; [50.00%]
  1659. <bb 16> [local count: 65767]:
  1660. # DEBUG BEGIN_STMT
  1661. vTaskSetTimeOutState (&xTimeOut);
  1662. <bb 17> [local count: 621434]:
  1663. # DEBUG BEGIN_STMT
  1664. # DEBUG BEGIN_STMT
  1665. vPortEnterCritical ();
  1666. # DEBUG BEGIN_STMT
  1667. xSpace_35 = xStreamBufferSpacesAvailable (xStreamBuffer_22(D));
  1668. # DEBUG xSpace => xSpace_35
  1669. # DEBUG BEGIN_STMT
  1670. if (xRequiredSpace_15 > xSpace_35)
  1671. goto <bb 18>; [96.34%]
  1672. else
  1673. goto <bb 22>; [3.66%]
  1674. <bb 18> [local count: 598690]:
  1675. # DEBUG BEGIN_STMT
  1676. xTaskGenericNotifyStateClear (0B, 0);
  1677. # DEBUG BEGIN_STMT
  1678. _5 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToSend;
  1679. if (_5 != 0B)
  1680. goto <bb 19>; [3.66%]
  1681. else
  1682. goto <bb 21>; [96.34%]
  1683. <bb 19> [local count: 21912]:
  1684. # DEBUG BEGIN_STMT
  1685. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1686. # DEBUG BEGIN_STMT
  1687. # DEBUG BEGIN_STMT
  1688. __asm__ __volatile__(" mov %0, %1
  1689. msr basepri, %0
  1690. isb
  1691. dsb
  1692. " : "=r" ulNewBASEPRI_57 : "i" 16 : "memory");
  1693. # DEBUG ulNewBASEPRI => ulNewBASEPRI_57
  1694. <bb 20> [local count: 219120732]:
  1695. # DEBUG ulNewBASEPRI => NULL
  1696. # DEBUG BEGIN_STMT
  1697. # DEBUG BEGIN_STMT
  1698. # DEBUG BEGIN_STMT
  1699. <bb 34> [local count: 219120732]:
  1700. goto <bb 20>; [100.00%]
  1701. <bb 21> [local count: 576777]:
  1702. # DEBUG BEGIN_STMT
  1703. # DEBUG BEGIN_STMT
  1704. _6 = xTaskGetCurrentTaskHandle ();
  1705. MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToSend ={v} _6;
  1706. # DEBUG BEGIN_STMT
  1707. vPortExitCritical ();
  1708. # DEBUG BEGIN_STMT
  1709. # DEBUG BEGIN_STMT
  1710. xTicksToWait.1_7 = xTicksToWait;
  1711. xTaskGenericNotifyWait (0, 0, 0, 0B, xTicksToWait.1_7);
  1712. # DEBUG BEGIN_STMT
  1713. MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToSend ={v} 0B;
  1714. # DEBUG BEGIN_STMT
  1715. _8 = xTaskCheckForTimeOut (&xTimeOut, &xTicksToWait);
  1716. if (_8 == 0)
  1717. goto <bb 35>; [96.34%]
  1718. else
  1719. goto <bb 23>; [3.66%]
  1720. <bb 35> [local count: 555667]:
  1721. goto <bb 17>; [100.00%]
  1722. <bb 22> [local count: 22744]:
  1723. # xSpace_24 = PHI <xSpace_35(17)>
  1724. # DEBUG BEGIN_STMT
  1725. vPortExitCritical ();
  1726. # DEBUG BEGIN_STMT
  1727. <bb 23> [local count: 43855]:
  1728. # xSpace_13 = PHI <xSpace_24(22), xSpace_35(21)>
  1729. # DEBUG xSpace => xSpace_13
  1730. # DEBUG BEGIN_STMT
  1731. # DEBUG BEGIN_STMT
  1732. if (xSpace_13 == 0)
  1733. goto <bb 24>; [50.00%]
  1734. else
  1735. goto <bb 25>; [50.00%]
  1736. <bb 24> [local count: 87694]:
  1737. # DEBUG xSpace => NULL
  1738. # DEBUG BEGIN_STMT
  1739. xSpace_45 = xStreamBufferSpacesAvailable (xStreamBuffer_22(D));
  1740. # DEBUG xSpace => xSpace_45
  1741. <bb 25> [local count: 109621]:
  1742. # xSpace_14 = PHI <xSpace_13(23), xSpace_45(24)>
  1743. # DEBUG xSpace => xSpace_14
  1744. # DEBUG BEGIN_STMT
  1745. # DEBUG BEGIN_STMT
  1746. xReturn_47 = prvWriteMessageToBuffer (xStreamBuffer_22(D), pvTxData_27(D), xDataLengthBytes_25(D), xSpace_14, xRequiredSpace_15);
  1747. # DEBUG xReturn => xReturn_47
  1748. # DEBUG BEGIN_STMT
  1749. if (xReturn_47 != 0)
  1750. goto <bb 26>; [33.00%]
  1751. else
  1752. goto <bb 30>; [67.00%]
  1753. <bb 26> [local count: 36175]:
  1754. # DEBUG BEGIN_STMT
  1755. # DEBUG BEGIN_STMT
  1756. _9 = prvBytesInBuffer (xStreamBuffer_22(D));
  1757. _10 = MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTriggerLevelBytes;
  1758. if (_9 >= _10)
  1759. goto <bb 27>; [33.00%]
  1760. else
  1761. goto <bb 30>; [67.00%]
  1762. <bb 27> [local count: 11938]:
  1763. # DEBUG BEGIN_STMT
  1764. vTaskSuspendAll ();
  1765. # DEBUG BEGIN_STMT
  1766. _11 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToReceive;
  1767. if (_11 != 0B)
  1768. goto <bb 28>; [53.47%]
  1769. else
  1770. goto <bb 29>; [46.53%]
  1771. <bb 28> [local count: 6383]:
  1772. # DEBUG BEGIN_STMT
  1773. _12 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToReceive;
  1774. xTaskGenericNotify (_12, 0, 0, 0, 0B);
  1775. # DEBUG BEGIN_STMT
  1776. MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToReceive ={v} 0B;
  1777. <bb 29> [local count: 11938]:
  1778. # DEBUG BEGIN_STMT
  1779. xTaskResumeAll ();
  1780. # DEBUG BEGIN_STMT
  1781. <bb 30> [local count: 109621]:
  1782. # DEBUG BEGIN_STMT
  1783. # DEBUG BEGIN_STMT
  1784. # DEBUG BEGIN_STMT
  1785. xTimeOut ={v} {CLOBBER};
  1786. return xReturn_47;
  1787. }
  1788. xStreamBufferBytesAvailable (struct StreamBufferDef_t * xStreamBuffer)
  1789. {
  1790. uint32_t ulNewBASEPRI;
  1791. size_t xReturn;
  1792. <bb 2> [local count: 230763]:
  1793. # DEBUG BEGIN_STMT
  1794. # DEBUG pxStreamBuffer => xStreamBuffer_1(D)
  1795. # DEBUG BEGIN_STMT
  1796. # DEBUG BEGIN_STMT
  1797. if (xStreamBuffer_1(D) == 0B)
  1798. goto <bb 3>; [46.53%]
  1799. else
  1800. goto <bb 5>; [53.47%]
  1801. <bb 3> [local count: 107374]:
  1802. # DEBUG BEGIN_STMT
  1803. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1804. # DEBUG BEGIN_STMT
  1805. # DEBUG BEGIN_STMT
  1806. __asm__ __volatile__(" mov %0, %1
  1807. msr basepri, %0
  1808. isb
  1809. dsb
  1810. " : "=r" ulNewBASEPRI_5 : "i" 16 : "memory");
  1811. # DEBUG ulNewBASEPRI => ulNewBASEPRI_5
  1812. <bb 4> [local count: 1073741824]:
  1813. # DEBUG ulNewBASEPRI => NULL
  1814. # DEBUG BEGIN_STMT
  1815. # DEBUG BEGIN_STMT
  1816. # DEBUG BEGIN_STMT
  1817. <bb 6> [local count: 1073741824]:
  1818. goto <bb 4>; [100.00%]
  1819. <bb 5> [local count: 123389]:
  1820. # DEBUG BEGIN_STMT
  1821. # DEBUG BEGIN_STMT
  1822. xReturn_4 = prvBytesInBuffer (xStreamBuffer_1(D));
  1823. # DEBUG xReturn => xReturn_4
  1824. # DEBUG BEGIN_STMT
  1825. return xReturn_4;
  1826. }
  1827. xStreamBufferSpacesAvailable (struct StreamBufferDef_t * xStreamBuffer)
  1828. {
  1829. size_t xOriginalTail;
  1830. size_t xSpace;
  1831. unsigned int _1;
  1832. unsigned int _2;
  1833. unsigned int _3;
  1834. unsigned int _4;
  1835. unsigned int _12;
  1836. <bb 2> [local count: 357913]:
  1837. # DEBUG BEGIN_STMT
  1838. # DEBUG pxStreamBuffer => xStreamBuffer_7(D)
  1839. # DEBUG BEGIN_STMT
  1840. # DEBUG BEGIN_STMT
  1841. # DEBUG BEGIN_STMT
  1842. if (xStreamBuffer_7(D) == 0B)
  1843. goto <bb 3>; [30.00%]
  1844. else
  1845. goto <bb 8>; [70.00%]
  1846. <bb 3> [local count: 107374]:
  1847. # DEBUG D#1 => xStreamBuffer_7(D)
  1848. xStreamBufferSpacesAvailable.part.0 ();
  1849. <bb 8> [local count: 250539]:
  1850. <bb 4> [local count: 2277630]:
  1851. # DEBUG BEGIN_STMT
  1852. # DEBUG BEGIN_STMT
  1853. # DEBUG BEGIN_STMT
  1854. xOriginalTail_10 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xTail;
  1855. # DEBUG xOriginalTail => xOriginalTail_10
  1856. # DEBUG BEGIN_STMT
  1857. _1 = MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xLength;
  1858. _2 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xTail;
  1859. xSpace_11 = _1 + _2;
  1860. # DEBUG xSpace => xSpace_11
  1861. # DEBUG BEGIN_STMT
  1862. _12 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xHead;
  1863. xSpace_13 = xSpace_11 - _12;
  1864. # DEBUG xSpace => xSpace_13
  1865. # DEBUG BEGIN_STMT
  1866. _3 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xTail;
  1867. if (_3 != xOriginalTail_10)
  1868. goto <bb 9>; [89.00%]
  1869. else
  1870. goto <bb 5>; [11.00%]
  1871. <bb 9> [local count: 2027091]:
  1872. goto <bb 4>; [100.00%]
  1873. <bb 5> [local count: 250539]:
  1874. # _4 = PHI <_1(4)>
  1875. # xSpace_5 = PHI <xSpace_13(4)>
  1876. # DEBUG BEGIN_STMT
  1877. xSpace_14 = xSpace_5 + 4294967295;
  1878. # DEBUG xSpace => xSpace_14
  1879. # DEBUG BEGIN_STMT
  1880. if (_4 <= xSpace_14)
  1881. goto <bb 6>; [50.00%]
  1882. else
  1883. goto <bb 7>; [50.00%]
  1884. <bb 6> [local count: 125270]:
  1885. # DEBUG BEGIN_STMT
  1886. xSpace_15 = xSpace_14 - _4;
  1887. # DEBUG xSpace => xSpace_15
  1888. <bb 7> [local count: 250539]:
  1889. # xSpace_6 = PHI <xSpace_14(5), xSpace_15(6)>
  1890. # DEBUG xSpace => xSpace_6
  1891. # DEBUG BEGIN_STMT
  1892. # DEBUG BEGIN_STMT
  1893. return xSpace_6;
  1894. }
  1895. xStreamBufferSetTriggerLevel (struct StreamBufferDef_t * xStreamBuffer, size_t xTriggerLevel)
  1896. {
  1897. uint32_t ulNewBASEPRI;
  1898. BaseType_t xReturn;
  1899. unsigned int _1;
  1900. <bb 2> [local count: 357913]:
  1901. # DEBUG BEGIN_STMT
  1902. # DEBUG pxStreamBuffer => xStreamBuffer_4(D)
  1903. # DEBUG BEGIN_STMT
  1904. # DEBUG BEGIN_STMT
  1905. if (xStreamBuffer_4(D) == 0B)
  1906. goto <bb 3>; [30.00%]
  1907. else
  1908. goto <bb 5>; [70.00%]
  1909. <bb 3> [local count: 107374]:
  1910. # DEBUG BEGIN_STMT
  1911. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1912. # DEBUG BEGIN_STMT
  1913. # DEBUG BEGIN_STMT
  1914. __asm__ __volatile__(" mov %0, %1
  1915. msr basepri, %0
  1916. isb
  1917. dsb
  1918. " : "=r" ulNewBASEPRI_9 : "i" 16 : "memory");
  1919. # DEBUG ulNewBASEPRI => ulNewBASEPRI_9
  1920. <bb 4> [local count: 1073741824]:
  1921. # DEBUG ulNewBASEPRI => NULL
  1922. # DEBUG BEGIN_STMT
  1923. # DEBUG BEGIN_STMT
  1924. # DEBUG BEGIN_STMT
  1925. <bb 8> [local count: 1073741824]:
  1926. goto <bb 4>; [100.00%]
  1927. <bb 5> [local count: 250539]:
  1928. # DEBUG BEGIN_STMT
  1929. # DEBUG BEGIN_STMT
  1930. xTriggerLevel_8 = MAX_EXPR <1, xTriggerLevel_5(D)>;
  1931. # DEBUG xTriggerLevel => xTriggerLevel_8
  1932. # DEBUG BEGIN_STMT
  1933. _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_4(D)].xLength;
  1934. if (_1 > xTriggerLevel_8)
  1935. goto <bb 6>; [50.00%]
  1936. else
  1937. goto <bb 7>; [50.00%]
  1938. <bb 6> [local count: 125270]:
  1939. # DEBUG BEGIN_STMT
  1940. MEM[(struct StreamBuffer_t *)xStreamBuffer_4(D)].xTriggerLevelBytes = xTriggerLevel_8;
  1941. # DEBUG BEGIN_STMT
  1942. # DEBUG xReturn => 1
  1943. <bb 7> [local count: 250539]:
  1944. # xReturn_2 = PHI <1(6), 0(5)>
  1945. # DEBUG xReturn => xReturn_2
  1946. # DEBUG BEGIN_STMT
  1947. return xReturn_2;
  1948. }
  1949. xStreamBufferReset (struct StreamBufferDef_t * xStreamBuffer)
  1950. {
  1951. uint32_t ulNewBASEPRI;
  1952. UBaseType_t uxStreamBufferNumber;
  1953. BaseType_t xReturn;
  1954. struct tskTaskControlBlock * _1;
  1955. struct tskTaskControlBlock * _2;
  1956. uint8_t * _3;
  1957. unsigned int _4;
  1958. unsigned int _5;
  1959. unsigned char _6;
  1960. <bb 2> [local count: 230763]:
  1961. # DEBUG BEGIN_STMT
  1962. # DEBUG pxStreamBuffer => xStreamBuffer_9(D)
  1963. # DEBUG BEGIN_STMT
  1964. # DEBUG xReturn => 0
  1965. # DEBUG BEGIN_STMT
  1966. # DEBUG BEGIN_STMT
  1967. if (xStreamBuffer_9(D) == 0B)
  1968. goto <bb 3>; [46.53%]
  1969. else
  1970. goto <bb 5>; [53.47%]
  1971. <bb 3> [local count: 107374]:
  1972. # DEBUG BEGIN_STMT
  1973. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1974. # DEBUG BEGIN_STMT
  1975. # DEBUG BEGIN_STMT
  1976. __asm__ __volatile__(" mov %0, %1
  1977. msr basepri, %0
  1978. isb
  1979. dsb
  1980. " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
  1981. # DEBUG ulNewBASEPRI => ulNewBASEPRI_16
  1982. <bb 4> [local count: 1073741824]:
  1983. # DEBUG ulNewBASEPRI => NULL
  1984. # DEBUG BEGIN_STMT
  1985. # DEBUG BEGIN_STMT
  1986. # DEBUG BEGIN_STMT
  1987. <bb 9> [local count: 1073741824]:
  1988. goto <bb 4>; [100.00%]
  1989. <bb 5> [local count: 123389]:
  1990. # DEBUG BEGIN_STMT
  1991. # DEBUG BEGIN_STMT
  1992. uxStreamBufferNumber_11 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].uxStreamBufferNumber;
  1993. # DEBUG uxStreamBufferNumber => uxStreamBufferNumber_11
  1994. # DEBUG BEGIN_STMT
  1995. vPortEnterCritical ();
  1996. # DEBUG BEGIN_STMT
  1997. _1 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToReceive;
  1998. if (_1 == 0B)
  1999. goto <bb 6>; [30.00%]
  2000. else
  2001. goto <bb 8>; [70.00%]
  2002. <bb 6> [local count: 37017]:
  2003. # DEBUG BEGIN_STMT
  2004. _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToSend;
  2005. if (_2 == 0B)
  2006. goto <bb 7>; [17.43%]
  2007. else
  2008. goto <bb 8>; [82.57%]
  2009. <bb 7> [local count: 6452]:
  2010. # DEBUG BEGIN_STMT
  2011. _3 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].pucBuffer;
  2012. _4 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xLength;
  2013. _5 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTriggerLevelBytes;
  2014. _6 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].ucFlags;
  2015. prvInitialiseNewStreamBuffer (xStreamBuffer_9(D), _3, _4, _5, _6);
  2016. # DEBUG BEGIN_STMT
  2017. # DEBUG xReturn => 1
  2018. # DEBUG BEGIN_STMT
  2019. MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].uxStreamBufferNumber = uxStreamBufferNumber_11;
  2020. <bb 8> [local count: 123389]:
  2021. # xReturn_7 = PHI <0(5), 0(6), 1(7)>
  2022. # DEBUG xReturn => xReturn_7
  2023. # DEBUG BEGIN_STMT
  2024. # DEBUG BEGIN_STMT
  2025. vPortExitCritical ();
  2026. # DEBUG BEGIN_STMT
  2027. return xReturn_7;
  2028. }
  2029. vStreamBufferDelete (struct StreamBufferDef_t * xStreamBuffer)
  2030. {
  2031. uint32_t ulNewBASEPRI;
  2032. unsigned char _1;
  2033. unsigned char _4;
  2034. <bb 2> [local count: 357913]:
  2035. # DEBUG BEGIN_STMT
  2036. # DEBUG pxStreamBuffer => xStreamBuffer_3(D)
  2037. # DEBUG BEGIN_STMT
  2038. if (xStreamBuffer_3(D) == 0B)
  2039. goto <bb 3>; [30.00%]
  2040. else
  2041. goto <bb 5>; [70.00%]
  2042. <bb 3> [local count: 107374]:
  2043. # DEBUG BEGIN_STMT
  2044. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  2045. # DEBUG BEGIN_STMT
  2046. # DEBUG BEGIN_STMT
  2047. __asm__ __volatile__(" mov %0, %1
  2048. msr basepri, %0
  2049. isb
  2050. dsb
  2051. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  2052. # DEBUG ulNewBASEPRI => ulNewBASEPRI_8
  2053. <bb 4> [local count: 1073741824]:
  2054. # DEBUG ulNewBASEPRI => NULL
  2055. # DEBUG BEGIN_STMT
  2056. # DEBUG BEGIN_STMT
  2057. # DEBUG BEGIN_STMT
  2058. <bb 9> [local count: 1073741824]:
  2059. goto <bb 4>; [100.00%]
  2060. <bb 5> [local count: 250539]:
  2061. # DEBUG BEGIN_STMT
  2062. # DEBUG BEGIN_STMT
  2063. # DEBUG BEGIN_STMT
  2064. _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_3(D)].ucFlags;
  2065. _4 = _1 & 2;
  2066. if (_4 == 0)
  2067. goto <bb 6>; [50.00%]
  2068. else
  2069. goto <bb 7>; [50.00%]
  2070. <bb 6> [local count: 125270]:
  2071. # DEBUG BEGIN_STMT
  2072. vPortFree (xStreamBuffer_3(D));
  2073. goto <bb 8>; [100.00%]
  2074. <bb 7> [local count: 125270]:
  2075. # DEBUG BEGIN_STMT
  2076. memset (xStreamBuffer_3(D), 0, 36);
  2077. <bb 8> [local count: 250539]:
  2078. return;
  2079. }
  2080. xStreamBufferGenericCreate (size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer)
  2081. {
  2082. uint32_t ulNewBASEPRI;
  2083. uint32_t ulNewBASEPRI;
  2084. uint32_t ulNewBASEPRI;
  2085. uint8_t ucFlags;
  2086. uint8_t * pucAllocatedMemory;
  2087. unsigned int _1;
  2088. uint8_t * _2;
  2089. <bb 2> [local count: 325376]:
  2090. # DEBUG BEGIN_STMT
  2091. # DEBUG BEGIN_STMT
  2092. # DEBUG BEGIN_STMT
  2093. if (xIsMessageBuffer_5(D) == 1)
  2094. goto <bb 3>; [34.00%]
  2095. else
  2096. goto <bb 6>; [66.00%]
  2097. <bb 3> [local count: 110628]:
  2098. # DEBUG BEGIN_STMT
  2099. # DEBUG ucFlags => 1
  2100. # DEBUG BEGIN_STMT
  2101. if (xBufferSizeBytes_6(D) <= 4)
  2102. goto <bb 4>; [50.00%]
  2103. else
  2104. goto <bb 9>; [50.00%]
  2105. <bb 4> [local count: 55314]:
  2106. # DEBUG BEGIN_STMT
  2107. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  2108. # DEBUG BEGIN_STMT
  2109. # DEBUG BEGIN_STMT
  2110. __asm__ __volatile__(" mov %0, %1
  2111. msr basepri, %0
  2112. isb
  2113. dsb
  2114. " : "=r" ulNewBASEPRI_15 : "i" 16 : "memory");
  2115. # DEBUG ulNewBASEPRI => ulNewBASEPRI_15
  2116. <bb 5> [local count: 553139728]:
  2117. # DEBUG ulNewBASEPRI => NULL
  2118. # DEBUG BEGIN_STMT
  2119. # DEBUG BEGIN_STMT
  2120. # DEBUG BEGIN_STMT
  2121. <bb 16> [local count: 553139728]:
  2122. goto <bb 5>; [100.00%]
  2123. <bb 6> [local count: 214748]:
  2124. # DEBUG BEGIN_STMT
  2125. # DEBUG ucFlags => 0
  2126. # DEBUG BEGIN_STMT
  2127. if (xBufferSizeBytes_6(D) == 0)
  2128. goto <bb 7>; [50.00%]
  2129. else
  2130. goto <bb 9>; [50.00%]
  2131. <bb 7> [local count: 107374]:
  2132. # DEBUG BEGIN_STMT
  2133. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  2134. # DEBUG BEGIN_STMT
  2135. # DEBUG BEGIN_STMT
  2136. __asm__ __volatile__(" mov %0, %1
  2137. msr basepri, %0
  2138. isb
  2139. dsb
  2140. " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
  2141. # DEBUG ulNewBASEPRI => ulNewBASEPRI_16
  2142. <bb 8> [local count: 1073741824]:
  2143. # DEBUG ulNewBASEPRI => NULL
  2144. # DEBUG BEGIN_STMT
  2145. # DEBUG BEGIN_STMT
  2146. # DEBUG BEGIN_STMT
  2147. <bb 18> [local count: 1073741824]:
  2148. goto <bb 8>; [100.00%]
  2149. <bb 9> [local count: 162688]:
  2150. # ucFlags_3 = PHI <1(3), 0(6)>
  2151. # DEBUG ucFlags => ucFlags_3
  2152. # DEBUG BEGIN_STMT
  2153. # DEBUG BEGIN_STMT
  2154. if (xBufferSizeBytes_6(D) < xTriggerLevelBytes_8(D))
  2155. goto <bb 10>; [50.00%]
  2156. else
  2157. goto <bb 12>; [50.00%]
  2158. <bb 10> [local count: 81344]:
  2159. # DEBUG BEGIN_STMT
  2160. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  2161. # DEBUG BEGIN_STMT
  2162. # DEBUG BEGIN_STMT
  2163. __asm__ __volatile__(" mov %0, %1
  2164. msr basepri, %0
  2165. isb
  2166. dsb
  2167. " : "=r" ulNewBASEPRI_17 : "i" 16 : "memory");
  2168. # DEBUG ulNewBASEPRI => ulNewBASEPRI_17
  2169. <bb 11> [local count: 813440776]:
  2170. # DEBUG ulNewBASEPRI => NULL
  2171. # DEBUG BEGIN_STMT
  2172. # DEBUG BEGIN_STMT
  2173. # DEBUG BEGIN_STMT
  2174. <bb 17> [local count: 813440776]:
  2175. goto <bb 11>; [100.00%]
  2176. <bb 12> [local count: 81344]:
  2177. # DEBUG BEGIN_STMT
  2178. # DEBUG BEGIN_STMT
  2179. xTriggerLevelBytes_9 = MAX_EXPR <1, xTriggerLevelBytes_8(D)>;
  2180. # DEBUG xTriggerLevelBytes => xTriggerLevelBytes_9
  2181. # DEBUG BEGIN_STMT
  2182. if (xBufferSizeBytes_6(D) <= 4294967258)
  2183. goto <bb 13>; [54.67%]
  2184. else
  2185. goto <bb 15>; [45.33%]
  2186. <bb 13> [local count: 44471]:
  2187. # DEBUG BEGIN_STMT
  2188. xBufferSizeBytes_11 = xBufferSizeBytes_6(D) + 1;
  2189. # DEBUG xBufferSizeBytes => xBufferSizeBytes_11
  2190. # DEBUG BEGIN_STMT
  2191. _1 = xBufferSizeBytes_6(D) + 37;
  2192. pucAllocatedMemory_13 = pvPortMalloc (_1);
  2193. # DEBUG pucAllocatedMemory => pucAllocatedMemory_13
  2194. # DEBUG xBufferSizeBytes => xBufferSizeBytes_11
  2195. # DEBUG BEGIN_STMT
  2196. if (pucAllocatedMemory_13 != 0B)
  2197. goto <bb 14>; [53.47%]
  2198. else
  2199. goto <bb 15>; [46.53%]
  2200. <bb 14> [local count: 23779]:
  2201. # DEBUG BEGIN_STMT
  2202. _2 = pucAllocatedMemory_13 + 36;
  2203. prvInitialiseNewStreamBuffer (pucAllocatedMemory_13, _2, xBufferSizeBytes_11, xTriggerLevelBytes_9, ucFlags_3);
  2204. # DEBUG BEGIN_STMT
  2205. <bb 15> [local count: 81344]:
  2206. # pucAllocatedMemory_10 = PHI <pucAllocatedMemory_13(13), pucAllocatedMemory_13(14), 0B(12)>
  2207. # DEBUG pucAllocatedMemory => NULL
  2208. # DEBUG xBufferSizeBytes => NULL
  2209. # DEBUG BEGIN_STMT
  2210. # DEBUG BEGIN_STMT
  2211. return pucAllocatedMemory_10;
  2212. }