stream_buffer.c.048i.remove_symbols 83 KB

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