stream_buffer.c.068i.whole-program 84 KB

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