stream_buffer.c.076i.inline 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445
  1. IPA summary for ucStreamBufferGetStreamBufferType/27 is missing.
  2. IPA summary for vStreamBufferSetStreamBufferNumber/26 is missing.
  3. IPA summary for uxStreamBufferGetStreamBufferNumber/25 is missing.
  4. IPA summary for prvInitialiseNewStreamBuffer/24 is missing.
  5. IPA summary for prvBytesInBuffer/23 is missing.
  6. IPA summary for prvReadBytesFromBuffer/22 is missing.
  7. IPA summary for prvWriteBytesToBuffer/21 is missing.
  8. IPA summary for xStreamBufferReceiveCompletedFromISR/20 is missing.
  9. IPA summary for xStreamBufferSendCompletedFromISR/19 is missing.
  10. IPA summary for xStreamBufferIsFull/18 is missing.
  11. IPA summary for xStreamBufferIsEmpty/17 is missing.
  12. IPA summary for prvReadMessageFromBuffer/16 is missing.
  13. IPA summary for xStreamBufferReceiveFromISR/15 is missing.
  14. IPA summary for xStreamBufferNextMessageLengthBytes/14 is missing.
  15. IPA summary for xStreamBufferReceive/13 is missing.
  16. IPA summary for prvWriteMessageToBuffer/12 is missing.
  17. IPA summary for xStreamBufferSendFromISR/11 is missing.
  18. IPA summary for xStreamBufferSend/10 is missing.
  19. IPA summary for xStreamBufferBytesAvailable/9 is missing.
  20. IPA summary for xStreamBufferSpacesAvailable/8 is missing.
  21. IPA summary for xStreamBufferSetTriggerLevel/7 is missing.
  22. IPA summary for xStreamBufferReset/6 is missing.
  23. IPA summary for vStreamBufferDelete/5 is missing.
  24. IPA summary for xStreamBufferGenericCreate/4 is missing.
  25. Flattening functions:
  26. Overall time estimate: 0.000000 weighted by profile: 0.000000
  27. Deciding on inlining of small functions. Starting with size 0.
  28. Reclaiming functions:
  29. Reclaiming variables:
  30. Clearing address taken flags:
  31. Deciding on functions to be inlined into all callers and removing useless speculations:
  32. Overall time estimate: 0.000000 weighted by profile: 0.000000
  33. Why inlining failed?
  34. function not considered for inlining : 23 calls, 23.000000 freq, 0 count
  35. function body not available : 34 calls, 34.000000 freq, 0 count
  36. IPA summary for ucStreamBufferGetStreamBufferType/27 is missing.
  37. IPA summary for vStreamBufferSetStreamBufferNumber/26 is missing.
  38. IPA summary for uxStreamBufferGetStreamBufferNumber/25 is missing.
  39. IPA summary for prvInitialiseNewStreamBuffer/24 is missing.
  40. IPA summary for prvBytesInBuffer/23 is missing.
  41. IPA summary for prvReadBytesFromBuffer/22 is missing.
  42. IPA summary for prvWriteBytesToBuffer/21 is missing.
  43. IPA summary for xStreamBufferReceiveCompletedFromISR/20 is missing.
  44. IPA summary for xStreamBufferSendCompletedFromISR/19 is missing.
  45. IPA summary for xStreamBufferIsFull/18 is missing.
  46. IPA summary for xStreamBufferIsEmpty/17 is missing.
  47. IPA summary for prvReadMessageFromBuffer/16 is missing.
  48. IPA summary for xStreamBufferReceiveFromISR/15 is missing.
  49. IPA summary for xStreamBufferNextMessageLengthBytes/14 is missing.
  50. IPA summary for xStreamBufferReceive/13 is missing.
  51. IPA summary for prvWriteMessageToBuffer/12 is missing.
  52. IPA summary for xStreamBufferSendFromISR/11 is missing.
  53. IPA summary for xStreamBufferSend/10 is missing.
  54. IPA summary for xStreamBufferBytesAvailable/9 is missing.
  55. IPA summary for xStreamBufferSpacesAvailable/8 is missing.
  56. IPA summary for xStreamBufferSetTriggerLevel/7 is missing.
  57. IPA summary for xStreamBufferReset/6 is missing.
  58. IPA summary for vStreamBufferDelete/5 is missing.
  59. IPA summary for xStreamBufferGenericCreate/4 is missing.
  60. Symbol table:
  61. memcpy/42 (memcpy) @06cfba80
  62. Type: function
  63. Visibility: external public
  64. References:
  65. Referring:
  66. Availability: not_available
  67. Function flags:
  68. Called by: prvReadBytesFromBuffer/22 prvReadBytesFromBuffer/22 prvWriteBytesToBuffer/21 prvWriteBytesToBuffer/21
  69. Calls:
  70. xTaskGenericNotifyFromISR/41 (xTaskGenericNotifyFromISR) @06ccad20
  71. Type: function
  72. Visibility: external public
  73. References:
  74. Referring:
  75. Availability: not_available
  76. Function flags:
  77. Called by: xStreamBufferReceiveFromISR/15 xStreamBufferSendFromISR/11 xStreamBufferReceiveCompletedFromISR/20 xStreamBufferSendCompletedFromISR/19
  78. Calls:
  79. xTaskResumeAll/40 (xTaskResumeAll) @06ccab60
  80. Type: function
  81. Visibility: external public
  82. References:
  83. Referring:
  84. Availability: not_available
  85. Function flags:
  86. Called by: xStreamBufferReceive/13 xStreamBufferSend/10
  87. Calls:
  88. xTaskGenericNotify/39 (xTaskGenericNotify) @06ccaa80
  89. Type: function
  90. Visibility: external public
  91. References:
  92. Referring:
  93. Availability: not_available
  94. Function flags:
  95. Called by: xStreamBufferReceive/13 xStreamBufferSend/10
  96. Calls:
  97. vTaskSuspendAll/38 (vTaskSuspendAll) @06cca9a0
  98. Type: function
  99. Visibility: external public
  100. References:
  101. Referring:
  102. Availability: not_available
  103. Function flags:
  104. Called by: xStreamBufferReceive/13 xStreamBufferSend/10
  105. Calls:
  106. xTaskCheckForTimeOut/37 (xTaskCheckForTimeOut) @06cca8c0
  107. Type: function
  108. Visibility: external public
  109. References:
  110. Referring:
  111. Availability: not_available
  112. Function flags:
  113. Called by: xStreamBufferSend/10
  114. Calls:
  115. xTaskGenericNotifyWait/36 (xTaskGenericNotifyWait) @06cca7e0
  116. Type: function
  117. Visibility: external public
  118. References:
  119. Referring:
  120. Availability: not_available
  121. Function flags:
  122. Called by: xStreamBufferReceive/13 xStreamBufferSend/10
  123. Calls:
  124. xTaskGetCurrentTaskHandle/35 (xTaskGetCurrentTaskHandle) @06cca700
  125. Type: function
  126. Visibility: external public
  127. References:
  128. Referring:
  129. Availability: not_available
  130. Function flags:
  131. Called by: xStreamBufferReceive/13 xStreamBufferSend/10
  132. Calls:
  133. xTaskGenericNotifyStateClear/34 (xTaskGenericNotifyStateClear) @06cca620
  134. Type: function
  135. Visibility: external public
  136. References:
  137. Referring:
  138. Availability: not_available
  139. Function flags:
  140. Called by: xStreamBufferReceive/13 xStreamBufferSend/10
  141. Calls:
  142. vTaskSetTimeOutState/33 (vTaskSetTimeOutState) @06cca540
  143. Type: function
  144. Visibility: external public
  145. References:
  146. Referring:
  147. Availability: not_available
  148. Function flags:
  149. Called by: xStreamBufferSend/10
  150. Calls:
  151. vPortExitCritical/32 (vPortExitCritical) @06cc3380
  152. Type: function
  153. Visibility: external public
  154. References:
  155. Referring:
  156. Availability: not_available
  157. Function flags:
  158. Called by: xStreamBufferReset/6 xStreamBufferReceive/13 xStreamBufferSend/10 xStreamBufferSend/10
  159. Calls:
  160. vPortEnterCritical/31 (vPortEnterCritical) @06cc30e0
  161. Type: function
  162. Visibility: external public
  163. References:
  164. Referring:
  165. Availability: not_available
  166. Function flags:
  167. Called by: xStreamBufferReset/6 xStreamBufferReceive/13 xStreamBufferSend/10
  168. Calls:
  169. memset/30 (memset) @06cc3e00
  170. Type: function
  171. Visibility: external public
  172. References:
  173. Referring:
  174. Availability: not_available
  175. Function flags:
  176. Called by: prvInitialiseNewStreamBuffer/24 prvInitialiseNewStreamBuffer/24 vStreamBufferDelete/5
  177. Calls:
  178. vPortFree/29 (vPortFree) @06cc3d20
  179. Type: function
  180. Visibility: external public
  181. References:
  182. Referring:
  183. Availability: not_available
  184. Function flags:
  185. Called by: vStreamBufferDelete/5
  186. Calls:
  187. pvPortMalloc/28 (pvPortMalloc) @06cc3a80
  188. Type: function
  189. Visibility: external public
  190. References:
  191. Referring:
  192. Availability: not_available
  193. Function flags:
  194. Called by: xStreamBufferGenericCreate/4
  195. Calls:
  196. ucStreamBufferGetStreamBufferType/27 (ucStreamBufferGetStreamBufferType) @06cc3540
  197. Type: function definition analyzed
  198. Visibility: force_output externally_visible no_reorder public
  199. References:
  200. Referring:
  201. Availability: available
  202. Function flags: body
  203. Called by:
  204. Calls:
  205. vStreamBufferSetStreamBufferNumber/26 (vStreamBufferSetStreamBufferNumber) @06cc32a0
  206. Type: function definition analyzed
  207. Visibility: force_output externally_visible no_reorder public
  208. References:
  209. Referring:
  210. Availability: available
  211. Function flags: body
  212. Called by:
  213. Calls:
  214. uxStreamBufferGetStreamBufferNumber/25 (uxStreamBufferGetStreamBufferNumber) @06cc3000
  215. Type: function definition analyzed
  216. Visibility: force_output externally_visible no_reorder public
  217. References:
  218. Referring:
  219. Availability: available
  220. Function flags: body
  221. Called by:
  222. Calls:
  223. prvInitialiseNewStreamBuffer/24 (prvInitialiseNewStreamBuffer) @06cb8a80
  224. Type: function definition analyzed
  225. Visibility: force_output no_reorder prevailing_def_ironly
  226. References:
  227. Referring:
  228. Availability: available
  229. Function flags: body
  230. Called by: xStreamBufferReset/6 xStreamBufferGenericCreate/4
  231. Calls: memset/30 memset/30
  232. prvBytesInBuffer/23 (prvBytesInBuffer) @06cb8380
  233. Type: function definition analyzed
  234. Visibility: force_output no_reorder prevailing_def_ironly
  235. References:
  236. Referring:
  237. Availability: available
  238. Function flags: body
  239. Called by: xStreamBufferReceiveFromISR/15 xStreamBufferNextMessageLengthBytes/14 xStreamBufferReceive/13 xStreamBufferReceive/13 xStreamBufferReceive/13 xStreamBufferSendFromISR/11 xStreamBufferSend/10 xStreamBufferBytesAvailable/9
  240. Calls:
  241. prvReadBytesFromBuffer/22 (prvReadBytesFromBuffer) @06cb8e00
  242. Type: function definition analyzed
  243. Visibility: force_output no_reorder prevailing_def_ironly
  244. References:
  245. Referring:
  246. Availability: available
  247. Function flags: body
  248. Called by: xStreamBufferNextMessageLengthBytes/14 prvReadMessageFromBuffer/16 prvReadMessageFromBuffer/16
  249. Calls: memcpy/42 memcpy/42
  250. prvWriteBytesToBuffer/21 (prvWriteBytesToBuffer) @06cb89a0
  251. Type: function definition analyzed
  252. Visibility: force_output no_reorder prevailing_def_ironly
  253. References:
  254. Referring:
  255. Availability: available
  256. Function flags: body
  257. Called by: prvWriteMessageToBuffer/12 prvWriteMessageToBuffer/12
  258. Calls: memcpy/42 memcpy/42
  259. xStreamBufferReceiveCompletedFromISR/20 (xStreamBufferReceiveCompletedFromISR) @06cb8620
  260. Type: function definition analyzed
  261. Visibility: force_output externally_visible no_reorder public
  262. References:
  263. Referring:
  264. Availability: available
  265. Function flags: body
  266. Called by:
  267. Calls: xTaskGenericNotifyFromISR/41
  268. xStreamBufferSendCompletedFromISR/19 (xStreamBufferSendCompletedFromISR) @06cb82a0
  269. Type: function definition analyzed
  270. Visibility: force_output externally_visible no_reorder public
  271. References:
  272. Referring:
  273. Availability: available
  274. Function flags: body
  275. Called by:
  276. Calls: xTaskGenericNotifyFromISR/41
  277. xStreamBufferIsFull/18 (xStreamBufferIsFull) @06cb0d20
  278. Type: function definition analyzed
  279. Visibility: force_output externally_visible no_reorder public
  280. References:
  281. Referring:
  282. Availability: available
  283. Function flags: body
  284. Called by:
  285. Calls: xStreamBufferSpacesAvailable/8
  286. xStreamBufferIsEmpty/17 (xStreamBufferIsEmpty) @06cb00e0
  287. Type: function definition analyzed
  288. Visibility: force_output externally_visible no_reorder public
  289. References:
  290. Referring:
  291. Availability: available
  292. Function flags: body
  293. Called by:
  294. Calls:
  295. prvReadMessageFromBuffer/16 (prvReadMessageFromBuffer) @06cb0c40
  296. Type: function definition analyzed
  297. Visibility: force_output no_reorder prevailing_def_ironly
  298. References:
  299. Referring:
  300. Availability: available
  301. Function flags: body
  302. Called by: xStreamBufferReceiveFromISR/15 xStreamBufferReceive/13
  303. Calls: prvReadBytesFromBuffer/22 prvReadBytesFromBuffer/22
  304. xStreamBufferReceiveFromISR/15 (xStreamBufferReceiveFromISR) @06cb08c0
  305. Type: function definition analyzed
  306. Visibility: force_output externally_visible no_reorder public
  307. References:
  308. Referring:
  309. Availability: available
  310. Function flags: body
  311. Called by:
  312. Calls: xTaskGenericNotifyFromISR/41 prvReadMessageFromBuffer/16 prvBytesInBuffer/23
  313. xStreamBufferNextMessageLengthBytes/14 (xStreamBufferNextMessageLengthBytes) @06cb0460
  314. Type: function definition analyzed
  315. Visibility: force_output externally_visible no_reorder public
  316. References:
  317. Referring:
  318. Availability: available
  319. Function flags: body
  320. Called by:
  321. Calls: prvReadBytesFromBuffer/22 prvBytesInBuffer/23
  322. xStreamBufferReceive/13 (xStreamBufferReceive) @06cb0000
  323. Type: function definition analyzed
  324. Visibility: force_output externally_visible no_reorder public
  325. References:
  326. Referring:
  327. Availability: available
  328. Function flags: body
  329. Called by:
  330. Calls: xTaskResumeAll/40 xTaskGenericNotify/39 vTaskSuspendAll/38 prvReadMessageFromBuffer/16 prvBytesInBuffer/23 prvBytesInBuffer/23 xTaskGenericNotifyWait/36 vPortExitCritical/32 xTaskGetCurrentTaskHandle/35 xTaskGenericNotifyStateClear/34 prvBytesInBuffer/23 vPortEnterCritical/31
  331. prvWriteMessageToBuffer/12 (prvWriteMessageToBuffer) @06c64e00
  332. Type: function definition analyzed
  333. Visibility: force_output no_reorder prevailing_def_ironly
  334. References:
  335. Referring:
  336. Availability: available
  337. Function flags: body
  338. Called by: xStreamBufferSendFromISR/11 xStreamBufferSend/10
  339. Calls: prvWriteBytesToBuffer/21 prvWriteBytesToBuffer/21
  340. xStreamBufferSendFromISR/11 (xStreamBufferSendFromISR) @06c64a80
  341. Type: function definition analyzed
  342. Visibility: force_output externally_visible no_reorder public
  343. References:
  344. Referring:
  345. Availability: available
  346. Function flags: body
  347. Called by:
  348. Calls: xTaskGenericNotifyFromISR/41 prvBytesInBuffer/23 prvWriteMessageToBuffer/12 xStreamBufferSpacesAvailable/8
  349. xStreamBufferSend/10 (xStreamBufferSend) @06c64620
  350. Type: function definition analyzed
  351. Visibility: force_output externally_visible no_reorder public
  352. References:
  353. Referring:
  354. Availability: available
  355. Function flags: body
  356. Called by:
  357. Calls: xTaskResumeAll/40 xTaskGenericNotify/39 vTaskSuspendAll/38 prvBytesInBuffer/23 prvWriteMessageToBuffer/12 xStreamBufferSpacesAvailable/8 xTaskCheckForTimeOut/37 xTaskGenericNotifyWait/36 vPortExitCritical/32 vPortExitCritical/32 xTaskGetCurrentTaskHandle/35 xTaskGenericNotifyStateClear/34 xStreamBufferSpacesAvailable/8 vPortEnterCritical/31 vTaskSetTimeOutState/33
  358. xStreamBufferBytesAvailable/9 (xStreamBufferBytesAvailable) @06c64000
  359. Type: function definition analyzed
  360. Visibility: force_output externally_visible no_reorder public
  361. References:
  362. Referring:
  363. Availability: available
  364. Function flags: body
  365. Called by:
  366. Calls: prvBytesInBuffer/23
  367. xStreamBufferSpacesAvailable/8 (xStreamBufferSpacesAvailable) @06c5a7e0
  368. Type: function definition analyzed
  369. Visibility: force_output externally_visible no_reorder public
  370. References:
  371. Referring:
  372. Availability: available
  373. Function flags: body
  374. Called by: xStreamBufferSendFromISR/11 xStreamBufferSend/10 xStreamBufferSend/10 xStreamBufferIsFull/18
  375. Calls:
  376. xStreamBufferSetTriggerLevel/7 (xStreamBufferSetTriggerLevel) @06c5ae00
  377. Type: function definition analyzed
  378. Visibility: force_output externally_visible no_reorder public
  379. References:
  380. Referring:
  381. Availability: available
  382. Function flags: body
  383. Called by:
  384. Calls:
  385. xStreamBufferReset/6 (xStreamBufferReset) @06c5aa80
  386. Type: function definition analyzed
  387. Visibility: force_output externally_visible no_reorder public
  388. References:
  389. Referring:
  390. Availability: available
  391. Function flags: body
  392. Called by:
  393. Calls: vPortExitCritical/32 prvInitialiseNewStreamBuffer/24 vPortEnterCritical/31
  394. vStreamBufferDelete/5 (vStreamBufferDelete) @06c5a700
  395. Type: function definition analyzed
  396. Visibility: force_output externally_visible no_reorder public
  397. References:
  398. Referring:
  399. Availability: available
  400. Function flags: body
  401. Called by:
  402. Calls: memset/30 vPortFree/29
  403. xStreamBufferGenericCreate/4 (xStreamBufferGenericCreate) @06c5a380
  404. Type: function definition analyzed
  405. Visibility: force_output externally_visible no_reorder public
  406. References:
  407. Referring:
  408. Availability: available
  409. Function flags: body
  410. Called by:
  411. Calls: prvInitialiseNewStreamBuffer/24 pvPortMalloc/28
  412. ;; Function xStreamBufferGenericCreate (xStreamBufferGenericCreate, funcdef_no=4, decl_uid=6071, cgraph_uid=5, symbol_order=4)
  413. xStreamBufferGenericCreate (size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer)
  414. {
  415. uint32_t ulNewBASEPRI;
  416. uint32_t ulNewBASEPRI;
  417. uint32_t ulNewBASEPRI;
  418. uint8_t ucFlags;
  419. uint8_t * pucAllocatedMemory;
  420. struct StreamBufferDef_t * D.6348;
  421. unsigned int _1;
  422. uint8_t * _2;
  423. struct StreamBufferDef_t * _21;
  424. <bb 2> :
  425. if (xIsMessageBuffer_9(D) == 1)
  426. goto <bb 3>; [INV]
  427. else
  428. goto <bb 7>; [INV]
  429. <bb 3> :
  430. ucFlags_13 = 1;
  431. if (xBufferSizeBytes_11(D) <= 4)
  432. goto <bb 4>; [INV]
  433. else
  434. goto <bb 11>; [INV]
  435. <bb 4> :
  436. __asm__ __volatile__(" mov %0, %1
  437. msr basepri, %0
  438. isb
  439. dsb
  440. " : "=r" ulNewBASEPRI_22 : "i" 16 : "memory");
  441. <bb 5> :
  442. <bb 6> :
  443. goto <bb 6>; [INV]
  444. <bb 7> :
  445. ucFlags_10 = 0;
  446. if (xBufferSizeBytes_11(D) == 0)
  447. goto <bb 8>; [INV]
  448. else
  449. goto <bb 11>; [INV]
  450. <bb 8> :
  451. __asm__ __volatile__(" mov %0, %1
  452. msr basepri, %0
  453. isb
  454. dsb
  455. " : "=r" ulNewBASEPRI_23 : "i" 16 : "memory");
  456. <bb 9> :
  457. <bb 10> :
  458. goto <bb 10>; [INV]
  459. <bb 11> :
  460. # ucFlags_6 = PHI <ucFlags_13(3), ucFlags_10(7)>
  461. if (xTriggerLevelBytes_14(D) > xBufferSizeBytes_11(D))
  462. goto <bb 12>; [INV]
  463. else
  464. goto <bb 15>; [INV]
  465. <bb 12> :
  466. __asm__ __volatile__(" mov %0, %1
  467. msr basepri, %0
  468. isb
  469. dsb
  470. " : "=r" ulNewBASEPRI_24 : "i" 16 : "memory");
  471. <bb 13> :
  472. <bb 14> :
  473. goto <bb 14>; [INV]
  474. <bb 15> :
  475. if (xTriggerLevelBytes_14(D) == 0)
  476. goto <bb 16>; [INV]
  477. else
  478. goto <bb 17>; [INV]
  479. <bb 16> :
  480. xTriggerLevelBytes_15 = 1;
  481. <bb 17> :
  482. # xTriggerLevelBytes_4 = PHI <xTriggerLevelBytes_14(D)(15), xTriggerLevelBytes_15(16)>
  483. if (xBufferSizeBytes_11(D) <= 4294967258)
  484. goto <bb 18>; [INV]
  485. else
  486. goto <bb 19>; [INV]
  487. <bb 18> :
  488. xBufferSizeBytes_17 = xBufferSizeBytes_11(D) + 1;
  489. _1 = xBufferSizeBytes_17 + 36;
  490. pucAllocatedMemory_19 = pvPortMalloc (_1);
  491. goto <bb 20>; [INV]
  492. <bb 19> :
  493. pucAllocatedMemory_16 = 0B;
  494. <bb 20> :
  495. # xBufferSizeBytes_3 = PHI <xBufferSizeBytes_17(18), xBufferSizeBytes_11(D)(19)>
  496. # pucAllocatedMemory_5 = PHI <pucAllocatedMemory_19(18), pucAllocatedMemory_16(19)>
  497. if (pucAllocatedMemory_5 != 0B)
  498. goto <bb 21>; [INV]
  499. else
  500. goto <bb 22>; [INV]
  501. <bb 21> :
  502. _2 = pucAllocatedMemory_5 + 36;
  503. prvInitialiseNewStreamBuffer (pucAllocatedMemory_5, _2, xBufferSizeBytes_3, xTriggerLevelBytes_4, ucFlags_6);
  504. <bb 22> :
  505. _21 = pucAllocatedMemory_5;
  506. <bb 23> :
  507. <L20>:
  508. return _21;
  509. }
  510. ;; Function vStreamBufferDelete (vStreamBufferDelete, funcdef_no=5, decl_uid=6048, cgraph_uid=6, symbol_order=5)
  511. vStreamBufferDelete (struct StreamBufferDef_t * xStreamBuffer)
  512. {
  513. uint32_t ulNewBASEPRI;
  514. struct StreamBuffer_t * pxStreamBuffer;
  515. unsigned char _1;
  516. int _2;
  517. int _3;
  518. <bb 2> :
  519. pxStreamBuffer_6 = xStreamBuffer_5(D);
  520. if (pxStreamBuffer_6 == 0B)
  521. goto <bb 3>; [INV]
  522. else
  523. goto <bb 6>; [INV]
  524. <bb 3> :
  525. __asm__ __volatile__(" mov %0, %1
  526. msr basepri, %0
  527. isb
  528. dsb
  529. " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
  530. <bb 4> :
  531. <bb 5> :
  532. goto <bb 5>; [INV]
  533. <bb 6> :
  534. _1 = pxStreamBuffer_6->ucFlags;
  535. _2 = (int) _1;
  536. _3 = _2 & 2;
  537. if (_3 == 0)
  538. goto <bb 7>; [INV]
  539. else
  540. goto <bb 8>; [INV]
  541. <bb 7> :
  542. vPortFree (pxStreamBuffer_6);
  543. goto <bb 9>; [INV]
  544. <bb 8> :
  545. memset (pxStreamBuffer_6, 0, 36);
  546. <bb 9> :
  547. return;
  548. }
  549. ;; Function xStreamBufferReset (xStreamBufferReset, funcdef_no=6, decl_uid=6054, cgraph_uid=7, symbol_order=6)
  550. xStreamBufferReset (struct StreamBufferDef_t * xStreamBuffer)
  551. {
  552. uint32_t ulNewBASEPRI;
  553. UBaseType_t uxStreamBufferNumber;
  554. BaseType_t xReturn;
  555. struct StreamBuffer_t * const pxStreamBuffer;
  556. BaseType_t D.6361;
  557. struct tskTaskControlBlock * _1;
  558. struct tskTaskControlBlock * _2;
  559. uint8_t * _3;
  560. unsigned int _4;
  561. unsigned int _5;
  562. unsigned char _6;
  563. BaseType_t _19;
  564. <bb 2> :
  565. pxStreamBuffer_10 = xStreamBuffer_9(D);
  566. xReturn_11 = 0;
  567. if (pxStreamBuffer_10 == 0B)
  568. goto <bb 3>; [INV]
  569. else
  570. goto <bb 6>; [INV]
  571. <bb 3> :
  572. __asm__ __volatile__(" mov %0, %1
  573. msr basepri, %0
  574. isb
  575. dsb
  576. " : "=r" ulNewBASEPRI_20 : "i" 16 : "memory");
  577. <bb 4> :
  578. <bb 5> :
  579. goto <bb 5>; [INV]
  580. <bb 6> :
  581. uxStreamBufferNumber_13 = pxStreamBuffer_10->uxStreamBufferNumber;
  582. vPortEnterCritical ();
  583. _1 ={v} pxStreamBuffer_10->xTaskWaitingToReceive;
  584. if (_1 == 0B)
  585. goto <bb 7>; [INV]
  586. else
  587. goto <bb 9>; [INV]
  588. <bb 7> :
  589. _2 ={v} pxStreamBuffer_10->xTaskWaitingToSend;
  590. if (_2 == 0B)
  591. goto <bb 8>; [INV]
  592. else
  593. goto <bb 9>; [INV]
  594. <bb 8> :
  595. _3 = pxStreamBuffer_10->pucBuffer;
  596. _4 = pxStreamBuffer_10->xLength;
  597. _5 = pxStreamBuffer_10->xTriggerLevelBytes;
  598. _6 = pxStreamBuffer_10->ucFlags;
  599. prvInitialiseNewStreamBuffer (pxStreamBuffer_10, _3, _4, _5, _6);
  600. xReturn_16 = 1;
  601. pxStreamBuffer_10->uxStreamBufferNumber = uxStreamBufferNumber_13;
  602. <bb 9> :
  603. # xReturn_7 = PHI <xReturn_11(6), xReturn_11(7), xReturn_16(8)>
  604. vPortExitCritical ();
  605. _19 = xReturn_7;
  606. <bb 10> :
  607. <L7>:
  608. return _19;
  609. }
  610. ;; Function xStreamBufferSetTriggerLevel (xStreamBufferSetTriggerLevel, funcdef_no=7, decl_uid=6061, cgraph_uid=8, symbol_order=7)
  611. xStreamBufferSetTriggerLevel (struct StreamBufferDef_t * xStreamBuffer, size_t xTriggerLevel)
  612. {
  613. uint32_t ulNewBASEPRI;
  614. BaseType_t xReturn;
  615. struct StreamBuffer_t * const pxStreamBuffer;
  616. BaseType_t D.6370;
  617. unsigned int _1;
  618. BaseType_t _13;
  619. <bb 2> :
  620. pxStreamBuffer_6 = xStreamBuffer_5(D);
  621. if (pxStreamBuffer_6 == 0B)
  622. goto <bb 3>; [INV]
  623. else
  624. goto <bb 6>; [INV]
  625. <bb 3> :
  626. __asm__ __volatile__(" mov %0, %1
  627. msr basepri, %0
  628. isb
  629. dsb
  630. " : "=r" ulNewBASEPRI_14 : "i" 16 : "memory");
  631. <bb 4> :
  632. <bb 5> :
  633. goto <bb 5>; [INV]
  634. <bb 6> :
  635. if (xTriggerLevel_7(D) == 0)
  636. goto <bb 7>; [INV]
  637. else
  638. goto <bb 8>; [INV]
  639. <bb 7> :
  640. xTriggerLevel_8 = 1;
  641. <bb 8> :
  642. # xTriggerLevel_2 = PHI <xTriggerLevel_7(D)(6), xTriggerLevel_8(7)>
  643. _1 = pxStreamBuffer_6->xLength;
  644. if (xTriggerLevel_2 < _1)
  645. goto <bb 9>; [INV]
  646. else
  647. goto <bb 10>; [INV]
  648. <bb 9> :
  649. pxStreamBuffer_6->xTriggerLevelBytes = xTriggerLevel_2;
  650. xReturn_12 = 1;
  651. goto <bb 11>; [INV]
  652. <bb 10> :
  653. xReturn_10 = 0;
  654. <bb 11> :
  655. # xReturn_3 = PHI <xReturn_12(9), xReturn_10(10)>
  656. _13 = xReturn_3;
  657. <bb 12> :
  658. <L8>:
  659. return _13;
  660. }
  661. ;; Function xStreamBufferSpacesAvailable (xStreamBufferSpacesAvailable, funcdef_no=8, decl_uid=6056, cgraph_uid=9, symbol_order=8)
  662. xStreamBufferSpacesAvailable (struct StreamBufferDef_t * xStreamBuffer)
  663. {
  664. uint32_t ulNewBASEPRI;
  665. size_t xOriginalTail;
  666. size_t xSpace;
  667. const struct StreamBuffer_t * const pxStreamBuffer;
  668. size_t D.6378;
  669. unsigned int D.6374;
  670. unsigned int _1;
  671. unsigned int _2;
  672. unsigned int _3;
  673. unsigned int _4;
  674. unsigned int _5;
  675. unsigned int _12;
  676. size_t _16;
  677. <bb 2> :
  678. pxStreamBuffer_8 = xStreamBuffer_7(D);
  679. if (pxStreamBuffer_8 == 0B)
  680. goto <bb 3>; [INV]
  681. else
  682. goto <bb 6>; [INV]
  683. <bb 3> :
  684. __asm__ __volatile__(" mov %0, %1
  685. msr basepri, %0
  686. isb
  687. dsb
  688. " : "=r" ulNewBASEPRI_17 : "i" 16 : "memory");
  689. <bb 4> :
  690. <bb 5> :
  691. goto <bb 5>; [INV]
  692. <bb 6> :
  693. xOriginalTail_10 ={v} pxStreamBuffer_8->xTail;
  694. _1 = pxStreamBuffer_8->xLength;
  695. _2 ={v} pxStreamBuffer_8->xTail;
  696. xSpace_11 = _1 + _2;
  697. _12 ={v} pxStreamBuffer_8->xHead;
  698. xSpace_13 = xSpace_11 - _12;
  699. _3 ={v} pxStreamBuffer_8->xTail;
  700. if (xOriginalTail_10 != _3)
  701. goto <bb 6>; [INV]
  702. else
  703. goto <bb 7>; [INV]
  704. <bb 7> :
  705. xSpace_14 = xSpace_13 + 4294967295;
  706. _4 = pxStreamBuffer_8->xLength;
  707. if (xSpace_14 >= _4)
  708. goto <bb 8>; [INV]
  709. else
  710. goto <bb 9>; [INV]
  711. <bb 8> :
  712. _5 = pxStreamBuffer_8->xLength;
  713. xSpace_15 = xSpace_14 - _5;
  714. <bb 9> :
  715. # xSpace_6 = PHI <xSpace_14(7), xSpace_15(8)>
  716. _16 = xSpace_6;
  717. <bb 10> :
  718. <L8>:
  719. return _16;
  720. }
  721. ;; Function xStreamBufferBytesAvailable (xStreamBufferBytesAvailable, funcdef_no=9, decl_uid=6058, cgraph_uid=10, symbol_order=9)
  722. xStreamBufferBytesAvailable (struct StreamBufferDef_t * xStreamBuffer)
  723. {
  724. uint32_t ulNewBASEPRI;
  725. size_t xReturn;
  726. const struct StreamBuffer_t * const pxStreamBuffer;
  727. size_t D.6382;
  728. size_t _6;
  729. <bb 2> :
  730. pxStreamBuffer_2 = xStreamBuffer_1(D);
  731. if (pxStreamBuffer_2 == 0B)
  732. goto <bb 3>; [INV]
  733. else
  734. goto <bb 6>; [INV]
  735. <bb 3> :
  736. __asm__ __volatile__(" mov %0, %1
  737. msr basepri, %0
  738. isb
  739. dsb
  740. " : "=r" ulNewBASEPRI_7 : "i" 16 : "memory");
  741. <bb 4> :
  742. <bb 5> :
  743. goto <bb 5>; [INV]
  744. <bb 6> :
  745. xReturn_5 = prvBytesInBuffer (pxStreamBuffer_2);
  746. _6 = xReturn_5;
  747. <bb 7> :
  748. <L3>:
  749. return _6;
  750. }
  751. ;; Function xStreamBufferSend (xStreamBufferSend, funcdef_no=10, decl_uid=6031, cgraph_uid=11, symbol_order=10)
  752. xStreamBufferSend (struct StreamBufferDef_t * xStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, TickType_t xTicksToWait)
  753. {
  754. uint32_t ulNewBASEPRI;
  755. uint32_t ulNewBASEPRI;
  756. uint32_t ulNewBASEPRI;
  757. uint32_t ulNewBASEPRI;
  758. size_t xMaxReportedSpace;
  759. struct TimeOut_t xTimeOut;
  760. size_t xRequiredSpace;
  761. size_t xSpace;
  762. size_t xReturn;
  763. struct StreamBuffer_t * const pxStreamBuffer;
  764. size_t D.6418;
  765. unsigned int _1;
  766. unsigned char _2;
  767. int _3;
  768. int _4;
  769. long unsigned int xTicksToWait.0_5;
  770. struct tskTaskControlBlock * _6;
  771. struct tskTaskControlBlock * _7;
  772. long unsigned int xTicksToWait.1_8;
  773. long int _9;
  774. unsigned int _10;
  775. unsigned int _11;
  776. struct tskTaskControlBlock * _12;
  777. struct tskTaskControlBlock * _13;
  778. size_t _57;
  779. <bb 2> :
  780. pxStreamBuffer_25 = xStreamBuffer_24(D);
  781. xSpace_26 = 0;
  782. xRequiredSpace_28 = xDataLengthBytes_27(D);
  783. xMaxReportedSpace_29 = 0;
  784. if (pvTxData_30(D) == 0B)
  785. goto <bb 3>; [INV]
  786. else
  787. goto <bb 6>; [INV]
  788. <bb 3> :
  789. __asm__ __volatile__(" mov %0, %1
  790. msr basepri, %0
  791. isb
  792. dsb
  793. " : "=r" ulNewBASEPRI_59 : "i" 16 : "memory");
  794. <bb 4> :
  795. <bb 5> :
  796. goto <bb 5>; [INV]
  797. <bb 6> :
  798. if (pxStreamBuffer_25 == 0B)
  799. goto <bb 7>; [INV]
  800. else
  801. goto <bb 10>; [INV]
  802. <bb 7> :
  803. __asm__ __volatile__(" mov %0, %1
  804. msr basepri, %0
  805. isb
  806. dsb
  807. " : "=r" ulNewBASEPRI_60 : "i" 16 : "memory");
  808. <bb 8> :
  809. <bb 9> :
  810. goto <bb 9>; [INV]
  811. <bb 10> :
  812. _1 = pxStreamBuffer_25->xLength;
  813. xMaxReportedSpace_32 = _1 + 4294967295;
  814. _2 = pxStreamBuffer_25->ucFlags;
  815. _3 = (int) _2;
  816. _4 = _3 & 1;
  817. if (_4 != 0)
  818. goto <bb 11>; [INV]
  819. else
  820. goto <bb 17>; [INV]
  821. <bb 11> :
  822. xRequiredSpace_34 = xRequiredSpace_28 + 4;
  823. if (xRequiredSpace_34 <= xDataLengthBytes_27(D))
  824. goto <bb 12>; [INV]
  825. else
  826. goto <bb 15>; [INV]
  827. <bb 12> :
  828. __asm__ __volatile__(" mov %0, %1
  829. msr basepri, %0
  830. isb
  831. dsb
  832. " : "=r" ulNewBASEPRI_61 : "i" 16 : "memory");
  833. <bb 13> :
  834. <bb 14> :
  835. goto <bb 14>; [INV]
  836. <bb 15> :
  837. if (xRequiredSpace_34 > xMaxReportedSpace_32)
  838. goto <bb 16>; [INV]
  839. else
  840. goto <bb 19>; [INV]
  841. <bb 16> :
  842. xTicksToWait = 0;
  843. goto <bb 19>; [INV]
  844. <bb 17> :
  845. if (xRequiredSpace_28 > xMaxReportedSpace_32)
  846. goto <bb 18>; [INV]
  847. else
  848. goto <bb 19>; [INV]
  849. <bb 18> :
  850. xRequiredSpace_33 = xMaxReportedSpace_32;
  851. <bb 19> :
  852. # xRequiredSpace_16 = PHI <xRequiredSpace_34(16), xRequiredSpace_28(17), xRequiredSpace_33(18), xRequiredSpace_34(15)>
  853. xTicksToWait.0_5 = xTicksToWait;
  854. if (xTicksToWait.0_5 != 0)
  855. goto <bb 20>; [INV]
  856. else
  857. goto <bb 30>; [INV]
  858. <bb 20> :
  859. vTaskSetTimeOutState (&xTimeOut);
  860. <bb 21> :
  861. vPortEnterCritical ();
  862. xSpace_39 = xStreamBufferSpacesAvailable (pxStreamBuffer_25);
  863. if (xSpace_39 < xRequiredSpace_16)
  864. goto <bb 22>; [INV]
  865. else
  866. goto <bb 27>; [INV]
  867. <bb 22> :
  868. xTaskGenericNotifyStateClear (0B, 0);
  869. _6 ={v} pxStreamBuffer_25->xTaskWaitingToSend;
  870. if (_6 != 0B)
  871. goto <bb 23>; [INV]
  872. else
  873. goto <bb 26>; [INV]
  874. <bb 23> :
  875. __asm__ __volatile__(" mov %0, %1
  876. msr basepri, %0
  877. isb
  878. dsb
  879. " : "=r" ulNewBASEPRI_62 : "i" 16 : "memory");
  880. <bb 24> :
  881. <bb 25> :
  882. goto <bb 25>; [INV]
  883. <bb 26> :
  884. _7 = xTaskGetCurrentTaskHandle ();
  885. pxStreamBuffer_25->xTaskWaitingToSend ={v} _7;
  886. goto <bb 28>; [INV]
  887. <bb 27> :
  888. vPortExitCritical ();
  889. goto <bb 29>; [INV]
  890. <bb 28> :
  891. vPortExitCritical ();
  892. xTicksToWait.1_8 = xTicksToWait;
  893. xTaskGenericNotifyWait (0, 0, 0, 0B, xTicksToWait.1_8);
  894. pxStreamBuffer_25->xTaskWaitingToSend ={v} 0B;
  895. _9 = xTaskCheckForTimeOut (&xTimeOut, &xTicksToWait);
  896. if (_9 == 0)
  897. goto <bb 21>; [INV]
  898. else
  899. goto <bb 29>; [INV]
  900. <bb 29> :
  901. <bb 30> :
  902. # xSpace_14 = PHI <xSpace_26(19), xSpace_39(29)>
  903. if (xSpace_14 == 0)
  904. goto <bb 31>; [INV]
  905. else
  906. goto <bb 32>; [INV]
  907. <bb 31> :
  908. xSpace_49 = xStreamBufferSpacesAvailable (pxStreamBuffer_25);
  909. <bb 32> :
  910. # xSpace_15 = PHI <xSpace_14(30), xSpace_49(31)>
  911. xReturn_51 = prvWriteMessageToBuffer (pxStreamBuffer_25, pvTxData_30(D), xDataLengthBytes_27(D), xSpace_15, xRequiredSpace_16);
  912. if (xReturn_51 != 0)
  913. goto <bb 33>; [INV]
  914. else
  915. goto <bb 37>; [INV]
  916. <bb 33> :
  917. _10 = prvBytesInBuffer (pxStreamBuffer_25);
  918. _11 = pxStreamBuffer_25->xTriggerLevelBytes;
  919. if (_10 >= _11)
  920. goto <bb 34>; [INV]
  921. else
  922. goto <bb 37>; [INV]
  923. <bb 34> :
  924. vTaskSuspendAll ();
  925. _12 ={v} pxStreamBuffer_25->xTaskWaitingToReceive;
  926. if (_12 != 0B)
  927. goto <bb 35>; [INV]
  928. else
  929. goto <bb 36>; [INV]
  930. <bb 35> :
  931. _13 ={v} pxStreamBuffer_25->xTaskWaitingToReceive;
  932. xTaskGenericNotify (_13, 0, 0, 0, 0B);
  933. pxStreamBuffer_25->xTaskWaitingToReceive ={v} 0B;
  934. <bb 36> :
  935. xTaskResumeAll ();
  936. <bb 37> :
  937. _57 = xReturn_51;
  938. xTimeOut ={v} {CLOBBER};
  939. <bb 38> :
  940. <L41>:
  941. return _57;
  942. }
  943. ;; Function xStreamBufferSendFromISR (xStreamBufferSendFromISR, funcdef_no=11, decl_uid=6036, cgraph_uid=12, symbol_order=11)
  944. xStreamBufferSendFromISR (struct StreamBufferDef_t * xStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken)
  945. {
  946. uint32_t ulNewMaskValue;
  947. uint32_t D.6651;
  948. uint32_t ulOriginalBASEPRI;
  949. uint32_t ulNewBASEPRI;
  950. uint32_t D.6650;
  951. uint32_t ulNewBASEPRI;
  952. uint32_t ulNewBASEPRI;
  953. UBaseType_t uxSavedInterruptStatus;
  954. size_t xRequiredSpace;
  955. size_t xSpace;
  956. size_t xReturn;
  957. struct StreamBuffer_t * const pxStreamBuffer;
  958. size_t D.6436;
  959. unsigned char _1;
  960. int _2;
  961. int _3;
  962. unsigned int _4;
  963. unsigned int _5;
  964. struct tskTaskControlBlock * _6;
  965. struct tskTaskControlBlock * _7;
  966. size_t _27;
  967. long unsigned int _32;
  968. <bb 2> :
  969. pxStreamBuffer_12 = xStreamBuffer_11(D);
  970. xRequiredSpace_14 = xDataLengthBytes_13(D);
  971. if (pvTxData_15(D) == 0B)
  972. goto <bb 3>; [INV]
  973. else
  974. goto <bb 6>; [INV]
  975. <bb 3> :
  976. __asm__ __volatile__(" mov %0, %1
  977. msr basepri, %0
  978. isb
  979. dsb
  980. " : "=r" ulNewBASEPRI_28 : "i" 16 : "memory");
  981. <bb 4> :
  982. <bb 5> :
  983. goto <bb 5>; [INV]
  984. <bb 6> :
  985. if (pxStreamBuffer_12 == 0B)
  986. goto <bb 7>; [INV]
  987. else
  988. goto <bb 10>; [INV]
  989. <bb 7> :
  990. __asm__ __volatile__(" mov %0, %1
  991. msr basepri, %0
  992. isb
  993. dsb
  994. " : "=r" ulNewBASEPRI_29 : "i" 16 : "memory");
  995. <bb 8> :
  996. <bb 9> :
  997. goto <bb 9>; [INV]
  998. <bb 10> :
  999. _1 = pxStreamBuffer_12->ucFlags;
  1000. _2 = (int) _1;
  1001. _3 = _2 & 1;
  1002. if (_3 != 0)
  1003. goto <bb 11>; [INV]
  1004. else
  1005. goto <bb 12>; [INV]
  1006. <bb 11> :
  1007. xRequiredSpace_17 = xRequiredSpace_14 + 4;
  1008. <bb 12> :
  1009. # xRequiredSpace_8 = PHI <xRequiredSpace_14(10), xRequiredSpace_17(11)>
  1010. xSpace_19 = xStreamBufferSpacesAvailable (pxStreamBuffer_12);
  1011. xReturn_21 = prvWriteMessageToBuffer (pxStreamBuffer_12, pvTxData_15(D), xDataLengthBytes_13(D), xSpace_19, xRequiredSpace_8);
  1012. if (xReturn_21 != 0)
  1013. goto <bb 13>; [INV]
  1014. else
  1015. goto <bb 20>; [INV]
  1016. <bb 13> :
  1017. _4 = prvBytesInBuffer (pxStreamBuffer_12);
  1018. _5 = pxStreamBuffer_12->xTriggerLevelBytes;
  1019. if (_4 >= _5)
  1020. goto <bb 14>; [INV]
  1021. else
  1022. goto <bb 20>; [INV]
  1023. <bb 14> :
  1024. __asm__ __volatile__(" mrs %0, basepri
  1025. mov %1, %2
  1026. msr basepri, %1
  1027. isb
  1028. dsb
  1029. " : "=r" ulOriginalBASEPRI_30, "=r" ulNewBASEPRI_31 : "i" 16 : "memory");
  1030. _32 = ulOriginalBASEPRI_30;
  1031. <bb 15> :
  1032. <L18>:
  1033. _35 = _32;
  1034. <bb 16> :
  1035. uxSavedInterruptStatus_23 = _35;
  1036. _6 ={v} pxStreamBuffer_12->xTaskWaitingToReceive;
  1037. if (_6 != 0B)
  1038. goto <bb 17>; [INV]
  1039. else
  1040. goto <bb 18>; [INV]
  1041. <bb 17> :
  1042. _7 ={v} pxStreamBuffer_12->xTaskWaitingToReceive;
  1043. xTaskGenericNotifyFromISR (_7, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_24(D));
  1044. pxStreamBuffer_12->xTaskWaitingToReceive ={v} 0B;
  1045. <bb 18> :
  1046. ulNewMaskValue_33 = uxSavedInterruptStatus_23;
  1047. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_33 : "memory");
  1048. <bb 19> :
  1049. <bb 20> :
  1050. _27 = xReturn_21;
  1051. <bb 21> :
  1052. <L17>:
  1053. return _27;
  1054. }
  1055. ;; Function prvWriteMessageToBuffer (prvWriteMessageToBuffer, funcdef_no=12, decl_uid=6114, cgraph_uid=13, symbol_order=12)
  1056. prvWriteMessageToBuffer (struct StreamBuffer_t * const pxStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, size_t xSpace, size_t xRequiredSpace)
  1057. {
  1058. size_t xNextHead;
  1059. size_t D.6448;
  1060. unsigned char _1;
  1061. int _2;
  1062. int _3;
  1063. unsigned int xDataLengthBytes.2_4;
  1064. unsigned int _5;
  1065. unsigned int xDataLengthBytes.3_6;
  1066. unsigned int xDataLengthBytes.4_7;
  1067. unsigned int _8;
  1068. size_t _24;
  1069. <bb 2> :
  1070. xNextHead_14 ={v} pxStreamBuffer_13(D)->xHead;
  1071. _1 = pxStreamBuffer_13(D)->ucFlags;
  1072. _2 = (int) _1;
  1073. _3 = _2 & 1;
  1074. if (_3 != 0)
  1075. goto <bb 3>; [INV]
  1076. else
  1077. goto <bb 6>; [INV]
  1078. <bb 3> :
  1079. if (xSpace_15(D) >= xRequiredSpace_17(D))
  1080. goto <bb 4>; [INV]
  1081. else
  1082. goto <bb 5>; [INV]
  1083. <bb 4> :
  1084. xNextHead_20 = prvWriteBytesToBuffer (pxStreamBuffer_13(D), &xDataLengthBytes, 4, xNextHead_14);
  1085. goto <bb 7>; [INV]
  1086. <bb 5> :
  1087. xDataLengthBytes = 0;
  1088. goto <bb 7>; [INV]
  1089. <bb 6> :
  1090. xDataLengthBytes.2_4 = xDataLengthBytes;
  1091. _5 = MIN_EXPR <xSpace_15(D), xDataLengthBytes.2_4>;
  1092. xDataLengthBytes = _5;
  1093. <bb 7> :
  1094. # xNextHead_9 = PHI <xNextHead_14(5), xNextHead_14(6), xNextHead_20(4)>
  1095. xDataLengthBytes.3_6 = xDataLengthBytes;
  1096. if (xDataLengthBytes.3_6 != 0)
  1097. goto <bb 8>; [INV]
  1098. else
  1099. goto <bb 9>; [INV]
  1100. <bb 8> :
  1101. xDataLengthBytes.4_7 = xDataLengthBytes;
  1102. _8 = prvWriteBytesToBuffer (pxStreamBuffer_13(D), pvTxData_21(D), xDataLengthBytes.4_7, xNextHead_9);
  1103. pxStreamBuffer_13(D)->xHead ={v} _8;
  1104. <bb 9> :
  1105. _24 = xDataLengthBytes;
  1106. <bb 10> :
  1107. <L8>:
  1108. return _24;
  1109. }
  1110. ;; Function xStreamBufferReceive (xStreamBufferReceive, funcdef_no=13, decl_uid=6041, cgraph_uid=14, symbol_order=13)
  1111. xStreamBufferReceive (struct StreamBufferDef_t * xStreamBuffer, void * pvRxData, size_t xBufferLengthBytes, TickType_t xTicksToWait)
  1112. {
  1113. uint32_t ulNewBASEPRI;
  1114. uint32_t ulNewBASEPRI;
  1115. uint32_t ulNewBASEPRI;
  1116. size_t xBytesToStoreMessageLength;
  1117. size_t xBytesAvailable;
  1118. size_t xReceivedLength;
  1119. struct StreamBuffer_t * const pxStreamBuffer;
  1120. size_t D.6476;
  1121. unsigned char _1;
  1122. int _2;
  1123. int _3;
  1124. struct tskTaskControlBlock * _4;
  1125. struct tskTaskControlBlock * _5;
  1126. struct tskTaskControlBlock * _6;
  1127. struct tskTaskControlBlock * _7;
  1128. size_t _43;
  1129. <bb 2> :
  1130. pxStreamBuffer_16 = xStreamBuffer_15(D);
  1131. xReceivedLength_17 = 0;
  1132. if (pvRxData_18(D) == 0B)
  1133. goto <bb 3>; [INV]
  1134. else
  1135. goto <bb 6>; [INV]
  1136. <bb 3> :
  1137. __asm__ __volatile__(" mov %0, %1
  1138. msr basepri, %0
  1139. isb
  1140. dsb
  1141. " : "=r" ulNewBASEPRI_44 : "i" 16 : "memory");
  1142. <bb 4> :
  1143. <bb 5> :
  1144. goto <bb 5>; [INV]
  1145. <bb 6> :
  1146. if (pxStreamBuffer_16 == 0B)
  1147. goto <bb 7>; [INV]
  1148. else
  1149. goto <bb 10>; [INV]
  1150. <bb 7> :
  1151. __asm__ __volatile__(" mov %0, %1
  1152. msr basepri, %0
  1153. isb
  1154. dsb
  1155. " : "=r" ulNewBASEPRI_45 : "i" 16 : "memory");
  1156. <bb 8> :
  1157. <bb 9> :
  1158. goto <bb 9>; [INV]
  1159. <bb 10> :
  1160. _1 = pxStreamBuffer_16->ucFlags;
  1161. _2 = (int) _1;
  1162. _3 = _2 & 1;
  1163. if (_3 != 0)
  1164. goto <bb 11>; [INV]
  1165. else
  1166. goto <bb 12>; [INV]
  1167. <bb 11> :
  1168. xBytesToStoreMessageLength_21 = 4;
  1169. goto <bb 13>; [INV]
  1170. <bb 12> :
  1171. xBytesToStoreMessageLength_20 = 0;
  1172. <bb 13> :
  1173. # xBytesToStoreMessageLength_10 = PHI <xBytesToStoreMessageLength_21(11), xBytesToStoreMessageLength_20(12)>
  1174. if (xTicksToWait_22(D) != 0)
  1175. goto <bb 14>; [INV]
  1176. else
  1177. goto <bb 22>; [INV]
  1178. <bb 14> :
  1179. vPortEnterCritical ();
  1180. xBytesAvailable_27 = prvBytesInBuffer (pxStreamBuffer_16);
  1181. if (xBytesAvailable_27 <= xBytesToStoreMessageLength_10)
  1182. goto <bb 15>; [INV]
  1183. else
  1184. goto <bb 20>; [INV]
  1185. <bb 15> :
  1186. xTaskGenericNotifyStateClear (0B, 0);
  1187. _4 ={v} pxStreamBuffer_16->xTaskWaitingToReceive;
  1188. if (_4 != 0B)
  1189. goto <bb 16>; [INV]
  1190. else
  1191. goto <bb 19>; [INV]
  1192. <bb 16> :
  1193. __asm__ __volatile__(" mov %0, %1
  1194. msr basepri, %0
  1195. isb
  1196. dsb
  1197. " : "=r" ulNewBASEPRI_46 : "i" 16 : "memory");
  1198. <bb 17> :
  1199. <bb 18> :
  1200. goto <bb 18>; [INV]
  1201. <bb 19> :
  1202. _5 = xTaskGetCurrentTaskHandle ();
  1203. pxStreamBuffer_16->xTaskWaitingToReceive ={v} _5;
  1204. <bb 20> :
  1205. vPortExitCritical ();
  1206. if (xBytesAvailable_27 <= xBytesToStoreMessageLength_10)
  1207. goto <bb 21>; [INV]
  1208. else
  1209. goto <bb 23>; [INV]
  1210. <bb 21> :
  1211. xTaskGenericNotifyWait (0, 0, 0, 0B, xTicksToWait_22(D));
  1212. pxStreamBuffer_16->xTaskWaitingToReceive ={v} 0B;
  1213. xBytesAvailable_35 = prvBytesInBuffer (pxStreamBuffer_16);
  1214. goto <bb 23>; [INV]
  1215. <bb 22> :
  1216. xBytesAvailable_24 = prvBytesInBuffer (pxStreamBuffer_16);
  1217. <bb 23> :
  1218. # xBytesAvailable_9 = PHI <xBytesAvailable_35(21), xBytesAvailable_24(22), xBytesAvailable_27(20)>
  1219. if (xBytesAvailable_9 > xBytesToStoreMessageLength_10)
  1220. goto <bb 24>; [INV]
  1221. else
  1222. goto <bb 28>; [INV]
  1223. <bb 24> :
  1224. xReceivedLength_38 = prvReadMessageFromBuffer (pxStreamBuffer_16, pvRxData_18(D), xBufferLengthBytes_36(D), xBytesAvailable_9);
  1225. if (xReceivedLength_38 != 0)
  1226. goto <bb 25>; [INV]
  1227. else
  1228. goto <bb 28>; [INV]
  1229. <bb 25> :
  1230. vTaskSuspendAll ();
  1231. _6 ={v} pxStreamBuffer_16->xTaskWaitingToSend;
  1232. if (_6 != 0B)
  1233. goto <bb 26>; [INV]
  1234. else
  1235. goto <bb 27>; [INV]
  1236. <bb 26> :
  1237. _7 ={v} pxStreamBuffer_16->xTaskWaitingToSend;
  1238. xTaskGenericNotify (_7, 0, 0, 0, 0B);
  1239. pxStreamBuffer_16->xTaskWaitingToSend ={v} 0B;
  1240. <bb 27> :
  1241. xTaskResumeAll ();
  1242. <bb 28> :
  1243. # xReceivedLength_8 = PHI <xReceivedLength_17(23), xReceivedLength_38(27), xReceivedLength_38(24)>
  1244. _43 = xReceivedLength_8;
  1245. <bb 29> :
  1246. <L29>:
  1247. return _43;
  1248. }
  1249. ;; Function xStreamBufferNextMessageLengthBytes (xStreamBufferNextMessageLengthBytes, funcdef_no=14, decl_uid=6079, cgraph_uid=15, symbol_order=14)
  1250. xStreamBufferNextMessageLengthBytes (struct StreamBufferDef_t * xStreamBuffer)
  1251. {
  1252. uint32_t ulNewBASEPRI;
  1253. uint32_t ulNewBASEPRI;
  1254. size_t xTempReturn;
  1255. size_t xBytesAvailable;
  1256. size_t xReturn;
  1257. struct StreamBuffer_t * const pxStreamBuffer;
  1258. size_t D.6488;
  1259. unsigned char _1;
  1260. int _2;
  1261. int _3;
  1262. unsigned int _4;
  1263. size_t _16;
  1264. <bb 2> :
  1265. pxStreamBuffer_8 = xStreamBuffer_7(D);
  1266. if (pxStreamBuffer_8 == 0B)
  1267. goto <bb 3>; [INV]
  1268. else
  1269. goto <bb 6>; [INV]
  1270. <bb 3> :
  1271. __asm__ __volatile__(" mov %0, %1
  1272. msr basepri, %0
  1273. isb
  1274. dsb
  1275. " : "=r" ulNewBASEPRI_18 : "i" 16 : "memory");
  1276. <bb 4> :
  1277. <bb 5> :
  1278. goto <bb 5>; [INV]
  1279. <bb 6> :
  1280. _1 = pxStreamBuffer_8->ucFlags;
  1281. _2 = (int) _1;
  1282. _3 = _2 & 1;
  1283. if (_3 != 0)
  1284. goto <bb 7>; [INV]
  1285. else
  1286. goto <bb 14>; [INV]
  1287. <bb 7> :
  1288. xBytesAvailable_12 = prvBytesInBuffer (pxStreamBuffer_8);
  1289. if (xBytesAvailable_12 > 4)
  1290. goto <bb 8>; [INV]
  1291. else
  1292. goto <bb 9>; [INV]
  1293. <bb 8> :
  1294. _4 ={v} pxStreamBuffer_8->xTail;
  1295. prvReadBytesFromBuffer (pxStreamBuffer_8, &xTempReturn, 4, _4);
  1296. xReturn_15 = xTempReturn;
  1297. goto <bb 15>; [INV]
  1298. <bb 9> :
  1299. if (xBytesAvailable_12 != 0)
  1300. goto <bb 10>; [INV]
  1301. else
  1302. goto <bb 13>; [INV]
  1303. <bb 10> :
  1304. __asm__ __volatile__(" mov %0, %1
  1305. msr basepri, %0
  1306. isb
  1307. dsb
  1308. " : "=r" ulNewBASEPRI_19 : "i" 16 : "memory");
  1309. <bb 11> :
  1310. <bb 12> :
  1311. goto <bb 12>; [INV]
  1312. <bb 13> :
  1313. xReturn_13 = 0;
  1314. goto <bb 15>; [INV]
  1315. <bb 14> :
  1316. xReturn_10 = 0;
  1317. <bb 15> :
  1318. # xReturn_5 = PHI <xReturn_13(13), xReturn_10(14), xReturn_15(8)>
  1319. _16 = xReturn_5;
  1320. xTempReturn ={v} {CLOBBER};
  1321. <bb 16> :
  1322. <L13>:
  1323. return _16;
  1324. }
  1325. ;; Function xStreamBufferReceiveFromISR (xStreamBufferReceiveFromISR, funcdef_no=15, decl_uid=6046, cgraph_uid=16, symbol_order=15)
  1326. xStreamBufferReceiveFromISR (struct StreamBufferDef_t * xStreamBuffer, void * pvRxData, size_t xBufferLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken)
  1327. {
  1328. uint32_t ulNewMaskValue;
  1329. uint32_t D.6664;
  1330. uint32_t ulOriginalBASEPRI;
  1331. uint32_t ulNewBASEPRI;
  1332. uint32_t D.6663;
  1333. uint32_t ulNewBASEPRI;
  1334. uint32_t ulNewBASEPRI;
  1335. UBaseType_t uxSavedInterruptStatus;
  1336. size_t xBytesToStoreMessageLength;
  1337. size_t xBytesAvailable;
  1338. size_t xReceivedLength;
  1339. struct StreamBuffer_t * const pxStreamBuffer;
  1340. size_t D.6506;
  1341. unsigned char _1;
  1342. int _2;
  1343. int _3;
  1344. struct tskTaskControlBlock * _4;
  1345. struct tskTaskControlBlock * _5;
  1346. size_t _26;
  1347. long unsigned int _31;
  1348. <bb 2> :
  1349. pxStreamBuffer_11 = xStreamBuffer_10(D);
  1350. xReceivedLength_12 = 0;
  1351. if (pvRxData_13(D) == 0B)
  1352. goto <bb 3>; [INV]
  1353. else
  1354. goto <bb 6>; [INV]
  1355. <bb 3> :
  1356. __asm__ __volatile__(" mov %0, %1
  1357. msr basepri, %0
  1358. isb
  1359. dsb
  1360. " : "=r" ulNewBASEPRI_27 : "i" 16 : "memory");
  1361. <bb 4> :
  1362. <bb 5> :
  1363. goto <bb 5>; [INV]
  1364. <bb 6> :
  1365. if (pxStreamBuffer_11 == 0B)
  1366. goto <bb 7>; [INV]
  1367. else
  1368. goto <bb 10>; [INV]
  1369. <bb 7> :
  1370. __asm__ __volatile__(" mov %0, %1
  1371. msr basepri, %0
  1372. isb
  1373. dsb
  1374. " : "=r" ulNewBASEPRI_28 : "i" 16 : "memory");
  1375. <bb 8> :
  1376. <bb 9> :
  1377. goto <bb 9>; [INV]
  1378. <bb 10> :
  1379. _1 = pxStreamBuffer_11->ucFlags;
  1380. _2 = (int) _1;
  1381. _3 = _2 & 1;
  1382. if (_3 != 0)
  1383. goto <bb 11>; [INV]
  1384. else
  1385. goto <bb 12>; [INV]
  1386. <bb 11> :
  1387. xBytesToStoreMessageLength_16 = 4;
  1388. goto <bb 13>; [INV]
  1389. <bb 12> :
  1390. xBytesToStoreMessageLength_15 = 0;
  1391. <bb 13> :
  1392. # xBytesToStoreMessageLength_7 = PHI <xBytesToStoreMessageLength_16(11), xBytesToStoreMessageLength_15(12)>
  1393. xBytesAvailable_18 = prvBytesInBuffer (pxStreamBuffer_11);
  1394. if (xBytesAvailable_18 > xBytesToStoreMessageLength_7)
  1395. goto <bb 14>; [INV]
  1396. else
  1397. goto <bb 21>; [INV]
  1398. <bb 14> :
  1399. xReceivedLength_21 = prvReadMessageFromBuffer (pxStreamBuffer_11, pvRxData_13(D), xBufferLengthBytes_19(D), xBytesAvailable_18);
  1400. if (xReceivedLength_21 != 0)
  1401. goto <bb 15>; [INV]
  1402. else
  1403. goto <bb 21>; [INV]
  1404. <bb 15> :
  1405. __asm__ __volatile__(" mrs %0, basepri
  1406. mov %1, %2
  1407. msr basepri, %1
  1408. isb
  1409. dsb
  1410. " : "=r" ulOriginalBASEPRI_29, "=r" ulNewBASEPRI_30 : "i" 16 : "memory");
  1411. _31 = ulOriginalBASEPRI_29;
  1412. <bb 16> :
  1413. <L18>:
  1414. _34 = _31;
  1415. <bb 17> :
  1416. uxSavedInterruptStatus_22 = _34;
  1417. _4 ={v} pxStreamBuffer_11->xTaskWaitingToSend;
  1418. if (_4 != 0B)
  1419. goto <bb 18>; [INV]
  1420. else
  1421. goto <bb 19>; [INV]
  1422. <bb 18> :
  1423. _5 ={v} pxStreamBuffer_11->xTaskWaitingToSend;
  1424. xTaskGenericNotifyFromISR (_5, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_23(D));
  1425. pxStreamBuffer_11->xTaskWaitingToSend ={v} 0B;
  1426. <bb 19> :
  1427. ulNewMaskValue_32 = uxSavedInterruptStatus_22;
  1428. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_32 : "memory");
  1429. <bb 20> :
  1430. <bb 21> :
  1431. # xReceivedLength_6 = PHI <xReceivedLength_12(13), xReceivedLength_21(20), xReceivedLength_21(14)>
  1432. _26 = xReceivedLength_6;
  1433. <bb 22> :
  1434. <L17>:
  1435. return _26;
  1436. }
  1437. ;; Function prvReadMessageFromBuffer (prvReadMessageFromBuffer, funcdef_no=16, decl_uid=6108, cgraph_uid=17, symbol_order=16)
  1438. prvReadMessageFromBuffer (struct StreamBuffer_t * pxStreamBuffer, void * pvRxData, size_t xBufferLengthBytes, size_t xBytesAvailable)
  1439. {
  1440. size_t xNextTail;
  1441. size_t xTempNextMessageLength;
  1442. size_t xNextMessageLength;
  1443. size_t xCount;
  1444. size_t D.6516;
  1445. unsigned char _1;
  1446. int _2;
  1447. int _3;
  1448. unsigned int _4;
  1449. size_t _25;
  1450. <bb 2> :
  1451. xNextTail_12 ={v} pxStreamBuffer_11(D)->xTail;
  1452. _1 = pxStreamBuffer_11(D)->ucFlags;
  1453. _2 = (int) _1;
  1454. _3 = _2 & 1;
  1455. if (_3 != 0)
  1456. goto <bb 3>; [INV]
  1457. else
  1458. goto <bb 5>; [INV]
  1459. <bb 3> :
  1460. xNextTail_17 = prvReadBytesFromBuffer (pxStreamBuffer_11(D), &xTempNextMessageLength, 4, xNextTail_12);
  1461. xNextMessageLength_18 = xTempNextMessageLength;
  1462. xBytesAvailable_19 = xBytesAvailable_15(D) + 4294967292;
  1463. if (xNextMessageLength_18 > xBufferLengthBytes_13(D))
  1464. goto <bb 4>; [INV]
  1465. else
  1466. goto <bb 6>; [INV]
  1467. <bb 4> :
  1468. xNextMessageLength_20 = 0;
  1469. goto <bb 6>; [INV]
  1470. <bb 5> :
  1471. xNextMessageLength_14 = xBufferLengthBytes_13(D);
  1472. <bb 6> :
  1473. # xBytesAvailable_5 = PHI <xBytesAvailable_19(4), xBytesAvailable_15(D)(5), xBytesAvailable_19(3)>
  1474. # xNextMessageLength_6 = PHI <xNextMessageLength_20(4), xNextMessageLength_14(5), xNextMessageLength_18(3)>
  1475. # xNextTail_7 = PHI <xNextTail_17(4), xNextTail_12(5), xNextTail_17(3)>
  1476. xCount_21 = MIN_EXPR <xBytesAvailable_5, xNextMessageLength_6>;
  1477. if (xCount_21 != 0)
  1478. goto <bb 7>; [INV]
  1479. else
  1480. goto <bb 8>; [INV]
  1481. <bb 7> :
  1482. _4 = prvReadBytesFromBuffer (pxStreamBuffer_11(D), pvRxData_22(D), xCount_21, xNextTail_7);
  1483. pxStreamBuffer_11(D)->xTail ={v} _4;
  1484. <bb 8> :
  1485. _25 = xCount_21;
  1486. xTempNextMessageLength ={v} {CLOBBER};
  1487. <bb 9> :
  1488. <L9>:
  1489. return _25;
  1490. }
  1491. ;; Function xStreamBufferIsEmpty (xStreamBufferIsEmpty, funcdef_no=17, decl_uid=6052, cgraph_uid=18, symbol_order=17)
  1492. xStreamBufferIsEmpty (struct StreamBufferDef_t * xStreamBuffer)
  1493. {
  1494. uint32_t ulNewBASEPRI;
  1495. size_t xTail;
  1496. BaseType_t xReturn;
  1497. const struct StreamBuffer_t * const pxStreamBuffer;
  1498. BaseType_t D.6524;
  1499. unsigned int _1;
  1500. BaseType_t _9;
  1501. <bb 2> :
  1502. pxStreamBuffer_4 = xStreamBuffer_3(D);
  1503. if (pxStreamBuffer_4 == 0B)
  1504. goto <bb 3>; [INV]
  1505. else
  1506. goto <bb 6>; [INV]
  1507. <bb 3> :
  1508. __asm__ __volatile__(" mov %0, %1
  1509. msr basepri, %0
  1510. isb
  1511. dsb
  1512. " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
  1513. <bb 4> :
  1514. <bb 5> :
  1515. goto <bb 5>; [INV]
  1516. <bb 6> :
  1517. xTail_6 ={v} pxStreamBuffer_4->xTail;
  1518. _1 ={v} pxStreamBuffer_4->xHead;
  1519. if (xTail_6 == _1)
  1520. goto <bb 7>; [INV]
  1521. else
  1522. goto <bb 8>; [INV]
  1523. <bb 7> :
  1524. xReturn_8 = 1;
  1525. goto <bb 9>; [INV]
  1526. <bb 8> :
  1527. xReturn_7 = 0;
  1528. <bb 9> :
  1529. # xReturn_2 = PHI <xReturn_8(7), xReturn_7(8)>
  1530. _9 = xReturn_2;
  1531. <bb 10> :
  1532. <L6>:
  1533. return _9;
  1534. }
  1535. ;; Function xStreamBufferIsFull (xStreamBufferIsFull, funcdef_no=18, decl_uid=6050, cgraph_uid=19, symbol_order=18)
  1536. xStreamBufferIsFull (struct StreamBufferDef_t * xStreamBuffer)
  1537. {
  1538. uint32_t ulNewBASEPRI;
  1539. const struct StreamBuffer_t * const pxStreamBuffer;
  1540. size_t xBytesToStoreMessageLength;
  1541. BaseType_t xReturn;
  1542. BaseType_t D.6534;
  1543. unsigned char _1;
  1544. int _2;
  1545. int _3;
  1546. unsigned int _4;
  1547. BaseType_t _15;
  1548. <bb 2> :
  1549. pxStreamBuffer_8 = xStreamBuffer_7(D);
  1550. if (pxStreamBuffer_8 == 0B)
  1551. goto <bb 3>; [INV]
  1552. else
  1553. goto <bb 6>; [INV]
  1554. <bb 3> :
  1555. __asm__ __volatile__(" mov %0, %1
  1556. msr basepri, %0
  1557. isb
  1558. dsb
  1559. " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
  1560. <bb 4> :
  1561. <bb 5> :
  1562. goto <bb 5>; [INV]
  1563. <bb 6> :
  1564. _1 = pxStreamBuffer_8->ucFlags;
  1565. _2 = (int) _1;
  1566. _3 = _2 & 1;
  1567. if (_3 != 0)
  1568. goto <bb 7>; [INV]
  1569. else
  1570. goto <bb 8>; [INV]
  1571. <bb 7> :
  1572. xBytesToStoreMessageLength_11 = 4;
  1573. goto <bb 9>; [INV]
  1574. <bb 8> :
  1575. xBytesToStoreMessageLength_10 = 0;
  1576. <bb 9> :
  1577. # xBytesToStoreMessageLength_6 = PHI <xBytesToStoreMessageLength_11(7), xBytesToStoreMessageLength_10(8)>
  1578. _4 = xStreamBufferSpacesAvailable (xStreamBuffer_7(D));
  1579. if (xBytesToStoreMessageLength_6 >= _4)
  1580. goto <bb 10>; [INV]
  1581. else
  1582. goto <bb 11>; [INV]
  1583. <bb 10> :
  1584. xReturn_14 = 1;
  1585. goto <bb 12>; [INV]
  1586. <bb 11> :
  1587. xReturn_13 = 0;
  1588. <bb 12> :
  1589. # xReturn_5 = PHI <xReturn_14(10), xReturn_13(11)>
  1590. _15 = xReturn_5;
  1591. <bb 13> :
  1592. <L9>:
  1593. return _15;
  1594. }
  1595. ;; Function xStreamBufferSendCompletedFromISR (xStreamBufferSendCompletedFromISR, funcdef_no=19, decl_uid=6064, cgraph_uid=20, symbol_order=19)
  1596. xStreamBufferSendCompletedFromISR (struct StreamBufferDef_t * xStreamBuffer, BaseType_t * pxHigherPriorityTaskWoken)
  1597. {
  1598. uint32_t ulNewMaskValue;
  1599. uint32_t D.6625;
  1600. uint32_t ulOriginalBASEPRI;
  1601. uint32_t ulNewBASEPRI;
  1602. uint32_t D.6624;
  1603. uint32_t ulNewBASEPRI;
  1604. UBaseType_t uxSavedInterruptStatus;
  1605. BaseType_t xReturn;
  1606. struct StreamBuffer_t * const pxStreamBuffer;
  1607. BaseType_t D.6541;
  1608. struct tskTaskControlBlock * _1;
  1609. struct tskTaskControlBlock * _2;
  1610. BaseType_t _14;
  1611. long unsigned int _18;
  1612. <bb 2> :
  1613. pxStreamBuffer_6 = xStreamBuffer_5(D);
  1614. if (pxStreamBuffer_6 == 0B)
  1615. goto <bb 3>; [INV]
  1616. else
  1617. goto <bb 6>; [INV]
  1618. <bb 3> :
  1619. __asm__ __volatile__(" mov %0, %1
  1620. msr basepri, %0
  1621. isb
  1622. dsb
  1623. " : "=r" ulNewBASEPRI_15 : "i" 16 : "memory");
  1624. <bb 4> :
  1625. <bb 5> :
  1626. goto <bb 5>; [INV]
  1627. <bb 6> :
  1628. __asm__ __volatile__(" mrs %0, basepri
  1629. mov %1, %2
  1630. msr basepri, %1
  1631. isb
  1632. dsb
  1633. " : "=r" ulOriginalBASEPRI_16, "=r" ulNewBASEPRI_17 : "i" 16 : "memory");
  1634. _18 = ulOriginalBASEPRI_16;
  1635. <bb 7> :
  1636. <L7>:
  1637. _21 = _18;
  1638. <bb 8> :
  1639. uxSavedInterruptStatus_8 = _21;
  1640. _1 ={v} pxStreamBuffer_6->xTaskWaitingToReceive;
  1641. if (_1 != 0B)
  1642. goto <bb 9>; [INV]
  1643. else
  1644. goto <bb 10>; [INV]
  1645. <bb 9> :
  1646. _2 ={v} pxStreamBuffer_6->xTaskWaitingToReceive;
  1647. xTaskGenericNotifyFromISR (_2, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_10(D));
  1648. pxStreamBuffer_6->xTaskWaitingToReceive ={v} 0B;
  1649. xReturn_13 = 1;
  1650. goto <bb 11>; [INV]
  1651. <bb 10> :
  1652. xReturn_9 = 0;
  1653. <bb 11> :
  1654. # xReturn_3 = PHI <xReturn_13(9), xReturn_9(10)>
  1655. ulNewMaskValue_19 = uxSavedInterruptStatus_8;
  1656. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_19 : "memory");
  1657. <bb 12> :
  1658. _14 = xReturn_3;
  1659. <bb 13> :
  1660. <L6>:
  1661. return _14;
  1662. }
  1663. ;; Function xStreamBufferReceiveCompletedFromISR (xStreamBufferReceiveCompletedFromISR, funcdef_no=20, decl_uid=6067, cgraph_uid=21, symbol_order=20)
  1664. xStreamBufferReceiveCompletedFromISR (struct StreamBufferDef_t * xStreamBuffer, BaseType_t * pxHigherPriorityTaskWoken)
  1665. {
  1666. uint32_t ulNewMaskValue;
  1667. uint32_t D.6632;
  1668. uint32_t ulOriginalBASEPRI;
  1669. uint32_t ulNewBASEPRI;
  1670. uint32_t D.6631;
  1671. uint32_t ulNewBASEPRI;
  1672. UBaseType_t uxSavedInterruptStatus;
  1673. BaseType_t xReturn;
  1674. struct StreamBuffer_t * const pxStreamBuffer;
  1675. BaseType_t D.6548;
  1676. struct tskTaskControlBlock * _1;
  1677. struct tskTaskControlBlock * _2;
  1678. BaseType_t _14;
  1679. long unsigned int _18;
  1680. <bb 2> :
  1681. pxStreamBuffer_6 = xStreamBuffer_5(D);
  1682. if (pxStreamBuffer_6 == 0B)
  1683. goto <bb 3>; [INV]
  1684. else
  1685. goto <bb 6>; [INV]
  1686. <bb 3> :
  1687. __asm__ __volatile__(" mov %0, %1
  1688. msr basepri, %0
  1689. isb
  1690. dsb
  1691. " : "=r" ulNewBASEPRI_15 : "i" 16 : "memory");
  1692. <bb 4> :
  1693. <bb 5> :
  1694. goto <bb 5>; [INV]
  1695. <bb 6> :
  1696. __asm__ __volatile__(" mrs %0, basepri
  1697. mov %1, %2
  1698. msr basepri, %1
  1699. isb
  1700. dsb
  1701. " : "=r" ulOriginalBASEPRI_16, "=r" ulNewBASEPRI_17 : "i" 16 : "memory");
  1702. _18 = ulOriginalBASEPRI_16;
  1703. <bb 7> :
  1704. <L7>:
  1705. _21 = _18;
  1706. <bb 8> :
  1707. uxSavedInterruptStatus_8 = _21;
  1708. _1 ={v} pxStreamBuffer_6->xTaskWaitingToSend;
  1709. if (_1 != 0B)
  1710. goto <bb 9>; [INV]
  1711. else
  1712. goto <bb 10>; [INV]
  1713. <bb 9> :
  1714. _2 ={v} pxStreamBuffer_6->xTaskWaitingToSend;
  1715. xTaskGenericNotifyFromISR (_2, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_10(D));
  1716. pxStreamBuffer_6->xTaskWaitingToSend ={v} 0B;
  1717. xReturn_13 = 1;
  1718. goto <bb 11>; [INV]
  1719. <bb 10> :
  1720. xReturn_9 = 0;
  1721. <bb 11> :
  1722. # xReturn_3 = PHI <xReturn_13(9), xReturn_9(10)>
  1723. ulNewMaskValue_19 = uxSavedInterruptStatus_8;
  1724. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_19 : "memory");
  1725. <bb 12> :
  1726. _14 = xReturn_3;
  1727. <bb 13> :
  1728. <L6>:
  1729. return _14;
  1730. }
  1731. ;; Function prvWriteBytesToBuffer (prvWriteBytesToBuffer, funcdef_no=21, decl_uid=6103, cgraph_uid=22, symbol_order=21)
  1732. prvWriteBytesToBuffer (struct StreamBuffer_t * const pxStreamBuffer, const uint8_t * pucData, size_t xCount, size_t xHead)
  1733. {
  1734. uint32_t ulNewBASEPRI;
  1735. uint32_t ulNewBASEPRI;
  1736. uint32_t ulNewBASEPRI;
  1737. size_t xFirstLength;
  1738. size_t D.6562;
  1739. unsigned int _1;
  1740. unsigned int _2;
  1741. unsigned int _3;
  1742. unsigned int _4;
  1743. uint8_t * _5;
  1744. uint8_t * _6;
  1745. unsigned int _7;
  1746. unsigned int _8;
  1747. uint8_t * _9;
  1748. const uint8_t * _10;
  1749. unsigned int _11;
  1750. unsigned int _12;
  1751. unsigned int _13;
  1752. size_t _26;
  1753. <bb 2> :
  1754. if (xCount_16(D) == 0)
  1755. goto <bb 3>; [INV]
  1756. else
  1757. goto <bb 6>; [INV]
  1758. <bb 3> :
  1759. __asm__ __volatile__(" mov %0, %1
  1760. msr basepri, %0
  1761. isb
  1762. dsb
  1763. " : "=r" ulNewBASEPRI_27 : "i" 16 : "memory");
  1764. <bb 4> :
  1765. <bb 5> :
  1766. goto <bb 5>; [INV]
  1767. <bb 6> :
  1768. _1 = pxStreamBuffer_18(D)->xLength;
  1769. _2 = _1 - xHead_19(D);
  1770. xFirstLength_20 = MIN_EXPR <xCount_16(D), _2>;
  1771. _3 = xHead_19(D) + xFirstLength_20;
  1772. _4 = pxStreamBuffer_18(D)->xLength;
  1773. if (_3 > _4)
  1774. goto <bb 7>; [INV]
  1775. else
  1776. goto <bb 10>; [INV]
  1777. <bb 7> :
  1778. __asm__ __volatile__(" mov %0, %1
  1779. msr basepri, %0
  1780. isb
  1781. dsb
  1782. " : "=r" ulNewBASEPRI_28 : "i" 16 : "memory");
  1783. <bb 8> :
  1784. <bb 9> :
  1785. goto <bb 9>; [INV]
  1786. <bb 10> :
  1787. _5 = pxStreamBuffer_18(D)->pucBuffer;
  1788. _6 = _5 + xHead_19(D);
  1789. memcpy (_6, pucData_21(D), xFirstLength_20);
  1790. if (xCount_16(D) > xFirstLength_20)
  1791. goto <bb 11>; [INV]
  1792. else
  1793. goto <bb 16>; [INV]
  1794. <bb 11> :
  1795. _7 = xCount_16(D) - xFirstLength_20;
  1796. _8 = pxStreamBuffer_18(D)->xLength;
  1797. if (_7 > _8)
  1798. goto <bb 12>; [INV]
  1799. else
  1800. goto <bb 15>; [INV]
  1801. <bb 12> :
  1802. __asm__ __volatile__(" mov %0, %1
  1803. msr basepri, %0
  1804. isb
  1805. dsb
  1806. " : "=r" ulNewBASEPRI_29 : "i" 16 : "memory");
  1807. <bb 13> :
  1808. <bb 14> :
  1809. goto <bb 14>; [INV]
  1810. <bb 15> :
  1811. _9 = pxStreamBuffer_18(D)->pucBuffer;
  1812. _10 = pucData_21(D) + xFirstLength_20;
  1813. _11 = xCount_16(D) - xFirstLength_20;
  1814. memcpy (_9, _10, _11);
  1815. <bb 16> :
  1816. xHead_24 = xHead_19(D) + xCount_16(D);
  1817. _12 = pxStreamBuffer_18(D)->xLength;
  1818. if (xHead_24 >= _12)
  1819. goto <bb 17>; [INV]
  1820. else
  1821. goto <bb 18>; [INV]
  1822. <bb 17> :
  1823. _13 = pxStreamBuffer_18(D)->xLength;
  1824. xHead_25 = xHead_24 - _13;
  1825. <bb 18> :
  1826. # xHead_14 = PHI <xHead_24(16), xHead_25(17)>
  1827. _26 = xHead_14;
  1828. <bb 19> :
  1829. <L15>:
  1830. return _26;
  1831. }
  1832. ;; Function prvReadBytesFromBuffer (prvReadBytesFromBuffer, funcdef_no=22, decl_uid=6119, cgraph_uid=23, symbol_order=22)
  1833. prvReadBytesFromBuffer (struct StreamBuffer_t * pxStreamBuffer, uint8_t * pucData, size_t xCount, size_t xTail)
  1834. {
  1835. uint32_t ulNewBASEPRI;
  1836. uint32_t ulNewBASEPRI;
  1837. uint32_t ulNewBASEPRI;
  1838. size_t xFirstLength;
  1839. size_t D.6575;
  1840. unsigned int _1;
  1841. unsigned int _2;
  1842. unsigned int _3;
  1843. unsigned int _4;
  1844. uint8_t * _5;
  1845. uint8_t * _6;
  1846. uint8_t * _7;
  1847. uint8_t * _8;
  1848. unsigned int _9;
  1849. unsigned int _10;
  1850. unsigned int _11;
  1851. size_t _24;
  1852. <bb 2> :
  1853. if (xCount_14(D) == 0)
  1854. goto <bb 3>; [INV]
  1855. else
  1856. goto <bb 6>; [INV]
  1857. <bb 3> :
  1858. __asm__ __volatile__(" mov %0, %1
  1859. msr basepri, %0
  1860. isb
  1861. dsb
  1862. " : "=r" ulNewBASEPRI_25 : "i" 16 : "memory");
  1863. <bb 4> :
  1864. <bb 5> :
  1865. goto <bb 5>; [INV]
  1866. <bb 6> :
  1867. _1 = pxStreamBuffer_16(D)->xLength;
  1868. _2 = _1 - xTail_17(D);
  1869. xFirstLength_18 = MIN_EXPR <xCount_14(D), _2>;
  1870. if (xFirstLength_18 > xCount_14(D))
  1871. goto <bb 7>; [INV]
  1872. else
  1873. goto <bb 10>; [INV]
  1874. <bb 7> :
  1875. __asm__ __volatile__(" mov %0, %1
  1876. msr basepri, %0
  1877. isb
  1878. dsb
  1879. " : "=r" ulNewBASEPRI_26 : "i" 16 : "memory");
  1880. <bb 8> :
  1881. <bb 9> :
  1882. goto <bb 9>; [INV]
  1883. <bb 10> :
  1884. _3 = xTail_17(D) + xFirstLength_18;
  1885. _4 = pxStreamBuffer_16(D)->xLength;
  1886. if (_3 > _4)
  1887. goto <bb 11>; [INV]
  1888. else
  1889. goto <bb 14>; [INV]
  1890. <bb 11> :
  1891. __asm__ __volatile__(" mov %0, %1
  1892. msr basepri, %0
  1893. isb
  1894. dsb
  1895. " : "=r" ulNewBASEPRI_27 : "i" 16 : "memory");
  1896. <bb 12> :
  1897. <bb 13> :
  1898. goto <bb 13>; [INV]
  1899. <bb 14> :
  1900. _5 = pxStreamBuffer_16(D)->pucBuffer;
  1901. _6 = _5 + xTail_17(D);
  1902. memcpy (pucData_19(D), _6, xFirstLength_18);
  1903. if (xCount_14(D) > xFirstLength_18)
  1904. goto <bb 15>; [INV]
  1905. else
  1906. goto <bb 16>; [INV]
  1907. <bb 15> :
  1908. _7 = pucData_19(D) + xFirstLength_18;
  1909. _8 = pxStreamBuffer_16(D)->pucBuffer;
  1910. _9 = xCount_14(D) - xFirstLength_18;
  1911. memcpy (_7, _8, _9);
  1912. <bb 16> :
  1913. xTail_22 = xTail_17(D) + xCount_14(D);
  1914. _10 = pxStreamBuffer_16(D)->xLength;
  1915. if (xTail_22 >= _10)
  1916. goto <bb 17>; [INV]
  1917. else
  1918. goto <bb 18>; [INV]
  1919. <bb 17> :
  1920. _11 = pxStreamBuffer_16(D)->xLength;
  1921. xTail_23 = xTail_22 - _11;
  1922. <bb 18> :
  1923. # xTail_12 = PHI <xTail_22(16), xTail_23(17)>
  1924. _24 = xTail_12;
  1925. <bb 19> :
  1926. <L14>:
  1927. return _24;
  1928. }
  1929. ;; Function prvBytesInBuffer (prvBytesInBuffer, funcdef_no=23, decl_uid=6098, cgraph_uid=24, symbol_order=23)
  1930. prvBytesInBuffer (const struct StreamBuffer_t * const pxStreamBuffer)
  1931. {
  1932. size_t xCount;
  1933. size_t D.6581;
  1934. unsigned int D.6577;
  1935. unsigned int _1;
  1936. unsigned int _2;
  1937. unsigned int _3;
  1938. unsigned int _4;
  1939. unsigned int _9;
  1940. size_t _12;
  1941. <bb 2> :
  1942. _1 = pxStreamBuffer_7(D)->xLength;
  1943. _2 ={v} pxStreamBuffer_7(D)->xHead;
  1944. xCount_8 = _1 + _2;
  1945. _9 ={v} pxStreamBuffer_7(D)->xTail;
  1946. xCount_10 = xCount_8 - _9;
  1947. _3 = pxStreamBuffer_7(D)->xLength;
  1948. if (xCount_10 >= _3)
  1949. goto <bb 3>; [INV]
  1950. else
  1951. goto <bb 4>; [INV]
  1952. <bb 3> :
  1953. _4 = pxStreamBuffer_7(D)->xLength;
  1954. xCount_11 = xCount_10 - _4;
  1955. <bb 4> :
  1956. # xCount_5 = PHI <xCount_10(2), xCount_11(3)>
  1957. _12 = xCount_5;
  1958. <bb 5> :
  1959. <L3>:
  1960. return _12;
  1961. }
  1962. ;; Function prvInitialiseNewStreamBuffer (prvInitialiseNewStreamBuffer, funcdef_no=24, decl_uid=6125, cgraph_uid=25, symbol_order=24)
  1963. prvInitialiseNewStreamBuffer (struct StreamBuffer_t * const pxStreamBuffer, uint8_t * const pucBuffer, size_t xBufferSizeBytes, size_t xTriggerLevelBytes, uint8_t ucFlags)
  1964. {
  1965. uint32_t ulNewBASEPRI;
  1966. const BaseType_t xWriteValue;
  1967. void * _1;
  1968. <bb 2> :
  1969. xWriteValue_2 = 85;
  1970. _1 = memset (pucBuffer_4(D), xWriteValue_2, xBufferSizeBytes_5(D));
  1971. if (pucBuffer_4(D) != _1)
  1972. goto <bb 3>; [INV]
  1973. else
  1974. goto <bb 6>; [INV]
  1975. <bb 3> :
  1976. __asm__ __volatile__(" mov %0, %1
  1977. msr basepri, %0
  1978. isb
  1979. dsb
  1980. " : "=r" ulNewBASEPRI_15 : "i" 16 : "memory");
  1981. <bb 4> :
  1982. <bb 5> :
  1983. goto <bb 5>; [INV]
  1984. <bb 6> :
  1985. memset (pxStreamBuffer_7(D), 0, 36);
  1986. pxStreamBuffer_7(D)->pucBuffer = pucBuffer_4(D);
  1987. pxStreamBuffer_7(D)->xLength = xBufferSizeBytes_5(D);
  1988. pxStreamBuffer_7(D)->xTriggerLevelBytes = xTriggerLevelBytes_11(D);
  1989. pxStreamBuffer_7(D)->ucFlags = ucFlags_13(D);
  1990. return;
  1991. }
  1992. ;; Function uxStreamBufferGetStreamBufferNumber (uxStreamBufferGetStreamBufferNumber, funcdef_no=25, decl_uid=6084, cgraph_uid=26, symbol_order=25)
  1993. uxStreamBufferGetStreamBufferNumber (struct StreamBufferDef_t * xStreamBuffer)
  1994. {
  1995. UBaseType_t D.6585;
  1996. UBaseType_t _3;
  1997. <bb 2> :
  1998. _3 = xStreamBuffer_2(D)->uxStreamBufferNumber;
  1999. <bb 3> :
  2000. <L0>:
  2001. return _3;
  2002. }
  2003. ;; Function vStreamBufferSetStreamBufferNumber (vStreamBufferSetStreamBufferNumber, funcdef_no=26, decl_uid=6082, cgraph_uid=27, symbol_order=26)
  2004. vStreamBufferSetStreamBufferNumber (struct StreamBufferDef_t * xStreamBuffer, UBaseType_t uxStreamBufferNumber)
  2005. {
  2006. <bb 2> :
  2007. xStreamBuffer_2(D)->uxStreamBufferNumber = uxStreamBufferNumber_3(D);
  2008. return;
  2009. }
  2010. ;; Function ucStreamBufferGetStreamBufferType (ucStreamBufferGetStreamBufferType, funcdef_no=27, decl_uid=6086, cgraph_uid=28, symbol_order=27)
  2011. ucStreamBufferGetStreamBufferType (struct StreamBufferDef_t * xStreamBuffer)
  2012. {
  2013. uint8_t D.6587;
  2014. unsigned char _1;
  2015. uint8_t _4;
  2016. <bb 2> :
  2017. _1 = xStreamBuffer_3(D)->ucFlags;
  2018. _4 = _1 & 1;
  2019. <bb 3> :
  2020. <L0>:
  2021. return _4;
  2022. }