queue.c.048i.remove_symbols 90 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172
  1. Reclaiming functions:
  2. Reclaiming variables:
  3. Clearing address taken flags:
  4. Symbol table:
  5. vTaskPlaceOnEventListRestricted/62 (vTaskPlaceOnEventListRestricted) @060be700
  6. Type: function
  7. Visibility: external public
  8. References:
  9. Referring:
  10. Availability: not_available
  11. Function flags:
  12. Called by: vQueueWaitForMessageRestricted/41
  13. Calls:
  14. vTaskMissedYield/61 (vTaskMissedYield) @060a6ee0
  15. Type: function
  16. Visibility: external public
  17. References:
  18. Referring:
  19. Availability: not_available
  20. Function flags:
  21. Called by: prvUnlockQueue/33 prvUnlockQueue/33
  22. Calls:
  23. memcpy/60 (memcpy) @060a6c40
  24. Type: function
  25. Visibility: external public
  26. References:
  27. Referring:
  28. Availability: not_available
  29. Function flags:
  30. Called by: prvCopyDataFromQueue/32 prvCopyDataToQueue/31 prvCopyDataToQueue/31
  31. Calls:
  32. xTaskPriorityDisinherit/59 (xTaskPriorityDisinherit) @060a6b60
  33. Type: function
  34. Visibility: external public
  35. References:
  36. Referring:
  37. Availability: not_available
  38. Function flags:
  39. Called by: prvCopyDataToQueue/31
  40. Calls:
  41. vPortFree/58 (vPortFree) @060a6540
  42. Type: function
  43. Visibility: external public
  44. References:
  45. Referring:
  46. Availability: not_available
  47. Function flags:
  48. Called by: vQueueDelete/26
  49. Calls:
  50. vTaskPriorityDisinheritAfterTimeout/57 (vTaskPriorityDisinheritAfterTimeout) @0606dd20
  51. Type: function
  52. Visibility: external public
  53. References:
  54. Referring:
  55. Availability: not_available
  56. Function flags:
  57. Called by: xQueueSemaphoreTake/19
  58. Calls:
  59. xTaskPriorityInherit/56 (xTaskPriorityInherit) @0606dc40
  60. Type: function
  61. Visibility: external public
  62. References:
  63. Referring:
  64. Availability: not_available
  65. Function flags:
  66. Called by: xQueueSemaphoreTake/19
  67. Calls:
  68. pvTaskIncrementMutexHeldCount/55 (pvTaskIncrementMutexHeldCount) @0606db60
  69. Type: function
  70. Visibility: external public
  71. References:
  72. Referring:
  73. Availability: not_available
  74. Function flags:
  75. Called by: xQueueSemaphoreTake/19
  76. Calls:
  77. vPortValidateInterruptPriority/54 (vPortValidateInterruptPriority) @0606d0e0
  78. Type: function
  79. Visibility: external public
  80. References:
  81. Referring:
  82. Availability: not_available
  83. Function flags:
  84. Called by: xQueuePeekFromISR/22 xQueueReceiveFromISR/21 xQueueGenericSendFromISR/16 xQueueGiveFromISR/17
  85. Calls:
  86. xTaskResumeAll/53 (xTaskResumeAll) @06013ee0
  87. Type: function
  88. Visibility: external public
  89. References:
  90. Referring:
  91. Availability: not_available
  92. Function flags:
  93. Called by: xQueueGenericSend/15 xQueueGenericSend/15 xQueueGenericSend/15 xQueuePeek/20 xQueuePeek/20 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueReceive/18 xQueueReceive/18 xQueueReceive/18
  94. Calls:
  95. vTaskPlaceOnEventList/52 (vTaskPlaceOnEventList) @06013e00
  96. Type: function
  97. Visibility: external public
  98. References:
  99. Referring:
  100. Availability: not_available
  101. Function flags:
  102. Called by: xQueueGenericSend/15 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueReceive/18
  103. Calls:
  104. xTaskCheckForTimeOut/51 (xTaskCheckForTimeOut) @06013d20
  105. Type: function
  106. Visibility: external public
  107. References:
  108. Referring:
  109. Availability: not_available
  110. Function flags:
  111. Called by: xQueueGenericSend/15 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueReceive/18
  112. Calls:
  113. vTaskSuspendAll/50 (vTaskSuspendAll) @06013c40
  114. Type: function
  115. Visibility: external public
  116. References:
  117. Referring:
  118. Availability: not_available
  119. Function flags:
  120. Called by: xQueueGenericSend/15 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueReceive/18
  121. Calls:
  122. vTaskInternalSetTimeOutState/49 (vTaskInternalSetTimeOutState) @06013b60
  123. Type: function
  124. Visibility: external public
  125. References:
  126. Referring:
  127. Availability: not_available
  128. Function flags:
  129. Called by: xQueueGenericSend/15 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueReceive/18
  130. Calls:
  131. xTaskGetSchedulerState/48 (xTaskGetSchedulerState) @06013a80
  132. Type: function
  133. Visibility: external public
  134. References:
  135. Referring:
  136. Availability: not_available
  137. Function flags:
  138. Called by: xQueueGenericSend/15 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueReceive/18
  139. Calls:
  140. xTaskGetCurrentTaskHandle/47 (xTaskGetCurrentTaskHandle) @06013540
  141. Type: function
  142. Visibility: external public
  143. References:
  144. Referring:
  145. Availability: not_available
  146. Function flags:
  147. Called by: xQueueGiveMutexRecursive/12 xQueueTakeMutexRecursive/13
  148. Calls:
  149. pvPortMalloc/46 (pvPortMalloc) @06009460
  150. Type: function
  151. Visibility: external public
  152. References:
  153. Referring:
  154. Availability: not_available
  155. Function flags:
  156. Called by: xQueueGenericCreate/6
  157. Calls:
  158. vPortExitCritical/45 (vPortExitCritical) @06009e00
  159. Type: function
  160. Visibility: external public
  161. References:
  162. Referring:
  163. Availability: not_available
  164. Function flags:
  165. Called by: vQueueWaitForMessageRestricted/41 xQueueGenericSend/15 xQueueGenericSend/15 xQueueGenericSend/15 xQueueGenericSend/15 prvIsQueueFull/36 xQueuePeek/20 xQueuePeek/20 xQueuePeek/20 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueReceive/18 xQueueReceive/18 xQueueReceive/18 xQueueReceive/18 prvIsQueueEmpty/34 prvUnlockQueue/33 prvUnlockQueue/33 uxQueueSpacesAvailable/24 uxQueueMessagesWaiting/23 xQueueGetMutexHolder/10 xQueueGenericReset/5
  166. Calls:
  167. vListInitialise/44 (vListInitialise) @06009d20
  168. Type: function
  169. Visibility: external public
  170. References:
  171. Referring:
  172. Availability: not_available
  173. Function flags:
  174. Called by: xQueueGenericReset/5 xQueueGenericReset/5
  175. Calls:
  176. xTaskRemoveFromEventList/43 (xTaskRemoveFromEventList) @06009c40
  177. Type: function
  178. Visibility: external public
  179. References:
  180. Referring:
  181. Availability: not_available
  182. Function flags:
  183. Called by: xQueueGenericSend/15 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueReceive/18 prvUnlockQueue/33 prvUnlockQueue/33 xQueueReceiveFromISR/21 xQueueGenericSendFromISR/16 xQueueGiveFromISR/17 xQueueGenericReset/5
  184. Calls:
  185. vPortEnterCritical/42 (vPortEnterCritical) @06009b60
  186. Type: function
  187. Visibility: external public
  188. References:
  189. Referring:
  190. Availability: not_available
  191. Function flags:
  192. Called by: vQueueWaitForMessageRestricted/41 xQueueGenericSend/15 xQueueGenericSend/15 prvIsQueueFull/36 xQueuePeek/20 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueReceive/18 xQueueReceive/18 prvIsQueueEmpty/34 prvUnlockQueue/33 prvUnlockQueue/33 uxQueueSpacesAvailable/24 uxQueueMessagesWaiting/23 xQueueGetMutexHolder/10 xQueueGenericReset/5
  193. Calls:
  194. vQueueWaitForMessageRestricted/41 (vQueueWaitForMessageRestricted) @06009620
  195. Type: function definition analyzed
  196. Visibility: force_output externally_visible no_reorder public
  197. References:
  198. Referring:
  199. Availability: available
  200. Function flags: body
  201. Called by:
  202. Calls: prvUnlockQueue/33 vTaskPlaceOnEventListRestricted/62 vPortExitCritical/45 vPortEnterCritical/42
  203. vQueueUnregisterQueue/40 (vQueueUnregisterQueue) @06009380
  204. Type: function definition analyzed
  205. Visibility: force_output externally_visible no_reorder public
  206. References: xQueueRegistry/4 (read)xQueueRegistry/4 (write)xQueueRegistry/4 (write)
  207. Referring:
  208. Availability: available
  209. Function flags: body
  210. Called by: vQueueDelete/26
  211. Calls:
  212. pcQueueGetName/39 (pcQueueGetName) @06009000
  213. Type: function definition analyzed
  214. Visibility: force_output externally_visible no_reorder public
  215. References: xQueueRegistry/4 (read)xQueueRegistry/4 (read)
  216. Referring:
  217. Availability: available
  218. Function flags: body
  219. Called by:
  220. Calls:
  221. vQueueAddToRegistry/38 (vQueueAddToRegistry) @060018c0
  222. Type: function definition analyzed
  223. Visibility: force_output externally_visible no_reorder public
  224. References: xQueueRegistry/4 (read)xQueueRegistry/4 (addr)xQueueRegistry/4 (read)xQueueRegistry/4 (addr)
  225. Referring:
  226. Availability: available
  227. Function flags: body
  228. Called by:
  229. Calls:
  230. xQueueIsQueueFullFromISR/37 (xQueueIsQueueFullFromISR) @06001e00
  231. Type: function definition analyzed
  232. Visibility: force_output externally_visible no_reorder public
  233. References:
  234. Referring:
  235. Availability: available
  236. Function flags: body
  237. Called by:
  238. Calls:
  239. prvIsQueueFull/36 (prvIsQueueFull) @06001a80
  240. Type: function definition analyzed
  241. Visibility: force_output no_reorder prevailing_def_ironly
  242. References:
  243. Referring:
  244. Availability: available
  245. Function flags: body
  246. Called by: xQueueGenericSend/15
  247. Calls: vPortExitCritical/45 vPortEnterCritical/42
  248. xQueueIsQueueEmptyFromISR/35 (xQueueIsQueueEmptyFromISR) @060017e0
  249. Type: function definition analyzed
  250. Visibility: force_output externally_visible no_reorder public
  251. References:
  252. Referring:
  253. Availability: available
  254. Function flags: body
  255. Called by:
  256. Calls:
  257. prvIsQueueEmpty/34 (prvIsQueueEmpty) @06001460
  258. Type: function definition analyzed
  259. Visibility: force_output no_reorder prevailing_def_ironly
  260. References:
  261. Referring:
  262. Availability: available
  263. Function flags: body
  264. Called by: xQueuePeek/20 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueReceive/18 xQueueReceive/18
  265. Calls: vPortExitCritical/45 vPortEnterCritical/42
  266. prvUnlockQueue/33 (prvUnlockQueue) @060011c0
  267. Type: function definition analyzed
  268. Visibility: force_output no_reorder prevailing_def_ironly
  269. References:
  270. Referring:
  271. Availability: available
  272. Function flags: body
  273. Called by: vQueueWaitForMessageRestricted/41 xQueueGenericSend/15 xQueueGenericSend/15 xQueueGenericSend/15 xQueuePeek/20 xQueuePeek/20 xQueuePeek/20 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueSemaphoreTake/19 xQueueReceive/18 xQueueReceive/18 xQueueReceive/18
  274. Calls: vPortExitCritical/45 vTaskMissedYield/61 xTaskRemoveFromEventList/43 vPortEnterCritical/42 vPortExitCritical/45 vTaskMissedYield/61 xTaskRemoveFromEventList/43 vPortEnterCritical/42
  275. prvCopyDataFromQueue/32 (prvCopyDataFromQueue) @05ffb9a0
  276. Type: function definition analyzed
  277. Visibility: force_output no_reorder prevailing_def_ironly
  278. References:
  279. Referring:
  280. Availability: available
  281. Function flags: body
  282. Called by: xQueuePeek/20 xQueueReceive/18 xQueuePeekFromISR/22 xQueueReceiveFromISR/21
  283. Calls: memcpy/60
  284. prvCopyDataToQueue/31 (prvCopyDataToQueue) @05ffb460
  285. Type: function definition analyzed
  286. Visibility: force_output no_reorder prevailing_def_ironly
  287. References:
  288. Referring:
  289. Availability: available
  290. Function flags: body
  291. Called by: xQueueGenericSend/15 xQueueGenericSendFromISR/16
  292. Calls: memcpy/60 memcpy/60 xTaskPriorityDisinherit/59
  293. prvGetDisinheritPriorityAfterTimeout/30 (prvGetDisinheritPriorityAfterTimeout) @05ffbee0
  294. Type: function definition analyzed
  295. Visibility: force_output no_reorder prevailing_def_ironly
  296. References:
  297. Referring:
  298. Availability: available
  299. Function flags: body
  300. Called by: xQueueSemaphoreTake/19
  301. Calls:
  302. ucQueueGetQueueType/29 (ucQueueGetQueueType) @05ffbb60
  303. Type: function definition analyzed
  304. Visibility: force_output externally_visible no_reorder public
  305. References:
  306. Referring:
  307. Availability: available
  308. Function flags: body
  309. Called by:
  310. Calls:
  311. vQueueSetQueueNumber/28 (vQueueSetQueueNumber) @05ffb8c0
  312. Type: function definition analyzed
  313. Visibility: force_output externally_visible no_reorder public
  314. References:
  315. Referring:
  316. Availability: available
  317. Function flags: body
  318. Called by:
  319. Calls:
  320. uxQueueGetQueueNumber/27 (uxQueueGetQueueNumber) @05ffb620
  321. Type: function definition analyzed
  322. Visibility: force_output externally_visible no_reorder public
  323. References:
  324. Referring:
  325. Availability: available
  326. Function flags: body
  327. Called by:
  328. Calls:
  329. vQueueDelete/26 (vQueueDelete) @05ffb380
  330. Type: function definition analyzed
  331. Visibility: force_output externally_visible no_reorder public
  332. References:
  333. Referring:
  334. Availability: available
  335. Function flags: body
  336. Called by:
  337. Calls: vPortFree/58 vQueueUnregisterQueue/40
  338. uxQueueMessagesWaitingFromISR/25 (uxQueueMessagesWaitingFromISR) @05ffb000
  339. Type: function definition analyzed
  340. Visibility: force_output externally_visible no_reorder public
  341. References:
  342. Referring:
  343. Availability: available
  344. Function flags: body
  345. Called by:
  346. Calls:
  347. uxQueueSpacesAvailable/24 (uxQueueSpacesAvailable) @05ff2620
  348. Type: function definition analyzed
  349. Visibility: force_output externally_visible no_reorder public
  350. References:
  351. Referring:
  352. Availability: available
  353. Function flags: body
  354. Called by:
  355. Calls: vPortExitCritical/45 vPortEnterCritical/42
  356. uxQueueMessagesWaiting/23 (uxQueueMessagesWaiting) @05ff2d20
  357. Type: function definition analyzed
  358. Visibility: force_output externally_visible no_reorder public
  359. References:
  360. Referring:
  361. Availability: available
  362. Function flags: body
  363. Called by:
  364. Calls: vPortExitCritical/45 vPortEnterCritical/42
  365. xQueuePeekFromISR/22 (xQueuePeekFromISR) @05ff29a0
  366. Type: function definition analyzed
  367. Visibility: force_output externally_visible no_reorder public
  368. References:
  369. Referring:
  370. Availability: available
  371. Function flags: body
  372. Called by:
  373. Calls: prvCopyDataFromQueue/32 vPortValidateInterruptPriority/54
  374. xQueueReceiveFromISR/21 (xQueueReceiveFromISR) @05ff2540
  375. Type: function definition analyzed
  376. Visibility: force_output externally_visible no_reorder public
  377. References:
  378. Referring:
  379. Availability: available
  380. Function flags: body
  381. Called by:
  382. Calls: xTaskRemoveFromEventList/43 prvCopyDataFromQueue/32 vPortValidateInterruptPriority/54
  383. xQueuePeek/20 (xQueuePeek) @05ff20e0
  384. Type: function definition analyzed
  385. Visibility: force_output externally_visible no_reorder public
  386. References:
  387. Referring:
  388. Availability: available
  389. Function flags: body
  390. Called by:
  391. Calls: prvIsQueueEmpty/34 xTaskResumeAll/53 prvUnlockQueue/33 xTaskResumeAll/53 prvUnlockQueue/33 xTaskResumeAll/53 prvUnlockQueue/33 vTaskPlaceOnEventList/52 prvIsQueueEmpty/34 xTaskCheckForTimeOut/51 vPortExitCritical/45 vPortEnterCritical/42 vTaskSuspendAll/50 vPortExitCritical/45 vTaskInternalSetTimeOutState/49 vPortExitCritical/45 vPortExitCritical/45 xTaskRemoveFromEventList/43 prvCopyDataFromQueue/32 vPortEnterCritical/42 xTaskGetSchedulerState/48
  392. xQueueSemaphoreTake/19 (xQueueSemaphoreTake) @05fe4d20
  393. Type: function definition analyzed
  394. Visibility: force_output externally_visible no_reorder public
  395. References:
  396. Referring:
  397. Availability: available
  398. Function flags: body
  399. Called by: xQueueTakeMutexRecursive/13
  400. Calls: vPortExitCritical/45 vTaskPriorityDisinheritAfterTimeout/57 prvGetDisinheritPriorityAfterTimeout/30 vPortEnterCritical/42 prvIsQueueEmpty/34 xTaskResumeAll/53 prvUnlockQueue/33 xTaskResumeAll/53 prvUnlockQueue/33 xTaskResumeAll/53 prvUnlockQueue/33 vTaskPlaceOnEventList/52 vPortExitCritical/45 xTaskPriorityInherit/56 vPortEnterCritical/42 prvIsQueueEmpty/34 xTaskCheckForTimeOut/51 vPortExitCritical/45 vPortEnterCritical/42 vTaskSuspendAll/50 vPortExitCritical/45 vTaskInternalSetTimeOutState/49 vPortExitCritical/45 vPortExitCritical/45 xTaskRemoveFromEventList/43 pvTaskIncrementMutexHeldCount/55 vPortEnterCritical/42 xTaskGetSchedulerState/48
  401. xQueueReceive/18 (xQueueReceive) @05fe4620
  402. Type: function definition analyzed
  403. Visibility: force_output externally_visible no_reorder public
  404. References:
  405. Referring:
  406. Availability: available
  407. Function flags: body
  408. Called by:
  409. Calls: prvIsQueueEmpty/34 xTaskResumeAll/53 prvUnlockQueue/33 xTaskResumeAll/53 prvUnlockQueue/33 xTaskResumeAll/53 prvUnlockQueue/33 vTaskPlaceOnEventList/52 prvIsQueueEmpty/34 xTaskCheckForTimeOut/51 vPortExitCritical/45 vPortEnterCritical/42 vTaskSuspendAll/50 vPortExitCritical/45 vTaskInternalSetTimeOutState/49 vPortExitCritical/45 vPortExitCritical/45 xTaskRemoveFromEventList/43 prvCopyDataFromQueue/32 vPortEnterCritical/42 xTaskGetSchedulerState/48
  410. xQueueGiveFromISR/17 (xQueueGiveFromISR) @05fe4000
  411. Type: function definition analyzed
  412. Visibility: force_output externally_visible no_reorder public
  413. References:
  414. Referring:
  415. Availability: available
  416. Function flags: body
  417. Called by:
  418. Calls: xTaskRemoveFromEventList/43 vPortValidateInterruptPriority/54
  419. xQueueGenericSendFromISR/16 (xQueueGenericSendFromISR) @05f8de00
  420. Type: function definition analyzed
  421. Visibility: force_output externally_visible no_reorder public
  422. References:
  423. Referring:
  424. Availability: available
  425. Function flags: body
  426. Called by:
  427. Calls: xTaskRemoveFromEventList/43 prvCopyDataToQueue/31 vPortValidateInterruptPriority/54
  428. xQueueGenericSend/15 (xQueueGenericSend) @05f8d9a0
  429. Type: function definition analyzed
  430. Visibility: force_output externally_visible no_reorder public
  431. References:
  432. Referring:
  433. Availability: available
  434. Function flags: body
  435. Called by: xQueueGiveMutexRecursive/12 prvInitialiseMutex/8
  436. Calls: xTaskResumeAll/53 prvUnlockQueue/33 xTaskResumeAll/53 prvUnlockQueue/33 xTaskResumeAll/53 prvUnlockQueue/33 vTaskPlaceOnEventList/52 prvIsQueueFull/36 xTaskCheckForTimeOut/51 vPortExitCritical/45 vPortEnterCritical/42 vTaskSuspendAll/50 vPortExitCritical/45 vTaskInternalSetTimeOutState/49 vPortExitCritical/45 vPortExitCritical/45 xTaskRemoveFromEventList/43 prvCopyDataToQueue/31 vPortEnterCritical/42 xTaskGetSchedulerState/48
  437. xQueueCreateCountingSemaphore/14 (xQueueCreateCountingSemaphore) @05f8d2a0
  438. Type: function definition analyzed
  439. Visibility: force_output externally_visible no_reorder public
  440. References:
  441. Referring:
  442. Availability: available
  443. Function flags: body
  444. Called by:
  445. Calls: xQueueGenericCreate/6
  446. xQueueTakeMutexRecursive/13 (xQueueTakeMutexRecursive) @05f85ee0
  447. Type: function definition analyzed
  448. Visibility: force_output externally_visible no_reorder public
  449. References:
  450. Referring:
  451. Availability: available
  452. Function flags: body
  453. Called by:
  454. Calls: xQueueSemaphoreTake/19 xTaskGetCurrentTaskHandle/47
  455. xQueueGiveMutexRecursive/12 (xQueueGiveMutexRecursive) @05f85540
  456. Type: function definition analyzed
  457. Visibility: force_output externally_visible no_reorder public
  458. References:
  459. Referring:
  460. Availability: available
  461. Function flags: body
  462. Called by:
  463. Calls: xQueueGenericSend/15 xTaskGetCurrentTaskHandle/47
  464. xQueueGetMutexHolderFromISR/11 (xQueueGetMutexHolderFromISR) @05f85e00
  465. Type: function definition analyzed
  466. Visibility: force_output externally_visible no_reorder public
  467. References:
  468. Referring:
  469. Availability: available
  470. Function flags: body
  471. Called by:
  472. Calls:
  473. xQueueGetMutexHolder/10 (xQueueGetMutexHolder) @05f85a80
  474. Type: function definition analyzed
  475. Visibility: force_output externally_visible no_reorder public
  476. References:
  477. Referring:
  478. Availability: available
  479. Function flags: body
  480. Called by:
  481. Calls: vPortExitCritical/45 vPortEnterCritical/42
  482. xQueueCreateMutex/9 (xQueueCreateMutex) @05f85700
  483. Type: function definition analyzed
  484. Visibility: force_output externally_visible no_reorder public
  485. References:
  486. Referring:
  487. Availability: available
  488. Function flags: body
  489. Called by:
  490. Calls: prvInitialiseMutex/8 xQueueGenericCreate/6
  491. prvInitialiseMutex/8 (prvInitialiseMutex) @05f85460
  492. Type: function definition analyzed
  493. Visibility: force_output no_reorder prevailing_def_ironly
  494. References:
  495. Referring:
  496. Availability: available
  497. Function flags: body
  498. Called by: xQueueCreateMutex/9
  499. Calls: xQueueGenericSend/15
  500. prvInitialiseNewQueue/7 (prvInitialiseNewQueue) @05f851c0
  501. Type: function definition analyzed
  502. Visibility: force_output no_reorder prevailing_def_ironly
  503. References:
  504. Referring:
  505. Availability: available
  506. Function flags: body
  507. Called by: xQueueGenericCreate/6
  508. Calls: xQueueGenericReset/5
  509. xQueueGenericCreate/6 (xQueueGenericCreate) @05f9ce00
  510. Type: function definition analyzed
  511. Visibility: force_output externally_visible no_reorder public
  512. References:
  513. Referring:
  514. Availability: available
  515. Function flags: body
  516. Called by: xQueueCreateMutex/9 xQueueCreateCountingSemaphore/14
  517. Calls: prvInitialiseNewQueue/7 pvPortMalloc/46
  518. xQueueGenericReset/5 (xQueueGenericReset) @05f9cd20
  519. Type: function definition analyzed
  520. Visibility: force_output externally_visible no_reorder public
  521. References:
  522. Referring:
  523. Availability: available
  524. Function flags: body
  525. Called by: prvInitialiseNewQueue/7
  526. Calls: vPortExitCritical/45 vListInitialise/44 vListInitialise/44 xTaskRemoveFromEventList/43 vPortEnterCritical/42
  527. xQueueRegistry/4 (xQueueRegistry) @05f98630
  528. Type: variable definition analyzed
  529. Visibility: force_output externally_visible no_reorder public
  530. References:
  531. Referring: pcQueueGetName/39 (read)vQueueAddToRegistry/38 (addr)vQueueAddToRegistry/38 (read)vQueueAddToRegistry/38 (addr)pcQueueGetName/39 (read)vQueueAddToRegistry/38 (read)vQueueUnregisterQueue/40 (read)vQueueUnregisterQueue/40 (write)vQueueUnregisterQueue/40 (write)
  532. Availability: available
  533. Varpool flags:
  534. vQueueWaitForMessageRestricted (struct QueueDefinition * xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely)
  535. {
  536. struct Queue_t * const pxQueue;
  537. signed char _1;
  538. signed char _2;
  539. long unsigned int _3;
  540. struct List_t * _4;
  541. <bb 2> :
  542. pxQueue_9 = xQueue_8(D);
  543. vPortEnterCritical ();
  544. _1 ={v} pxQueue_9->cRxLock;
  545. if (_1 == -1)
  546. goto <bb 3>; [INV]
  547. else
  548. goto <bb 4>; [INV]
  549. <bb 3> :
  550. pxQueue_9->cRxLock ={v} 0;
  551. <bb 4> :
  552. _2 ={v} pxQueue_9->cTxLock;
  553. if (_2 == -1)
  554. goto <bb 5>; [INV]
  555. else
  556. goto <bb 6>; [INV]
  557. <bb 5> :
  558. pxQueue_9->cTxLock ={v} 0;
  559. <bb 6> :
  560. vPortExitCritical ();
  561. _3 ={v} pxQueue_9->uxMessagesWaiting;
  562. if (_3 == 0)
  563. goto <bb 7>; [INV]
  564. else
  565. goto <bb 8>; [INV]
  566. <bb 7> :
  567. _4 = &pxQueue_9->xTasksWaitingToReceive;
  568. vTaskPlaceOnEventListRestricted (_4, xTicksToWait_15(D), xWaitIndefinitely_16(D));
  569. <bb 8> :
  570. prvUnlockQueue (pxQueue_9);
  571. return;
  572. }
  573. vQueueUnregisterQueue (struct QueueDefinition * xQueue)
  574. {
  575. uint32_t ulNewBASEPRI;
  576. UBaseType_t ux;
  577. struct QueueDefinition * _1;
  578. <bb 2> :
  579. if (xQueue_4(D) == 0B)
  580. goto <bb 3>; [INV]
  581. else
  582. goto <bb 6>; [INV]
  583. <bb 3> :
  584. __asm__ __volatile__(" mov %0, %1
  585. msr basepri, %0
  586. isb
  587. dsb
  588. " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
  589. <bb 4> :
  590. <bb 5> :
  591. goto <bb 5>; [INV]
  592. <bb 6> :
  593. ux_5 = 0;
  594. goto <bb 10>; [INV]
  595. <bb 7> :
  596. _1 = xQueueRegistry[ux_2].xHandle;
  597. if (xQueue_4(D) == _1)
  598. goto <bb 8>; [INV]
  599. else
  600. goto <bb 9>; [INV]
  601. <bb 8> :
  602. xQueueRegistry[ux_2].pcQueueName = 0B;
  603. xQueueRegistry[ux_2].xHandle = 0B;
  604. goto <bb 11>; [INV]
  605. <bb 9> :
  606. ux_7 = ux_2 + 1;
  607. <bb 10> :
  608. # ux_2 = PHI <ux_5(6), ux_7(9)>
  609. if (ux_2 <= 1)
  610. goto <bb 7>; [INV]
  611. else
  612. goto <bb 11>; [INV]
  613. <bb 11> :
  614. return;
  615. }
  616. pcQueueGetName (struct QueueDefinition * xQueue)
  617. {
  618. uint32_t ulNewBASEPRI;
  619. const char * pcReturn;
  620. UBaseType_t ux;
  621. const char * D.7264;
  622. struct QueueDefinition * _1;
  623. const char * _10;
  624. <bb 2> :
  625. pcReturn_4 = 0B;
  626. if (xQueue_5(D) == 0B)
  627. goto <bb 3>; [INV]
  628. else
  629. goto <bb 6>; [INV]
  630. <bb 3> :
  631. __asm__ __volatile__(" mov %0, %1
  632. msr basepri, %0
  633. isb
  634. dsb
  635. " : "=r" ulNewBASEPRI_11 : "i" 16 : "memory");
  636. <bb 4> :
  637. <bb 5> :
  638. goto <bb 5>; [INV]
  639. <bb 6> :
  640. ux_6 = 0;
  641. goto <bb 10>; [INV]
  642. <bb 7> :
  643. _1 = xQueueRegistry[ux_2].xHandle;
  644. if (xQueue_5(D) == _1)
  645. goto <bb 8>; [INV]
  646. else
  647. goto <bb 9>; [INV]
  648. <bb 8> :
  649. pcReturn_9 = xQueueRegistry[ux_2].pcQueueName;
  650. goto <bb 11>; [INV]
  651. <bb 9> :
  652. ux_8 = ux_2 + 1;
  653. <bb 10> :
  654. # ux_2 = PHI <ux_6(6), ux_8(9)>
  655. if (ux_2 <= 1)
  656. goto <bb 7>; [INV]
  657. else
  658. goto <bb 11>; [INV]
  659. <bb 11> :
  660. # pcReturn_3 = PHI <pcReturn_9(8), pcReturn_4(10)>
  661. _10 = pcReturn_3;
  662. <bb 12> :
  663. <L8>:
  664. return _10;
  665. }
  666. vQueueAddToRegistry (struct QueueDefinition * xQueue, const char * pcQueueName)
  667. {
  668. uint32_t ulNewBASEPRI;
  669. struct QueueRegistryItem_t * pxEntryToWrite;
  670. UBaseType_t ux;
  671. struct QueueDefinition * _1;
  672. const char * _2;
  673. <bb 2> :
  674. if (xQueue_8(D) == 0B)
  675. goto <bb 3>; [INV]
  676. else
  677. goto <bb 6>; [INV]
  678. <bb 3> :
  679. __asm__ __volatile__(" mov %0, %1
  680. msr basepri, %0
  681. isb
  682. dsb
  683. " : "=r" ulNewBASEPRI_18 : "i" 16 : "memory");
  684. <bb 4> :
  685. <bb 5> :
  686. goto <bb 5>; [INV]
  687. <bb 6> :
  688. pxEntryToWrite_9 = 0B;
  689. if (pcQueueName_10(D) != 0B)
  690. goto <bb 7>; [INV]
  691. else
  692. goto <bb 15>; [INV]
  693. <bb 7> :
  694. ux_11 = 0;
  695. goto <bb 14>; [INV]
  696. <bb 8> :
  697. _1 = xQueueRegistry[ux_3].xHandle;
  698. if (xQueue_8(D) == _1)
  699. goto <bb 9>; [INV]
  700. else
  701. goto <bb 10>; [INV]
  702. <bb 9> :
  703. pxEntryToWrite_15 = &xQueueRegistry[ux_3];
  704. goto <bb 15>; [INV]
  705. <bb 10> :
  706. if (pxEntryToWrite_5 == 0B)
  707. goto <bb 11>; [INV]
  708. else
  709. goto <bb 13>; [INV]
  710. <bb 11> :
  711. _2 = xQueueRegistry[ux_3].pcQueueName;
  712. if (_2 == 0B)
  713. goto <bb 12>; [INV]
  714. else
  715. goto <bb 13>; [INV]
  716. <bb 12> :
  717. pxEntryToWrite_13 = &xQueueRegistry[ux_3];
  718. <bb 13> :
  719. # pxEntryToWrite_4 = PHI <pxEntryToWrite_5(10), pxEntryToWrite_5(11), pxEntryToWrite_13(12)>
  720. ux_14 = ux_3 + 1;
  721. <bb 14> :
  722. # ux_3 = PHI <ux_11(7), ux_14(13)>
  723. # pxEntryToWrite_5 = PHI <pxEntryToWrite_9(7), pxEntryToWrite_4(13)>
  724. if (ux_3 <= 1)
  725. goto <bb 8>; [INV]
  726. else
  727. goto <bb 15>; [INV]
  728. <bb 15> :
  729. # pxEntryToWrite_6 = PHI <pxEntryToWrite_9(6), pxEntryToWrite_15(9), pxEntryToWrite_5(14)>
  730. if (pxEntryToWrite_6 != 0B)
  731. goto <bb 16>; [INV]
  732. else
  733. goto <bb 17>; [INV]
  734. <bb 16> :
  735. pxEntryToWrite_6->pcQueueName = pcQueueName_10(D);
  736. pxEntryToWrite_6->xHandle = xQueue_8(D);
  737. <bb 17> :
  738. return;
  739. }
  740. xQueueIsQueueFullFromISR (struct QueueDefinition * const xQueue)
  741. {
  742. uint32_t ulNewBASEPRI;
  743. struct Queue_t * const pxQueue;
  744. BaseType_t xReturn;
  745. BaseType_t D.7245;
  746. long unsigned int _1;
  747. long unsigned int _2;
  748. BaseType_t _9;
  749. <bb 2> :
  750. pxQueue_5 = xQueue_4(D);
  751. if (pxQueue_5 == 0B)
  752. goto <bb 3>; [INV]
  753. else
  754. goto <bb 6>; [INV]
  755. <bb 3> :
  756. __asm__ __volatile__(" mov %0, %1
  757. msr basepri, %0
  758. isb
  759. dsb
  760. " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
  761. <bb 4> :
  762. <bb 5> :
  763. goto <bb 5>; [INV]
  764. <bb 6> :
  765. _1 ={v} pxQueue_5->uxMessagesWaiting;
  766. _2 = pxQueue_5->uxLength;
  767. if (_1 == _2)
  768. goto <bb 7>; [INV]
  769. else
  770. goto <bb 8>; [INV]
  771. <bb 7> :
  772. xReturn_8 = 1;
  773. goto <bb 9>; [INV]
  774. <bb 8> :
  775. xReturn_7 = 0;
  776. <bb 9> :
  777. # xReturn_3 = PHI <xReturn_8(7), xReturn_7(8)>
  778. _9 = xReturn_3;
  779. <bb 10> :
  780. <L6>:
  781. return _9;
  782. }
  783. prvIsQueueFull (const struct Queue_t * pxQueue)
  784. {
  785. BaseType_t xReturn;
  786. BaseType_t D.7238;
  787. long unsigned int _1;
  788. long unsigned int _2;
  789. BaseType_t _10;
  790. <bb 2> :
  791. vPortEnterCritical ();
  792. _1 ={v} pxQueue_6(D)->uxMessagesWaiting;
  793. _2 = pxQueue_6(D)->uxLength;
  794. if (_1 == _2)
  795. goto <bb 3>; [INV]
  796. else
  797. goto <bb 4>; [INV]
  798. <bb 3> :
  799. xReturn_8 = 1;
  800. goto <bb 5>; [INV]
  801. <bb 4> :
  802. xReturn_7 = 0;
  803. <bb 5> :
  804. # xReturn_3 = PHI <xReturn_8(3), xReturn_7(4)>
  805. vPortExitCritical ();
  806. _10 = xReturn_3;
  807. <bb 6> :
  808. <L3>:
  809. return _10;
  810. }
  811. xQueueIsQueueEmptyFromISR (struct QueueDefinition * const xQueue)
  812. {
  813. uint32_t ulNewBASEPRI;
  814. struct Queue_t * const pxQueue;
  815. BaseType_t xReturn;
  816. BaseType_t D.7233;
  817. long unsigned int _1;
  818. BaseType_t _8;
  819. <bb 2> :
  820. pxQueue_4 = xQueue_3(D);
  821. if (pxQueue_4 == 0B)
  822. goto <bb 3>; [INV]
  823. else
  824. goto <bb 6>; [INV]
  825. <bb 3> :
  826. __asm__ __volatile__(" mov %0, %1
  827. msr basepri, %0
  828. isb
  829. dsb
  830. " : "=r" ulNewBASEPRI_9 : "i" 16 : "memory");
  831. <bb 4> :
  832. <bb 5> :
  833. goto <bb 5>; [INV]
  834. <bb 6> :
  835. _1 ={v} pxQueue_4->uxMessagesWaiting;
  836. if (_1 == 0)
  837. goto <bb 7>; [INV]
  838. else
  839. goto <bb 8>; [INV]
  840. <bb 7> :
  841. xReturn_7 = 1;
  842. goto <bb 9>; [INV]
  843. <bb 8> :
  844. xReturn_6 = 0;
  845. <bb 9> :
  846. # xReturn_2 = PHI <xReturn_7(7), xReturn_6(8)>
  847. _8 = xReturn_2;
  848. <bb 10> :
  849. <L6>:
  850. return _8;
  851. }
  852. prvIsQueueEmpty (const struct Queue_t * pxQueue)
  853. {
  854. BaseType_t xReturn;
  855. BaseType_t D.7226;
  856. long unsigned int _1;
  857. BaseType_t _9;
  858. <bb 2> :
  859. vPortEnterCritical ();
  860. _1 ={v} pxQueue_5(D)->uxMessagesWaiting;
  861. if (_1 == 0)
  862. goto <bb 3>; [INV]
  863. else
  864. goto <bb 4>; [INV]
  865. <bb 3> :
  866. xReturn_7 = 1;
  867. goto <bb 5>; [INV]
  868. <bb 4> :
  869. xReturn_6 = 0;
  870. <bb 5> :
  871. # xReturn_2 = PHI <xReturn_7(3), xReturn_6(4)>
  872. vPortExitCritical ();
  873. _9 = xReturn_2;
  874. <bb 6> :
  875. <L3>:
  876. return _9;
  877. }
  878. prvUnlockQueue (struct Queue_t * const pxQueue)
  879. {
  880. int8_t cRxLock;
  881. int8_t cTxLock;
  882. long unsigned int _1;
  883. struct List_t * _2;
  884. long int _3;
  885. unsigned char cTxLock.28_4;
  886. unsigned char _5;
  887. long unsigned int _6;
  888. struct List_t * _7;
  889. long int _8;
  890. unsigned char cRxLock.29_9;
  891. unsigned char _10;
  892. <bb 2> :
  893. vPortEnterCritical ();
  894. cTxLock_20 ={v} pxQueue_19(D)->cTxLock;
  895. goto <bb 8>; [INV]
  896. <bb 3> :
  897. _1 ={v} pxQueue_19(D)->xTasksWaitingToReceive.uxNumberOfItems;
  898. if (_1 != 0)
  899. goto <bb 4>; [INV]
  900. else
  901. goto <bb 6>; [INV]
  902. <bb 4> :
  903. _2 = &pxQueue_19(D)->xTasksWaitingToReceive;
  904. _3 = xTaskRemoveFromEventList (_2);
  905. if (_3 != 0)
  906. goto <bb 5>; [INV]
  907. else
  908. goto <bb 7>; [INV]
  909. <bb 5> :
  910. vTaskMissedYield ();
  911. goto <bb 7>; [INV]
  912. <bb 6> :
  913. goto <bb 9>; [INV]
  914. <bb 7> :
  915. cTxLock.28_4 = (unsigned char) cTxLock_11;
  916. _5 = cTxLock.28_4 + 255;
  917. cTxLock_23 = (int8_t) _5;
  918. <bb 8> :
  919. # cTxLock_11 = PHI <cTxLock_20(2), cTxLock_23(7)>
  920. if (cTxLock_11 > 0)
  921. goto <bb 3>; [INV]
  922. else
  923. goto <bb 9>; [INV]
  924. <bb 9> :
  925. pxQueue_19(D)->cTxLock ={v} -1;
  926. vPortExitCritical ();
  927. vPortEnterCritical ();
  928. cRxLock_27 ={v} pxQueue_19(D)->cRxLock;
  929. goto <bb 15>; [INV]
  930. <bb 10> :
  931. _6 ={v} pxQueue_19(D)->xTasksWaitingToSend.uxNumberOfItems;
  932. if (_6 != 0)
  933. goto <bb 11>; [INV]
  934. else
  935. goto <bb 14>; [INV]
  936. <bb 11> :
  937. _7 = &pxQueue_19(D)->xTasksWaitingToSend;
  938. _8 = xTaskRemoveFromEventList (_7);
  939. if (_8 != 0)
  940. goto <bb 12>; [INV]
  941. else
  942. goto <bb 13>; [INV]
  943. <bb 12> :
  944. vTaskMissedYield ();
  945. <bb 13> :
  946. cRxLock.29_9 = (unsigned char) cRxLock_12;
  947. _10 = cRxLock.29_9 + 255;
  948. cRxLock_30 = (int8_t) _10;
  949. goto <bb 15>; [INV]
  950. <bb 14> :
  951. goto <bb 16>; [INV]
  952. <bb 15> :
  953. # cRxLock_12 = PHI <cRxLock_27(9), cRxLock_30(13)>
  954. if (cRxLock_12 > 0)
  955. goto <bb 10>; [INV]
  956. else
  957. goto <bb 16>; [INV]
  958. <bb 16> :
  959. pxQueue_19(D)->cRxLock ={v} -1;
  960. vPortExitCritical ();
  961. return;
  962. }
  963. prvCopyDataFromQueue (struct Queue_t * const pxQueue, void * const pvBuffer)
  964. {
  965. long unsigned int _1;
  966. int8_t * _2;
  967. long unsigned int _3;
  968. int8_t * _4;
  969. int8_t * _5;
  970. int8_t * _6;
  971. int8_t * _7;
  972. int8_t * _8;
  973. long unsigned int _9;
  974. <bb 2> :
  975. _1 = pxQueue_13(D)->uxItemSize;
  976. if (_1 != 0)
  977. goto <bb 3>; [INV]
  978. else
  979. goto <bb 6>; [INV]
  980. <bb 3> :
  981. _2 = pxQueue_13(D)->u.xQueue.pcReadFrom;
  982. _3 = pxQueue_13(D)->uxItemSize;
  983. _4 = _2 + _3;
  984. pxQueue_13(D)->u.xQueue.pcReadFrom = _4;
  985. _5 = pxQueue_13(D)->u.xQueue.pcReadFrom;
  986. _6 = pxQueue_13(D)->u.xQueue.pcTail;
  987. if (_5 >= _6)
  988. goto <bb 4>; [INV]
  989. else
  990. goto <bb 5>; [INV]
  991. <bb 4> :
  992. _7 = pxQueue_13(D)->pcHead;
  993. pxQueue_13(D)->u.xQueue.pcReadFrom = _7;
  994. <bb 5> :
  995. _8 = pxQueue_13(D)->u.xQueue.pcReadFrom;
  996. _9 = pxQueue_13(D)->uxItemSize;
  997. memcpy (pvBuffer_16(D), _8, _9);
  998. <bb 6> :
  999. return;
  1000. }
  1001. prvCopyDataToQueue (struct Queue_t * const pxQueue, const void * pvItemToQueue, const BaseType_t xPosition)
  1002. {
  1003. UBaseType_t uxMessagesWaiting;
  1004. BaseType_t xReturn;
  1005. BaseType_t D.7204;
  1006. long unsigned int _1;
  1007. int8_t * _2;
  1008. struct tskTaskControlBlock * _3;
  1009. int8_t * _4;
  1010. long unsigned int _5;
  1011. int8_t * _6;
  1012. long unsigned int _7;
  1013. int8_t * _8;
  1014. int8_t * _9;
  1015. int8_t * _10;
  1016. int8_t * _11;
  1017. int8_t * _12;
  1018. long unsigned int _13;
  1019. int8_t * _14;
  1020. long unsigned int _15;
  1021. sizetype _16;
  1022. int8_t * _17;
  1023. int8_t * _18;
  1024. int8_t * _19;
  1025. int8_t * _20;
  1026. long unsigned int _21;
  1027. sizetype _22;
  1028. int8_t * _23;
  1029. long unsigned int _24;
  1030. BaseType_t _46;
  1031. <bb 2> :
  1032. xReturn_29 = 0;
  1033. uxMessagesWaiting_32 ={v} pxQueue_31(D)->uxMessagesWaiting;
  1034. _1 = pxQueue_31(D)->uxItemSize;
  1035. if (_1 == 0)
  1036. goto <bb 3>; [INV]
  1037. else
  1038. goto <bb 5>; [INV]
  1039. <bb 3> :
  1040. _2 = pxQueue_31(D)->pcHead;
  1041. if (_2 == 0B)
  1042. goto <bb 4>; [INV]
  1043. else
  1044. goto <bb 13>; [INV]
  1045. <bb 4> :
  1046. _3 = pxQueue_31(D)->u.xSemaphore.xMutexHolder;
  1047. xReturn_43 = xTaskPriorityDisinherit (_3);
  1048. pxQueue_31(D)->u.xSemaphore.xMutexHolder = 0B;
  1049. goto <bb 13>; [INV]
  1050. <bb 5> :
  1051. if (xPosition_33(D) == 0)
  1052. goto <bb 6>; [INV]
  1053. else
  1054. goto <bb 8>; [INV]
  1055. <bb 6> :
  1056. _4 = pxQueue_31(D)->pcWriteTo;
  1057. _5 = pxQueue_31(D)->uxItemSize;
  1058. memcpy (_4, pvItemToQueue_34(D), _5);
  1059. _6 = pxQueue_31(D)->pcWriteTo;
  1060. _7 = pxQueue_31(D)->uxItemSize;
  1061. _8 = _6 + _7;
  1062. pxQueue_31(D)->pcWriteTo = _8;
  1063. _9 = pxQueue_31(D)->pcWriteTo;
  1064. _10 = pxQueue_31(D)->u.xQueue.pcTail;
  1065. if (_9 >= _10)
  1066. goto <bb 7>; [INV]
  1067. else
  1068. goto <bb 13>; [INV]
  1069. <bb 7> :
  1070. _11 = pxQueue_31(D)->pcHead;
  1071. pxQueue_31(D)->pcWriteTo = _11;
  1072. goto <bb 13>; [INV]
  1073. <bb 8> :
  1074. _12 = pxQueue_31(D)->u.xQueue.pcReadFrom;
  1075. _13 = pxQueue_31(D)->uxItemSize;
  1076. memcpy (_12, pvItemToQueue_34(D), _13);
  1077. _14 = pxQueue_31(D)->u.xQueue.pcReadFrom;
  1078. _15 = pxQueue_31(D)->uxItemSize;
  1079. _16 = -_15;
  1080. _17 = _14 + _16;
  1081. pxQueue_31(D)->u.xQueue.pcReadFrom = _17;
  1082. _18 = pxQueue_31(D)->u.xQueue.pcReadFrom;
  1083. _19 = pxQueue_31(D)->pcHead;
  1084. if (_18 < _19)
  1085. goto <bb 9>; [INV]
  1086. else
  1087. goto <bb 10>; [INV]
  1088. <bb 9> :
  1089. _20 = pxQueue_31(D)->u.xQueue.pcTail;
  1090. _21 = pxQueue_31(D)->uxItemSize;
  1091. _22 = -_21;
  1092. _23 = _20 + _22;
  1093. pxQueue_31(D)->u.xQueue.pcReadFrom = _23;
  1094. <bb 10> :
  1095. if (xPosition_33(D) == 2)
  1096. goto <bb 11>; [INV]
  1097. else
  1098. goto <bb 13>; [INV]
  1099. <bb 11> :
  1100. if (uxMessagesWaiting_32 != 0)
  1101. goto <bb 12>; [INV]
  1102. else
  1103. goto <bb 13>; [INV]
  1104. <bb 12> :
  1105. uxMessagesWaiting_38 = uxMessagesWaiting_32 + 4294967295;
  1106. <bb 13> :
  1107. # xReturn_25 = PHI <xReturn_43(4), xReturn_29(7), xReturn_29(10), xReturn_29(12), xReturn_29(3), xReturn_29(6), xReturn_29(11)>
  1108. # uxMessagesWaiting_26 = PHI <uxMessagesWaiting_32(4), uxMessagesWaiting_32(7), uxMessagesWaiting_32(10), uxMessagesWaiting_38(12), uxMessagesWaiting_32(3), uxMessagesWaiting_32(6), uxMessagesWaiting_32(11)>
  1109. _24 = uxMessagesWaiting_26 + 1;
  1110. pxQueue_31(D)->uxMessagesWaiting ={v} _24;
  1111. _46 = xReturn_25;
  1112. <bb 14> :
  1113. <L21>:
  1114. return _46;
  1115. }
  1116. prvGetDisinheritPriorityAfterTimeout (const struct Queue_t * const pxQueue)
  1117. {
  1118. UBaseType_t uxHighestPriorityOfWaitingTasks;
  1119. UBaseType_t D.7181;
  1120. long unsigned int _1;
  1121. struct xLIST_ITEM * _2;
  1122. long unsigned int _3;
  1123. UBaseType_t _9;
  1124. <bb 2> :
  1125. _1 ={v} pxQueue_6(D)->xTasksWaitingToReceive.uxNumberOfItems;
  1126. if (_1 != 0)
  1127. goto <bb 3>; [INV]
  1128. else
  1129. goto <bb 4>; [INV]
  1130. <bb 3> :
  1131. _2 = pxQueue_6(D)->xTasksWaitingToReceive.xListEnd.pxNext;
  1132. _3 = _2->xItemValue;
  1133. uxHighestPriorityOfWaitingTasks_8 = 5 - _3;
  1134. goto <bb 5>; [INV]
  1135. <bb 4> :
  1136. uxHighestPriorityOfWaitingTasks_7 = 0;
  1137. <bb 5> :
  1138. # uxHighestPriorityOfWaitingTasks_4 = PHI <uxHighestPriorityOfWaitingTasks_8(3), uxHighestPriorityOfWaitingTasks_7(4)>
  1139. _9 = uxHighestPriorityOfWaitingTasks_4;
  1140. <bb 6> :
  1141. <L3>:
  1142. return _9;
  1143. }
  1144. ucQueueGetQueueType (struct QueueDefinition * xQueue)
  1145. {
  1146. uint8_t D.7176;
  1147. uint8_t _3;
  1148. <bb 2> :
  1149. _3 = MEM[(struct Queue_t *)xQueue_2(D)].ucQueueType;
  1150. <bb 3> :
  1151. <L0>:
  1152. return _3;
  1153. }
  1154. vQueueSetQueueNumber (struct QueueDefinition * xQueue, UBaseType_t uxQueueNumber)
  1155. {
  1156. <bb 2> :
  1157. MEM[(struct Queue_t *)xQueue_2(D)].uxQueueNumber = uxQueueNumber_3(D);
  1158. return;
  1159. }
  1160. uxQueueGetQueueNumber (struct QueueDefinition * xQueue)
  1161. {
  1162. UBaseType_t D.7174;
  1163. UBaseType_t _3;
  1164. <bb 2> :
  1165. _3 = MEM[(struct Queue_t *)xQueue_2(D)].uxQueueNumber;
  1166. <bb 3> :
  1167. <L0>:
  1168. return _3;
  1169. }
  1170. vQueueDelete (struct QueueDefinition * xQueue)
  1171. {
  1172. uint32_t ulNewBASEPRI;
  1173. struct Queue_t * const pxQueue;
  1174. <bb 2> :
  1175. pxQueue_2 = xQueue_1(D);
  1176. if (pxQueue_2 == 0B)
  1177. goto <bb 3>; [INV]
  1178. else
  1179. goto <bb 6>; [INV]
  1180. <bb 3> :
  1181. __asm__ __volatile__(" mov %0, %1
  1182. msr basepri, %0
  1183. isb
  1184. dsb
  1185. " : "=r" ulNewBASEPRI_6 : "i" 16 : "memory");
  1186. <bb 4> :
  1187. <bb 5> :
  1188. goto <bb 5>; [INV]
  1189. <bb 6> :
  1190. vQueueUnregisterQueue (pxQueue_2);
  1191. vPortFree (pxQueue_2);
  1192. return;
  1193. }
  1194. uxQueueMessagesWaitingFromISR (struct QueueDefinition * const xQueue)
  1195. {
  1196. uint32_t ulNewBASEPRI;
  1197. struct Queue_t * const pxQueue;
  1198. UBaseType_t uxReturn;
  1199. UBaseType_t D.7170;
  1200. UBaseType_t _5;
  1201. <bb 2> :
  1202. pxQueue_2 = xQueue_1(D);
  1203. if (pxQueue_2 == 0B)
  1204. goto <bb 3>; [INV]
  1205. else
  1206. goto <bb 6>; [INV]
  1207. <bb 3> :
  1208. __asm__ __volatile__(" mov %0, %1
  1209. msr basepri, %0
  1210. isb
  1211. dsb
  1212. " : "=r" ulNewBASEPRI_6 : "i" 16 : "memory");
  1213. <bb 4> :
  1214. <bb 5> :
  1215. goto <bb 5>; [INV]
  1216. <bb 6> :
  1217. uxReturn_4 ={v} pxQueue_2->uxMessagesWaiting;
  1218. _5 = uxReturn_4;
  1219. <bb 7> :
  1220. <L3>:
  1221. return _5;
  1222. }
  1223. uxQueueSpacesAvailable (struct QueueDefinition * const xQueue)
  1224. {
  1225. uint32_t ulNewBASEPRI;
  1226. struct Queue_t * const pxQueue;
  1227. UBaseType_t uxReturn;
  1228. UBaseType_t D.7166;
  1229. long unsigned int _1;
  1230. long unsigned int _2;
  1231. UBaseType_t _9;
  1232. <bb 2> :
  1233. pxQueue_4 = xQueue_3(D);
  1234. if (pxQueue_4 == 0B)
  1235. goto <bb 3>; [INV]
  1236. else
  1237. goto <bb 6>; [INV]
  1238. <bb 3> :
  1239. __asm__ __volatile__(" mov %0, %1
  1240. msr basepri, %0
  1241. isb
  1242. dsb
  1243. " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
  1244. <bb 4> :
  1245. <bb 5> :
  1246. goto <bb 5>; [INV]
  1247. <bb 6> :
  1248. vPortEnterCritical ();
  1249. _1 = pxQueue_4->uxLength;
  1250. _2 ={v} pxQueue_4->uxMessagesWaiting;
  1251. uxReturn_7 = _1 - _2;
  1252. vPortExitCritical ();
  1253. _9 = uxReturn_7;
  1254. <bb 7> :
  1255. <L3>:
  1256. return _9;
  1257. }
  1258. uxQueueMessagesWaiting (struct QueueDefinition * const xQueue)
  1259. {
  1260. uint32_t ulNewBASEPRI;
  1261. UBaseType_t uxReturn;
  1262. UBaseType_t D.7162;
  1263. UBaseType_t _6;
  1264. <bb 2> :
  1265. if (xQueue_1(D) == 0B)
  1266. goto <bb 3>; [INV]
  1267. else
  1268. goto <bb 6>; [INV]
  1269. <bb 3> :
  1270. __asm__ __volatile__(" mov %0, %1
  1271. msr basepri, %0
  1272. isb
  1273. dsb
  1274. " : "=r" ulNewBASEPRI_7 : "i" 16 : "memory");
  1275. <bb 4> :
  1276. <bb 5> :
  1277. goto <bb 5>; [INV]
  1278. <bb 6> :
  1279. vPortEnterCritical ();
  1280. uxReturn_4 ={v} MEM[(struct Queue_t *)xQueue_1(D)].uxMessagesWaiting;
  1281. vPortExitCritical ();
  1282. _6 = uxReturn_4;
  1283. <bb 7> :
  1284. <L3>:
  1285. return _6;
  1286. }
  1287. xQueuePeekFromISR (struct QueueDefinition * xQueue, void * const pvBuffer)
  1288. {
  1289. uint32_t ulNewMaskValue;
  1290. uint32_t D.7361;
  1291. uint32_t ulOriginalBASEPRI;
  1292. uint32_t ulNewBASEPRI;
  1293. uint32_t D.7360;
  1294. uint32_t ulNewBASEPRI;
  1295. uint32_t ulNewBASEPRI;
  1296. uint32_t ulNewBASEPRI;
  1297. struct Queue_t * const pxQueue;
  1298. int8_t * pcOriginalReadPosition;
  1299. UBaseType_t uxSavedInterruptStatus;
  1300. BaseType_t xReturn;
  1301. BaseType_t D.7158;
  1302. int iftmp.27;
  1303. long unsigned int _1;
  1304. long unsigned int _2;
  1305. long unsigned int _3;
  1306. int iftmp.27_5;
  1307. int iftmp.27_11;
  1308. int iftmp.27_12;
  1309. BaseType_t _20;
  1310. long unsigned int _26;
  1311. <bb 2> :
  1312. pxQueue_8 = xQueue_7(D);
  1313. if (pxQueue_8 == 0B)
  1314. goto <bb 3>; [INV]
  1315. else
  1316. goto <bb 6>; [INV]
  1317. <bb 3> :
  1318. __asm__ __volatile__(" mov %0, %1
  1319. msr basepri, %0
  1320. isb
  1321. dsb
  1322. " : "=r" ulNewBASEPRI_21 : "i" 16 : "memory");
  1323. <bb 4> :
  1324. <bb 5> :
  1325. goto <bb 5>; [INV]
  1326. <bb 6> :
  1327. if (pvBuffer_9(D) != 0B)
  1328. goto <bb 8>; [INV]
  1329. else
  1330. goto <bb 7>; [INV]
  1331. <bb 7> :
  1332. _1 = pxQueue_8->uxItemSize;
  1333. if (_1 == 0)
  1334. goto <bb 8>; [INV]
  1335. else
  1336. goto <bb 9>; [INV]
  1337. <bb 8> :
  1338. iftmp.27_12 = 1;
  1339. goto <bb 10>; [INV]
  1340. <bb 9> :
  1341. iftmp.27_11 = 0;
  1342. <bb 10> :
  1343. # iftmp.27_5 = PHI <iftmp.27_12(8), iftmp.27_11(9)>
  1344. if (iftmp.27_5 == 0)
  1345. goto <bb 11>; [INV]
  1346. else
  1347. goto <bb 14>; [INV]
  1348. <bb 11> :
  1349. __asm__ __volatile__(" mov %0, %1
  1350. msr basepri, %0
  1351. isb
  1352. dsb
  1353. " : "=r" ulNewBASEPRI_22 : "i" 16 : "memory");
  1354. <bb 12> :
  1355. <bb 13> :
  1356. goto <bb 13>; [INV]
  1357. <bb 14> :
  1358. _2 = pxQueue_8->uxItemSize;
  1359. if (_2 == 0)
  1360. goto <bb 15>; [INV]
  1361. else
  1362. goto <bb 18>; [INV]
  1363. <bb 15> :
  1364. __asm__ __volatile__(" mov %0, %1
  1365. msr basepri, %0
  1366. isb
  1367. dsb
  1368. " : "=r" ulNewBASEPRI_23 : "i" 16 : "memory");
  1369. <bb 16> :
  1370. <bb 17> :
  1371. goto <bb 17>; [INV]
  1372. <bb 18> :
  1373. vPortValidateInterruptPriority ();
  1374. __asm__ __volatile__(" mrs %0, basepri
  1375. mov %1, %2
  1376. msr basepri, %1
  1377. isb
  1378. dsb
  1379. " : "=r" ulOriginalBASEPRI_24, "=r" ulNewBASEPRI_25 : "i" 16 : "memory");
  1380. _26 = ulOriginalBASEPRI_24;
  1381. <bb 19> :
  1382. <L17>:
  1383. _29 = _26;
  1384. <bb 20> :
  1385. uxSavedInterruptStatus_14 = _29;
  1386. _3 ={v} pxQueue_8->uxMessagesWaiting;
  1387. if (_3 != 0)
  1388. goto <bb 21>; [INV]
  1389. else
  1390. goto <bb 22>; [INV]
  1391. <bb 21> :
  1392. pcOriginalReadPosition_16 = pxQueue_8->u.xQueue.pcReadFrom;
  1393. prvCopyDataFromQueue (pxQueue_8, pvBuffer_9(D));
  1394. pxQueue_8->u.xQueue.pcReadFrom = pcOriginalReadPosition_16;
  1395. xReturn_19 = 1;
  1396. goto <bb 23>; [INV]
  1397. <bb 22> :
  1398. xReturn_15 = 0;
  1399. <bb 23> :
  1400. # xReturn_4 = PHI <xReturn_19(21), xReturn_15(22)>
  1401. ulNewMaskValue_27 = uxSavedInterruptStatus_14;
  1402. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_27 : "memory");
  1403. <bb 24> :
  1404. _20 = xReturn_4;
  1405. <bb 25> :
  1406. <L16>:
  1407. return _20;
  1408. }
  1409. xQueueReceiveFromISR (struct QueueDefinition * xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken)
  1410. {
  1411. uint32_t ulNewMaskValue;
  1412. uint32_t ulNewBASEPRI;
  1413. uint32_t D.7351;
  1414. uint32_t ulOriginalBASEPRI;
  1415. uint32_t ulNewBASEPRI;
  1416. uint32_t D.7350;
  1417. uint32_t ulNewBASEPRI;
  1418. uint32_t ulNewBASEPRI;
  1419. const int8_t cRxLock;
  1420. const UBaseType_t uxMessagesWaiting;
  1421. struct Queue_t * const pxQueue;
  1422. UBaseType_t uxSavedInterruptStatus;
  1423. BaseType_t xReturn;
  1424. BaseType_t D.7142;
  1425. int iftmp.25;
  1426. long unsigned int _1;
  1427. long unsigned int _2;
  1428. long unsigned int _3;
  1429. struct List_t * _4;
  1430. long int _5;
  1431. unsigned char cRxLock.26_6;
  1432. unsigned char _7;
  1433. signed char _8;
  1434. int iftmp.25_10;
  1435. int iftmp.25_17;
  1436. int iftmp.25_18;
  1437. BaseType_t _31;
  1438. long unsigned int _36;
  1439. <bb 2> :
  1440. pxQueue_14 = xQueue_13(D);
  1441. if (pxQueue_14 == 0B)
  1442. goto <bb 3>; [INV]
  1443. else
  1444. goto <bb 6>; [INV]
  1445. <bb 3> :
  1446. __asm__ __volatile__(" mov %0, %1
  1447. msr basepri, %0
  1448. isb
  1449. dsb
  1450. " : "=r" ulNewBASEPRI_32 : "i" 16 : "memory");
  1451. <bb 4> :
  1452. <bb 5> :
  1453. goto <bb 5>; [INV]
  1454. <bb 6> :
  1455. if (pvBuffer_15(D) != 0B)
  1456. goto <bb 8>; [INV]
  1457. else
  1458. goto <bb 7>; [INV]
  1459. <bb 7> :
  1460. _1 = pxQueue_14->uxItemSize;
  1461. if (_1 == 0)
  1462. goto <bb 8>; [INV]
  1463. else
  1464. goto <bb 9>; [INV]
  1465. <bb 8> :
  1466. iftmp.25_18 = 1;
  1467. goto <bb 10>; [INV]
  1468. <bb 9> :
  1469. iftmp.25_17 = 0;
  1470. <bb 10> :
  1471. # iftmp.25_10 = PHI <iftmp.25_18(8), iftmp.25_17(9)>
  1472. if (iftmp.25_10 == 0)
  1473. goto <bb 11>; [INV]
  1474. else
  1475. goto <bb 14>; [INV]
  1476. <bb 11> :
  1477. __asm__ __volatile__(" mov %0, %1
  1478. msr basepri, %0
  1479. isb
  1480. dsb
  1481. " : "=r" ulNewBASEPRI_33 : "i" 16 : "memory");
  1482. <bb 12> :
  1483. <bb 13> :
  1484. goto <bb 13>; [INV]
  1485. <bb 14> :
  1486. vPortValidateInterruptPriority ();
  1487. __asm__ __volatile__(" mrs %0, basepri
  1488. mov %1, %2
  1489. msr basepri, %1
  1490. isb
  1491. dsb
  1492. " : "=r" ulOriginalBASEPRI_34, "=r" ulNewBASEPRI_35 : "i" 16 : "memory");
  1493. _36 = ulOriginalBASEPRI_34;
  1494. <bb 15> :
  1495. <L29>:
  1496. _40 = _36;
  1497. <bb 16> :
  1498. uxSavedInterruptStatus_20 = _40;
  1499. uxMessagesWaiting_21 ={v} pxQueue_14->uxMessagesWaiting;
  1500. if (uxMessagesWaiting_21 != 0)
  1501. goto <bb 17>; [INV]
  1502. else
  1503. goto <bb 28>; [INV]
  1504. <bb 17> :
  1505. cRxLock_23 ={v} pxQueue_14->cRxLock;
  1506. prvCopyDataFromQueue (pxQueue_14, pvBuffer_15(D));
  1507. _2 = uxMessagesWaiting_21 + 4294967295;
  1508. pxQueue_14->uxMessagesWaiting ={v} _2;
  1509. if (cRxLock_23 == -1)
  1510. goto <bb 18>; [INV]
  1511. else
  1512. goto <bb 22>; [INV]
  1513. <bb 18> :
  1514. _3 ={v} pxQueue_14->xTasksWaitingToSend.uxNumberOfItems;
  1515. if (_3 != 0)
  1516. goto <bb 19>; [INV]
  1517. else
  1518. goto <bb 27>; [INV]
  1519. <bb 19> :
  1520. _4 = &pxQueue_14->xTasksWaitingToSend;
  1521. _5 = xTaskRemoveFromEventList (_4);
  1522. if (_5 != 0)
  1523. goto <bb 20>; [INV]
  1524. else
  1525. goto <bb 27>; [INV]
  1526. <bb 20> :
  1527. if (pxHigherPriorityTaskWoken_28(D) != 0B)
  1528. goto <bb 21>; [INV]
  1529. else
  1530. goto <bb 27>; [INV]
  1531. <bb 21> :
  1532. *pxHigherPriorityTaskWoken_28(D) = 1;
  1533. goto <bb 27>; [INV]
  1534. <bb 22> :
  1535. if (cRxLock_23 == 127)
  1536. goto <bb 23>; [INV]
  1537. else
  1538. goto <bb 26>; [INV]
  1539. <bb 23> :
  1540. __asm__ __volatile__(" mov %0, %1
  1541. msr basepri, %0
  1542. isb
  1543. dsb
  1544. " : "=r" ulNewBASEPRI_37 : "i" 16 : "memory");
  1545. <bb 24> :
  1546. <bb 25> :
  1547. goto <bb 25>; [INV]
  1548. <bb 26> :
  1549. cRxLock.26_6 = (unsigned char) cRxLock_23;
  1550. _7 = cRxLock.26_6 + 1;
  1551. _8 = (signed char) _7;
  1552. pxQueue_14->cRxLock ={v} _8;
  1553. <bb 27> :
  1554. xReturn_30 = 1;
  1555. goto <bb 29>; [INV]
  1556. <bb 28> :
  1557. xReturn_22 = 0;
  1558. <bb 29> :
  1559. # xReturn_9 = PHI <xReturn_30(27), xReturn_22(28)>
  1560. ulNewMaskValue_38 = uxSavedInterruptStatus_20;
  1561. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_38 : "memory");
  1562. <bb 30> :
  1563. _31 = xReturn_9;
  1564. <bb 31> :
  1565. <L28>:
  1566. return _31;
  1567. }
  1568. xQueuePeek (struct QueueDefinition * xQueue, void * const pvBuffer, TickType_t xTicksToWait)
  1569. {
  1570. uint32_t ulNewBASEPRI;
  1571. uint32_t ulNewBASEPRI;
  1572. uint32_t ulNewBASEPRI;
  1573. const UBaseType_t uxMessagesWaiting;
  1574. struct Queue_t * const pxQueue;
  1575. int8_t * pcOriginalReadPosition;
  1576. struct TimeOut_t xTimeOut;
  1577. BaseType_t xEntryTimeSet;
  1578. BaseType_t D.7093;
  1579. int iftmp.21;
  1580. int iftmp.20;
  1581. long unsigned int _1;
  1582. long int _2;
  1583. long unsigned int xTicksToWait.22_3;
  1584. long unsigned int _4;
  1585. struct List_t * _5;
  1586. long int _6;
  1587. volatile uint32_t * _7;
  1588. long unsigned int xTicksToWait.23_8;
  1589. signed char _9;
  1590. signed char _10;
  1591. long int _11;
  1592. long int _12;
  1593. struct List_t * _13;
  1594. long unsigned int xTicksToWait.24_14;
  1595. long int _15;
  1596. volatile uint32_t * _16;
  1597. long int _17;
  1598. int iftmp.20_20;
  1599. int iftmp.21_21;
  1600. BaseType_t _22;
  1601. int iftmp.20_35;
  1602. int iftmp.20_36;
  1603. int iftmp.21_38;
  1604. int iftmp.21_39;
  1605. BaseType_t _54;
  1606. BaseType_t _65;
  1607. BaseType_t _74;
  1608. <bb 2> :
  1609. xEntryTimeSet_30 = 0;
  1610. pxQueue_32 = xQueue_31(D);
  1611. if (pxQueue_32 == 0B)
  1612. goto <bb 3>; [INV]
  1613. else
  1614. goto <bb 6>; [INV]
  1615. <bb 3> :
  1616. __asm__ __volatile__(" mov %0, %1
  1617. msr basepri, %0
  1618. isb
  1619. dsb
  1620. " : "=r" ulNewBASEPRI_76 : "i" 16 : "memory");
  1621. <bb 4> :
  1622. <bb 5> :
  1623. goto <bb 5>; [INV]
  1624. <bb 6> :
  1625. if (pvBuffer_33(D) != 0B)
  1626. goto <bb 8>; [INV]
  1627. else
  1628. goto <bb 7>; [INV]
  1629. <bb 7> :
  1630. _1 = pxQueue_32->uxItemSize;
  1631. if (_1 == 0)
  1632. goto <bb 8>; [INV]
  1633. else
  1634. goto <bb 9>; [INV]
  1635. <bb 8> :
  1636. iftmp.20_36 = 1;
  1637. goto <bb 10>; [INV]
  1638. <bb 9> :
  1639. iftmp.20_35 = 0;
  1640. <bb 10> :
  1641. # iftmp.20_20 = PHI <iftmp.20_36(8), iftmp.20_35(9)>
  1642. if (iftmp.20_20 == 0)
  1643. goto <bb 11>; [INV]
  1644. else
  1645. goto <bb 14>; [INV]
  1646. <bb 11> :
  1647. __asm__ __volatile__(" mov %0, %1
  1648. msr basepri, %0
  1649. isb
  1650. dsb
  1651. " : "=r" ulNewBASEPRI_77 : "i" 16 : "memory");
  1652. <bb 12> :
  1653. <bb 13> :
  1654. goto <bb 13>; [INV]
  1655. <bb 14> :
  1656. _2 = xTaskGetSchedulerState ();
  1657. if (_2 != 0)
  1658. goto <bb 16>; [INV]
  1659. else
  1660. goto <bb 15>; [INV]
  1661. <bb 15> :
  1662. xTicksToWait.22_3 = xTicksToWait;
  1663. if (xTicksToWait.22_3 == 0)
  1664. goto <bb 16>; [INV]
  1665. else
  1666. goto <bb 17>; [INV]
  1667. <bb 16> :
  1668. iftmp.21_39 = 1;
  1669. goto <bb 18>; [INV]
  1670. <bb 17> :
  1671. iftmp.21_38 = 0;
  1672. <bb 18> :
  1673. # iftmp.21_21 = PHI <iftmp.21_39(16), iftmp.21_38(17)>
  1674. if (iftmp.21_21 == 0)
  1675. goto <bb 19>; [INV]
  1676. else
  1677. goto <bb 22>; [INV]
  1678. <bb 19> :
  1679. __asm__ __volatile__(" mov %0, %1
  1680. msr basepri, %0
  1681. isb
  1682. dsb
  1683. " : "=r" ulNewBASEPRI_78 : "i" 16 : "memory");
  1684. <bb 20> :
  1685. <bb 21> :
  1686. goto <bb 21>; [INV]
  1687. <bb 22> :
  1688. # xEntryTimeSet_18 = PHI <xEntryTimeSet_30(18), xEntryTimeSet_19(42)>
  1689. vPortEnterCritical ();
  1690. uxMessagesWaiting_41 ={v} pxQueue_32->uxMessagesWaiting;
  1691. if (uxMessagesWaiting_41 != 0)
  1692. goto <bb 23>; [INV]
  1693. else
  1694. goto <bb 27>; [INV]
  1695. <bb 23> :
  1696. pcOriginalReadPosition_66 = pxQueue_32->u.xQueue.pcReadFrom;
  1697. prvCopyDataFromQueue (pxQueue_32, pvBuffer_33(D));
  1698. pxQueue_32->u.xQueue.pcReadFrom = pcOriginalReadPosition_66;
  1699. _4 ={v} pxQueue_32->xTasksWaitingToReceive.uxNumberOfItems;
  1700. if (_4 != 0)
  1701. goto <bb 24>; [INV]
  1702. else
  1703. goto <bb 26>; [INV]
  1704. <bb 24> :
  1705. _5 = &pxQueue_32->xTasksWaitingToReceive;
  1706. _6 = xTaskRemoveFromEventList (_5);
  1707. if (_6 != 0)
  1708. goto <bb 25>; [INV]
  1709. else
  1710. goto <bb 26>; [INV]
  1711. <bb 25> :
  1712. _7 = 3758157060B;
  1713. *_7 ={v} 268435456;
  1714. __asm__ __volatile__("dsb" : : : "memory");
  1715. __asm__ __volatile__("isb");
  1716. <bb 26> :
  1717. vPortExitCritical ();
  1718. _74 = 1;
  1719. // predicted unlikely by early return (on trees) predictor.
  1720. goto <bb 43>; [INV]
  1721. <bb 27> :
  1722. xTicksToWait.23_8 = xTicksToWait;
  1723. if (xTicksToWait.23_8 == 0)
  1724. goto <bb 28>; [INV]
  1725. else
  1726. goto <bb 29>; [INV]
  1727. <bb 28> :
  1728. vPortExitCritical ();
  1729. _65 = 0;
  1730. // predicted unlikely by early return (on trees) predictor.
  1731. goto <bb 43>; [INV]
  1732. <bb 29> :
  1733. if (xEntryTimeSet_18 == 0)
  1734. goto <bb 30>; [INV]
  1735. else
  1736. goto <bb 31>; [INV]
  1737. <bb 30> :
  1738. vTaskInternalSetTimeOutState (&xTimeOut);
  1739. xEntryTimeSet_43 = 1;
  1740. <bb 31> :
  1741. # xEntryTimeSet_19 = PHI <xEntryTimeSet_18(29), xEntryTimeSet_43(30)>
  1742. vPortExitCritical ();
  1743. vTaskSuspendAll ();
  1744. vPortEnterCritical ();
  1745. _9 ={v} pxQueue_32->cRxLock;
  1746. if (_9 == -1)
  1747. goto <bb 32>; [INV]
  1748. else
  1749. goto <bb 33>; [INV]
  1750. <bb 32> :
  1751. pxQueue_32->cRxLock ={v} 0;
  1752. <bb 33> :
  1753. _10 ={v} pxQueue_32->cTxLock;
  1754. if (_10 == -1)
  1755. goto <bb 34>; [INV]
  1756. else
  1757. goto <bb 35>; [INV]
  1758. <bb 34> :
  1759. pxQueue_32->cTxLock ={v} 0;
  1760. <bb 35> :
  1761. vPortExitCritical ();
  1762. _11 = xTaskCheckForTimeOut (&xTimeOut, &xTicksToWait);
  1763. if (_11 == 0)
  1764. goto <bb 36>; [INV]
  1765. else
  1766. goto <bb 40>; [INV]
  1767. <bb 36> :
  1768. _12 = prvIsQueueEmpty (pxQueue_32);
  1769. if (_12 != 0)
  1770. goto <bb 37>; [INV]
  1771. else
  1772. goto <bb 39>; [INV]
  1773. <bb 37> :
  1774. _13 = &pxQueue_32->xTasksWaitingToReceive;
  1775. xTicksToWait.24_14 = xTicksToWait;
  1776. vTaskPlaceOnEventList (_13, xTicksToWait.24_14);
  1777. prvUnlockQueue (pxQueue_32);
  1778. _15 = xTaskResumeAll ();
  1779. if (_15 == 0)
  1780. goto <bb 38>; [INV]
  1781. else
  1782. goto <bb 42>; [INV]
  1783. <bb 38> :
  1784. _16 = 3758157060B;
  1785. *_16 ={v} 268435456;
  1786. __asm__ __volatile__("dsb" : : : "memory");
  1787. __asm__ __volatile__("isb");
  1788. goto <bb 42>; [INV]
  1789. <bb 39> :
  1790. prvUnlockQueue (pxQueue_32);
  1791. xTaskResumeAll ();
  1792. goto <bb 42>; [INV]
  1793. <bb 40> :
  1794. prvUnlockQueue (pxQueue_32);
  1795. xTaskResumeAll ();
  1796. _17 = prvIsQueueEmpty (pxQueue_32);
  1797. if (_17 != 0)
  1798. goto <bb 41>; [INV]
  1799. else
  1800. goto <bb 42>; [INV]
  1801. <bb 41> :
  1802. _54 = 0;
  1803. // predicted unlikely by early return (on trees) predictor.
  1804. goto <bb 43>; [INV]
  1805. <bb 42> :
  1806. goto <bb 22>; [INV]
  1807. <bb 43> :
  1808. # _22 = PHI <_74(26), _65(28), _54(41)>
  1809. xTimeOut ={v} {CLOBBER};
  1810. <bb 44> :
  1811. <L47>:
  1812. return _22;
  1813. }
  1814. xQueueSemaphoreTake (struct QueueDefinition * xQueue, TickType_t xTicksToWait)
  1815. {
  1816. uint32_t ulNewBASEPRI;
  1817. uint32_t ulNewBASEPRI;
  1818. uint32_t ulNewBASEPRI;
  1819. uint32_t ulNewBASEPRI;
  1820. UBaseType_t uxHighestWaitingPriority;
  1821. const UBaseType_t uxSemaphoreCount;
  1822. BaseType_t xInheritanceOccurred;
  1823. struct Queue_t * const pxQueue;
  1824. struct TimeOut_t xTimeOut;
  1825. BaseType_t xEntryTimeSet;
  1826. BaseType_t D.7039;
  1827. int iftmp.16;
  1828. long unsigned int _1;
  1829. long int _2;
  1830. long unsigned int xTicksToWait.17_3;
  1831. long unsigned int _4;
  1832. int8_t * _5;
  1833. struct tskTaskControlBlock * _6;
  1834. long unsigned int _7;
  1835. struct List_t * _8;
  1836. long int _9;
  1837. volatile uint32_t * _10;
  1838. long unsigned int xTicksToWait.18_11;
  1839. signed char _12;
  1840. signed char _13;
  1841. long int _14;
  1842. long int _15;
  1843. int8_t * _16;
  1844. struct tskTaskControlBlock * _17;
  1845. struct List_t * _18;
  1846. long unsigned int xTicksToWait.19_19;
  1847. long int _20;
  1848. volatile uint32_t * _21;
  1849. long int _22;
  1850. struct tskTaskControlBlock * _23;
  1851. int iftmp.16_29;
  1852. BaseType_t _30;
  1853. int iftmp.16_47;
  1854. int iftmp.16_48;
  1855. BaseType_t _68;
  1856. BaseType_t _83;
  1857. BaseType_t _92;
  1858. <bb 2> :
  1859. xEntryTimeSet_41 = 0;
  1860. pxQueue_43 = xQueue_42(D);
  1861. xInheritanceOccurred_44 = 0;
  1862. if (pxQueue_43 == 0B)
  1863. goto <bb 3>; [INV]
  1864. else
  1865. goto <bb 6>; [INV]
  1866. <bb 3> :
  1867. __asm__ __volatile__(" mov %0, %1
  1868. msr basepri, %0
  1869. isb
  1870. dsb
  1871. " : "=r" ulNewBASEPRI_94 : "i" 16 : "memory");
  1872. <bb 4> :
  1873. <bb 5> :
  1874. goto <bb 5>; [INV]
  1875. <bb 6> :
  1876. _1 = pxQueue_43->uxItemSize;
  1877. if (_1 != 0)
  1878. goto <bb 7>; [INV]
  1879. else
  1880. goto <bb 10>; [INV]
  1881. <bb 7> :
  1882. __asm__ __volatile__(" mov %0, %1
  1883. msr basepri, %0
  1884. isb
  1885. dsb
  1886. " : "=r" ulNewBASEPRI_95 : "i" 16 : "memory");
  1887. <bb 8> :
  1888. <bb 9> :
  1889. goto <bb 9>; [INV]
  1890. <bb 10> :
  1891. _2 = xTaskGetSchedulerState ();
  1892. if (_2 != 0)
  1893. goto <bb 12>; [INV]
  1894. else
  1895. goto <bb 11>; [INV]
  1896. <bb 11> :
  1897. xTicksToWait.17_3 = xTicksToWait;
  1898. if (xTicksToWait.17_3 == 0)
  1899. goto <bb 12>; [INV]
  1900. else
  1901. goto <bb 13>; [INV]
  1902. <bb 12> :
  1903. iftmp.16_48 = 1;
  1904. goto <bb 14>; [INV]
  1905. <bb 13> :
  1906. iftmp.16_47 = 0;
  1907. <bb 14> :
  1908. # iftmp.16_29 = PHI <iftmp.16_48(12), iftmp.16_47(13)>
  1909. if (iftmp.16_29 == 0)
  1910. goto <bb 15>; [INV]
  1911. else
  1912. goto <bb 18>; [INV]
  1913. <bb 15> :
  1914. __asm__ __volatile__(" mov %0, %1
  1915. msr basepri, %0
  1916. isb
  1917. dsb
  1918. " : "=r" ulNewBASEPRI_96 : "i" 16 : "memory");
  1919. <bb 16> :
  1920. <bb 17> :
  1921. goto <bb 17>; [INV]
  1922. <bb 18> :
  1923. # xEntryTimeSet_24 = PHI <xEntryTimeSet_41(14), xEntryTimeSet_25(48)>
  1924. # xInheritanceOccurred_26 = PHI <xInheritanceOccurred_44(14), xInheritanceOccurred_28(48)>
  1925. vPortEnterCritical ();
  1926. uxSemaphoreCount_50 ={v} pxQueue_43->uxMessagesWaiting;
  1927. if (uxSemaphoreCount_50 != 0)
  1928. goto <bb 19>; [INV]
  1929. else
  1930. goto <bb 25>; [INV]
  1931. <bb 19> :
  1932. _4 = uxSemaphoreCount_50 + 4294967295;
  1933. pxQueue_43->uxMessagesWaiting ={v} _4;
  1934. _5 = pxQueue_43->pcHead;
  1935. if (_5 == 0B)
  1936. goto <bb 20>; [INV]
  1937. else
  1938. goto <bb 21>; [INV]
  1939. <bb 20> :
  1940. _6 = pvTaskIncrementMutexHeldCount ();
  1941. pxQueue_43->u.xSemaphore.xMutexHolder = _6;
  1942. <bb 21> :
  1943. _7 ={v} pxQueue_43->xTasksWaitingToSend.uxNumberOfItems;
  1944. if (_7 != 0)
  1945. goto <bb 22>; [INV]
  1946. else
  1947. goto <bb 24>; [INV]
  1948. <bb 22> :
  1949. _8 = &pxQueue_43->xTasksWaitingToSend;
  1950. _9 = xTaskRemoveFromEventList (_8);
  1951. if (_9 != 0)
  1952. goto <bb 23>; [INV]
  1953. else
  1954. goto <bb 24>; [INV]
  1955. <bb 23> :
  1956. _10 = 3758157060B;
  1957. *_10 ={v} 268435456;
  1958. __asm__ __volatile__("dsb" : : : "memory");
  1959. __asm__ __volatile__("isb");
  1960. <bb 24> :
  1961. vPortExitCritical ();
  1962. _92 = 1;
  1963. // predicted unlikely by early return (on trees) predictor.
  1964. goto <bb 49>; [INV]
  1965. <bb 25> :
  1966. xTicksToWait.18_11 = xTicksToWait;
  1967. if (xTicksToWait.18_11 == 0)
  1968. goto <bb 26>; [INV]
  1969. else
  1970. goto <bb 31>; [INV]
  1971. <bb 26> :
  1972. if (xInheritanceOccurred_26 != 0)
  1973. goto <bb 27>; [INV]
  1974. else
  1975. goto <bb 30>; [INV]
  1976. <bb 27> :
  1977. __asm__ __volatile__(" mov %0, %1
  1978. msr basepri, %0
  1979. isb
  1980. dsb
  1981. " : "=r" ulNewBASEPRI_97 : "i" 16 : "memory");
  1982. <bb 28> :
  1983. <bb 29> :
  1984. goto <bb 29>; [INV]
  1985. <bb 30> :
  1986. vPortExitCritical ();
  1987. _83 = 0;
  1988. // predicted unlikely by early return (on trees) predictor.
  1989. goto <bb 49>; [INV]
  1990. <bb 31> :
  1991. if (xEntryTimeSet_24 == 0)
  1992. goto <bb 32>; [INV]
  1993. else
  1994. goto <bb 33>; [INV]
  1995. <bb 32> :
  1996. vTaskInternalSetTimeOutState (&xTimeOut);
  1997. xEntryTimeSet_52 = 1;
  1998. <bb 33> :
  1999. # xEntryTimeSet_25 = PHI <xEntryTimeSet_24(31), xEntryTimeSet_52(32)>
  2000. vPortExitCritical ();
  2001. vTaskSuspendAll ();
  2002. vPortEnterCritical ();
  2003. _12 ={v} pxQueue_43->cRxLock;
  2004. if (_12 == -1)
  2005. goto <bb 34>; [INV]
  2006. else
  2007. goto <bb 35>; [INV]
  2008. <bb 34> :
  2009. pxQueue_43->cRxLock ={v} 0;
  2010. <bb 35> :
  2011. _13 ={v} pxQueue_43->cTxLock;
  2012. if (_13 == -1)
  2013. goto <bb 36>; [INV]
  2014. else
  2015. goto <bb 37>; [INV]
  2016. <bb 36> :
  2017. pxQueue_43->cTxLock ={v} 0;
  2018. <bb 37> :
  2019. vPortExitCritical ();
  2020. _14 = xTaskCheckForTimeOut (&xTimeOut, &xTicksToWait);
  2021. if (_14 == 0)
  2022. goto <bb 38>; [INV]
  2023. else
  2024. goto <bb 44>; [INV]
  2025. <bb 38> :
  2026. _15 = prvIsQueueEmpty (pxQueue_43);
  2027. if (_15 != 0)
  2028. goto <bb 39>; [INV]
  2029. else
  2030. goto <bb 43>; [INV]
  2031. <bb 39> :
  2032. _16 = pxQueue_43->pcHead;
  2033. if (_16 == 0B)
  2034. goto <bb 40>; [INV]
  2035. else
  2036. goto <bb 41>; [INV]
  2037. <bb 40> :
  2038. vPortEnterCritical ();
  2039. _17 = pxQueue_43->u.xSemaphore.xMutexHolder;
  2040. xInheritanceOccurred_74 = xTaskPriorityInherit (_17);
  2041. vPortExitCritical ();
  2042. <bb 41> :
  2043. # xInheritanceOccurred_27 = PHI <xInheritanceOccurred_26(39), xInheritanceOccurred_74(40)>
  2044. _18 = &pxQueue_43->xTasksWaitingToReceive;
  2045. xTicksToWait.19_19 = xTicksToWait;
  2046. vTaskPlaceOnEventList (_18, xTicksToWait.19_19);
  2047. prvUnlockQueue (pxQueue_43);
  2048. _20 = xTaskResumeAll ();
  2049. if (_20 == 0)
  2050. goto <bb 42>; [INV]
  2051. else
  2052. goto <bb 48>; [INV]
  2053. <bb 42> :
  2054. _21 = 3758157060B;
  2055. *_21 ={v} 268435456;
  2056. __asm__ __volatile__("dsb" : : : "memory");
  2057. __asm__ __volatile__("isb");
  2058. goto <bb 48>; [INV]
  2059. <bb 43> :
  2060. prvUnlockQueue (pxQueue_43);
  2061. xTaskResumeAll ();
  2062. goto <bb 48>; [INV]
  2063. <bb 44> :
  2064. prvUnlockQueue (pxQueue_43);
  2065. xTaskResumeAll ();
  2066. _22 = prvIsQueueEmpty (pxQueue_43);
  2067. if (_22 != 0)
  2068. goto <bb 45>; [INV]
  2069. else
  2070. goto <bb 48>; [INV]
  2071. <bb 45> :
  2072. if (xInheritanceOccurred_26 != 0)
  2073. goto <bb 46>; [INV]
  2074. else
  2075. goto <bb 47>; [INV]
  2076. <bb 46> :
  2077. vPortEnterCritical ();
  2078. uxHighestWaitingPriority_65 = prvGetDisinheritPriorityAfterTimeout (pxQueue_43);
  2079. _23 = pxQueue_43->u.xSemaphore.xMutexHolder;
  2080. vTaskPriorityDisinheritAfterTimeout (_23, uxHighestWaitingPriority_65);
  2081. vPortExitCritical ();
  2082. <bb 47> :
  2083. _68 = 0;
  2084. // predicted unlikely by early return (on trees) predictor.
  2085. goto <bb 49>; [INV]
  2086. <bb 48> :
  2087. # xInheritanceOccurred_28 = PHI <xInheritanceOccurred_26(43), xInheritanceOccurred_26(44), xInheritanceOccurred_27(42), xInheritanceOccurred_27(41)>
  2088. goto <bb 18>; [INV]
  2089. <bb 49> :
  2090. # _30 = PHI <_92(24), _83(30), _68(47)>
  2091. xTimeOut ={v} {CLOBBER};
  2092. <bb 50> :
  2093. <L54>:
  2094. return _30;
  2095. }
  2096. xQueueReceive (struct QueueDefinition * xQueue, void * const pvBuffer, TickType_t xTicksToWait)
  2097. {
  2098. uint32_t ulNewBASEPRI;
  2099. uint32_t ulNewBASEPRI;
  2100. uint32_t ulNewBASEPRI;
  2101. const UBaseType_t uxMessagesWaiting;
  2102. struct Queue_t * const pxQueue;
  2103. struct TimeOut_t xTimeOut;
  2104. BaseType_t xEntryTimeSet;
  2105. BaseType_t D.6994;
  2106. int iftmp.12;
  2107. int iftmp.11;
  2108. long unsigned int _1;
  2109. long int _2;
  2110. long unsigned int xTicksToWait.13_3;
  2111. long unsigned int _4;
  2112. long unsigned int _5;
  2113. struct List_t * _6;
  2114. long int _7;
  2115. volatile uint32_t * _8;
  2116. long unsigned int xTicksToWait.14_9;
  2117. signed char _10;
  2118. signed char _11;
  2119. long int _12;
  2120. long int _13;
  2121. struct List_t * _14;
  2122. long unsigned int xTicksToWait.15_15;
  2123. long int _16;
  2124. volatile uint32_t * _17;
  2125. long int _18;
  2126. int iftmp.11_21;
  2127. int iftmp.12_22;
  2128. BaseType_t _23;
  2129. int iftmp.11_36;
  2130. int iftmp.11_37;
  2131. int iftmp.12_39;
  2132. int iftmp.12_40;
  2133. BaseType_t _55;
  2134. BaseType_t _66;
  2135. BaseType_t _74;
  2136. <bb 2> :
  2137. xEntryTimeSet_31 = 0;
  2138. pxQueue_33 = xQueue_32(D);
  2139. if (pxQueue_33 == 0B)
  2140. goto <bb 3>; [INV]
  2141. else
  2142. goto <bb 6>; [INV]
  2143. <bb 3> :
  2144. __asm__ __volatile__(" mov %0, %1
  2145. msr basepri, %0
  2146. isb
  2147. dsb
  2148. " : "=r" ulNewBASEPRI_76 : "i" 16 : "memory");
  2149. <bb 4> :
  2150. <bb 5> :
  2151. goto <bb 5>; [INV]
  2152. <bb 6> :
  2153. if (pvBuffer_34(D) != 0B)
  2154. goto <bb 8>; [INV]
  2155. else
  2156. goto <bb 7>; [INV]
  2157. <bb 7> :
  2158. _1 = pxQueue_33->uxItemSize;
  2159. if (_1 == 0)
  2160. goto <bb 8>; [INV]
  2161. else
  2162. goto <bb 9>; [INV]
  2163. <bb 8> :
  2164. iftmp.11_37 = 1;
  2165. goto <bb 10>; [INV]
  2166. <bb 9> :
  2167. iftmp.11_36 = 0;
  2168. <bb 10> :
  2169. # iftmp.11_21 = PHI <iftmp.11_37(8), iftmp.11_36(9)>
  2170. if (iftmp.11_21 == 0)
  2171. goto <bb 11>; [INV]
  2172. else
  2173. goto <bb 14>; [INV]
  2174. <bb 11> :
  2175. __asm__ __volatile__(" mov %0, %1
  2176. msr basepri, %0
  2177. isb
  2178. dsb
  2179. " : "=r" ulNewBASEPRI_77 : "i" 16 : "memory");
  2180. <bb 12> :
  2181. <bb 13> :
  2182. goto <bb 13>; [INV]
  2183. <bb 14> :
  2184. _2 = xTaskGetSchedulerState ();
  2185. if (_2 != 0)
  2186. goto <bb 16>; [INV]
  2187. else
  2188. goto <bb 15>; [INV]
  2189. <bb 15> :
  2190. xTicksToWait.13_3 = xTicksToWait;
  2191. if (xTicksToWait.13_3 == 0)
  2192. goto <bb 16>; [INV]
  2193. else
  2194. goto <bb 17>; [INV]
  2195. <bb 16> :
  2196. iftmp.12_40 = 1;
  2197. goto <bb 18>; [INV]
  2198. <bb 17> :
  2199. iftmp.12_39 = 0;
  2200. <bb 18> :
  2201. # iftmp.12_22 = PHI <iftmp.12_40(16), iftmp.12_39(17)>
  2202. if (iftmp.12_22 == 0)
  2203. goto <bb 19>; [INV]
  2204. else
  2205. goto <bb 22>; [INV]
  2206. <bb 19> :
  2207. __asm__ __volatile__(" mov %0, %1
  2208. msr basepri, %0
  2209. isb
  2210. dsb
  2211. " : "=r" ulNewBASEPRI_78 : "i" 16 : "memory");
  2212. <bb 20> :
  2213. <bb 21> :
  2214. goto <bb 21>; [INV]
  2215. <bb 22> :
  2216. # xEntryTimeSet_19 = PHI <xEntryTimeSet_31(18), xEntryTimeSet_20(42)>
  2217. vPortEnterCritical ();
  2218. uxMessagesWaiting_42 ={v} pxQueue_33->uxMessagesWaiting;
  2219. if (uxMessagesWaiting_42 != 0)
  2220. goto <bb 23>; [INV]
  2221. else
  2222. goto <bb 27>; [INV]
  2223. <bb 23> :
  2224. prvCopyDataFromQueue (pxQueue_33, pvBuffer_34(D));
  2225. _4 = uxMessagesWaiting_42 + 4294967295;
  2226. pxQueue_33->uxMessagesWaiting ={v} _4;
  2227. _5 ={v} pxQueue_33->xTasksWaitingToSend.uxNumberOfItems;
  2228. if (_5 != 0)
  2229. goto <bb 24>; [INV]
  2230. else
  2231. goto <bb 26>; [INV]
  2232. <bb 24> :
  2233. _6 = &pxQueue_33->xTasksWaitingToSend;
  2234. _7 = xTaskRemoveFromEventList (_6);
  2235. if (_7 != 0)
  2236. goto <bb 25>; [INV]
  2237. else
  2238. goto <bb 26>; [INV]
  2239. <bb 25> :
  2240. _8 = 3758157060B;
  2241. *_8 ={v} 268435456;
  2242. __asm__ __volatile__("dsb" : : : "memory");
  2243. __asm__ __volatile__("isb");
  2244. <bb 26> :
  2245. vPortExitCritical ();
  2246. _74 = 1;
  2247. // predicted unlikely by early return (on trees) predictor.
  2248. goto <bb 43>; [INV]
  2249. <bb 27> :
  2250. xTicksToWait.14_9 = xTicksToWait;
  2251. if (xTicksToWait.14_9 == 0)
  2252. goto <bb 28>; [INV]
  2253. else
  2254. goto <bb 29>; [INV]
  2255. <bb 28> :
  2256. vPortExitCritical ();
  2257. _66 = 0;
  2258. // predicted unlikely by early return (on trees) predictor.
  2259. goto <bb 43>; [INV]
  2260. <bb 29> :
  2261. if (xEntryTimeSet_19 == 0)
  2262. goto <bb 30>; [INV]
  2263. else
  2264. goto <bb 31>; [INV]
  2265. <bb 30> :
  2266. vTaskInternalSetTimeOutState (&xTimeOut);
  2267. xEntryTimeSet_44 = 1;
  2268. <bb 31> :
  2269. # xEntryTimeSet_20 = PHI <xEntryTimeSet_19(29), xEntryTimeSet_44(30)>
  2270. vPortExitCritical ();
  2271. vTaskSuspendAll ();
  2272. vPortEnterCritical ();
  2273. _10 ={v} pxQueue_33->cRxLock;
  2274. if (_10 == -1)
  2275. goto <bb 32>; [INV]
  2276. else
  2277. goto <bb 33>; [INV]
  2278. <bb 32> :
  2279. pxQueue_33->cRxLock ={v} 0;
  2280. <bb 33> :
  2281. _11 ={v} pxQueue_33->cTxLock;
  2282. if (_11 == -1)
  2283. goto <bb 34>; [INV]
  2284. else
  2285. goto <bb 35>; [INV]
  2286. <bb 34> :
  2287. pxQueue_33->cTxLock ={v} 0;
  2288. <bb 35> :
  2289. vPortExitCritical ();
  2290. _12 = xTaskCheckForTimeOut (&xTimeOut, &xTicksToWait);
  2291. if (_12 == 0)
  2292. goto <bb 36>; [INV]
  2293. else
  2294. goto <bb 40>; [INV]
  2295. <bb 36> :
  2296. _13 = prvIsQueueEmpty (pxQueue_33);
  2297. if (_13 != 0)
  2298. goto <bb 37>; [INV]
  2299. else
  2300. goto <bb 39>; [INV]
  2301. <bb 37> :
  2302. _14 = &pxQueue_33->xTasksWaitingToReceive;
  2303. xTicksToWait.15_15 = xTicksToWait;
  2304. vTaskPlaceOnEventList (_14, xTicksToWait.15_15);
  2305. prvUnlockQueue (pxQueue_33);
  2306. _16 = xTaskResumeAll ();
  2307. if (_16 == 0)
  2308. goto <bb 38>; [INV]
  2309. else
  2310. goto <bb 42>; [INV]
  2311. <bb 38> :
  2312. _17 = 3758157060B;
  2313. *_17 ={v} 268435456;
  2314. __asm__ __volatile__("dsb" : : : "memory");
  2315. __asm__ __volatile__("isb");
  2316. goto <bb 42>; [INV]
  2317. <bb 39> :
  2318. prvUnlockQueue (pxQueue_33);
  2319. xTaskResumeAll ();
  2320. goto <bb 42>; [INV]
  2321. <bb 40> :
  2322. prvUnlockQueue (pxQueue_33);
  2323. xTaskResumeAll ();
  2324. _18 = prvIsQueueEmpty (pxQueue_33);
  2325. if (_18 != 0)
  2326. goto <bb 41>; [INV]
  2327. else
  2328. goto <bb 42>; [INV]
  2329. <bb 41> :
  2330. _55 = 0;
  2331. // predicted unlikely by early return (on trees) predictor.
  2332. goto <bb 43>; [INV]
  2333. <bb 42> :
  2334. goto <bb 22>; [INV]
  2335. <bb 43> :
  2336. # _23 = PHI <_74(26), _66(28), _55(41)>
  2337. xTimeOut ={v} {CLOBBER};
  2338. <bb 44> :
  2339. <L47>:
  2340. return _23;
  2341. }
  2342. xQueueGiveFromISR (struct QueueDefinition * xQueue, BaseType_t * const pxHigherPriorityTaskWoken)
  2343. {
  2344. uint32_t ulNewMaskValue;
  2345. uint32_t ulNewBASEPRI;
  2346. uint32_t D.7329;
  2347. uint32_t ulOriginalBASEPRI;
  2348. uint32_t ulNewBASEPRI;
  2349. uint32_t D.7328;
  2350. uint32_t ulNewBASEPRI;
  2351. uint32_t ulNewBASEPRI;
  2352. uint32_t ulNewBASEPRI;
  2353. const int8_t cTxLock;
  2354. const UBaseType_t uxMessagesWaiting;
  2355. struct Queue_t * const pxQueue;
  2356. UBaseType_t uxSavedInterruptStatus;
  2357. BaseType_t xReturn;
  2358. BaseType_t D.6968;
  2359. int iftmp.9;
  2360. long unsigned int _1;
  2361. int8_t * _2;
  2362. struct tskTaskControlBlock * _3;
  2363. long unsigned int _4;
  2364. long unsigned int _5;
  2365. long unsigned int _6;
  2366. struct List_t * _7;
  2367. long int _8;
  2368. unsigned char cTxLock.10_9;
  2369. unsigned char _10;
  2370. signed char _11;
  2371. int iftmp.9_13;
  2372. int iftmp.9_19;
  2373. int iftmp.9_20;
  2374. BaseType_t _32;
  2375. long unsigned int _38;
  2376. <bb 2> :
  2377. pxQueue_17 = xQueue_16(D);
  2378. if (pxQueue_17 == 0B)
  2379. goto <bb 3>; [INV]
  2380. else
  2381. goto <bb 6>; [INV]
  2382. <bb 3> :
  2383. __asm__ __volatile__(" mov %0, %1
  2384. msr basepri, %0
  2385. isb
  2386. dsb
  2387. " : "=r" ulNewBASEPRI_33 : "i" 16 : "memory");
  2388. <bb 4> :
  2389. <bb 5> :
  2390. goto <bb 5>; [INV]
  2391. <bb 6> :
  2392. _1 = pxQueue_17->uxItemSize;
  2393. if (_1 != 0)
  2394. goto <bb 7>; [INV]
  2395. else
  2396. goto <bb 10>; [INV]
  2397. <bb 7> :
  2398. __asm__ __volatile__(" mov %0, %1
  2399. msr basepri, %0
  2400. isb
  2401. dsb
  2402. " : "=r" ulNewBASEPRI_34 : "i" 16 : "memory");
  2403. <bb 8> :
  2404. <bb 9> :
  2405. goto <bb 9>; [INV]
  2406. <bb 10> :
  2407. _2 = pxQueue_17->pcHead;
  2408. if (_2 != 0B)
  2409. goto <bb 12>; [INV]
  2410. else
  2411. goto <bb 11>; [INV]
  2412. <bb 11> :
  2413. _3 = pxQueue_17->u.xSemaphore.xMutexHolder;
  2414. if (_3 == 0B)
  2415. goto <bb 12>; [INV]
  2416. else
  2417. goto <bb 13>; [INV]
  2418. <bb 12> :
  2419. iftmp.9_20 = 1;
  2420. goto <bb 14>; [INV]
  2421. <bb 13> :
  2422. iftmp.9_19 = 0;
  2423. <bb 14> :
  2424. # iftmp.9_13 = PHI <iftmp.9_20(12), iftmp.9_19(13)>
  2425. if (iftmp.9_13 == 0)
  2426. goto <bb 15>; [INV]
  2427. else
  2428. goto <bb 18>; [INV]
  2429. <bb 15> :
  2430. __asm__ __volatile__(" mov %0, %1
  2431. msr basepri, %0
  2432. isb
  2433. dsb
  2434. " : "=r" ulNewBASEPRI_35 : "i" 16 : "memory");
  2435. <bb 16> :
  2436. <bb 17> :
  2437. goto <bb 17>; [INV]
  2438. <bb 18> :
  2439. vPortValidateInterruptPriority ();
  2440. __asm__ __volatile__(" mrs %0, basepri
  2441. mov %1, %2
  2442. msr basepri, %1
  2443. isb
  2444. dsb
  2445. " : "=r" ulOriginalBASEPRI_36, "=r" ulNewBASEPRI_37 : "i" 16 : "memory");
  2446. _38 = ulOriginalBASEPRI_36;
  2447. <bb 19> :
  2448. <L32>:
  2449. _42 = _38;
  2450. <bb 20> :
  2451. uxSavedInterruptStatus_22 = _42;
  2452. uxMessagesWaiting_23 ={v} pxQueue_17->uxMessagesWaiting;
  2453. _4 = pxQueue_17->uxLength;
  2454. if (uxMessagesWaiting_23 < _4)
  2455. goto <bb 21>; [INV]
  2456. else
  2457. goto <bb 32>; [INV]
  2458. <bb 21> :
  2459. cTxLock_25 ={v} pxQueue_17->cTxLock;
  2460. _5 = uxMessagesWaiting_23 + 1;
  2461. pxQueue_17->uxMessagesWaiting ={v} _5;
  2462. if (cTxLock_25 == -1)
  2463. goto <bb 22>; [INV]
  2464. else
  2465. goto <bb 26>; [INV]
  2466. <bb 22> :
  2467. _6 ={v} pxQueue_17->xTasksWaitingToReceive.uxNumberOfItems;
  2468. if (_6 != 0)
  2469. goto <bb 23>; [INV]
  2470. else
  2471. goto <bb 31>; [INV]
  2472. <bb 23> :
  2473. _7 = &pxQueue_17->xTasksWaitingToReceive;
  2474. _8 = xTaskRemoveFromEventList (_7);
  2475. if (_8 != 0)
  2476. goto <bb 24>; [INV]
  2477. else
  2478. goto <bb 31>; [INV]
  2479. <bb 24> :
  2480. if (pxHigherPriorityTaskWoken_29(D) != 0B)
  2481. goto <bb 25>; [INV]
  2482. else
  2483. goto <bb 31>; [INV]
  2484. <bb 25> :
  2485. *pxHigherPriorityTaskWoken_29(D) = 1;
  2486. goto <bb 31>; [INV]
  2487. <bb 26> :
  2488. if (cTxLock_25 == 127)
  2489. goto <bb 27>; [INV]
  2490. else
  2491. goto <bb 30>; [INV]
  2492. <bb 27> :
  2493. __asm__ __volatile__(" mov %0, %1
  2494. msr basepri, %0
  2495. isb
  2496. dsb
  2497. " : "=r" ulNewBASEPRI_39 : "i" 16 : "memory");
  2498. <bb 28> :
  2499. <bb 29> :
  2500. goto <bb 29>; [INV]
  2501. <bb 30> :
  2502. cTxLock.10_9 = (unsigned char) cTxLock_25;
  2503. _10 = cTxLock.10_9 + 1;
  2504. _11 = (signed char) _10;
  2505. pxQueue_17->cTxLock ={v} _11;
  2506. <bb 31> :
  2507. xReturn_31 = 1;
  2508. goto <bb 33>; [INV]
  2509. <bb 32> :
  2510. xReturn_24 = 0;
  2511. <bb 33> :
  2512. # xReturn_12 = PHI <xReturn_31(31), xReturn_24(32)>
  2513. ulNewMaskValue_40 = uxSavedInterruptStatus_22;
  2514. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_40 : "memory");
  2515. <bb 34> :
  2516. _32 = xReturn_12;
  2517. <bb 35> :
  2518. <L31>:
  2519. return _32;
  2520. }
  2521. xQueueGenericSendFromISR (struct QueueDefinition * xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition)
  2522. {
  2523. uint32_t ulNewMaskValue;
  2524. uint32_t ulNewBASEPRI;
  2525. uint32_t D.7342;
  2526. uint32_t ulOriginalBASEPRI;
  2527. uint32_t ulNewBASEPRI;
  2528. uint32_t D.7341;
  2529. uint32_t ulNewBASEPRI;
  2530. uint32_t ulNewBASEPRI;
  2531. uint32_t ulNewBASEPRI;
  2532. const UBaseType_t uxPreviousMessagesWaiting;
  2533. const int8_t cTxLock;
  2534. struct Queue_t * const pxQueue;
  2535. UBaseType_t uxSavedInterruptStatus;
  2536. BaseType_t xReturn;
  2537. BaseType_t D.6936;
  2538. int iftmp.7;
  2539. int iftmp.6;
  2540. long unsigned int _1;
  2541. long unsigned int _2;
  2542. long unsigned int _3;
  2543. long unsigned int _4;
  2544. long unsigned int _5;
  2545. struct List_t * _6;
  2546. long int _7;
  2547. unsigned char cTxLock.8_8;
  2548. unsigned char _9;
  2549. signed char _10;
  2550. int iftmp.6_12;
  2551. int iftmp.7_13;
  2552. int iftmp.6_20;
  2553. int iftmp.6_21;
  2554. int iftmp.7_23;
  2555. int iftmp.7_24;
  2556. BaseType_t _36;
  2557. long unsigned int _42;
  2558. <bb 2> :
  2559. pxQueue_17 = xQueue_16(D);
  2560. if (pxQueue_17 == 0B)
  2561. goto <bb 3>; [INV]
  2562. else
  2563. goto <bb 6>; [INV]
  2564. <bb 3> :
  2565. __asm__ __volatile__(" mov %0, %1
  2566. msr basepri, %0
  2567. isb
  2568. dsb
  2569. " : "=r" ulNewBASEPRI_37 : "i" 16 : "memory");
  2570. <bb 4> :
  2571. <bb 5> :
  2572. goto <bb 5>; [INV]
  2573. <bb 6> :
  2574. if (pvItemToQueue_18(D) != 0B)
  2575. goto <bb 8>; [INV]
  2576. else
  2577. goto <bb 7>; [INV]
  2578. <bb 7> :
  2579. _1 = pxQueue_17->uxItemSize;
  2580. if (_1 == 0)
  2581. goto <bb 8>; [INV]
  2582. else
  2583. goto <bb 9>; [INV]
  2584. <bb 8> :
  2585. iftmp.6_21 = 1;
  2586. goto <bb 10>; [INV]
  2587. <bb 9> :
  2588. iftmp.6_20 = 0;
  2589. <bb 10> :
  2590. # iftmp.6_12 = PHI <iftmp.6_21(8), iftmp.6_20(9)>
  2591. if (iftmp.6_12 == 0)
  2592. goto <bb 11>; [INV]
  2593. else
  2594. goto <bb 14>; [INV]
  2595. <bb 11> :
  2596. __asm__ __volatile__(" mov %0, %1
  2597. msr basepri, %0
  2598. isb
  2599. dsb
  2600. " : "=r" ulNewBASEPRI_38 : "i" 16 : "memory");
  2601. <bb 12> :
  2602. <bb 13> :
  2603. goto <bb 13>; [INV]
  2604. <bb 14> :
  2605. if (xCopyPosition_22(D) != 2)
  2606. goto <bb 16>; [INV]
  2607. else
  2608. goto <bb 15>; [INV]
  2609. <bb 15> :
  2610. _2 = pxQueue_17->uxLength;
  2611. if (_2 == 1)
  2612. goto <bb 16>; [INV]
  2613. else
  2614. goto <bb 17>; [INV]
  2615. <bb 16> :
  2616. iftmp.7_24 = 1;
  2617. goto <bb 18>; [INV]
  2618. <bb 17> :
  2619. iftmp.7_23 = 0;
  2620. <bb 18> :
  2621. # iftmp.7_13 = PHI <iftmp.7_24(16), iftmp.7_23(17)>
  2622. if (iftmp.7_13 == 0)
  2623. goto <bb 19>; [INV]
  2624. else
  2625. goto <bb 22>; [INV]
  2626. <bb 19> :
  2627. __asm__ __volatile__(" mov %0, %1
  2628. msr basepri, %0
  2629. isb
  2630. dsb
  2631. " : "=r" ulNewBASEPRI_39 : "i" 16 : "memory");
  2632. <bb 20> :
  2633. <bb 21> :
  2634. goto <bb 21>; [INV]
  2635. <bb 22> :
  2636. vPortValidateInterruptPriority ();
  2637. __asm__ __volatile__(" mrs %0, basepri
  2638. mov %1, %2
  2639. msr basepri, %1
  2640. isb
  2641. dsb
  2642. " : "=r" ulOriginalBASEPRI_40, "=r" ulNewBASEPRI_41 : "i" 16 : "memory");
  2643. _42 = ulOriginalBASEPRI_40;
  2644. <bb 23> :
  2645. <L37>:
  2646. _46 = _42;
  2647. <bb 24> :
  2648. uxSavedInterruptStatus_26 = _46;
  2649. _3 ={v} pxQueue_17->uxMessagesWaiting;
  2650. _4 = pxQueue_17->uxLength;
  2651. if (_3 < _4)
  2652. goto <bb 26>; [INV]
  2653. else
  2654. goto <bb 25>; [INV]
  2655. <bb 25> :
  2656. if (xCopyPosition_22(D) == 2)
  2657. goto <bb 26>; [INV]
  2658. else
  2659. goto <bb 37>; [INV]
  2660. <bb 26> :
  2661. cTxLock_28 ={v} pxQueue_17->cTxLock;
  2662. uxPreviousMessagesWaiting_29 ={v} pxQueue_17->uxMessagesWaiting;
  2663. prvCopyDataToQueue (pxQueue_17, pvItemToQueue_18(D), xCopyPosition_22(D));
  2664. if (cTxLock_28 == -1)
  2665. goto <bb 27>; [INV]
  2666. else
  2667. goto <bb 31>; [INV]
  2668. <bb 27> :
  2669. _5 ={v} pxQueue_17->xTasksWaitingToReceive.uxNumberOfItems;
  2670. if (_5 != 0)
  2671. goto <bb 28>; [INV]
  2672. else
  2673. goto <bb 36>; [INV]
  2674. <bb 28> :
  2675. _6 = &pxQueue_17->xTasksWaitingToReceive;
  2676. _7 = xTaskRemoveFromEventList (_6);
  2677. if (_7 != 0)
  2678. goto <bb 29>; [INV]
  2679. else
  2680. goto <bb 36>; [INV]
  2681. <bb 29> :
  2682. if (pxHigherPriorityTaskWoken_33(D) != 0B)
  2683. goto <bb 30>; [INV]
  2684. else
  2685. goto <bb 36>; [INV]
  2686. <bb 30> :
  2687. *pxHigherPriorityTaskWoken_33(D) = 1;
  2688. goto <bb 36>; [INV]
  2689. <bb 31> :
  2690. if (cTxLock_28 == 127)
  2691. goto <bb 32>; [INV]
  2692. else
  2693. goto <bb 35>; [INV]
  2694. <bb 32> :
  2695. __asm__ __volatile__(" mov %0, %1
  2696. msr basepri, %0
  2697. isb
  2698. dsb
  2699. " : "=r" ulNewBASEPRI_43 : "i" 16 : "memory");
  2700. <bb 33> :
  2701. <bb 34> :
  2702. goto <bb 34>; [INV]
  2703. <bb 35> :
  2704. cTxLock.8_8 = (unsigned char) cTxLock_28;
  2705. _9 = cTxLock.8_8 + 1;
  2706. _10 = (signed char) _9;
  2707. pxQueue_17->cTxLock ={v} _10;
  2708. <bb 36> :
  2709. xReturn_35 = 1;
  2710. goto <bb 38>; [INV]
  2711. <bb 37> :
  2712. xReturn_27 = 0;
  2713. <bb 38> :
  2714. # xReturn_11 = PHI <xReturn_35(36), xReturn_27(37)>
  2715. ulNewMaskValue_44 = uxSavedInterruptStatus_26;
  2716. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_44 : "memory");
  2717. <bb 39> :
  2718. _36 = xReturn_11;
  2719. <bb 40> :
  2720. <L36>:
  2721. return _36;
  2722. }
  2723. xQueueGenericSend (struct QueueDefinition * xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition)
  2724. {
  2725. uint32_t ulNewBASEPRI;
  2726. uint32_t ulNewBASEPRI;
  2727. uint32_t ulNewBASEPRI;
  2728. uint32_t ulNewBASEPRI;
  2729. struct Queue_t * const pxQueue;
  2730. struct TimeOut_t xTimeOut;
  2731. BaseType_t xYieldRequired;
  2732. BaseType_t xEntryTimeSet;
  2733. BaseType_t D.6882;
  2734. int iftmp.2;
  2735. int iftmp.1;
  2736. int iftmp.0;
  2737. long unsigned int _1;
  2738. long unsigned int _2;
  2739. long int _3;
  2740. long unsigned int xTicksToWait.3_4;
  2741. long unsigned int _5;
  2742. long unsigned int _6;
  2743. long unsigned int _7;
  2744. struct List_t * _8;
  2745. long int _9;
  2746. volatile uint32_t * _10;
  2747. volatile uint32_t * _11;
  2748. long unsigned int xTicksToWait.4_12;
  2749. signed char _13;
  2750. signed char _14;
  2751. long int _15;
  2752. long int _16;
  2753. struct List_t * _17;
  2754. long unsigned int xTicksToWait.5_18;
  2755. long int _19;
  2756. volatile uint32_t * _20;
  2757. int iftmp.0_23;
  2758. int iftmp.1_24;
  2759. int iftmp.2_25;
  2760. BaseType_t _26;
  2761. int iftmp.0_39;
  2762. int iftmp.0_40;
  2763. int iftmp.1_42;
  2764. int iftmp.1_43;
  2765. int iftmp.2_45;
  2766. int iftmp.2_46;
  2767. BaseType_t _59;
  2768. BaseType_t _70;
  2769. BaseType_t _81;
  2770. <bb 2> :
  2771. xEntryTimeSet_34 = 0;
  2772. pxQueue_36 = xQueue_35(D);
  2773. if (pxQueue_36 == 0B)
  2774. goto <bb 3>; [INV]
  2775. else
  2776. goto <bb 6>; [INV]
  2777. <bb 3> :
  2778. __asm__ __volatile__(" mov %0, %1
  2779. msr basepri, %0
  2780. isb
  2781. dsb
  2782. " : "=r" ulNewBASEPRI_83 : "i" 16 : "memory");
  2783. <bb 4> :
  2784. <bb 5> :
  2785. goto <bb 5>; [INV]
  2786. <bb 6> :
  2787. if (pvItemToQueue_37(D) != 0B)
  2788. goto <bb 8>; [INV]
  2789. else
  2790. goto <bb 7>; [INV]
  2791. <bb 7> :
  2792. _1 = pxQueue_36->uxItemSize;
  2793. if (_1 == 0)
  2794. goto <bb 8>; [INV]
  2795. else
  2796. goto <bb 9>; [INV]
  2797. <bb 8> :
  2798. iftmp.0_40 = 1;
  2799. goto <bb 10>; [INV]
  2800. <bb 9> :
  2801. iftmp.0_39 = 0;
  2802. <bb 10> :
  2803. # iftmp.0_23 = PHI <iftmp.0_40(8), iftmp.0_39(9)>
  2804. if (iftmp.0_23 == 0)
  2805. goto <bb 11>; [INV]
  2806. else
  2807. goto <bb 14>; [INV]
  2808. <bb 11> :
  2809. __asm__ __volatile__(" mov %0, %1
  2810. msr basepri, %0
  2811. isb
  2812. dsb
  2813. " : "=r" ulNewBASEPRI_84 : "i" 16 : "memory");
  2814. <bb 12> :
  2815. <bb 13> :
  2816. goto <bb 13>; [INV]
  2817. <bb 14> :
  2818. if (xCopyPosition_41(D) != 2)
  2819. goto <bb 16>; [INV]
  2820. else
  2821. goto <bb 15>; [INV]
  2822. <bb 15> :
  2823. _2 = pxQueue_36->uxLength;
  2824. if (_2 == 1)
  2825. goto <bb 16>; [INV]
  2826. else
  2827. goto <bb 17>; [INV]
  2828. <bb 16> :
  2829. iftmp.1_43 = 1;
  2830. goto <bb 18>; [INV]
  2831. <bb 17> :
  2832. iftmp.1_42 = 0;
  2833. <bb 18> :
  2834. # iftmp.1_24 = PHI <iftmp.1_43(16), iftmp.1_42(17)>
  2835. if (iftmp.1_24 == 0)
  2836. goto <bb 19>; [INV]
  2837. else
  2838. goto <bb 22>; [INV]
  2839. <bb 19> :
  2840. __asm__ __volatile__(" mov %0, %1
  2841. msr basepri, %0
  2842. isb
  2843. dsb
  2844. " : "=r" ulNewBASEPRI_85 : "i" 16 : "memory");
  2845. <bb 20> :
  2846. <bb 21> :
  2847. goto <bb 21>; [INV]
  2848. <bb 22> :
  2849. _3 = xTaskGetSchedulerState ();
  2850. if (_3 != 0)
  2851. goto <bb 24>; [INV]
  2852. else
  2853. goto <bb 23>; [INV]
  2854. <bb 23> :
  2855. xTicksToWait.3_4 = xTicksToWait;
  2856. if (xTicksToWait.3_4 == 0)
  2857. goto <bb 24>; [INV]
  2858. else
  2859. goto <bb 25>; [INV]
  2860. <bb 24> :
  2861. iftmp.2_46 = 1;
  2862. goto <bb 26>; [INV]
  2863. <bb 25> :
  2864. iftmp.2_45 = 0;
  2865. <bb 26> :
  2866. # iftmp.2_25 = PHI <iftmp.2_46(24), iftmp.2_45(25)>
  2867. if (iftmp.2_25 == 0)
  2868. goto <bb 27>; [INV]
  2869. else
  2870. goto <bb 30>; [INV]
  2871. <bb 27> :
  2872. __asm__ __volatile__(" mov %0, %1
  2873. msr basepri, %0
  2874. isb
  2875. dsb
  2876. " : "=r" ulNewBASEPRI_86 : "i" 16 : "memory");
  2877. <bb 28> :
  2878. <bb 29> :
  2879. goto <bb 29>; [INV]
  2880. <bb 30> :
  2881. # xEntryTimeSet_21 = PHI <xEntryTimeSet_34(26), xEntryTimeSet_22(52)>
  2882. vPortEnterCritical ();
  2883. _5 ={v} pxQueue_36->uxMessagesWaiting;
  2884. _6 = pxQueue_36->uxLength;
  2885. if (_5 < _6)
  2886. goto <bb 32>; [INV]
  2887. else
  2888. goto <bb 31>; [INV]
  2889. <bb 31> :
  2890. if (xCopyPosition_41(D) == 2)
  2891. goto <bb 32>; [INV]
  2892. else
  2893. goto <bb 38>; [INV]
  2894. <bb 32> :
  2895. xYieldRequired_72 = prvCopyDataToQueue (pxQueue_36, pvItemToQueue_37(D), xCopyPosition_41(D));
  2896. _7 ={v} pxQueue_36->xTasksWaitingToReceive.uxNumberOfItems;
  2897. if (_7 != 0)
  2898. goto <bb 33>; [INV]
  2899. else
  2900. goto <bb 35>; [INV]
  2901. <bb 33> :
  2902. _8 = &pxQueue_36->xTasksWaitingToReceive;
  2903. _9 = xTaskRemoveFromEventList (_8);
  2904. if (_9 != 0)
  2905. goto <bb 34>; [INV]
  2906. else
  2907. goto <bb 37>; [INV]
  2908. <bb 34> :
  2909. _10 = 3758157060B;
  2910. *_10 ={v} 268435456;
  2911. __asm__ __volatile__("dsb" : : : "memory");
  2912. __asm__ __volatile__("isb");
  2913. goto <bb 37>; [INV]
  2914. <bb 35> :
  2915. if (xYieldRequired_72 != 0)
  2916. goto <bb 36>; [INV]
  2917. else
  2918. goto <bb 37>; [INV]
  2919. <bb 36> :
  2920. _11 = 3758157060B;
  2921. *_11 ={v} 268435456;
  2922. __asm__ __volatile__("dsb" : : : "memory");
  2923. __asm__ __volatile__("isb");
  2924. <bb 37> :
  2925. vPortExitCritical ();
  2926. _81 = 1;
  2927. // predicted unlikely by early return (on trees) predictor.
  2928. goto <bb 53>; [INV]
  2929. <bb 38> :
  2930. xTicksToWait.4_12 = xTicksToWait;
  2931. if (xTicksToWait.4_12 == 0)
  2932. goto <bb 39>; [INV]
  2933. else
  2934. goto <bb 40>; [INV]
  2935. <bb 39> :
  2936. vPortExitCritical ();
  2937. _70 = 0;
  2938. // predicted unlikely by early return (on trees) predictor.
  2939. goto <bb 53>; [INV]
  2940. <bb 40> :
  2941. if (xEntryTimeSet_21 == 0)
  2942. goto <bb 41>; [INV]
  2943. else
  2944. goto <bb 42>; [INV]
  2945. <bb 41> :
  2946. vTaskInternalSetTimeOutState (&xTimeOut);
  2947. xEntryTimeSet_49 = 1;
  2948. <bb 42> :
  2949. # xEntryTimeSet_22 = PHI <xEntryTimeSet_21(40), xEntryTimeSet_49(41)>
  2950. vPortExitCritical ();
  2951. vTaskSuspendAll ();
  2952. vPortEnterCritical ();
  2953. _13 ={v} pxQueue_36->cRxLock;
  2954. if (_13 == -1)
  2955. goto <bb 43>; [INV]
  2956. else
  2957. goto <bb 44>; [INV]
  2958. <bb 43> :
  2959. pxQueue_36->cRxLock ={v} 0;
  2960. <bb 44> :
  2961. _14 ={v} pxQueue_36->cTxLock;
  2962. if (_14 == -1)
  2963. goto <bb 45>; [INV]
  2964. else
  2965. goto <bb 46>; [INV]
  2966. <bb 45> :
  2967. pxQueue_36->cTxLock ={v} 0;
  2968. <bb 46> :
  2969. vPortExitCritical ();
  2970. _15 = xTaskCheckForTimeOut (&xTimeOut, &xTicksToWait);
  2971. if (_15 == 0)
  2972. goto <bb 47>; [INV]
  2973. else
  2974. goto <bb 51>; [INV]
  2975. <bb 47> :
  2976. _16 = prvIsQueueFull (pxQueue_36);
  2977. if (_16 != 0)
  2978. goto <bb 48>; [INV]
  2979. else
  2980. goto <bb 50>; [INV]
  2981. <bb 48> :
  2982. _17 = &pxQueue_36->xTasksWaitingToSend;
  2983. xTicksToWait.5_18 = xTicksToWait;
  2984. vTaskPlaceOnEventList (_17, xTicksToWait.5_18);
  2985. prvUnlockQueue (pxQueue_36);
  2986. _19 = xTaskResumeAll ();
  2987. if (_19 == 0)
  2988. goto <bb 49>; [INV]
  2989. else
  2990. goto <bb 52>; [INV]
  2991. <bb 49> :
  2992. _20 = 3758157060B;
  2993. *_20 ={v} 268435456;
  2994. __asm__ __volatile__("dsb" : : : "memory");
  2995. __asm__ __volatile__("isb");
  2996. goto <bb 52>; [INV]
  2997. <bb 50> :
  2998. prvUnlockQueue (pxQueue_36);
  2999. xTaskResumeAll ();
  3000. goto <bb 52>; [INV]
  3001. <bb 51> :
  3002. prvUnlockQueue (pxQueue_36);
  3003. xTaskResumeAll ();
  3004. _59 = 0;
  3005. // predicted unlikely by early return (on trees) predictor.
  3006. goto <bb 53>; [INV]
  3007. <bb 52> :
  3008. goto <bb 30>; [INV]
  3009. <bb 53> :
  3010. # _26 = PHI <_81(37), _70(39), _59(51)>
  3011. xTimeOut ={v} {CLOBBER};
  3012. <bb 54> :
  3013. <L55>:
  3014. return _26;
  3015. }
  3016. xQueueCreateCountingSemaphore (const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount)
  3017. {
  3018. uint32_t ulNewBASEPRI;
  3019. struct QueueDefinition * xHandle;
  3020. struct QueueDefinition * D.6845;
  3021. struct QueueDefinition * _11;
  3022. <bb 2> :
  3023. xHandle_4 = 0B;
  3024. if (uxMaxCount_5(D) != 0)
  3025. goto <bb 3>; [INV]
  3026. else
  3027. goto <bb 7>; [INV]
  3028. <bb 3> :
  3029. if (uxInitialCount_6(D) <= uxMaxCount_5(D))
  3030. goto <bb 4>; [INV]
  3031. else
  3032. goto <bb 7>; [INV]
  3033. <bb 4> :
  3034. xHandle_9 = xQueueGenericCreate (uxMaxCount_5(D), 0, 2);
  3035. if (xHandle_9 != 0B)
  3036. goto <bb 5>; [INV]
  3037. else
  3038. goto <bb 6>; [INV]
  3039. <bb 5> :
  3040. MEM[(struct Queue_t *)xHandle_9].uxMessagesWaiting ={v} uxInitialCount_6(D);
  3041. <bb 6> :
  3042. goto <bb 11>; [INV]
  3043. <bb 7> :
  3044. if (xHandle_4 == 0B)
  3045. goto <bb 8>; [INV]
  3046. else
  3047. goto <bb 11>; [INV]
  3048. <bb 8> :
  3049. __asm__ __volatile__(" mov %0, %1
  3050. msr basepri, %0
  3051. isb
  3052. dsb
  3053. " : "=r" ulNewBASEPRI_12 : "i" 16 : "memory");
  3054. <bb 9> :
  3055. <bb 10> :
  3056. goto <bb 10>; [INV]
  3057. <bb 11> :
  3058. # xHandle_1 = PHI <xHandle_9(6), xHandle_4(7)>
  3059. _11 = xHandle_1;
  3060. <bb 12> :
  3061. <L10>:
  3062. return _11;
  3063. }
  3064. xQueueTakeMutexRecursive (struct QueueDefinition * xMutex, TickType_t xTicksToWait)
  3065. {
  3066. uint32_t ulNewBASEPRI;
  3067. struct Queue_t * const pxMutex;
  3068. BaseType_t xReturn;
  3069. BaseType_t D.6834;
  3070. struct tskTaskControlBlock * _1;
  3071. struct tskTaskControlBlock * _2;
  3072. long unsigned int _3;
  3073. long unsigned int _4;
  3074. long unsigned int _5;
  3075. long unsigned int _6;
  3076. BaseType_t _19;
  3077. <bb 2> :
  3078. pxMutex_10 = xMutex_9(D);
  3079. if (pxMutex_10 == 0B)
  3080. goto <bb 3>; [INV]
  3081. else
  3082. goto <bb 6>; [INV]
  3083. <bb 3> :
  3084. __asm__ __volatile__(" mov %0, %1
  3085. msr basepri, %0
  3086. isb
  3087. dsb
  3088. " : "=r" ulNewBASEPRI_20 : "i" 16 : "memory");
  3089. <bb 4> :
  3090. <bb 5> :
  3091. goto <bb 5>; [INV]
  3092. <bb 6> :
  3093. _1 = pxMutex_10->u.xSemaphore.xMutexHolder;
  3094. _2 = xTaskGetCurrentTaskHandle ();
  3095. if (_1 == _2)
  3096. goto <bb 7>; [INV]
  3097. else
  3098. goto <bb 8>; [INV]
  3099. <bb 7> :
  3100. _3 = pxMutex_10->u.xSemaphore.uxRecursiveCallCount;
  3101. _4 = _3 + 1;
  3102. pxMutex_10->u.xSemaphore.uxRecursiveCallCount = _4;
  3103. xReturn_18 = 1;
  3104. goto <bb 10>; [INV]
  3105. <bb 8> :
  3106. xReturn_15 = xQueueSemaphoreTake (pxMutex_10, xTicksToWait_13(D));
  3107. if (xReturn_15 != 0)
  3108. goto <bb 9>; [INV]
  3109. else
  3110. goto <bb 10>; [INV]
  3111. <bb 9> :
  3112. _5 = pxMutex_10->u.xSemaphore.uxRecursiveCallCount;
  3113. _6 = _5 + 1;
  3114. pxMutex_10->u.xSemaphore.uxRecursiveCallCount = _6;
  3115. <bb 10> :
  3116. # xReturn_7 = PHI <xReturn_18(7), xReturn_15(8), xReturn_15(9)>
  3117. _19 = xReturn_7;
  3118. <bb 11> :
  3119. <L9>:
  3120. return _19;
  3121. }
  3122. xQueueGiveMutexRecursive (struct QueueDefinition * xMutex)
  3123. {
  3124. uint32_t ulNewBASEPRI;
  3125. struct Queue_t * const pxMutex;
  3126. BaseType_t xReturn;
  3127. BaseType_t D.6824;
  3128. struct tskTaskControlBlock * _1;
  3129. struct tskTaskControlBlock * _2;
  3130. long unsigned int _3;
  3131. long unsigned int _4;
  3132. long unsigned int _5;
  3133. BaseType_t _17;
  3134. <bb 2> :
  3135. pxMutex_10 = xMutex_9(D);
  3136. if (pxMutex_10 == 0B)
  3137. goto <bb 3>; [INV]
  3138. else
  3139. goto <bb 6>; [INV]
  3140. <bb 3> :
  3141. __asm__ __volatile__(" mov %0, %1
  3142. msr basepri, %0
  3143. isb
  3144. dsb
  3145. " : "=r" ulNewBASEPRI_18 : "i" 16 : "memory");
  3146. <bb 4> :
  3147. <bb 5> :
  3148. goto <bb 5>; [INV]
  3149. <bb 6> :
  3150. _1 = pxMutex_10->u.xSemaphore.xMutexHolder;
  3151. _2 = xTaskGetCurrentTaskHandle ();
  3152. if (_1 == _2)
  3153. goto <bb 7>; [INV]
  3154. else
  3155. goto <bb 10>; [INV]
  3156. <bb 7> :
  3157. _3 = pxMutex_10->u.xSemaphore.uxRecursiveCallCount;
  3158. _4 = _3 + 4294967295;
  3159. pxMutex_10->u.xSemaphore.uxRecursiveCallCount = _4;
  3160. _5 = pxMutex_10->u.xSemaphore.uxRecursiveCallCount;
  3161. if (_5 == 0)
  3162. goto <bb 8>; [INV]
  3163. else
  3164. goto <bb 9>; [INV]
  3165. <bb 8> :
  3166. xQueueGenericSend (pxMutex_10, 0B, 0, 0);
  3167. <bb 9> :
  3168. xReturn_16 = 1;
  3169. goto <bb 11>; [INV]
  3170. <bb 10> :
  3171. xReturn_13 = 0;
  3172. <bb 11> :
  3173. # xReturn_6 = PHI <xReturn_16(9), xReturn_13(10)>
  3174. _17 = xReturn_6;
  3175. <bb 12> :
  3176. <L9>:
  3177. return _17;
  3178. }
  3179. xQueueGetMutexHolderFromISR (struct QueueDefinition * xSemaphore)
  3180. {
  3181. uint32_t ulNewBASEPRI;
  3182. struct tskTaskControlBlock * pxReturn;
  3183. struct tskTaskControlBlock * D.6814;
  3184. int8_t * _1;
  3185. struct tskTaskControlBlock * _7;
  3186. <bb 2> :
  3187. if (xSemaphore_3(D) == 0B)
  3188. goto <bb 3>; [INV]
  3189. else
  3190. goto <bb 6>; [INV]
  3191. <bb 3> :
  3192. __asm__ __volatile__(" mov %0, %1
  3193. msr basepri, %0
  3194. isb
  3195. dsb
  3196. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  3197. <bb 4> :
  3198. <bb 5> :
  3199. goto <bb 5>; [INV]
  3200. <bb 6> :
  3201. _1 = MEM[(struct Queue_t *)xSemaphore_3(D)].pcHead;
  3202. if (_1 == 0B)
  3203. goto <bb 7>; [INV]
  3204. else
  3205. goto <bb 8>; [INV]
  3206. <bb 7> :
  3207. pxReturn_6 = MEM[(struct Queue_t *)xSemaphore_3(D)].u.xSemaphore.xMutexHolder;
  3208. goto <bb 9>; [INV]
  3209. <bb 8> :
  3210. pxReturn_5 = 0B;
  3211. <bb 9> :
  3212. # pxReturn_2 = PHI <pxReturn_6(7), pxReturn_5(8)>
  3213. _7 = pxReturn_2;
  3214. <bb 10> :
  3215. <L6>:
  3216. return _7;
  3217. }
  3218. xQueueGetMutexHolder (struct QueueDefinition * xSemaphore)
  3219. {
  3220. uint32_t ulNewBASEPRI;
  3221. struct Queue_t * const pxSemaphore;
  3222. struct tskTaskControlBlock * pxReturn;
  3223. struct tskTaskControlBlock * D.6807;
  3224. int8_t * _1;
  3225. struct tskTaskControlBlock * _10;
  3226. <bb 2> :
  3227. pxSemaphore_4 = xSemaphore_3(D);
  3228. if (xSemaphore_3(D) == 0B)
  3229. goto <bb 3>; [INV]
  3230. else
  3231. goto <bb 6>; [INV]
  3232. <bb 3> :
  3233. __asm__ __volatile__(" mov %0, %1
  3234. msr basepri, %0
  3235. isb
  3236. dsb
  3237. " : "=r" ulNewBASEPRI_11 : "i" 16 : "memory");
  3238. <bb 4> :
  3239. <bb 5> :
  3240. goto <bb 5>; [INV]
  3241. <bb 6> :
  3242. vPortEnterCritical ();
  3243. _1 = pxSemaphore_4->pcHead;
  3244. if (_1 == 0B)
  3245. goto <bb 7>; [INV]
  3246. else
  3247. goto <bb 8>; [INV]
  3248. <bb 7> :
  3249. pxReturn_8 = pxSemaphore_4->u.xSemaphore.xMutexHolder;
  3250. goto <bb 9>; [INV]
  3251. <bb 8> :
  3252. pxReturn_7 = 0B;
  3253. <bb 9> :
  3254. # pxReturn_2 = PHI <pxReturn_8(7), pxReturn_7(8)>
  3255. vPortExitCritical ();
  3256. _10 = pxReturn_2;
  3257. <bb 10> :
  3258. <L6>:
  3259. return _10;
  3260. }
  3261. xQueueCreateMutex (const uint8_t ucQueueType)
  3262. {
  3263. const UBaseType_t uxMutexSize;
  3264. const UBaseType_t uxMutexLength;
  3265. struct QueueDefinition * xNewQueue;
  3266. struct QueueDefinition * D.6800;
  3267. struct QueueDefinition * _8;
  3268. <bb 2> :
  3269. uxMutexLength_1 = 1;
  3270. uxMutexSize_2 = 0;
  3271. xNewQueue_6 = xQueueGenericCreate (uxMutexLength_1, uxMutexSize_2, ucQueueType_4(D));
  3272. prvInitialiseMutex (xNewQueue_6);
  3273. _8 = xNewQueue_6;
  3274. <bb 3> :
  3275. <L0>:
  3276. return _8;
  3277. }
  3278. prvInitialiseMutex (struct Queue_t * pxNewQueue)
  3279. {
  3280. <bb 2> :
  3281. if (pxNewQueue_2(D) != 0B)
  3282. goto <bb 3>; [INV]
  3283. else
  3284. goto <bb 4>; [INV]
  3285. <bb 3> :
  3286. pxNewQueue_2(D)->u.xSemaphore.xMutexHolder = 0B;
  3287. pxNewQueue_2(D)->pcHead = 0B;
  3288. pxNewQueue_2(D)->u.xSemaphore.uxRecursiveCallCount = 0;
  3289. xQueueGenericSend (pxNewQueue_2(D), 0B, 0, 0);
  3290. <bb 4> :
  3291. return;
  3292. }
  3293. prvInitialiseNewQueue (const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t * pucQueueStorage, const uint8_t ucQueueType, struct Queue_t * pxNewQueue)
  3294. {
  3295. <bb 2> :
  3296. if (uxItemSize_2(D) == 0)
  3297. goto <bb 3>; [INV]
  3298. else
  3299. goto <bb 4>; [INV]
  3300. <bb 3> :
  3301. pxNewQueue_4(D)->pcHead = pxNewQueue_4(D);
  3302. goto <bb 5>; [INV]
  3303. <bb 4> :
  3304. pxNewQueue_4(D)->pcHead = pucQueueStorage_5(D);
  3305. <bb 5> :
  3306. pxNewQueue_4(D)->uxLength = uxQueueLength_8(D);
  3307. pxNewQueue_4(D)->uxItemSize = uxItemSize_2(D);
  3308. xQueueGenericReset (pxNewQueue_4(D), 1);
  3309. pxNewQueue_4(D)->ucQueueType = ucQueueType_12(D);
  3310. return;
  3311. }
  3312. xQueueGenericCreate (const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType)
  3313. {
  3314. uint32_t ulNewBASEPRI;
  3315. uint8_t * pucQueueStorage;
  3316. size_t xQueueSizeInBytes;
  3317. struct Queue_t * pxNewQueue;
  3318. struct QueueDefinition * D.6792;
  3319. __complex__ long unsigned int _1;
  3320. long unsigned int _2;
  3321. long unsigned int _3;
  3322. unsigned int _4;
  3323. struct QueueDefinition * _19;
  3324. <bb 2> :
  3325. pxNewQueue_8 = 0B;
  3326. if (uxQueueLength_9(D) != 0)
  3327. goto <bb 3>; [INV]
  3328. else
  3329. goto <bb 8>; [INV]
  3330. <bb 3> :
  3331. _1 = .MUL_OVERFLOW (uxItemSize_10(D), uxQueueLength_9(D));
  3332. _2 = IMAGPART_EXPR <_1>;
  3333. if (_2 == 0)
  3334. goto <bb 4>; [INV]
  3335. else
  3336. goto <bb 8>; [INV]
  3337. <bb 4> :
  3338. _3 = uxQueueLength_9(D) * uxItemSize_10(D);
  3339. if (_3 <= 4294967215)
  3340. goto <bb 5>; [INV]
  3341. else
  3342. goto <bb 8>; [INV]
  3343. <bb 5> :
  3344. xQueueSizeInBytes_11 = uxQueueLength_9(D) * uxItemSize_10(D);
  3345. _4 = xQueueSizeInBytes_11 + 80;
  3346. pxNewQueue_14 = pvPortMalloc (_4);
  3347. if (pxNewQueue_14 != 0B)
  3348. goto <bb 6>; [INV]
  3349. else
  3350. goto <bb 7>; [INV]
  3351. <bb 6> :
  3352. pucQueueStorage_15 = pxNewQueue_14;
  3353. pucQueueStorage_16 = pucQueueStorage_15 + 80;
  3354. prvInitialiseNewQueue (uxQueueLength_9(D), uxItemSize_10(D), pucQueueStorage_16, ucQueueType_17(D), pxNewQueue_14);
  3355. <bb 7> :
  3356. goto <bb 12>; [INV]
  3357. <bb 8> :
  3358. if (pxNewQueue_8 == 0B)
  3359. goto <bb 9>; [INV]
  3360. else
  3361. goto <bb 12>; [INV]
  3362. <bb 9> :
  3363. __asm__ __volatile__(" mov %0, %1
  3364. msr basepri, %0
  3365. isb
  3366. dsb
  3367. " : "=r" ulNewBASEPRI_20 : "i" 16 : "memory");
  3368. <bb 10> :
  3369. <bb 11> :
  3370. goto <bb 11>; [INV]
  3371. <bb 12> :
  3372. # pxNewQueue_5 = PHI <pxNewQueue_14(7), pxNewQueue_8(8)>
  3373. _19 = pxNewQueue_5;
  3374. <bb 13> :
  3375. <L11>:
  3376. return _19;
  3377. }
  3378. xQueueGenericReset (struct QueueDefinition * xQueue, BaseType_t xNewQueue)
  3379. {
  3380. uint32_t ulNewBASEPRI;
  3381. uint32_t ulNewBASEPRI;
  3382. struct Queue_t * const pxQueue;
  3383. BaseType_t xReturn;
  3384. BaseType_t D.6780;
  3385. long unsigned int _1;
  3386. __complex__ long unsigned int _2;
  3387. long unsigned int _3;
  3388. long unsigned int _4;
  3389. long unsigned int _5;
  3390. int8_t * _6;
  3391. long unsigned int _7;
  3392. long unsigned int _8;
  3393. long unsigned int _9;
  3394. int8_t * _10;
  3395. int8_t * _11;
  3396. int8_t * _12;
  3397. long unsigned int _13;
  3398. long unsigned int _14;
  3399. long unsigned int _15;
  3400. long unsigned int _16;
  3401. int8_t * _17;
  3402. long unsigned int _18;
  3403. struct List_t * _19;
  3404. long int _20;
  3405. volatile uint32_t * _21;
  3406. struct List_t * _22;
  3407. struct List_t * _23;
  3408. BaseType_t _47;
  3409. <bb 2> :
  3410. xReturn_27 = 1;
  3411. pxQueue_29 = xQueue_28(D);
  3412. if (pxQueue_29 == 0B)
  3413. goto <bb 3>; [INV]
  3414. else
  3415. goto <bb 6>; [INV]
  3416. <bb 3> :
  3417. __asm__ __volatile__(" mov %0, %1
  3418. msr basepri, %0
  3419. isb
  3420. dsb
  3421. " : "=r" ulNewBASEPRI_48 : "i" 16 : "memory");
  3422. <bb 4> :
  3423. <bb 5> :
  3424. goto <bb 5>; [INV]
  3425. <bb 6> :
  3426. if (pxQueue_29 != 0B)
  3427. goto <bb 7>; [INV]
  3428. else
  3429. goto <bb 15>; [INV]
  3430. <bb 7> :
  3431. _1 = pxQueue_29->uxLength;
  3432. if (_1 != 0)
  3433. goto <bb 8>; [INV]
  3434. else
  3435. goto <bb 15>; [INV]
  3436. <bb 8> :
  3437. _3 = pxQueue_29->uxItemSize;
  3438. _4 = pxQueue_29->uxLength;
  3439. _2 = .MUL_OVERFLOW (_3, _4);
  3440. _5 = IMAGPART_EXPR <_2>;
  3441. if (_5 == 0)
  3442. goto <bb 9>; [INV]
  3443. else
  3444. goto <bb 15>; [INV]
  3445. <bb 9> :
  3446. vPortEnterCritical ();
  3447. _6 = pxQueue_29->pcHead;
  3448. _7 = pxQueue_29->uxLength;
  3449. _8 = pxQueue_29->uxItemSize;
  3450. _9 = _7 * _8;
  3451. _10 = _6 + _9;
  3452. pxQueue_29->u.xQueue.pcTail = _10;
  3453. pxQueue_29->uxMessagesWaiting ={v} 0;
  3454. _11 = pxQueue_29->pcHead;
  3455. pxQueue_29->pcWriteTo = _11;
  3456. _12 = pxQueue_29->pcHead;
  3457. _13 = pxQueue_29->uxLength;
  3458. _14 = _13 + 4294967295;
  3459. _15 = pxQueue_29->uxItemSize;
  3460. _16 = _14 * _15;
  3461. _17 = _12 + _16;
  3462. pxQueue_29->u.xQueue.pcReadFrom = _17;
  3463. pxQueue_29->cRxLock ={v} -1;
  3464. pxQueue_29->cTxLock ={v} -1;
  3465. if (xNewQueue_38(D) == 0)
  3466. goto <bb 10>; [INV]
  3467. else
  3468. goto <bb 13>; [INV]
  3469. <bb 10> :
  3470. _18 ={v} pxQueue_29->xTasksWaitingToSend.uxNumberOfItems;
  3471. if (_18 != 0)
  3472. goto <bb 11>; [INV]
  3473. else
  3474. goto <bb 14>; [INV]
  3475. <bb 11> :
  3476. _19 = &pxQueue_29->xTasksWaitingToSend;
  3477. _20 = xTaskRemoveFromEventList (_19);
  3478. if (_20 != 0)
  3479. goto <bb 12>; [INV]
  3480. else
  3481. goto <bb 14>; [INV]
  3482. <bb 12> :
  3483. _21 = 3758157060B;
  3484. *_21 ={v} 268435456;
  3485. __asm__ __volatile__("dsb" : : : "memory");
  3486. __asm__ __volatile__("isb");
  3487. goto <bb 14>; [INV]
  3488. <bb 13> :
  3489. _22 = &pxQueue_29->xTasksWaitingToSend;
  3490. vListInitialise (_22);
  3491. _23 = &pxQueue_29->xTasksWaitingToReceive;
  3492. vListInitialise (_23);
  3493. <bb 14> :
  3494. vPortExitCritical ();
  3495. goto <bb 16>; [INV]
  3496. <bb 15> :
  3497. xReturn_46 = 0;
  3498. <bb 16> :
  3499. # xReturn_24 = PHI <xReturn_27(14), xReturn_46(15)>
  3500. if (xReturn_24 == 0)
  3501. goto <bb 17>; [INV]
  3502. else
  3503. goto <bb 20>; [INV]
  3504. <bb 17> :
  3505. __asm__ __volatile__(" mov %0, %1
  3506. msr basepri, %0
  3507. isb
  3508. dsb
  3509. " : "=r" ulNewBASEPRI_49 : "i" 16 : "memory");
  3510. <bb 18> :
  3511. <bb 19> :
  3512. goto <bb 19>; [INV]
  3513. <bb 20> :
  3514. _47 = xReturn_24;
  3515. <bb 21> :
  3516. <L20>:
  3517. return _47;
  3518. }