stream_buffer.c.071i.devirt 84 KB

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