12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879 |
- Symbol table:
- xStreamBufferSpacesAvailable.part.0/62 (xStreamBufferSpacesAvailable.part.0) @05fcd7e0
- Type: function definition analyzed
- Visibility: prevailing_def_ironly artificial
- References:
- Referring:
- Availability: local
- Function flags: count:107374 (estimated locally) first_run:1 body local split_part optimize_size
- Called by: xStreamBufferSpacesAvailable/8 (107374 (estimated locally),0.30 per call)
- Calls:
- prvReadBytesFromBuffer.part.0/53 (prvReadBytesFromBuffer.part.0) @05fcd700
- Type: function definition analyzed
- Visibility: prevailing_def_ironly artificial
- References:
- Referring:
- Availability: local
- Function flags: count:214748 (estimated locally) first_run:1 body local split_part optimize_size
- Called by: prvReadMessageFromBuffer/16 (354334802 (estimated locally),0.33 per call) prvReadBytesFromBuffer/22 (107374 (estimated locally),0.50 per call)
- Calls: memcpy/41 (35433 (estimated locally),0.16 per call) memcpy/41 (11693 (estimated locally),0.05 per call)
- prvWriteBytesToBuffer.part.0/48 (prvWriteBytesToBuffer.part.0) @05fcd620
- Type: function definition analyzed
- Visibility: prevailing_def_ironly artificial
- References:
- Referring:
- Availability: local
- Function flags: count:160260 (estimated locally) first_run:1 body local split_part optimize_size
- Called by: prvWriteMessageToBuffer/12 (177167401 (estimated locally),0.17 per call) prvWriteBytesToBuffer/21 (107374 (estimated locally),0.50 per call)
- Calls: memcpy/41 (52886 (estimated locally),0.33 per call) memcpy/41 (8726 (estimated locally),0.05 per call)
- prvInitialiseNewStreamBuffer.part.0/44 (prvInitialiseNewStreamBuffer.part.0) @05e8d8c0
- Type: function definition analyzed
- Visibility: prevailing_def_ironly artificial
- References:
- Referring:
- Availability: local
- Function flags: count:1073741824 (estimated locally) first_run:1 body local split_part optimize_size
- Called by: prvInitialiseNewStreamBuffer/24 (22666 (estimated locally),0.17 per call)
- Calls: memset/29 (1073741824 (estimated locally),1.00 per call)
- xTaskGenericNotifyFromISR/42 (xTaskGenericNotifyFromISR) @05f910e0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferReceiveCompletedFromISR/20 (133963 (estimated locally),0.37 per call) xStreamBufferSendCompletedFromISR/19 (133963 (estimated locally),0.37 per call) xStreamBufferReceiveFromISR/15 (15473 (estimated locally),0.04 per call) xStreamBufferSendFromISR/11 (15473 (estimated locally),0.04 per call)
- Calls:
- memcpy/41 (memcpy) @05f7eee0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: prvReadBytesFromBuffer.part.0/53 (35433 (estimated locally),0.16 per call) prvReadBytesFromBuffer.part.0/53 (11693 (estimated locally),0.05 per call) prvWriteBytesToBuffer.part.0/48 (52886 (estimated locally),0.33 per call) prvWriteBytesToBuffer.part.0/48 (8726 (estimated locally),0.05 per call)
- Calls:
- xTaskResumeAll/40 (xTaskResumeAll) @05f7ec40
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferReceive/13 (15156 (estimated locally),0.04 per call) xStreamBufferSend/10 (11938 (estimated locally),0.03 per call)
- Calls:
- xTaskGenericNotify/39 (xTaskGenericNotify) @05f7eb60
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferReceive/13 (8104 (estimated locally),0.02 per call) xStreamBufferSend/10 (6383 (estimated locally),0.02 per call)
- Calls:
- vTaskSuspendAll/38 (vTaskSuspendAll) @05f7ea80
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferReceive/13 (15156 (estimated locally),0.04 per call) xStreamBufferSend/10 (11938 (estimated locally),0.03 per call)
- Calls:
- xTaskCheckForTimeOut/37 (xTaskCheckForTimeOut) @05f7e9a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferSend/10 (576777 (estimated locally),1.61 per call)
- Calls:
- xTaskGenericNotifyWait/36 (xTaskGenericNotifyWait) @05f7e8c0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferReceive/13 (16991 (estimated locally),0.05 per call) xStreamBufferSend/10 (576777 (estimated locally),1.61 per call)
- Calls:
- xTaskGetCurrentTaskHandle/35 (xTaskGetCurrentTaskHandle) @05f7e7e0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferReceive/13 (7642 (estimated locally),0.02 per call) xStreamBufferSend/10 (576777 (estimated locally),1.61 per call)
- Calls:
- xTaskGenericNotifyStateClear/34 (xTaskGenericNotifyStateClear) @05f7e700
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferReceive/13 (43844 (estimated locally),0.12 per call) xStreamBufferSend/10 (598690 (estimated locally),1.67 per call)
- Calls:
- vTaskSetTimeOutState/33 (vTaskSetTimeOutState) @05f7e620
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferSend/10 (65767 (estimated locally),0.18 per call)
- Calls:
- vPortExitCritical/32 (vPortExitCritical) @05f582a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferReceive/13 (51486 (estimated locally),0.14 per call) xStreamBufferSend/10 (22744 (estimated locally),0.06 per call) xStreamBufferSend/10 (576777 (estimated locally),1.61 per call) xStreamBufferReset/6 (123389 (estimated locally),0.53 per call)
- Calls:
- vPortEnterCritical/31 (vPortEnterCritical) @05f58000
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferReceive/13 (87689 (estimated locally),0.25 per call) xStreamBufferSend/10 (621434 (estimated locally),1.74 per call) xStreamBufferReset/6 (123389 (estimated locally),0.53 per call)
- Calls:
- vPortFree/30 (vPortFree) @05f58e00
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: vStreamBufferDelete/5 (125270 (estimated locally),0.35 per call)
- Calls:
- memset/29 (memset) @05f58c40
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: vStreamBufferDelete/5 (125270 (estimated locally),0.35 per call) prvInitialiseNewStreamBuffer/24 (130040 (estimated locally),1.00 per call) prvInitialiseNewStreamBuffer.part.0/44 (1073741824 (estimated locally),1.00 per call)
- Calls:
- pvPortMalloc/28 (pvPortMalloc) @05f589a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags: optimize_size
- Called by: xStreamBufferGenericCreate/4 (44471 (estimated locally),0.14 per call)
- Calls:
- ucStreamBufferGetStreamBufferType/27 (ucStreamBufferGetStreamBufferType) @05f58460
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:1073741824 (estimated locally) body optimize_size
- Called by:
- Calls:
- vStreamBufferSetStreamBufferNumber/26 (vStreamBufferSetStreamBufferNumber) @05f581c0
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:1073741824 (estimated locally) body optimize_size
- Called by:
- Calls:
- uxStreamBufferGetStreamBufferNumber/25 (uxStreamBufferGetStreamBufferNumber) @05f50d20
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:1073741824 (estimated locally) body optimize_size
- Called by:
- Calls:
- prvInitialiseNewStreamBuffer/24 (prvInitialiseNewStreamBuffer) @05f50540
- Type: function definition analyzed
- Visibility: prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: count:130040 (estimated locally) body local optimize_size
- Called by: xStreamBufferReset/6 (6452 (estimated locally),0.03 per call) xStreamBufferGenericCreate/4 (23779 (estimated locally),0.07 per call)
- Calls: prvInitialiseNewStreamBuffer.part.0/44 (22666 (estimated locally),0.17 per call) memset/29 (130040 (estimated locally),1.00 per call)
- prvBytesInBuffer/23 (prvBytesInBuffer) @05f50ee0
- Type: function definition analyzed
- Visibility: prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: count:1073741824 (estimated locally) body local optimize_size
- Called by: xStreamBufferReceiveFromISR/15 (175378 (estimated locally),0.49 per call) xStreamBufferNextMessageLengthBytes/14 (82678 (estimated locally),0.23 per call) xStreamBufferReceive/13 (87689 (estimated locally),0.25 per call) xStreamBufferReceive/13 (16991 (estimated locally),0.05 per call) xStreamBufferReceive/13 (87689 (estimated locally),0.25 per call) xStreamBufferSendFromISR/11 (57875 (estimated locally),0.16 per call) xStreamBufferSend/10 (36175 (estimated locally),0.10 per call) xStreamBufferBytesAvailable/9 (123389 (estimated locally),0.53 per call)
- Calls:
- prvReadBytesFromBuffer/22 (prvReadBytesFromBuffer) @05f50c40
- Type: function definition analyzed
- Visibility: prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: count:214748 (estimated locally) body local optimize_size
- Called by: xStreamBufferNextMessageLengthBytes/14 (27284 (estimated locally),0.08 per call) prvReadMessageFromBuffer/16 (354334802 (estimated locally),0.33 per call)
- Calls: prvReadBytesFromBuffer.part.0/53 (107374 (estimated locally),0.50 per call)
- prvWriteBytesToBuffer/21 (prvWriteBytesToBuffer) @05f507e0
- Type: function definition analyzed
- Visibility: prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: count:214748 (estimated locally) body local optimize_size
- Called by: prvWriteMessageToBuffer/12 (354334802 (estimated locally),0.33 per call)
- Calls: prvWriteBytesToBuffer.part.0/48 (107374 (estimated locally),0.50 per call)
- xStreamBufferReceiveCompletedFromISR/20 (xStreamBufferReceiveCompletedFromISR) @05f50460
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls: xTaskGenericNotifyFromISR/42 (133963 (estimated locally),0.37 per call)
- xStreamBufferSendCompletedFromISR/19 (xStreamBufferSendCompletedFromISR) @05f500e0
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls: xTaskGenericNotifyFromISR/42 (133963 (estimated locally),0.37 per call)
- xStreamBufferIsFull/18 (xStreamBufferIsFull) @05f428c0
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls: xStreamBufferSpacesAvailable/8 (250539 (estimated locally),0.70 per call)
- xStreamBufferIsEmpty/17 (xStreamBufferIsEmpty) @05f42ee0
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls:
- prvReadMessageFromBuffer/16 (prvReadMessageFromBuffer) @05f42b60
- Type: function definition analyzed
- Visibility: prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: count:1073741824 (estimated locally) body local optimize_size
- Called by: xStreamBufferReceiveFromISR/15 (57875 (estimated locally),0.16 per call) xStreamBufferReceive/13 (45928 (estimated locally),0.13 per call)
- Calls: prvReadBytesFromBuffer/22 (354334802 (estimated locally),0.33 per call) prvReadBytesFromBuffer.part.0/53 (354334802 (estimated locally),0.33 per call)
- xStreamBufferReceiveFromISR/15 (xStreamBufferReceiveFromISR) @05f427e0
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls: xTaskGenericNotifyFromISR/42 (15473 (estimated locally),0.04 per call) prvReadMessageFromBuffer/16 (57875 (estimated locally),0.16 per call) prvBytesInBuffer/23 (175378 (estimated locally),0.49 per call)
- xStreamBufferNextMessageLengthBytes/14 (xStreamBufferNextMessageLengthBytes) @05f42380
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls: prvReadBytesFromBuffer/22 (27284 (estimated locally),0.08 per call) prvBytesInBuffer/23 (82678 (estimated locally),0.23 per call)
- xStreamBufferReceive/13 (xStreamBufferReceive) @05f01e00
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls: xTaskResumeAll/40 (15156 (estimated locally),0.04 per call) xTaskGenericNotify/39 (8104 (estimated locally),0.02 per call) vTaskSuspendAll/38 (15156 (estimated locally),0.04 per call) prvReadMessageFromBuffer/16 (45928 (estimated locally),0.13 per call) prvBytesInBuffer/23 (87689 (estimated locally),0.25 per call) prvBytesInBuffer/23 (16991 (estimated locally),0.05 per call) xTaskGenericNotifyWait/36 (16991 (estimated locally),0.05 per call) vPortExitCritical/32 (51486 (estimated locally),0.14 per call) xTaskGetCurrentTaskHandle/35 (7642 (estimated locally),0.02 per call) xTaskGenericNotifyStateClear/34 (43844 (estimated locally),0.12 per call) prvBytesInBuffer/23 (87689 (estimated locally),0.25 per call) vPortEnterCritical/31 (87689 (estimated locally),0.25 per call)
- prvWriteMessageToBuffer/12 (prvWriteMessageToBuffer) @05f01d20
- Type: function definition analyzed
- Visibility: prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: count:1073741824 (estimated locally) body local optimize_size
- Called by: xStreamBufferSendFromISR/11 (175378 (estimated locally),0.49 per call) xStreamBufferSend/10 (109621 (estimated locally),0.31 per call)
- Calls: prvWriteBytesToBuffer/21 (354334802 (estimated locally),0.33 per call) prvWriteBytesToBuffer.part.0/48 (177167401 (estimated locally),0.17 per call)
- xStreamBufferSendFromISR/11 (xStreamBufferSendFromISR) @05f019a0
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls: xTaskGenericNotifyFromISR/42 (15473 (estimated locally),0.04 per call) prvBytesInBuffer/23 (57875 (estimated locally),0.16 per call) prvWriteMessageToBuffer/12 (175378 (estimated locally),0.49 per call) xStreamBufferSpacesAvailable/8 (175378 (estimated locally),0.49 per call)
- xStreamBufferSend/10 (xStreamBufferSend) @05f01540
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls: xTaskResumeAll/40 (11938 (estimated locally),0.03 per call) xTaskGenericNotify/39 (6383 (estimated locally),0.02 per call) vTaskSuspendAll/38 (11938 (estimated locally),0.03 per call) prvBytesInBuffer/23 (36175 (estimated locally),0.10 per call) prvWriteMessageToBuffer/12 (109621 (estimated locally),0.31 per call) xStreamBufferSpacesAvailable/8 (87694 (estimated locally),0.25 per call) vPortExitCritical/32 (22744 (estimated locally),0.06 per call) xTaskCheckForTimeOut/37 (576777 (estimated locally),1.61 per call) xTaskGenericNotifyWait/36 (576777 (estimated locally),1.61 per call) vPortExitCritical/32 (576777 (estimated locally),1.61 per call) xTaskGetCurrentTaskHandle/35 (576777 (estimated locally),1.61 per call) xTaskGenericNotifyStateClear/34 (598690 (estimated locally),1.67 per call) xStreamBufferSpacesAvailable/8 (621434 (estimated locally),1.74 per call) vPortEnterCritical/31 (621434 (estimated locally),1.74 per call) vTaskSetTimeOutState/33 (65767 (estimated locally),0.18 per call)
- xStreamBufferBytesAvailable/9 (xStreamBufferBytesAvailable) @05ef8d20
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:230763 (estimated locally) body optimize_size
- Called by:
- Calls: prvBytesInBuffer/23 (123389 (estimated locally),0.53 per call)
- xStreamBufferSpacesAvailable/8 (xStreamBufferSpacesAvailable) @05ef82a0
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by: xStreamBufferIsFull/18 (250539 (estimated locally),0.70 per call) xStreamBufferSendFromISR/11 (175378 (estimated locally),0.49 per call) xStreamBufferSend/10 (87694 (estimated locally),0.25 per call) xStreamBufferSend/10 (621434 (estimated locally),1.74 per call)
- Calls: xStreamBufferSpacesAvailable.part.0/62 (107374 (estimated locally),0.30 per call)
- xStreamBufferSetTriggerLevel/7 (xStreamBufferSetTriggerLevel) @05ef8c40
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls:
- xStreamBufferReset/6 (xStreamBufferReset) @05ef88c0
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:230763 (estimated locally) body optimize_size
- Called by:
- Calls: vPortExitCritical/32 (123389 (estimated locally),0.53 per call) prvInitialiseNewStreamBuffer/24 (6452 (estimated locally),0.03 per call) vPortEnterCritical/31 (123389 (estimated locally),0.53 per call)
- vStreamBufferDelete/5 (vStreamBufferDelete) @05ef8540
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:357913 (estimated locally) body optimize_size
- Called by:
- Calls: memset/29 (125270 (estimated locally),0.35 per call) vPortFree/30 (125270 (estimated locally),0.35 per call)
- xStreamBufferGenericCreate/4 (xStreamBufferGenericCreate) @05ef81c0
- Type: function definition analyzed
- Visibility: externally_visible public
- References:
- Referring:
- Availability: available
- Function flags: count:325376 (estimated locally) body optimize_size
- Called by:
- Calls: prvInitialiseNewStreamBuffer/24 (23779 (estimated locally),0.07 per call) pvPortMalloc/28 (44471 (estimated locally),0.14 per call)
- xStreamBufferSpacesAvailable.part.0 ()
- {
- const struct StreamBuffer_t * const pxStreamBuffer;
- size_t xSpace;
- size_t xOriginalTail;
- uint32_t ulNewBASEPRI;
- struct StreamBufferDef_t * xStreamBuffer;
- <bb 5> [local count: 107374]:
- # DEBUG D#2 s=> xStreamBuffer
- # DEBUG xStreamBuffer => D#2
- <bb 2> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_1 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_1
- <bb 3> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 4> [local count: 1073741824]:
- goto <bb 3>; [100.00%]
- }
- prvReadBytesFromBuffer.part.0 (struct StreamBuffer_t * pxStreamBuffer, uint8_t * pucData, size_t xCount, size_t xTail)
- {
- size_t xFirstLength;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- unsigned int _2;
- unsigned int _4;
- unsigned int _8;
- uint8_t * _10;
- uint8_t * _11;
- uint8_t * _13;
- uint8_t * _14;
- unsigned int _15;
- unsigned int _17;
- <bb 15> [local count: 214748]:
- <bb 2> [local count: 214748]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _2 = pxStreamBuffer_1(D)->xLength;
- _4 = _2 - xTail_3(D);
- xFirstLength_6 = MIN_EXPR <_4, xCount_5(D)>;
- # DEBUG xFirstLength => xFirstLength_6
- # DEBUG BEGIN_STMT
- if (xCount_5(D) < xFirstLength_6)
- goto <bb 3>; [50.00%]
- else
- goto <bb 6>; [50.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_7 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_7
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 5> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 6> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _8 = xTail_3(D) + xFirstLength_6;
- if (_2 < _8)
- goto <bb 7>; [67.00%]
- else
- goto <bb 10>; [33.00%]
- <bb 7> [local count: 71941]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_9 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_9
- <bb 8> [local count: 719407023]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 9> [local count: 719407023]:
- goto <bb 8>; [100.00%]
- <bb 10> [local count: 35433]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _10 = pxStreamBuffer_1(D)->pucBuffer;
- _11 = _10 + xTail_3(D);
- memcpy (pucData_12(D), _11, xFirstLength_6);
- # DEBUG BEGIN_STMT
- if (xCount_5(D) > xFirstLength_6)
- goto <bb 11>; [33.00%]
- else
- goto <bb 12>; [67.00%]
- <bb 11> [local count: 11693]:
- # DEBUG BEGIN_STMT
- _13 = pucData_12(D) + xFirstLength_6;
- _14 = pxStreamBuffer_1(D)->pucBuffer;
- _15 = xCount_5(D) - xFirstLength_6;
- memcpy (_13, _14, _15);
- <bb 12> [local count: 35433]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTail_16 = xTail_3(D) + xCount_5(D);
- # DEBUG xTail => xTail_16
- # DEBUG BEGIN_STMT
- _17 = pxStreamBuffer_1(D)->xLength;
- if (xTail_16 >= _17)
- goto <bb 13>; [50.00%]
- else
- goto <bb 14>; [50.00%]
- <bb 13> [local count: 17717]:
- # DEBUG BEGIN_STMT
- xTail_18 = xTail_16 - _17;
- # DEBUG xTail => xTail_18
- <bb 14> [local count: 35433]:
- # xTail_19 = PHI <xTail_16(12), xTail_18(13)>
- # DEBUG xTail => xTail_19
- # DEBUG BEGIN_STMT
- return xTail_19;
- }
- prvWriteBytesToBuffer.part.0 (struct StreamBuffer_t * const pxStreamBuffer, const uint8_t * pucData, size_t xCount, size_t xHead)
- {
- size_t xFirstLength;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- unsigned int _2;
- unsigned int _4;
- unsigned int _7;
- uint8_t * _9;
- uint8_t * _10;
- unsigned int _12;
- unsigned int _13;
- uint8_t * _15;
- const uint8_t * _16;
- unsigned int _18;
- <bb 15> [local count: 160260]:
- <bb 2> [local count: 160260]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _2 = pxStreamBuffer_1(D)->xLength;
- _4 = _2 - xHead_3(D);
- xFirstLength_6 = MIN_EXPR <_4, xCount_5(D)>;
- # DEBUG xFirstLength => xFirstLength_6
- # DEBUG BEGIN_STMT
- _7 = xHead_3(D) + xFirstLength_6;
- if (_2 < _7)
- goto <bb 3>; [67.00%]
- else
- goto <bb 6>; [33.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_8
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 5> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 6> [local count: 52886]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _9 = pxStreamBuffer_1(D)->pucBuffer;
- _10 = _9 + xHead_3(D);
- memcpy (_10, pucData_11(D), xFirstLength_6);
- # DEBUG BEGIN_STMT
- if (xCount_5(D) > xFirstLength_6)
- goto <bb 7>; [50.00%]
- else
- goto <bb 12>; [50.00%]
- <bb 7> [local count: 26443]:
- # DEBUG BEGIN_STMT
- _12 = xCount_5(D) - xFirstLength_6;
- _13 = pxStreamBuffer_1(D)->xLength;
- if (_12 > _13)
- goto <bb 8>; [67.00%]
- else
- goto <bb 11>; [33.00%]
- <bb 8> [local count: 17717]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_14 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_14
- <bb 9> [local count: 177167401]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 10> [local count: 177167401]:
- goto <bb 9>; [100.00%]
- <bb 11> [local count: 8726]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _15 = pxStreamBuffer_1(D)->pucBuffer;
- _16 = pucData_11(D) + xFirstLength_6;
- memcpy (_15, _16, _12);
- <bb 12> [local count: 35169]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xHead_17 = xHead_3(D) + xCount_5(D);
- # DEBUG xHead => xHead_17
- # DEBUG BEGIN_STMT
- _18 = pxStreamBuffer_1(D)->xLength;
- if (xHead_17 >= _18)
- goto <bb 13>; [50.00%]
- else
- goto <bb 14>; [50.00%]
- <bb 13> [local count: 17584]:
- # DEBUG BEGIN_STMT
- xHead_19 = xHead_17 - _18;
- # DEBUG xHead => xHead_19
- <bb 14> [local count: 35169]:
- # xHead_20 = PHI <xHead_17(12), xHead_19(13)>
- # DEBUG xHead => xHead_20
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- return xHead_20;
- }
- prvInitialiseNewStreamBuffer.part.0 (struct StreamBuffer_t * const pxStreamBuffer, uint8_t * const pucBuffer, size_t xBufferSizeBytes, size_t xTriggerLevelBytes, uint8_t ucFlags)
- {
- const BaseType_t xWriteValue;
- uint32_t ulNewBASEPRI;
- <bb 3> [local count: 1073741824]:
- <bb 2> [local count: 1073741824]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- memset (pxStreamBuffer_1(D), 0, 36);
- # DEBUG BEGIN_STMT
- pxStreamBuffer_1(D)->pucBuffer = pucBuffer_2(D);
- # DEBUG BEGIN_STMT
- pxStreamBuffer_1(D)->xLength = xBufferSizeBytes_3(D);
- # DEBUG BEGIN_STMT
- pxStreamBuffer_1(D)->xTriggerLevelBytes = xTriggerLevelBytes_4(D);
- # DEBUG BEGIN_STMT
- pxStreamBuffer_1(D)->ucFlags = ucFlags_5(D);
- return;
- }
- ucStreamBufferGetStreamBufferType (struct StreamBufferDef_t * xStreamBuffer)
- {
- unsigned char _1;
- uint8_t _4;
- <bb 2> [local count: 1073741824]:
- # DEBUG BEGIN_STMT
- _1 = xStreamBuffer_3(D)->ucFlags;
- _4 = _1 & 1;
- return _4;
- }
- vStreamBufferSetStreamBufferNumber (struct StreamBufferDef_t * xStreamBuffer, UBaseType_t uxStreamBufferNumber)
- {
- <bb 2> [local count: 1073741824]:
- # DEBUG BEGIN_STMT
- xStreamBuffer_2(D)->uxStreamBufferNumber = uxStreamBufferNumber_3(D);
- return;
- }
- uxStreamBufferGetStreamBufferNumber (struct StreamBufferDef_t * xStreamBuffer)
- {
- UBaseType_t _3;
- <bb 2> [local count: 1073741824]:
- # DEBUG BEGIN_STMT
- _3 = xStreamBuffer_2(D)->uxStreamBufferNumber;
- return _3;
- }
- prvInitialiseNewStreamBuffer (struct StreamBuffer_t * const pxStreamBuffer, uint8_t * const pucBuffer, size_t xBufferSizeBytes, size_t xTriggerLevelBytes, uint8_t ucFlags)
- {
- uint32_t ulNewBASEPRI;
- void * _1;
- <bb 2> [local count: 130040]:
- # DEBUG BEGIN_STMT
- # DEBUG xWriteValue => 85
- # DEBUG BEGIN_STMT
- _1 = memset (pucBuffer_4(D), 85, xBufferSizeBytes_5(D));
- if (_1 != pucBuffer_4(D))
- goto <bb 3>; [82.57%]
- else
- goto <bb 5>; [17.43%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_10
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 6> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 22666]:
- prvInitialiseNewStreamBuffer.part.0 (pxStreamBuffer_7(D), pucBuffer_4(D), xBufferSizeBytes_5(D), xTriggerLevelBytes_8(D), ucFlags_9(D));
- return;
- }
- prvBytesInBuffer (const struct StreamBuffer_t * const pxStreamBuffer)
- {
- size_t xCount;
- unsigned int _1;
- unsigned int _2;
- unsigned int _7;
- <bb 2> [local count: 1073741824]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = pxStreamBuffer_5(D)->xLength;
- _2 ={v} pxStreamBuffer_5(D)->xHead;
- xCount_6 = _1 + _2;
- # DEBUG xCount => xCount_6
- # DEBUG BEGIN_STMT
- _7 ={v} pxStreamBuffer_5(D)->xTail;
- xCount_8 = xCount_6 - _7;
- # DEBUG xCount => xCount_8
- # DEBUG BEGIN_STMT
- if (_1 <= xCount_8)
- goto <bb 3>; [50.00%]
- else
- goto <bb 4>; [50.00%]
- <bb 3> [local count: 536870913]:
- # DEBUG BEGIN_STMT
- xCount_9 = xCount_8 - _1;
- # DEBUG xCount => xCount_9
- <bb 4> [local count: 1073741824]:
- # xCount_3 = PHI <xCount_8(2), xCount_9(3)>
- # DEBUG xCount => xCount_3
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- return xCount_3;
- }
- prvReadBytesFromBuffer (struct StreamBuffer_t * pxStreamBuffer, uint8_t * pucData, size_t xCount, size_t xTail)
- {
- uint32_t ulNewBASEPRI;
- <bb 2> [local count: 214748]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xCount_3(D) == 0)
- goto <bb 3>; [50.00%]
- else
- goto <bb 5>; [50.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_8
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 6> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 107374]:
- xTail_1 = prvReadBytesFromBuffer.part.0 (pxStreamBuffer_5(D), pucData_7(D), xCount_3(D), xTail_6(D));
- # DEBUG xTail => xTail_1
- # DEBUG BEGIN_STMT
- return xTail_1;
- }
- prvWriteBytesToBuffer (struct StreamBuffer_t * const pxStreamBuffer, const uint8_t * pucData, size_t xCount, size_t xHead)
- {
- uint32_t ulNewBASEPRI;
- <bb 2> [local count: 214748]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xCount_3(D) == 0)
- goto <bb 3>; [50.00%]
- else
- goto <bb 5>; [50.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_8
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 6> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 107374]:
- xHead_1 = prvWriteBytesToBuffer.part.0 (pxStreamBuffer_5(D), pucData_7(D), xCount_3(D), xHead_6(D));
- # DEBUG xHead => xHead_1
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- return xHead_1;
- }
- xStreamBufferReceiveCompletedFromISR (struct StreamBufferDef_t * xStreamBuffer, BaseType_t * pxHigherPriorityTaskWoken)
- {
- uint32_t ulOriginalBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- BaseType_t xReturn;
- struct tskTaskControlBlock * _1;
- struct tskTaskControlBlock * _2;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_5(D)
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_5(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_10
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 8> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY ulPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mrs %0, basepri
- mov %1, %2
- msr basepri, %1
- isb
- dsb
- " : "=r" ulOriginalBASEPRI_11, "=r" ulNewBASEPRI_12 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_12
- # DEBUG ulOriginalBASEPRI => ulOriginalBASEPRI_11
- # DEBUG BEGIN_STMT
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG ulOriginalBASEPRI => NULL
- # DEBUG uxSavedInterruptStatus => ulOriginalBASEPRI_11
- # DEBUG BEGIN_STMT
- _1 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToSend;
- if (_1 != 0B)
- goto <bb 6>; [53.47%]
- else
- goto <bb 7>; [46.53%]
- <bb 6> [local count: 133963]:
- # DEBUG BEGIN_STMT
- _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToSend;
- xTaskGenericNotifyFromISR (_2, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_7(D));
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToSend ={v} 0B;
- # DEBUG BEGIN_STMT
- # DEBUG xReturn => 1
- <bb 7> [local count: 250539]:
- # xReturn_3 = PHI <1(6), 0(5)>
- # DEBUG xReturn => xReturn_3
- # DEBUG BEGIN_STMT
- # DEBUG ulNewMaskValue => ulOriginalBASEPRI_11
- # DEBUG INLINE_ENTRY vPortSetBASEPRI
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" msr basepri, %0 " : : "r" ulOriginalBASEPRI_11 : "memory");
- # DEBUG ulNewMaskValue => NULL
- # DEBUG BEGIN_STMT
- return xReturn_3;
- }
- xStreamBufferSendCompletedFromISR (struct StreamBufferDef_t * xStreamBuffer, BaseType_t * pxHigherPriorityTaskWoken)
- {
- uint32_t ulOriginalBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- BaseType_t xReturn;
- struct tskTaskControlBlock * _1;
- struct tskTaskControlBlock * _2;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_5(D)
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_5(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_10
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 8> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY ulPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mrs %0, basepri
- mov %1, %2
- msr basepri, %1
- isb
- dsb
- " : "=r" ulOriginalBASEPRI_11, "=r" ulNewBASEPRI_12 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_12
- # DEBUG ulOriginalBASEPRI => ulOriginalBASEPRI_11
- # DEBUG BEGIN_STMT
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG ulOriginalBASEPRI => NULL
- # DEBUG uxSavedInterruptStatus => ulOriginalBASEPRI_11
- # DEBUG BEGIN_STMT
- _1 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToReceive;
- if (_1 != 0B)
- goto <bb 6>; [53.47%]
- else
- goto <bb 7>; [46.53%]
- <bb 6> [local count: 133963]:
- # DEBUG BEGIN_STMT
- _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToReceive;
- xTaskGenericNotifyFromISR (_2, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_7(D));
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTaskWaitingToReceive ={v} 0B;
- # DEBUG BEGIN_STMT
- # DEBUG xReturn => 1
- <bb 7> [local count: 250539]:
- # xReturn_3 = PHI <1(6), 0(5)>
- # DEBUG xReturn => xReturn_3
- # DEBUG BEGIN_STMT
- # DEBUG ulNewMaskValue => ulOriginalBASEPRI_11
- # DEBUG INLINE_ENTRY vPortSetBASEPRI
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" msr basepri, %0 " : : "r" ulOriginalBASEPRI_11 : "memory");
- # DEBUG ulNewMaskValue => NULL
- # DEBUG BEGIN_STMT
- return xReturn_3;
- }
- xStreamBufferIsFull (struct StreamBufferDef_t * xStreamBuffer)
- {
- uint32_t ulNewBASEPRI;
- size_t xBytesToStoreMessageLength;
- BaseType_t xReturn;
- unsigned char _1;
- unsigned int _2;
- unsigned char _6;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_5(D)
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_5(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_9 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_9
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 10> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = MEM[(const struct StreamBuffer_t *)xStreamBuffer_5(D)].ucFlags;
- _6 = _1 & 1;
- if (_6 != 0)
- goto <bb 7>; [50.00%]
- else
- goto <bb 6>; [50.00%]
- <bb 6> [local count: 125270]:
- # DEBUG BEGIN_STMT
- # DEBUG xBytesToStoreMessageLength => 0
- <bb 7> [local count: 250539]:
- # xBytesToStoreMessageLength_4 = PHI <4(5), 0(6)>
- # DEBUG xBytesToStoreMessageLength => xBytesToStoreMessageLength_4
- # DEBUG BEGIN_STMT
- _2 = xStreamBufferSpacesAvailable (xStreamBuffer_5(D));
- if (_2 <= xBytesToStoreMessageLength_4)
- goto <bb 9>; [50.00%]
- else
- goto <bb 8>; [50.00%]
- <bb 8> [local count: 125270]:
- # DEBUG BEGIN_STMT
- # DEBUG xReturn => 0
- <bb 9> [local count: 250539]:
- # xReturn_3 = PHI <1(7), 0(8)>
- # DEBUG xReturn => xReturn_3
- # DEBUG BEGIN_STMT
- return xReturn_3;
- }
- xStreamBufferIsEmpty (struct StreamBufferDef_t * xStreamBuffer)
- {
- uint32_t ulNewBASEPRI;
- size_t xTail;
- BaseType_t xReturn;
- unsigned int _1;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_3(D)
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_3(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_6 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_6
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 8> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTail_5 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_3(D)].xTail;
- # DEBUG xTail => xTail_5
- # DEBUG BEGIN_STMT
- _1 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_3(D)].xHead;
- if (_1 == xTail_5)
- goto <bb 7>; [34.00%]
- else
- goto <bb 6>; [66.00%]
- <bb 6> [local count: 165356]:
- # DEBUG BEGIN_STMT
- # DEBUG xReturn => 0
- <bb 7> [local count: 250539]:
- # xReturn_2 = PHI <1(5), 0(6)>
- # DEBUG xReturn => xReturn_2
- # DEBUG BEGIN_STMT
- return xReturn_2;
- }
- prvReadMessageFromBuffer (struct StreamBuffer_t * pxStreamBuffer, void * pvRxData, size_t xBufferLengthBytes, size_t xBytesAvailable)
- {
- size_t xTail;
- size_t xNextTail;
- size_t xTempNextMessageLength;
- size_t xNextMessageLength;
- size_t xCount;
- unsigned char _1;
- unsigned int _2;
- unsigned char _12;
- <bb 2> [local count: 1073741824]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xNextTail_10 ={v} pxStreamBuffer_9(D)->xTail;
- # DEBUG xNextTail => xNextTail_10
- # DEBUG BEGIN_STMT
- _1 = pxStreamBuffer_9(D)->ucFlags;
- _12 = _1 & 1;
- if (_12 != 0)
- goto <bb 3>; [33.00%]
- else
- goto <bb 5>; [67.00%]
- <bb 3> [local count: 354334802]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => pxStreamBuffer_9(D)
- # DEBUG pucData => &xTempNextMessageLength
- # DEBUG xCount => 4
- # DEBUG xTail => xNextTail_10
- # DEBUG INLINE_ENTRY prvReadBytesFromBuffer
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTail_21 = prvReadBytesFromBuffer.part.0 (pxStreamBuffer_9(D), &xTempNextMessageLength, 4, xNextTail_10);
- # DEBUG xTail => xTail_21
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => NULL
- # DEBUG pucData => NULL
- # DEBUG xCount => NULL
- # DEBUG xTail => NULL
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG xNextTail => xTail_21
- # DEBUG BEGIN_STMT
- xNextMessageLength_14 = xTempNextMessageLength;
- # DEBUG xNextMessageLength => xNextMessageLength_14
- # DEBUG BEGIN_STMT
- xBytesAvailable_15 = xBytesAvailable_13(D) + 4294967292;
- # DEBUG xBytesAvailable => xBytesAvailable_15
- # DEBUG BEGIN_STMT
- if (xBufferLengthBytes_11(D) < xNextMessageLength_14)
- goto <bb 4>; [50.00%]
- else
- goto <bb 5>; [50.00%]
- <bb 4> [local count: 177167401]:
- # DEBUG BEGIN_STMT
- # DEBUG xNextMessageLength => 0
- <bb 5> [local count: 1073741824]:
- # xBytesAvailable_3 = PHI <xBytesAvailable_15(4), xBytesAvailable_13(D)(2), xBytesAvailable_15(3)>
- # xNextMessageLength_4 = PHI <0(4), xBufferLengthBytes_11(D)(2), xNextMessageLength_14(3)>
- # xNextTail_5 = PHI <xTail_21(4), xNextTail_10(2), xTail_21(3)>
- # DEBUG xNextTail => xNextTail_5
- # DEBUG xNextMessageLength => xNextMessageLength_4
- # DEBUG xBytesAvailable => xBytesAvailable_3
- # DEBUG BEGIN_STMT
- xCount_16 = MIN_EXPR <xBytesAvailable_3, xNextMessageLength_4>;
- # DEBUG xCount => xCount_16
- # DEBUG BEGIN_STMT
- if (xCount_16 != 0)
- goto <bb 6>; [33.00%]
- else
- goto <bb 7>; [67.00%]
- <bb 6> [local count: 354334802]:
- # DEBUG BEGIN_STMT
- _2 = prvReadBytesFromBuffer (pxStreamBuffer_9(D), pvRxData_17(D), xCount_16, xNextTail_5);
- pxStreamBuffer_9(D)->xTail ={v} _2;
- <bb 7> [local count: 1073741824]:
- # DEBUG BEGIN_STMT
- xTempNextMessageLength ={v} {CLOBBER};
- return xCount_16;
- }
- xStreamBufferReceiveFromISR (struct StreamBufferDef_t * xStreamBuffer, void * pvRxData, size_t xBufferLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken)
- {
- uint32_t ulOriginalBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- size_t xBytesToStoreMessageLength;
- size_t xBytesAvailable;
- size_t xReceivedLength;
- unsigned char _1;
- struct tskTaskControlBlock * _2;
- struct tskTaskControlBlock * _3;
- unsigned char _9;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_8(D)
- # DEBUG BEGIN_STMT
- # DEBUG xReceivedLength => 0
- # DEBUG BEGIN_STMT
- if (pvRxData_10(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_20 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_20
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 16> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_8(D) == 0B)
- goto <bb 6>; [30.00%]
- else
- goto <bb 8>; [70.00%]
- <bb 6> [local count: 75162]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_21 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_21
- <bb 7> [local count: 751619279]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 17> [local count: 751619279]:
- goto <bb 7>; [100.00%]
- <bb 8> [local count: 175378]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_8(D)].ucFlags;
- _9 = _1 & 1;
- if (_9 != 0)
- goto <bb 10>; [50.00%]
- else
- goto <bb 9>; [50.00%]
- <bb 9> [local count: 87689]:
- # DEBUG BEGIN_STMT
- # DEBUG xBytesToStoreMessageLength => 0
- <bb 10> [local count: 175378]:
- # xBytesToStoreMessageLength_5 = PHI <4(8), 0(9)>
- # DEBUG xBytesToStoreMessageLength => xBytesToStoreMessageLength_5
- # DEBUG BEGIN_STMT
- xBytesAvailable_13 = prvBytesInBuffer (xStreamBuffer_8(D));
- # DEBUG xBytesAvailable => xBytesAvailable_13
- # DEBUG BEGIN_STMT
- if (xBytesToStoreMessageLength_5 < xBytesAvailable_13)
- goto <bb 11>; [33.00%]
- else
- goto <bb 15>; [67.00%]
- <bb 11> [local count: 57875]:
- # DEBUG BEGIN_STMT
- xReceivedLength_16 = prvReadMessageFromBuffer (xStreamBuffer_8(D), pvRxData_10(D), xBufferLengthBytes_14(D), xBytesAvailable_13);
- # DEBUG xReceivedLength => xReceivedLength_16
- # DEBUG BEGIN_STMT
- if (xReceivedLength_16 != 0)
- goto <bb 12>; [50.00%]
- else
- goto <bb 15>; [50.00%]
- <bb 12> [local count: 28937]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY ulPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mrs %0, basepri
- mov %1, %2
- msr basepri, %1
- isb
- dsb
- " : "=r" ulOriginalBASEPRI_22, "=r" ulNewBASEPRI_23 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_23
- # DEBUG ulOriginalBASEPRI => ulOriginalBASEPRI_22
- # DEBUG BEGIN_STMT
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG ulOriginalBASEPRI => NULL
- # DEBUG uxSavedInterruptStatus => ulOriginalBASEPRI_22
- # DEBUG BEGIN_STMT
- _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_8(D)].xTaskWaitingToSend;
- if (_2 != 0B)
- goto <bb 13>; [53.47%]
- else
- goto <bb 14>; [46.53%]
- <bb 13> [local count: 15473]:
- # DEBUG BEGIN_STMT
- _3 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_8(D)].xTaskWaitingToSend;
- xTaskGenericNotifyFromISR (_3, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_17(D));
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_8(D)].xTaskWaitingToSend ={v} 0B;
- <bb 14> [local count: 28937]:
- # DEBUG BEGIN_STMT
- # DEBUG ulNewMaskValue => ulOriginalBASEPRI_22
- # DEBUG INLINE_ENTRY vPortSetBASEPRI
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" msr basepri, %0 " : : "r" ulOriginalBASEPRI_22 : "memory");
- <bb 15> [local count: 175378]:
- # xReceivedLength_4 = PHI <0(10), xReceivedLength_16(14), xReceivedLength_16(11)>
- # DEBUG ulNewMaskValue => NULL
- # DEBUG xReceivedLength => xReceivedLength_4
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- return xReceivedLength_4;
- }
- xStreamBufferNextMessageLengthBytes (struct StreamBufferDef_t * xStreamBuffer)
- {
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- size_t xTempReturn;
- size_t xBytesAvailable;
- size_t xReturn;
- unsigned char _1;
- unsigned int _2;
- unsigned char _6;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_5(D)
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_5(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_13 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_13
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 12> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].ucFlags;
- _6 = _1 & 1;
- if (_6 != 0)
- goto <bb 6>; [33.00%]
- else
- goto <bb 11>; [67.00%]
- <bb 6> [local count: 82678]:
- # DEBUG BEGIN_STMT
- xBytesAvailable_9 = prvBytesInBuffer (xStreamBuffer_5(D));
- # DEBUG xBytesAvailable => xBytesAvailable_9
- # DEBUG BEGIN_STMT
- if (xBytesAvailable_9 > 4)
- goto <bb 7>; [33.00%]
- else
- goto <bb 8>; [67.00%]
- <bb 7> [local count: 27284]:
- # DEBUG BEGIN_STMT
- _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_5(D)].xTail;
- prvReadBytesFromBuffer (xStreamBuffer_5(D), &xTempReturn, 4, _2);
- # DEBUG BEGIN_STMT
- xReturn_11 = xTempReturn;
- # DEBUG xReturn => xReturn_11
- goto <bb 11>; [100.00%]
- <bb 8> [local count: 55394]:
- # DEBUG BEGIN_STMT
- if (xBytesAvailable_9 != 0)
- goto <bb 9>; [50.00%]
- else
- goto <bb 11>; [50.00%]
- <bb 9> [local count: 27697]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_14 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_14
- <bb 10> [local count: 276971704]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 13> [local count: 276971704]:
- goto <bb 10>; [100.00%]
- <bb 11> [local count: 222842]:
- # xReturn_3 = PHI <0(8), 0(5), xReturn_11(7)>
- # DEBUG xReturn => xReturn_3
- # DEBUG BEGIN_STMT
- xTempReturn ={v} {CLOBBER};
- return xReturn_3;
- }
- xStreamBufferReceive (struct StreamBufferDef_t * xStreamBuffer, void * pvRxData, size_t xBufferLengthBytes, TickType_t xTicksToWait)
- {
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- size_t xBytesToStoreMessageLength;
- size_t xBytesAvailable;
- size_t xReceivedLength;
- unsigned char _1;
- struct tskTaskControlBlock * _2;
- struct tskTaskControlBlock * _3;
- struct tskTaskControlBlock * _4;
- struct tskTaskControlBlock * _5;
- unsigned char _14;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_13(D)
- # DEBUG BEGIN_STMT
- # DEBUG xReceivedLength => 0
- # DEBUG BEGIN_STMT
- if (pvRxData_15(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_38 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_38
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 25> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_13(D) == 0B)
- goto <bb 6>; [30.00%]
- else
- goto <bb 8>; [70.00%]
- <bb 6> [local count: 75162]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_39 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_39
- <bb 7> [local count: 751619279]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 26> [local count: 751619279]:
- goto <bb 7>; [100.00%]
- <bb 8> [local count: 175378]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].ucFlags;
- _14 = _1 & 1;
- if (_14 != 0)
- goto <bb 10>; [50.00%]
- else
- goto <bb 9>; [50.00%]
- <bb 9> [local count: 87689]:
- # DEBUG BEGIN_STMT
- # DEBUG xBytesToStoreMessageLength => 0
- <bb 10> [local count: 175378]:
- # xBytesToStoreMessageLength_8 = PHI <4(8), 0(9)>
- # DEBUG xBytesToStoreMessageLength => xBytesToStoreMessageLength_8
- # DEBUG BEGIN_STMT
- if (xTicksToWait_17(D) != 0)
- goto <bb 11>; [50.00%]
- else
- goto <bb 18>; [50.00%]
- <bb 11> [local count: 87689]:
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- xBytesAvailable_22 = prvBytesInBuffer (xStreamBuffer_13(D));
- # DEBUG xBytesAvailable => xBytesAvailable_22
- # DEBUG BEGIN_STMT
- if (xBytesToStoreMessageLength_8 >= xBytesAvailable_22)
- goto <bb 12>; [50.00%]
- else
- goto <bb 16>; [50.00%]
- <bb 12> [local count: 43844]:
- # DEBUG BEGIN_STMT
- xTaskGenericNotifyStateClear (0B, 0);
- # DEBUG BEGIN_STMT
- _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToReceive;
- if (_2 != 0B)
- goto <bb 13>; [82.57%]
- else
- goto <bb 15>; [17.43%]
- <bb 13> [local count: 36202]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_40 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_40
- <bb 14> [local count: 362023689]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 27> [local count: 362023689]:
- goto <bb 14>; [100.00%]
- <bb 15> [local count: 7642]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _3 = xTaskGetCurrentTaskHandle ();
- MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToReceive ={v} _3;
- <bb 16> [local count: 51486]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- if (xBytesToStoreMessageLength_8 >= xBytesAvailable_22)
- goto <bb 17>; [33.00%]
- else
- goto <bb 19>; [67.00%]
- <bb 17> [local count: 16991]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTaskGenericNotifyWait (0, 0, 0, 0B, xTicksToWait_17(D));
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToReceive ={v} 0B;
- # DEBUG BEGIN_STMT
- xBytesAvailable_30 = prvBytesInBuffer (xStreamBuffer_13(D));
- # DEBUG xBytesAvailable => xBytesAvailable_30
- goto <bb 19>; [100.00%]
- <bb 18> [local count: 87689]:
- # DEBUG BEGIN_STMT
- xBytesAvailable_19 = prvBytesInBuffer (xStreamBuffer_13(D));
- # DEBUG xBytesAvailable => xBytesAvailable_19
- <bb 19> [local count: 139175]:
- # xBytesAvailable_7 = PHI <xBytesAvailable_30(17), xBytesAvailable_19(18), xBytesAvailable_22(16)>
- # DEBUG xBytesAvailable => xBytesAvailable_7
- # DEBUG BEGIN_STMT
- if (xBytesAvailable_7 > xBytesToStoreMessageLength_8)
- goto <bb 20>; [33.00%]
- else
- goto <bb 24>; [67.00%]
- <bb 20> [local count: 45928]:
- # DEBUG BEGIN_STMT
- xReceivedLength_33 = prvReadMessageFromBuffer (xStreamBuffer_13(D), pvRxData_15(D), xBufferLengthBytes_31(D), xBytesAvailable_7);
- # DEBUG xReceivedLength => xReceivedLength_33
- # DEBUG BEGIN_STMT
- if (xReceivedLength_33 != 0)
- goto <bb 21>; [33.00%]
- else
- goto <bb 24>; [67.00%]
- <bb 21> [local count: 15156]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vTaskSuspendAll ();
- # DEBUG BEGIN_STMT
- _4 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToSend;
- if (_4 != 0B)
- goto <bb 22>; [53.47%]
- else
- goto <bb 23>; [46.53%]
- <bb 22> [local count: 8104]:
- # DEBUG BEGIN_STMT
- _5 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToSend;
- xTaskGenericNotify (_5, 0, 0, 0, 0B);
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_13(D)].xTaskWaitingToSend ={v} 0B;
- <bb 23> [local count: 15156]:
- # DEBUG BEGIN_STMT
- xTaskResumeAll ();
- # DEBUG BEGIN_STMT
- <bb 24> [local count: 139175]:
- # xReceivedLength_6 = PHI <0(19), xReceivedLength_33(23), xReceivedLength_33(20)>
- # DEBUG xReceivedLength => xReceivedLength_6
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- return xReceivedLength_6;
- }
- prvWriteMessageToBuffer (struct StreamBuffer_t * const pxStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, size_t xSpace, size_t xRequiredSpace)
- {
- size_t xHead;
- size_t xNextHead;
- unsigned char _1;
- unsigned int xDataLengthBytes.2_2;
- unsigned int _3;
- unsigned int xDataLengthBytes.3_4;
- unsigned int _5;
- size_t _19;
- unsigned char _22;
- <bb 2> [local count: 1073741824]:
- # DEBUG BEGIN_STMT
- xNextHead_11 ={v} pxStreamBuffer_10(D)->xHead;
- # DEBUG xNextHead => xNextHead_11
- # DEBUG BEGIN_STMT
- _1 = pxStreamBuffer_10(D)->ucFlags;
- _22 = _1 & 1;
- if (_22 != 0)
- goto <bb 3>; [50.00%]
- else
- goto <bb 6>; [50.00%]
- <bb 3> [local count: 536870913]:
- # DEBUG BEGIN_STMT
- if (xSpace_12(D) >= xRequiredSpace_14(D))
- goto <bb 4>; [33.00%]
- else
- goto <bb 5>; [67.00%]
- <bb 4> [local count: 177167401]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => pxStreamBuffer_10(D)
- # DEBUG pucData => &xDataLengthBytes
- # DEBUG xCount => 4
- # DEBUG xHead => xNextHead_11
- # DEBUG INLINE_ENTRY prvWriteBytesToBuffer
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xHead_20 = prvWriteBytesToBuffer.part.0 (pxStreamBuffer_10(D), &xDataLengthBytes, 4, xNextHead_11);
- # DEBUG xHead => xHead_20
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => NULL
- # DEBUG pucData => NULL
- # DEBUG xCount => NULL
- # DEBUG xHead => NULL
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG xNextHead => xHead_20
- goto <bb 7>; [100.00%]
- <bb 5> [local count: 359703511]:
- # DEBUG BEGIN_STMT
- xDataLengthBytes = 0;
- goto <bb 7>; [100.00%]
- <bb 6> [local count: 536870913]:
- # DEBUG BEGIN_STMT
- xDataLengthBytes.2_2 = xDataLengthBytes;
- _3 = MIN_EXPR <xDataLengthBytes.2_2, xSpace_12(D)>;
- xDataLengthBytes = _3;
- <bb 7> [local count: 1073741824]:
- # xNextHead_6 = PHI <xNextHead_11(5), xNextHead_11(6), xHead_20(4)>
- # DEBUG xNextHead => xNextHead_6
- # DEBUG BEGIN_STMT
- xDataLengthBytes.3_4 = xDataLengthBytes;
- if (xDataLengthBytes.3_4 != 0)
- goto <bb 8>; [33.00%]
- else
- goto <bb 9>; [67.00%]
- <bb 8> [local count: 354334802]:
- # DEBUG BEGIN_STMT
- _5 = prvWriteBytesToBuffer (pxStreamBuffer_10(D), pvTxData_16(D), xDataLengthBytes.3_4, xNextHead_6);
- pxStreamBuffer_10(D)->xHead ={v} _5;
- <bb 9> [local count: 1073741824]:
- # DEBUG BEGIN_STMT
- _19 = xDataLengthBytes;
- return _19;
- }
- xStreamBufferSendFromISR (struct StreamBufferDef_t * xStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, BaseType_t * const pxHigherPriorityTaskWoken)
- {
- uint32_t ulOriginalBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- size_t xRequiredSpace;
- size_t xSpace;
- size_t xReturn;
- unsigned char _1;
- unsigned int _2;
- unsigned int _3;
- struct tskTaskControlBlock * _4;
- struct tskTaskControlBlock * _5;
- unsigned char _10;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_9(D)
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG xRequiredSpace => xDataLengthBytes_11(D)
- # DEBUG BEGIN_STMT
- if (pvTxData_12(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_23 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_23
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 16> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_9(D) == 0B)
- goto <bb 6>; [30.00%]
- else
- goto <bb 8>; [70.00%]
- <bb 6> [local count: 75162]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_24 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_24
- <bb 7> [local count: 751619279]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 17> [local count: 751619279]:
- goto <bb 7>; [100.00%]
- <bb 8> [local count: 175378]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].ucFlags;
- _10 = _1 & 1;
- if (_10 != 0)
- goto <bb 9>; [50.00%]
- else
- goto <bb 10>; [50.00%]
- <bb 9> [local count: 87689]:
- # DEBUG BEGIN_STMT
- xRequiredSpace_14 = xDataLengthBytes_11(D) + 4;
- # DEBUG xRequiredSpace => xRequiredSpace_14
- <bb 10> [local count: 175378]:
- # xRequiredSpace_6 = PHI <xDataLengthBytes_11(D)(8), xRequiredSpace_14(9)>
- # DEBUG xRequiredSpace => xRequiredSpace_6
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xSpace_16 = xStreamBufferSpacesAvailable (xStreamBuffer_9(D));
- # DEBUG xSpace => xSpace_16
- # DEBUG BEGIN_STMT
- xReturn_18 = prvWriteMessageToBuffer (xStreamBuffer_9(D), pvTxData_12(D), xDataLengthBytes_11(D), xSpace_16, xRequiredSpace_6);
- # DEBUG xReturn => xReturn_18
- # DEBUG BEGIN_STMT
- if (xReturn_18 != 0)
- goto <bb 11>; [33.00%]
- else
- goto <bb 15>; [67.00%]
- <bb 11> [local count: 57875]:
- # DEBUG BEGIN_STMT
- _2 = prvBytesInBuffer (xStreamBuffer_9(D));
- _3 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTriggerLevelBytes;
- if (_2 >= _3)
- goto <bb 12>; [50.00%]
- else
- goto <bb 15>; [50.00%]
- <bb 12> [local count: 28937]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY ulPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mrs %0, basepri
- mov %1, %2
- msr basepri, %1
- isb
- dsb
- " : "=r" ulOriginalBASEPRI_25, "=r" ulNewBASEPRI_26 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_26
- # DEBUG ulOriginalBASEPRI => ulOriginalBASEPRI_25
- # DEBUG BEGIN_STMT
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG ulOriginalBASEPRI => NULL
- # DEBUG uxSavedInterruptStatus => ulOriginalBASEPRI_25
- # DEBUG BEGIN_STMT
- _4 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToReceive;
- if (_4 != 0B)
- goto <bb 13>; [53.47%]
- else
- goto <bb 14>; [46.53%]
- <bb 13> [local count: 15473]:
- # DEBUG BEGIN_STMT
- _5 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToReceive;
- xTaskGenericNotifyFromISR (_5, 0, 0, 0, 0B, pxHigherPriorityTaskWoken_20(D));
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToReceive ={v} 0B;
- <bb 14> [local count: 28937]:
- # DEBUG BEGIN_STMT
- # DEBUG ulNewMaskValue => ulOriginalBASEPRI_25
- # DEBUG INLINE_ENTRY vPortSetBASEPRI
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" msr basepri, %0 " : : "r" ulOriginalBASEPRI_25 : "memory");
- <bb 15> [local count: 175378]:
- # DEBUG ulNewMaskValue => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- return xReturn_18;
- }
- xStreamBufferSend (struct StreamBufferDef_t * xStreamBuffer, const void * pvTxData, size_t xDataLengthBytes, TickType_t xTicksToWait)
- {
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- size_t xMaxReportedSpace;
- struct TimeOut_t xTimeOut;
- size_t xRequiredSpace;
- size_t xSpace;
- size_t xReturn;
- unsigned int _1;
- unsigned char _2;
- unsigned int _3;
- long unsigned int xTicksToWait.0_4;
- struct tskTaskControlBlock * _5;
- struct tskTaskControlBlock * _6;
- long unsigned int xTicksToWait.1_7;
- long int _8;
- unsigned int _9;
- unsigned int _10;
- struct tskTaskControlBlock * _11;
- struct tskTaskControlBlock * _12;
- unsigned char _23;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_22(D)
- # DEBUG BEGIN_STMT
- # DEBUG xSpace => 0
- # DEBUG BEGIN_STMT
- # DEBUG xRequiredSpace => xDataLengthBytes_25(D)
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG xMaxReportedSpace => 0
- # DEBUG BEGIN_STMT
- if (pvTxData_27(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_54 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_54
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 31> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_22(D) == 0B)
- goto <bb 6>; [30.00%]
- else
- goto <bb 8>; [70.00%]
- <bb 6> [local count: 75162]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_55 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_55
- <bb 7> [local count: 751619279]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 32> [local count: 751619279]:
- goto <bb 7>; [100.00%]
- <bb 8> [local count: 175378]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xLength;
- xMaxReportedSpace_29 = _1 + 4294967295;
- # DEBUG xMaxReportedSpace => xMaxReportedSpace_29
- # DEBUG BEGIN_STMT
- _2 = MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].ucFlags;
- _23 = _2 & 1;
- if (_23 != 0)
- goto <bb 9>; [50.00%]
- else
- goto <bb 14>; [50.00%]
- <bb 9> [local count: 87689]:
- # DEBUG BEGIN_STMT
- xRequiredSpace_30 = xDataLengthBytes_25(D) + 4;
- # DEBUG xRequiredSpace => xRequiredSpace_30
- # DEBUG BEGIN_STMT
- if (xDataLengthBytes_25(D) >= xRequiredSpace_30)
- goto <bb 10>; [50.00%]
- else
- goto <bb 12>; [50.00%]
- <bb 10> [local count: 43844]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_56 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_56
- <bb 11> [local count: 438444579]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 33> [local count: 438444579]:
- goto <bb 11>; [100.00%]
- <bb 12> [local count: 43844]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xMaxReportedSpace_29 < xRequiredSpace_30)
- goto <bb 13>; [50.00%]
- else
- goto <bb 15>; [50.00%]
- <bb 13> [local count: 21922]:
- # DEBUG BEGIN_STMT
- xTicksToWait = 0;
- goto <bb 15>; [100.00%]
- <bb 14> [local count: 87689]:
- # DEBUG BEGIN_STMT
- _3 = MIN_EXPR <xMaxReportedSpace_29, xDataLengthBytes_25(D)>;
- <bb 15> [local count: 131533]:
- # xRequiredSpace_15 = PHI <xRequiredSpace_30(13), _3(14), xRequiredSpace_30(12)>
- # DEBUG xRequiredSpace => xRequiredSpace_15
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTicksToWait.0_4 = xTicksToWait;
- if (xTicksToWait.0_4 != 0)
- goto <bb 16>; [50.00%]
- else
- goto <bb 24>; [50.00%]
- <bb 16> [local count: 65767]:
- # DEBUG BEGIN_STMT
- vTaskSetTimeOutState (&xTimeOut);
- <bb 17> [local count: 621434]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- xSpace_35 = xStreamBufferSpacesAvailable (xStreamBuffer_22(D));
- # DEBUG xSpace => xSpace_35
- # DEBUG BEGIN_STMT
- if (xRequiredSpace_15 > xSpace_35)
- goto <bb 18>; [96.34%]
- else
- goto <bb 22>; [3.66%]
- <bb 18> [local count: 598690]:
- # DEBUG BEGIN_STMT
- xTaskGenericNotifyStateClear (0B, 0);
- # DEBUG BEGIN_STMT
- _5 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToSend;
- if (_5 != 0B)
- goto <bb 19>; [3.66%]
- else
- goto <bb 21>; [96.34%]
- <bb 19> [local count: 21912]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_57 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_57
- <bb 20> [local count: 219120732]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 34> [local count: 219120732]:
- goto <bb 20>; [100.00%]
- <bb 21> [local count: 576777]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _6 = xTaskGetCurrentTaskHandle ();
- MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToSend ={v} _6;
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTicksToWait.1_7 = xTicksToWait;
- xTaskGenericNotifyWait (0, 0, 0, 0B, xTicksToWait.1_7);
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToSend ={v} 0B;
- # DEBUG BEGIN_STMT
- _8 = xTaskCheckForTimeOut (&xTimeOut, &xTicksToWait);
- if (_8 == 0)
- goto <bb 35>; [96.34%]
- else
- goto <bb 23>; [3.66%]
- <bb 35> [local count: 555667]:
- goto <bb 17>; [100.00%]
- <bb 22> [local count: 22744]:
- # xSpace_24 = PHI <xSpace_35(17)>
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- <bb 23> [local count: 43855]:
- # xSpace_13 = PHI <xSpace_24(22), xSpace_35(21)>
- # DEBUG xSpace => xSpace_13
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xSpace_13 == 0)
- goto <bb 24>; [50.00%]
- else
- goto <bb 25>; [50.00%]
- <bb 24> [local count: 87694]:
- # DEBUG xSpace => NULL
- # DEBUG BEGIN_STMT
- xSpace_45 = xStreamBufferSpacesAvailable (xStreamBuffer_22(D));
- # DEBUG xSpace => xSpace_45
- <bb 25> [local count: 109621]:
- # xSpace_14 = PHI <xSpace_13(23), xSpace_45(24)>
- # DEBUG xSpace => xSpace_14
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xReturn_47 = prvWriteMessageToBuffer (xStreamBuffer_22(D), pvTxData_27(D), xDataLengthBytes_25(D), xSpace_14, xRequiredSpace_15);
- # DEBUG xReturn => xReturn_47
- # DEBUG BEGIN_STMT
- if (xReturn_47 != 0)
- goto <bb 26>; [33.00%]
- else
- goto <bb 30>; [67.00%]
- <bb 26> [local count: 36175]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _9 = prvBytesInBuffer (xStreamBuffer_22(D));
- _10 = MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTriggerLevelBytes;
- if (_9 >= _10)
- goto <bb 27>; [33.00%]
- else
- goto <bb 30>; [67.00%]
- <bb 27> [local count: 11938]:
- # DEBUG BEGIN_STMT
- vTaskSuspendAll ();
- # DEBUG BEGIN_STMT
- _11 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToReceive;
- if (_11 != 0B)
- goto <bb 28>; [53.47%]
- else
- goto <bb 29>; [46.53%]
- <bb 28> [local count: 6383]:
- # DEBUG BEGIN_STMT
- _12 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToReceive;
- xTaskGenericNotify (_12, 0, 0, 0, 0B);
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_22(D)].xTaskWaitingToReceive ={v} 0B;
- <bb 29> [local count: 11938]:
- # DEBUG BEGIN_STMT
- xTaskResumeAll ();
- # DEBUG BEGIN_STMT
- <bb 30> [local count: 109621]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTimeOut ={v} {CLOBBER};
- return xReturn_47;
- }
- xStreamBufferBytesAvailable (struct StreamBufferDef_t * xStreamBuffer)
- {
- uint32_t ulNewBASEPRI;
- size_t xReturn;
- <bb 2> [local count: 230763]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_1(D)
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_1(D) == 0B)
- goto <bb 3>; [46.53%]
- else
- goto <bb 5>; [53.47%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_5 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_5
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 6> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 123389]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xReturn_4 = prvBytesInBuffer (xStreamBuffer_1(D));
- # DEBUG xReturn => xReturn_4
- # DEBUG BEGIN_STMT
- return xReturn_4;
- }
- xStreamBufferSpacesAvailable (struct StreamBufferDef_t * xStreamBuffer)
- {
- size_t xOriginalTail;
- size_t xSpace;
- unsigned int _1;
- unsigned int _2;
- unsigned int _3;
- unsigned int _4;
- unsigned int _12;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_7(D)
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_7(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 8>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG D#1 => xStreamBuffer_7(D)
- xStreamBufferSpacesAvailable.part.0 ();
- <bb 8> [local count: 250539]:
- <bb 4> [local count: 2277630]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xOriginalTail_10 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xTail;
- # DEBUG xOriginalTail => xOriginalTail_10
- # DEBUG BEGIN_STMT
- _1 = MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xLength;
- _2 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xTail;
- xSpace_11 = _1 + _2;
- # DEBUG xSpace => xSpace_11
- # DEBUG BEGIN_STMT
- _12 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xHead;
- xSpace_13 = xSpace_11 - _12;
- # DEBUG xSpace => xSpace_13
- # DEBUG BEGIN_STMT
- _3 ={v} MEM[(const struct StreamBuffer_t *)xStreamBuffer_7(D)].xTail;
- if (_3 != xOriginalTail_10)
- goto <bb 9>; [89.00%]
- else
- goto <bb 5>; [11.00%]
- <bb 9> [local count: 2027091]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # _4 = PHI <_1(4)>
- # xSpace_5 = PHI <xSpace_13(4)>
- # DEBUG BEGIN_STMT
- xSpace_14 = xSpace_5 + 4294967295;
- # DEBUG xSpace => xSpace_14
- # DEBUG BEGIN_STMT
- if (_4 <= xSpace_14)
- goto <bb 6>; [50.00%]
- else
- goto <bb 7>; [50.00%]
- <bb 6> [local count: 125270]:
- # DEBUG BEGIN_STMT
- xSpace_15 = xSpace_14 - _4;
- # DEBUG xSpace => xSpace_15
- <bb 7> [local count: 250539]:
- # xSpace_6 = PHI <xSpace_14(5), xSpace_15(6)>
- # DEBUG xSpace => xSpace_6
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- return xSpace_6;
- }
- xStreamBufferSetTriggerLevel (struct StreamBufferDef_t * xStreamBuffer, size_t xTriggerLevel)
- {
- uint32_t ulNewBASEPRI;
- BaseType_t xReturn;
- unsigned int _1;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_4(D)
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_4(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_9 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_9
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 8> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTriggerLevel_8 = MAX_EXPR <1, xTriggerLevel_5(D)>;
- # DEBUG xTriggerLevel => xTriggerLevel_8
- # DEBUG BEGIN_STMT
- _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_4(D)].xLength;
- if (_1 > xTriggerLevel_8)
- goto <bb 6>; [50.00%]
- else
- goto <bb 7>; [50.00%]
- <bb 6> [local count: 125270]:
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_4(D)].xTriggerLevelBytes = xTriggerLevel_8;
- # DEBUG BEGIN_STMT
- # DEBUG xReturn => 1
- <bb 7> [local count: 250539]:
- # xReturn_2 = PHI <1(6), 0(5)>
- # DEBUG xReturn => xReturn_2
- # DEBUG BEGIN_STMT
- return xReturn_2;
- }
- xStreamBufferReset (struct StreamBufferDef_t * xStreamBuffer)
- {
- uint32_t ulNewBASEPRI;
- UBaseType_t uxStreamBufferNumber;
- BaseType_t xReturn;
- struct tskTaskControlBlock * _1;
- struct tskTaskControlBlock * _2;
- uint8_t * _3;
- unsigned int _4;
- unsigned int _5;
- unsigned char _6;
- <bb 2> [local count: 230763]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_9(D)
- # DEBUG BEGIN_STMT
- # DEBUG xReturn => 0
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_9(D) == 0B)
- goto <bb 3>; [46.53%]
- else
- goto <bb 5>; [53.47%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_16
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 9> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 123389]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxStreamBufferNumber_11 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].uxStreamBufferNumber;
- # DEBUG uxStreamBufferNumber => uxStreamBufferNumber_11
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- _1 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToReceive;
- if (_1 == 0B)
- goto <bb 6>; [30.00%]
- else
- goto <bb 8>; [70.00%]
- <bb 6> [local count: 37017]:
- # DEBUG BEGIN_STMT
- _2 ={v} MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTaskWaitingToSend;
- if (_2 == 0B)
- goto <bb 7>; [17.43%]
- else
- goto <bb 8>; [82.57%]
- <bb 7> [local count: 6452]:
- # DEBUG BEGIN_STMT
- _3 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].pucBuffer;
- _4 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xLength;
- _5 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].xTriggerLevelBytes;
- _6 = MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].ucFlags;
- prvInitialiseNewStreamBuffer (xStreamBuffer_9(D), _3, _4, _5, _6);
- # DEBUG BEGIN_STMT
- # DEBUG xReturn => 1
- # DEBUG BEGIN_STMT
- MEM[(struct StreamBuffer_t *)xStreamBuffer_9(D)].uxStreamBufferNumber = uxStreamBufferNumber_11;
- <bb 8> [local count: 123389]:
- # xReturn_7 = PHI <0(5), 0(6), 1(7)>
- # DEBUG xReturn => xReturn_7
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- return xReturn_7;
- }
- vStreamBufferDelete (struct StreamBufferDef_t * xStreamBuffer)
- {
- uint32_t ulNewBASEPRI;
- unsigned char _1;
- unsigned char _4;
- <bb 2> [local count: 357913]:
- # DEBUG BEGIN_STMT
- # DEBUG pxStreamBuffer => xStreamBuffer_3(D)
- # DEBUG BEGIN_STMT
- if (xStreamBuffer_3(D) == 0B)
- goto <bb 3>; [30.00%]
- else
- goto <bb 5>; [70.00%]
- <bb 3> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_8
- <bb 4> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 9> [local count: 1073741824]:
- goto <bb 4>; [100.00%]
- <bb 5> [local count: 250539]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = MEM[(struct StreamBuffer_t *)xStreamBuffer_3(D)].ucFlags;
- _4 = _1 & 2;
- if (_4 == 0)
- goto <bb 6>; [50.00%]
- else
- goto <bb 7>; [50.00%]
- <bb 6> [local count: 125270]:
- # DEBUG BEGIN_STMT
- vPortFree (xStreamBuffer_3(D));
- goto <bb 8>; [100.00%]
- <bb 7> [local count: 125270]:
- # DEBUG BEGIN_STMT
- memset (xStreamBuffer_3(D), 0, 36);
- <bb 8> [local count: 250539]:
- return;
- }
- xStreamBufferGenericCreate (size_t xBufferSizeBytes, size_t xTriggerLevelBytes, BaseType_t xIsMessageBuffer)
- {
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- uint32_t ulNewBASEPRI;
- uint8_t ucFlags;
- uint8_t * pucAllocatedMemory;
- unsigned int _1;
- uint8_t * _2;
- <bb 2> [local count: 325376]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xIsMessageBuffer_5(D) == 1)
- goto <bb 3>; [34.00%]
- else
- goto <bb 6>; [66.00%]
- <bb 3> [local count: 110628]:
- # DEBUG BEGIN_STMT
- # DEBUG ucFlags => 1
- # DEBUG BEGIN_STMT
- if (xBufferSizeBytes_6(D) <= 4)
- goto <bb 4>; [50.00%]
- else
- goto <bb 9>; [50.00%]
- <bb 4> [local count: 55314]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_15 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_15
- <bb 5> [local count: 553139728]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 16> [local count: 553139728]:
- goto <bb 5>; [100.00%]
- <bb 6> [local count: 214748]:
- # DEBUG BEGIN_STMT
- # DEBUG ucFlags => 0
- # DEBUG BEGIN_STMT
- if (xBufferSizeBytes_6(D) == 0)
- goto <bb 7>; [50.00%]
- else
- goto <bb 9>; [50.00%]
- <bb 7> [local count: 107374]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_16
- <bb 8> [local count: 1073741824]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 18> [local count: 1073741824]:
- goto <bb 8>; [100.00%]
- <bb 9> [local count: 162688]:
- # ucFlags_3 = PHI <1(3), 0(6)>
- # DEBUG ucFlags => ucFlags_3
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xBufferSizeBytes_6(D) < xTriggerLevelBytes_8(D))
- goto <bb 10>; [50.00%]
- else
- goto <bb 12>; [50.00%]
- <bb 10> [local count: 81344]:
- # DEBUG BEGIN_STMT
- # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI_17 : "i" 16 : "memory");
- # DEBUG ulNewBASEPRI => ulNewBASEPRI_17
- <bb 11> [local count: 813440776]:
- # DEBUG ulNewBASEPRI => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 17> [local count: 813440776]:
- goto <bb 11>; [100.00%]
- <bb 12> [local count: 81344]:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTriggerLevelBytes_9 = MAX_EXPR <1, xTriggerLevelBytes_8(D)>;
- # DEBUG xTriggerLevelBytes => xTriggerLevelBytes_9
- # DEBUG BEGIN_STMT
- if (xBufferSizeBytes_6(D) <= 4294967258)
- goto <bb 13>; [54.67%]
- else
- goto <bb 15>; [45.33%]
- <bb 13> [local count: 44471]:
- # DEBUG BEGIN_STMT
- xBufferSizeBytes_11 = xBufferSizeBytes_6(D) + 1;
- # DEBUG xBufferSizeBytes => xBufferSizeBytes_11
- # DEBUG BEGIN_STMT
- _1 = xBufferSizeBytes_6(D) + 37;
- pucAllocatedMemory_13 = pvPortMalloc (_1);
- # DEBUG pucAllocatedMemory => pucAllocatedMemory_13
- # DEBUG xBufferSizeBytes => xBufferSizeBytes_11
- # DEBUG BEGIN_STMT
- if (pucAllocatedMemory_13 != 0B)
- goto <bb 14>; [53.47%]
- else
- goto <bb 15>; [46.53%]
- <bb 14> [local count: 23779]:
- # DEBUG BEGIN_STMT
- _2 = pucAllocatedMemory_13 + 36;
- prvInitialiseNewStreamBuffer (pucAllocatedMemory_13, _2, xBufferSizeBytes_11, xTriggerLevelBytes_9, ucFlags_3);
- # DEBUG BEGIN_STMT
- <bb 15> [local count: 81344]:
- # pucAllocatedMemory_10 = PHI <pucAllocatedMemory_13(13), pucAllocatedMemory_13(14), 0B(12)>
- # DEBUG pucAllocatedMemory => NULL
- # DEBUG xBufferSizeBytes => NULL
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- return pucAllocatedMemory_10;
- }
|