tasks.c.076i.inline 207 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568
  1. IPA summary for prvAddCurrentTaskToDelayedList/94 is missing.
  2. IPA summary for ulTaskGenericNotifyValueClear/93 is missing.
  3. IPA summary for xTaskGenericNotifyStateClear/92 is missing.
  4. IPA summary for vTaskGenericNotifyGiveFromISR/91 is missing.
  5. IPA summary for xTaskGenericNotifyFromISR/90 is missing.
  6. IPA summary for xTaskGenericNotify/89 is missing.
  7. IPA summary for xTaskGenericNotifyWait/88 is missing.
  8. IPA summary for ulTaskGenericNotifyTake/87 is missing.
  9. IPA summary for pvTaskIncrementMutexHeldCount/86 is missing.
  10. IPA summary for uxTaskResetEventItemValue/85 is missing.
  11. IPA summary for vTaskList/84 is missing.
  12. IPA summary for prvWriteNameToBuffer/83 is missing.
  13. IPA summary for vTaskPriorityDisinheritAfterTimeout/82 is missing.
  14. IPA summary for xTaskPriorityDisinherit/81 is missing.
  15. IPA summary for xTaskPriorityInherit/80 is missing.
  16. IPA summary for xTaskGetSchedulerState/79 is missing.
  17. IPA summary for xTaskGetCurrentTaskHandle/78 is missing.
  18. IPA summary for prvResetNextTaskUnblockTime/77 is missing.
  19. IPA summary for prvDeleteTCB/76 is missing.
  20. IPA summary for uxTaskGetStackHighWaterMark/75 is missing.
  21. IPA summary for prvTaskCheckFreeStackSpace/74 is missing.
  22. IPA summary for prvListTasksWithinSingleList/73 is missing.
  23. IPA summary for vTaskGetInfo/72 is missing.
  24. IPA summary for prvCheckTasksWaitingTermination/71 is missing.
  25. IPA summary for prvInitialiseTaskLists/70 is missing.
  26. IPA summary for prvIdleTask/69 is missing.
  27. IPA summary for vTaskSetTaskNumber/68 is missing.
  28. IPA summary for uxTaskGetTaskNumber/67 is missing.
  29. IPA summary for vTaskMissedYield/66 is missing.
  30. IPA summary for xTaskCheckForTimeOut/65 is missing.
  31. IPA summary for vTaskInternalSetTimeOutState/64 is missing.
  32. IPA summary for vTaskSetTimeOutState/63 is missing.
  33. IPA summary for vTaskRemoveFromUnorderedEventList/62 is missing.
  34. IPA summary for xTaskRemoveFromEventList/61 is missing.
  35. IPA summary for vTaskPlaceOnEventListRestricted/60 is missing.
  36. IPA summary for vTaskPlaceOnUnorderedEventList/59 is missing.
  37. IPA summary for vTaskPlaceOnEventList/58 is missing.
  38. IPA summary for vTaskSwitchContext/57 is missing.
  39. IPA summary for xTaskIncrementTick/56 is missing.
  40. IPA summary for xTaskAbortDelay/55 is missing.
  41. IPA summary for xTaskCatchUpTicks/54 is missing.
  42. IPA summary for uxTaskGetSystemState/53 is missing.
  43. IPA summary for xTaskGetHandle/52 is missing.
  44. IPA summary for prvSearchForNameWithinSingleList/51 is missing.
  45. IPA summary for pcTaskGetName/50 is missing.
  46. IPA summary for uxTaskGetNumberOfTasks/49 is missing.
  47. IPA summary for xTaskGetTickCountFromISR/48 is missing.
  48. IPA summary for xTaskGetTickCount/47 is missing.
  49. IPA summary for xTaskResumeAll/46 is missing.
  50. IPA summary for vTaskSuspendAll/45 is missing.
  51. IPA summary for vTaskEndScheduler/44 is missing.
  52. IPA summary for vTaskStartScheduler/43 is missing.
  53. IPA summary for xTaskResumeFromISR/42 is missing.
  54. IPA summary for vTaskResume/41 is missing.
  55. IPA summary for prvTaskIsTaskSuspended/40 is missing.
  56. IPA summary for vTaskSuspend/39 is missing.
  57. IPA summary for vTaskPrioritySet/38 is missing.
  58. IPA summary for uxTaskPriorityGetFromISR/37 is missing.
  59. IPA summary for uxTaskPriorityGet/36 is missing.
  60. IPA summary for eTaskGetState/35 is missing.
  61. IPA summary for vTaskDelay/34 is missing.
  62. IPA summary for xTaskDelayUntil/33 is missing.
  63. IPA summary for vTaskDelete/32 is missing.
  64. IPA summary for prvAddNewTaskToReadyList/31 is missing.
  65. IPA summary for prvInitialiseNewTask/30 is missing.
  66. IPA summary for xTaskCreate/29 is missing.
  67. Flattening functions:
  68. Overall time estimate: 0.000000 weighted by profile: 0.000000
  69. Deciding on inlining of small functions. Starting with size 0.
  70. Reclaiming functions:
  71. Reclaiming variables:
  72. Clearing address taken flags:
  73. Deciding on functions to be inlined into all callers and removing useless speculations:
  74. Overall time estimate: 0.000000 weighted by profile: 0.000000
  75. Why inlining failed?
  76. function not considered for inlining : 54 calls, 54.000000 freq, 0 count
  77. function body not available : 92 calls, 92.000000 freq, 0 count
  78. IPA summary for prvAddCurrentTaskToDelayedList/94 is missing.
  79. IPA summary for ulTaskGenericNotifyValueClear/93 is missing.
  80. IPA summary for xTaskGenericNotifyStateClear/92 is missing.
  81. IPA summary for vTaskGenericNotifyGiveFromISR/91 is missing.
  82. IPA summary for xTaskGenericNotifyFromISR/90 is missing.
  83. IPA summary for xTaskGenericNotify/89 is missing.
  84. IPA summary for xTaskGenericNotifyWait/88 is missing.
  85. IPA summary for ulTaskGenericNotifyTake/87 is missing.
  86. IPA summary for pvTaskIncrementMutexHeldCount/86 is missing.
  87. IPA summary for uxTaskResetEventItemValue/85 is missing.
  88. IPA summary for vTaskList/84 is missing.
  89. IPA summary for prvWriteNameToBuffer/83 is missing.
  90. IPA summary for vTaskPriorityDisinheritAfterTimeout/82 is missing.
  91. IPA summary for xTaskPriorityDisinherit/81 is missing.
  92. IPA summary for xTaskPriorityInherit/80 is missing.
  93. IPA summary for xTaskGetSchedulerState/79 is missing.
  94. IPA summary for xTaskGetCurrentTaskHandle/78 is missing.
  95. IPA summary for prvResetNextTaskUnblockTime/77 is missing.
  96. IPA summary for prvDeleteTCB/76 is missing.
  97. IPA summary for uxTaskGetStackHighWaterMark/75 is missing.
  98. IPA summary for prvTaskCheckFreeStackSpace/74 is missing.
  99. IPA summary for prvListTasksWithinSingleList/73 is missing.
  100. IPA summary for vTaskGetInfo/72 is missing.
  101. IPA summary for prvCheckTasksWaitingTermination/71 is missing.
  102. IPA summary for prvInitialiseTaskLists/70 is missing.
  103. IPA summary for prvIdleTask/69 is missing.
  104. IPA summary for vTaskSetTaskNumber/68 is missing.
  105. IPA summary for uxTaskGetTaskNumber/67 is missing.
  106. IPA summary for vTaskMissedYield/66 is missing.
  107. IPA summary for xTaskCheckForTimeOut/65 is missing.
  108. IPA summary for vTaskInternalSetTimeOutState/64 is missing.
  109. IPA summary for vTaskSetTimeOutState/63 is missing.
  110. IPA summary for vTaskRemoveFromUnorderedEventList/62 is missing.
  111. IPA summary for xTaskRemoveFromEventList/61 is missing.
  112. IPA summary for vTaskPlaceOnEventListRestricted/60 is missing.
  113. IPA summary for vTaskPlaceOnUnorderedEventList/59 is missing.
  114. IPA summary for vTaskPlaceOnEventList/58 is missing.
  115. IPA summary for vTaskSwitchContext/57 is missing.
  116. IPA summary for xTaskIncrementTick/56 is missing.
  117. IPA summary for xTaskAbortDelay/55 is missing.
  118. IPA summary for xTaskCatchUpTicks/54 is missing.
  119. IPA summary for uxTaskGetSystemState/53 is missing.
  120. IPA summary for xTaskGetHandle/52 is missing.
  121. IPA summary for prvSearchForNameWithinSingleList/51 is missing.
  122. IPA summary for pcTaskGetName/50 is missing.
  123. IPA summary for uxTaskGetNumberOfTasks/49 is missing.
  124. IPA summary for xTaskGetTickCountFromISR/48 is missing.
  125. IPA summary for xTaskGetTickCount/47 is missing.
  126. IPA summary for xTaskResumeAll/46 is missing.
  127. IPA summary for vTaskSuspendAll/45 is missing.
  128. IPA summary for vTaskEndScheduler/44 is missing.
  129. IPA summary for vTaskStartScheduler/43 is missing.
  130. IPA summary for xTaskResumeFromISR/42 is missing.
  131. IPA summary for vTaskResume/41 is missing.
  132. IPA summary for prvTaskIsTaskSuspended/40 is missing.
  133. IPA summary for vTaskSuspend/39 is missing.
  134. IPA summary for vTaskPrioritySet/38 is missing.
  135. IPA summary for uxTaskPriorityGetFromISR/37 is missing.
  136. IPA summary for uxTaskPriorityGet/36 is missing.
  137. IPA summary for eTaskGetState/35 is missing.
  138. IPA summary for vTaskDelay/34 is missing.
  139. IPA summary for xTaskDelayUntil/33 is missing.
  140. IPA summary for vTaskDelete/32 is missing.
  141. IPA summary for prvAddNewTaskToReadyList/31 is missing.
  142. IPA summary for prvInitialiseNewTask/30 is missing.
  143. IPA summary for xTaskCreate/29 is missing.
  144. Symbol table:
  145. sprintf/112 (sprintf) @06ee5620
  146. Type: function
  147. Visibility: external public
  148. References:
  149. Referring:
  150. Availability: not_available
  151. Function flags:
  152. Called by: vTaskList/84
  153. Calls:
  154. strcpy/111 (strcpy) @06ee5e00
  155. Type: function
  156. Visibility: external public
  157. References:
  158. Referring:
  159. Availability: not_available
  160. Function flags:
  161. Called by: prvWriteNameToBuffer/83
  162. Calls:
  163. vListInitialise/110 (vListInitialise) @06eacb60
  164. Type: function
  165. Visibility: external public
  166. References:
  167. Referring:
  168. Availability: not_available
  169. Function flags:
  170. Called by: prvInitialiseTaskLists/70 prvInitialiseTaskLists/70 prvInitialiseTaskLists/70 prvInitialiseTaskLists/70 prvInitialiseTaskLists/70 prvInitialiseTaskLists/70
  171. Calls:
  172. vListInsert/109 (vListInsert) @06e8de00
  173. Type: function
  174. Visibility: external public
  175. References:
  176. Referring:
  177. Availability: not_available
  178. Function flags:
  179. Called by: vTaskPlaceOnEventList/58 prvAddCurrentTaskToDelayedList/94 prvAddCurrentTaskToDelayedList/94
  180. Calls:
  181. strlen/108 (strlen) @06e8d2a0
  182. Type: function
  183. Visibility: external public
  184. References:
  185. Referring:
  186. Availability: not_available
  187. Function flags:
  188. Called by: vTaskList/84 prvWriteNameToBuffer/83 xTaskGetHandle/52
  189. Calls:
  190. vPortEndScheduler/107 (vPortEndScheduler) @06e768c0
  191. Type: function
  192. Visibility: external public
  193. References:
  194. Referring:
  195. Availability: not_available
  196. Function flags:
  197. Called by: vTaskEndScheduler/44
  198. Calls:
  199. xPortStartScheduler/106 (xPortStartScheduler) @06e76620
  200. Type: function
  201. Visibility: external public
  202. References:
  203. Referring:
  204. Availability: not_available
  205. Function flags:
  206. Called by: vTaskStartScheduler/43
  207. Calls:
  208. xTimerCreateTimerTask/105 (xTimerCreateTimerTask) @06e76540
  209. Type: function
  210. Visibility: external public
  211. References:
  212. Referring:
  213. Availability: not_available
  214. Function flags:
  215. Called by: vTaskStartScheduler/43
  216. Calls:
  217. vPortValidateInterruptPriority/104 (vPortValidateInterruptPriority) @0648b7e0
  218. Type: function
  219. Visibility: external public
  220. References:
  221. Referring:
  222. Availability: not_available
  223. Function flags:
  224. Called by: vTaskGenericNotifyGiveFromISR/91 xTaskGenericNotifyFromISR/90 xTaskGetTickCountFromISR/48 xTaskResumeFromISR/42 uxTaskPriorityGetFromISR/37
  225. Calls:
  226. vListInsertEnd/103 (vListInsertEnd) @06e3ec40
  227. Type: function
  228. Visibility: external public
  229. References:
  230. Referring:
  231. Availability: not_available
  232. Function flags:
  233. Called by: vTaskSuspend/39 vTaskDelete/32 xTaskResumeFromISR/42
  234. Calls:
  235. uxListRemove/102 (uxListRemove) @06e3eee0
  236. Type: function
  237. Visibility: external public
  238. References:
  239. Referring:
  240. Availability: not_available
  241. Function flags:
  242. Called by: prvAddCurrentTaskToDelayedList/94 vTaskPriorityDisinheritAfterTimeout/82 xTaskPriorityDisinherit/81 xTaskPriorityInherit/80 xTaskAbortDelay/55 xTaskAbortDelay/55 vTaskSuspend/39 vTaskSuspend/39 vTaskDelete/32 vTaskDelete/32 prvCheckTasksWaitingTermination/71 xTaskResumeFromISR/42 vTaskResume/41 vTaskPrioritySet/38
  243. Calls:
  244. vPortExitCritical/101 (vPortExitCritical) @06e3ed20
  245. Type: function
  246. Visibility: external public
  247. References:
  248. Referring:
  249. Availability: not_available
  250. Function flags:
  251. Called by: xTaskGenericNotifyWait/88 xTaskGenericNotifyWait/88 ulTaskGenericNotifyTake/87 ulTaskGenericNotifyTake/87 ulTaskGenericNotifyValueClear/93 xTaskGenericNotifyStateClear/92 xTaskGenericNotify/89 xTaskAbortDelay/55 xTaskResumeAll/46 vTaskSuspend/39 vTaskSuspend/39 vTaskDelete/32 prvCheckTasksWaitingTermination/71 prvAddNewTaskToReadyList/31 xTaskCheckForTimeOut/65 vTaskSetTimeOutState/63 vTaskResume/41 vTaskPrioritySet/38 uxTaskPriorityGet/36 eTaskGetState/35
  252. Calls:
  253. vPortEnterCritical/100 (vPortEnterCritical) @06e3eb60
  254. Type: function
  255. Visibility: external public
  256. References:
  257. Referring:
  258. Availability: not_available
  259. Function flags:
  260. Called by: xTaskGenericNotifyWait/88 xTaskGenericNotifyWait/88 ulTaskGenericNotifyTake/87 ulTaskGenericNotifyTake/87 ulTaskGenericNotifyValueClear/93 xTaskGenericNotifyStateClear/92 xTaskGenericNotify/89 xTaskAbortDelay/55 xTaskResumeAll/46 vTaskSuspend/39 vTaskSuspend/39 vTaskDelete/32 prvCheckTasksWaitingTermination/71 prvAddNewTaskToReadyList/31 xTaskCheckForTimeOut/65 vTaskSetTimeOutState/63 vTaskResume/41 vTaskPrioritySet/38 uxTaskPriorityGet/36 eTaskGetState/35
  261. Calls:
  262. pxPortInitialiseStack/99 (pxPortInitialiseStack) @06e3e8c0
  263. Type: function
  264. Visibility: external public
  265. References:
  266. Referring:
  267. Availability: not_available
  268. Function flags:
  269. Called by: prvInitialiseNewTask/30
  270. Calls:
  271. vListInitialiseItem/98 (vListInitialiseItem) @06e3e7e0
  272. Type: function
  273. Visibility: external public
  274. References:
  275. Referring:
  276. Availability: not_available
  277. Function flags:
  278. Called by: prvInitialiseNewTask/30 prvInitialiseNewTask/30
  279. Calls:
  280. memset/97 (memset) @06e3e700
  281. Type: function
  282. Visibility: external public
  283. References:
  284. Referring:
  285. Availability: not_available
  286. Function flags:
  287. Called by: prvInitialiseNewTask/30 prvInitialiseNewTask/30 prvInitialiseNewTask/30
  288. Calls:
  289. vPortFree/96 (vPortFree) @06e3e540
  290. Type: function
  291. Visibility: external public
  292. References:
  293. Referring:
  294. Availability: not_available
  295. Function flags:
  296. Called by: vTaskList/84 prvDeleteTCB/76 prvDeleteTCB/76 xTaskCreate/29
  297. Calls:
  298. pvPortMalloc/95 (pvPortMalloc) @06e3e460
  299. Type: function
  300. Visibility: external public
  301. References:
  302. Referring:
  303. Availability: not_available
  304. Function flags:
  305. Called by: vTaskList/84 xTaskCreate/29 xTaskCreate/29
  306. Calls:
  307. prvAddCurrentTaskToDelayedList/94 (prvAddCurrentTaskToDelayedList) @06e3e000
  308. Type: function definition analyzed
  309. Visibility: force_output no_reorder prevailing_def_ironly
  310. References: xTickCount/18 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)xSuspendedTaskList/16 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)xSuspendedTaskList/16 (addr)xSuspendedTaskList/16 (read)xSuspendedTaskList/16 (write)pxCurrentTCB/7 (read)pxOverflowDelayedTaskList/12 (read)pxCurrentTCB/7 (read)pxDelayedTaskList/11 (read)pxCurrentTCB/7 (read)xNextTaskUnblockTime/25 (read)xNextTaskUnblockTime/25 (write)
  311. Referring:
  312. Availability: available
  313. Function flags: body
  314. Called by: xTaskGenericNotifyWait/88 ulTaskGenericNotifyTake/87 vTaskPlaceOnEventListRestricted/60 vTaskPlaceOnUnorderedEventList/59 vTaskPlaceOnEventList/58 vTaskDelay/34 xTaskDelayUntil/33
  315. Calls: vListInsert/109 vListInsert/109 uxListRemove/102
  316. ulTaskGenericNotifyValueClear/93 (ulTaskGenericNotifyValueClear) @06e2a540
  317. Type: function definition analyzed
  318. Visibility: force_output externally_visible no_reorder public
  319. References: pxCurrentTCB/7 (read)
  320. Referring:
  321. Availability: available
  322. Function flags: body
  323. Called by:
  324. Calls: vPortExitCritical/101 vPortEnterCritical/100
  325. xTaskGenericNotifyStateClear/92 (xTaskGenericNotifyStateClear) @06e2ad20
  326. Type: function definition analyzed
  327. Visibility: force_output externally_visible no_reorder public
  328. References: pxCurrentTCB/7 (read)
  329. Referring:
  330. Availability: available
  331. Function flags: body
  332. Called by:
  333. Calls: vPortExitCritical/101 vPortEnterCritical/100
  334. vTaskGenericNotifyGiveFromISR/91 (vTaskGenericNotifyGiveFromISR) @06e2a8c0
  335. Type: function definition analyzed
  336. Visibility: force_output externally_visible no_reorder public
  337. References: uxSchedulerSuspended/28 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xPendingReadyList/13 (read)xPendingReadyList/13 (addr)xPendingReadyList/13 (read)xPendingReadyList/13 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  338. Referring:
  339. Availability: available
  340. Function flags: body
  341. Called by:
  342. Calls: vPortValidateInterruptPriority/104
  343. xTaskGenericNotifyFromISR/90 (xTaskGenericNotifyFromISR) @06e2a460
  344. Type: function definition analyzed
  345. Visibility: force_output externally_visible no_reorder public
  346. References: xTickCount/18 (read)uxSchedulerSuspended/28 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xPendingReadyList/13 (read)xPendingReadyList/13 (addr)xPendingReadyList/13 (read)xPendingReadyList/13 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  347. Referring:
  348. Availability: available
  349. Function flags: body
  350. Called by:
  351. Calls: vPortValidateInterruptPriority/104
  352. xTaskGenericNotify/89 (xTaskGenericNotify) @06e1be00
  353. Type: function definition analyzed
  354. Visibility: force_output externally_visible no_reorder public
  355. References: xTickCount/18 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)
  356. Referring:
  357. Availability: available
  358. Function flags: body
  359. Called by:
  360. Calls: vPortExitCritical/101 vPortEnterCritical/100
  361. xTaskGenericNotifyWait/88 (xTaskGenericNotifyWait) @06e1bd20
  362. Type: function definition analyzed
  363. Visibility: force_output externally_visible no_reorder public
  364. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  365. Referring:
  366. Availability: available
  367. Function flags: body
  368. Called by:
  369. Calls: vPortExitCritical/101 vPortEnterCritical/100 vPortExitCritical/101 prvAddCurrentTaskToDelayedList/94 vPortEnterCritical/100
  370. ulTaskGenericNotifyTake/87 (ulTaskGenericNotifyTake) @06e1b8c0
  371. Type: function definition analyzed
  372. Visibility: force_output externally_visible no_reorder public
  373. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  374. Referring:
  375. Availability: available
  376. Function flags: body
  377. Called by:
  378. Calls: vPortExitCritical/101 vPortEnterCritical/100 vPortExitCritical/101 prvAddCurrentTaskToDelayedList/94 vPortEnterCritical/100
  379. pvTaskIncrementMutexHeldCount/86 (pvTaskIncrementMutexHeldCount) @06e1b460
  380. Type: function definition analyzed
  381. Visibility: force_output externally_visible no_reorder public
  382. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  383. Referring:
  384. Availability: available
  385. Function flags: body
  386. Called by:
  387. Calls:
  388. uxTaskResetEventItemValue/85 (uxTaskResetEventItemValue) @06e1b1c0
  389. Type: function definition analyzed
  390. Visibility: force_output externally_visible no_reorder public
  391. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  392. Referring:
  393. Availability: available
  394. Function flags: body
  395. Called by:
  396. Calls:
  397. vTaskList/84 (vTaskList) @06dffc40
  398. Type: function definition analyzed
  399. Visibility: force_output externally_visible no_reorder public
  400. References: uxCurrentNumberOfTasks/17 (read)uxCurrentNumberOfTasks/17 (read)
  401. Referring:
  402. Availability: available
  403. Function flags: body
  404. Called by:
  405. Calls: vPortFree/96 strlen/108 sprintf/112 prvWriteNameToBuffer/83 uxTaskGetSystemState/53 pvPortMalloc/95
  406. prvWriteNameToBuffer/83 (prvWriteNameToBuffer) @06dff540
  407. Type: function definition analyzed
  408. Visibility: force_output no_reorder prevailing_def_ironly
  409. References:
  410. Referring:
  411. Availability: available
  412. Function flags: body
  413. Called by: vTaskList/84
  414. Calls: strlen/108 strcpy/111
  415. vTaskPriorityDisinheritAfterTimeout/82 (vTaskPriorityDisinheritAfterTimeout) @06dff000
  416. Type: function definition analyzed
  417. Visibility: force_output externally_visible no_reorder public
  418. References: pxCurrentTCB/7 (read)pxReadyTasksLists/8 (addr)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)
  419. Referring:
  420. Availability: available
  421. Function flags: body
  422. Called by:
  423. Calls: uxListRemove/102
  424. xTaskPriorityDisinherit/81 (xTaskPriorityDisinherit) @06dffb60
  425. Type: function definition analyzed
  426. Visibility: force_output externally_visible no_reorder public
  427. References: pxCurrentTCB/7 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)
  428. Referring:
  429. Availability: available
  430. Function flags: body
  431. Called by:
  432. Calls: uxListRemove/102
  433. xTaskPriorityInherit/80 (xTaskPriorityInherit) @06dff700
  434. Type: function definition analyzed
  435. Visibility: force_output externally_visible no_reorder public
  436. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxReadyTasksLists/8 (addr)pxCurrentTCB/7 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  437. Referring:
  438. Availability: available
  439. Function flags: body
  440. Called by:
  441. Calls: uxListRemove/102
  442. xTaskGetSchedulerState/79 (xTaskGetSchedulerState) @06dff460
  443. Type: function definition analyzed
  444. Visibility: force_output externally_visible no_reorder public
  445. References: xSchedulerRunning/20 (read)uxSchedulerSuspended/28 (read)
  446. Referring:
  447. Availability: available
  448. Function flags: body
  449. Called by:
  450. Calls:
  451. xTaskGetCurrentTaskHandle/78 (xTaskGetCurrentTaskHandle) @06dff1c0
  452. Type: function definition analyzed
  453. Visibility: force_output externally_visible no_reorder public
  454. References: pxCurrentTCB/7 (read)
  455. Referring:
  456. Availability: available
  457. Function flags: body
  458. Called by:
  459. Calls:
  460. prvResetNextTaskUnblockTime/77 (prvResetNextTaskUnblockTime) @06df3c40
  461. Type: function definition analyzed
  462. Visibility: force_output no_reorder prevailing_def_ironly
  463. References: pxDelayedTaskList/11 (read)xNextTaskUnblockTime/25 (write)pxDelayedTaskList/11 (read)xNextTaskUnblockTime/25 (write)
  464. Referring:
  465. Availability: available
  466. Function flags: body
  467. Called by: xTaskResumeAll/46 xTaskIncrementTick/56 vTaskSuspend/39 vTaskDelete/32
  468. Calls:
  469. prvDeleteTCB/76 (prvDeleteTCB) @06df3380
  470. Type: function definition analyzed
  471. Visibility: force_output no_reorder prevailing_def_ironly
  472. References:
  473. Referring:
  474. Availability: available
  475. Function flags: body
  476. Called by: vTaskDelete/32 prvCheckTasksWaitingTermination/71
  477. Calls: vPortFree/96 vPortFree/96
  478. uxTaskGetStackHighWaterMark/75 (uxTaskGetStackHighWaterMark) @06df3ee0
  479. Type: function definition analyzed
  480. Visibility: force_output externally_visible no_reorder public
  481. References: pxCurrentTCB/7 (read)
  482. Referring:
  483. Availability: available
  484. Function flags: body
  485. Called by:
  486. Calls: prvTaskCheckFreeStackSpace/74
  487. prvTaskCheckFreeStackSpace/74 (prvTaskCheckFreeStackSpace) @06df3b60
  488. Type: function definition analyzed
  489. Visibility: force_output no_reorder prevailing_def_ironly
  490. References:
  491. Referring:
  492. Availability: available
  493. Function flags: body
  494. Called by: vTaskGetInfo/72 uxTaskGetStackHighWaterMark/75
  495. Calls:
  496. prvListTasksWithinSingleList/73 (prvListTasksWithinSingleList) @06df38c0
  497. Type: function definition analyzed
  498. Visibility: force_output no_reorder prevailing_def_ironly
  499. References:
  500. Referring:
  501. Availability: available
  502. Function flags: body
  503. Called by: uxTaskGetSystemState/53 uxTaskGetSystemState/53 uxTaskGetSystemState/53 uxTaskGetSystemState/53 uxTaskGetSystemState/53
  504. Calls: vTaskGetInfo/72
  505. vTaskGetInfo/72 (vTaskGetInfo) @06df3620
  506. Type: function definition analyzed
  507. Visibility: force_output externally_visible no_reorder public
  508. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  509. Referring:
  510. Availability: available
  511. Function flags: body
  512. Called by: prvListTasksWithinSingleList/73
  513. Calls: prvTaskCheckFreeStackSpace/74 eTaskGetState/35 xTaskResumeAll/46 vTaskSuspendAll/45
  514. prvCheckTasksWaitingTermination/71 (prvCheckTasksWaitingTermination) @06df32a0
  515. Type: function definition analyzed
  516. Visibility: force_output no_reorder prevailing_def_ironly
  517. References: xTasksWaitingTermination/14 (read)uxCurrentNumberOfTasks/17 (read)uxCurrentNumberOfTasks/17 (write)uxDeletedTasksWaitingCleanUp/15 (read)uxDeletedTasksWaitingCleanUp/15 (write)uxDeletedTasksWaitingCleanUp/15 (read)
  518. Referring:
  519. Availability: available
  520. Function flags: body
  521. Called by: prvIdleTask/69
  522. Calls: prvDeleteTCB/76 vPortExitCritical/101 uxListRemove/102 vPortEnterCritical/100
  523. prvInitialiseTaskLists/70 (prvInitialiseTaskLists) @06defee0
  524. Type: function definition analyzed
  525. Visibility: force_output no_reorder prevailing_def_ironly
  526. References: pxReadyTasksLists/8 (addr)xDelayedTaskList1/9 (addr)xDelayedTaskList2/10 (addr)xPendingReadyList/13 (addr)xTasksWaitingTermination/14 (addr)xSuspendedTaskList/16 (addr)pxDelayedTaskList/11 (write)xDelayedTaskList1/9 (addr)pxOverflowDelayedTaskList/12 (write)xDelayedTaskList2/10 (addr)
  527. Referring:
  528. Availability: available
  529. Function flags: body
  530. Called by: prvAddNewTaskToReadyList/31
  531. Calls: vListInitialise/110 vListInitialise/110 vListInitialise/110 vListInitialise/110 vListInitialise/110 vListInitialise/110
  532. prvIdleTask/69 (prvIdleTask) @06def9a0
  533. Type: function definition analyzed
  534. Visibility: force_output no_reorder prevailing_def_ironly
  535. Address is taken.
  536. References: pxReadyTasksLists/8 (read)
  537. Referring: vTaskStartScheduler/43 (addr)
  538. Availability: available
  539. Function flags: body
  540. Called by:
  541. Calls: prvCheckTasksWaitingTermination/71
  542. vTaskSetTaskNumber/68 (vTaskSetTaskNumber) @06defe00
  543. Type: function definition analyzed
  544. Visibility: force_output externally_visible no_reorder public
  545. References:
  546. Referring:
  547. Availability: available
  548. Function flags: body
  549. Called by:
  550. Calls:
  551. uxTaskGetTaskNumber/67 (uxTaskGetTaskNumber) @06defb60
  552. Type: function definition analyzed
  553. Visibility: force_output externally_visible no_reorder public
  554. References:
  555. Referring:
  556. Availability: available
  557. Function flags: body
  558. Called by:
  559. Calls:
  560. vTaskMissedYield/66 (vTaskMissedYield) @06def8c0
  561. Type: function definition analyzed
  562. Visibility: force_output externally_visible no_reorder public
  563. References: xYieldPending/22 (write)
  564. Referring:
  565. Availability: available
  566. Function flags: body
  567. Called by:
  568. Calls:
  569. xTaskCheckForTimeOut/65 (xTaskCheckForTimeOut) @06def620
  570. Type: function definition analyzed
  571. Visibility: force_output externally_visible no_reorder public
  572. References: xTickCount/18 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)xNumOfOverflows/23 (read)
  573. Referring:
  574. Availability: available
  575. Function flags: body
  576. Called by:
  577. Calls: vPortExitCritical/101 vTaskInternalSetTimeOutState/64 vPortEnterCritical/100
  578. vTaskInternalSetTimeOutState/64 (vTaskInternalSetTimeOutState) @06def1c0
  579. Type: function definition analyzed
  580. Visibility: force_output externally_visible no_reorder public
  581. References: xNumOfOverflows/23 (read)xTickCount/18 (read)
  582. Referring:
  583. Availability: available
  584. Function flags: body
  585. Called by: xTaskCheckForTimeOut/65
  586. Calls:
  587. vTaskSetTimeOutState/63 (vTaskSetTimeOutState) @06da9b60
  588. Type: function definition analyzed
  589. Visibility: force_output externally_visible no_reorder public
  590. References: xNumOfOverflows/23 (read)xTickCount/18 (read)
  591. Referring:
  592. Availability: available
  593. Function flags: body
  594. Called by:
  595. Calls: vPortExitCritical/101 vPortEnterCritical/100
  596. vTaskRemoveFromUnorderedEventList/62 (vTaskRemoveFromUnorderedEventList) @06da9ee0
  597. Type: function definition analyzed
  598. Visibility: force_output externally_visible no_reorder public
  599. References: uxSchedulerSuspended/28 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  600. Referring:
  601. Availability: available
  602. Function flags: body
  603. Called by:
  604. Calls:
  605. xTaskRemoveFromEventList/61 (xTaskRemoveFromEventList) @06da9a80
  606. Type: function definition analyzed
  607. Visibility: force_output externally_visible no_reorder public
  608. References: uxSchedulerSuspended/28 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xPendingReadyList/13 (read)xPendingReadyList/13 (addr)xPendingReadyList/13 (read)xPendingReadyList/13 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  609. Referring:
  610. Availability: available
  611. Function flags: body
  612. Called by:
  613. Calls:
  614. vTaskPlaceOnEventListRestricted/60 (vTaskPlaceOnEventListRestricted) @06da9620
  615. Type: function definition analyzed
  616. Visibility: force_output externally_visible no_reorder public
  617. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  618. Referring:
  619. Availability: available
  620. Function flags: body
  621. Called by:
  622. Calls: prvAddCurrentTaskToDelayedList/94
  623. vTaskPlaceOnUnorderedEventList/59 (vTaskPlaceOnUnorderedEventList) @06da92a0
  624. Type: function definition analyzed
  625. Visibility: force_output externally_visible no_reorder public
  626. References: uxSchedulerSuspended/28 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)
  627. Referring:
  628. Availability: available
  629. Function flags: body
  630. Called by:
  631. Calls: prvAddCurrentTaskToDelayedList/94
  632. vTaskPlaceOnEventList/58 (vTaskPlaceOnEventList) @06d3fa80
  633. Type: function definition analyzed
  634. Visibility: force_output externally_visible no_reorder public
  635. References: pxCurrentTCB/7 (read)
  636. Referring:
  637. Availability: available
  638. Function flags: body
  639. Called by:
  640. Calls: prvAddCurrentTaskToDelayedList/94 vListInsert/109
  641. vTaskSwitchContext/57 (vTaskSwitchContext) @06d3fe00
  642. Type: function definition analyzed
  643. Visibility: force_output externally_visible no_reorder public
  644. References: uxSchedulerSuspended/28 (read)xYieldPending/22 (write)xYieldPending/22 (write)uxTopReadyPriority/19 (read)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxCurrentTCB/7 (write)uxTopReadyPriority/19 (write)
  645. Referring:
  646. Availability: available
  647. Function flags: body
  648. Called by: vTaskSuspend/39
  649. Calls:
  650. xTaskIncrementTick/56 (xTaskIncrementTick) @06d3f9a0
  651. Type: function definition analyzed
  652. Visibility: force_output externally_visible no_reorder public
  653. References: uxSchedulerSuspended/28 (read)xTickCount/18 (read)xTickCount/18 (write)pxDelayedTaskList/11 (read)pxDelayedTaskList/11 (read)pxOverflowDelayedTaskList/12 (read)pxDelayedTaskList/11 (write)pxOverflowDelayedTaskList/12 (write)xNumOfOverflows/23 (read)xNumOfOverflows/23 (write)xNextTaskUnblockTime/25 (read)pxDelayedTaskList/11 (read)xNextTaskUnblockTime/25 (write)pxDelayedTaskList/11 (read)xNextTaskUnblockTime/25 (write)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxReadyTasksLists/8 (read)xYieldPending/22 (read)xPendedTicks/21 (read)xPendedTicks/21 (write)
  654. Referring:
  655. Availability: available
  656. Function flags: body
  657. Called by: xTaskResumeAll/46
  658. Calls: prvResetNextTaskUnblockTime/77
  659. xTaskAbortDelay/55 (xTaskAbortDelay) @06d3f380
  660. Type: function definition analyzed
  661. Visibility: force_output externally_visible no_reorder public
  662. References: uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)
  663. Referring:
  664. Availability: available
  665. Function flags: body
  666. Called by:
  667. Calls: xTaskResumeAll/46 vPortExitCritical/101 uxListRemove/102 vPortEnterCritical/100 uxListRemove/102 eTaskGetState/35 vTaskSuspendAll/45
  668. xTaskCatchUpTicks/54 (xTaskCatchUpTicks) @06d3f000
  669. Type: function definition analyzed
  670. Visibility: force_output externally_visible no_reorder public
  671. References: uxSchedulerSuspended/28 (read)xPendedTicks/21 (read)xPendedTicks/21 (write)
  672. Referring:
  673. Availability: available
  674. Function flags: body
  675. Called by:
  676. Calls: xTaskResumeAll/46 vTaskSuspendAll/45
  677. uxTaskGetSystemState/53 (uxTaskGetSystemState) @06d367e0
  678. Type: function definition analyzed
  679. Visibility: force_output externally_visible no_reorder public
  680. References: uxCurrentNumberOfTasks/17 (read)pxReadyTasksLists/8 (addr)pxDelayedTaskList/11 (read)pxOverflowDelayedTaskList/12 (read)xTasksWaitingTermination/14 (addr)xSuspendedTaskList/16 (addr)
  681. Referring:
  682. Availability: available
  683. Function flags: body
  684. Called by: vTaskList/84
  685. Calls: xTaskResumeAll/46 prvListTasksWithinSingleList/73 prvListTasksWithinSingleList/73 prvListTasksWithinSingleList/73 prvListTasksWithinSingleList/73 prvListTasksWithinSingleList/73 vTaskSuspendAll/45
  686. xTaskGetHandle/52 (xTaskGetHandle) @06d362a0
  687. Type: function definition analyzed
  688. Visibility: force_output externally_visible no_reorder public
  689. References: pxReadyTasksLists/8 (addr)pxDelayedTaskList/11 (read)pxOverflowDelayedTaskList/12 (read)xSuspendedTaskList/16 (addr)xTasksWaitingTermination/14 (addr)
  690. Referring:
  691. Availability: available
  692. Function flags: body
  693. Called by:
  694. Calls: xTaskResumeAll/46 prvSearchForNameWithinSingleList/51 prvSearchForNameWithinSingleList/51 prvSearchForNameWithinSingleList/51 prvSearchForNameWithinSingleList/51 prvSearchForNameWithinSingleList/51 vTaskSuspendAll/45 strlen/108
  695. prvSearchForNameWithinSingleList/51 (prvSearchForNameWithinSingleList) @06d36e00
  696. Type: function definition analyzed
  697. Visibility: force_output no_reorder prevailing_def_ironly
  698. References:
  699. Referring:
  700. Availability: available
  701. Function flags: body
  702. Called by: xTaskGetHandle/52 xTaskGetHandle/52 xTaskGetHandle/52 xTaskGetHandle/52 xTaskGetHandle/52
  703. Calls:
  704. pcTaskGetName/50 (pcTaskGetName) @06d36b60
  705. Type: function definition analyzed
  706. Visibility: force_output externally_visible no_reorder public
  707. References: pxCurrentTCB/7 (read)
  708. Referring:
  709. Availability: available
  710. Function flags: body
  711. Called by:
  712. Calls:
  713. uxTaskGetNumberOfTasks/49 (uxTaskGetNumberOfTasks) @06d36700
  714. Type: function definition analyzed
  715. Visibility: force_output externally_visible no_reorder public
  716. References: uxCurrentNumberOfTasks/17 (read)
  717. Referring:
  718. Availability: available
  719. Function flags: body
  720. Called by:
  721. Calls:
  722. xTaskGetTickCountFromISR/48 (xTaskGetTickCountFromISR) @06d36460
  723. Type: function definition analyzed
  724. Visibility: force_output externally_visible no_reorder public
  725. References: xTickCount/18 (read)
  726. Referring:
  727. Availability: available
  728. Function flags: body
  729. Called by:
  730. Calls: vPortValidateInterruptPriority/104
  731. xTaskGetTickCount/47 (xTaskGetTickCount) @06d361c0
  732. Type: function definition analyzed
  733. Visibility: force_output externally_visible no_reorder public
  734. References: xTickCount/18 (read)
  735. Referring:
  736. Availability: available
  737. Function flags: body
  738. Called by:
  739. Calls:
  740. xTaskResumeAll/46 (xTaskResumeAll) @06d25e00
  741. Type: function definition analyzed
  742. Visibility: force_output externally_visible no_reorder public
  743. References: uxSchedulerSuspended/28 (read)uxSchedulerSuspended/28 (read)uxSchedulerSuspended/28 (write)uxSchedulerSuspended/28 (read)uxCurrentNumberOfTasks/17 (read)xPendingReadyList/13 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)xYieldPending/22 (write)xPendingReadyList/13 (read)xPendedTicks/21 (read)xYieldPending/22 (write)xPendedTicks/21 (write)xYieldPending/22 (read)
  744. Referring:
  745. Availability: available
  746. Function flags: body
  747. Called by: vTaskDelay/34 xTaskDelayUntil/33 uxTaskGetSystemState/53 vTaskGetInfo/72 xTaskAbortDelay/55 xTaskCatchUpTicks/54 xTaskGetHandle/52
  748. Calls: vPortExitCritical/101 xTaskIncrementTick/56 prvResetNextTaskUnblockTime/77 vPortEnterCritical/100
  749. vTaskSuspendAll/45 (vTaskSuspendAll) @06d25d20
  750. Type: function definition analyzed
  751. Visibility: force_output externally_visible no_reorder public
  752. References: uxSchedulerSuspended/28 (read)uxSchedulerSuspended/28 (write)
  753. Referring:
  754. Availability: available
  755. Function flags: body
  756. Called by: vTaskDelay/34 xTaskDelayUntil/33 uxTaskGetSystemState/53 vTaskGetInfo/72 xTaskAbortDelay/55 xTaskCatchUpTicks/54 xTaskGetHandle/52
  757. Calls:
  758. vTaskEndScheduler/44 (vTaskEndScheduler) @06d25a80
  759. Type: function definition analyzed
  760. Visibility: force_output externally_visible no_reorder public
  761. References: xSchedulerRunning/20 (write)
  762. Referring:
  763. Availability: available
  764. Function flags: body
  765. Called by:
  766. Calls: vPortEndScheduler/107
  767. vTaskStartScheduler/43 (vTaskStartScheduler) @06d257e0
  768. Type: function definition analyzed
  769. Visibility: force_output externally_visible no_reorder public
  770. References: prvIdleTask/69 (addr)xIdleTaskHandle/26 (addr)xNextTaskUnblockTime/25 (write)xSchedulerRunning/20 (write)xTickCount/18 (write)uxTopUsedPriority/27 (read)
  771. Referring:
  772. Availability: available
  773. Function flags: body
  774. Called by:
  775. Calls: xPortStartScheduler/106 xTimerCreateTimerTask/105 xTaskCreate/29
  776. xTaskResumeFromISR/42 (xTaskResumeFromISR) @06d25540
  777. Type: function definition analyzed
  778. Visibility: force_output externally_visible no_reorder public
  779. References: uxSchedulerSuspended/28 (read)pxCurrentTCB/7 (read)xYieldPending/22 (write)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xPendingReadyList/13 (addr)
  780. Referring:
  781. Availability: available
  782. Function flags: body
  783. Called by:
  784. Calls: vListInsertEnd/103 uxListRemove/102 prvTaskIsTaskSuspended/40 vPortValidateInterruptPriority/104
  785. vTaskResume/41 (vTaskResume) @06d251c0
  786. Type: function definition analyzed
  787. Visibility: force_output externally_visible no_reorder public
  788. References: pxCurrentTCB/7 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)pxCurrentTCB/7 (read)
  789. Referring:
  790. Availability: available
  791. Function flags: body
  792. Called by:
  793. Calls: vPortExitCritical/101 uxListRemove/102 prvTaskIsTaskSuspended/40 vPortEnterCritical/100
  794. prvTaskIsTaskSuspended/40 (prvTaskIsTaskSuspended) @06d1a9a0
  795. Type: function definition analyzed
  796. Visibility: force_output no_reorder prevailing_def_ironly
  797. References: xSuspendedTaskList/16 (addr)xPendingReadyList/13 (addr)
  798. Referring:
  799. Availability: available
  800. Function flags: body
  801. Called by: xTaskResumeFromISR/42 vTaskResume/41
  802. Calls:
  803. vTaskSuspend/39 (vTaskSuspend) @06d1ae00
  804. Type: function definition analyzed
  805. Visibility: force_output externally_visible no_reorder public
  806. References: pxCurrentTCB/7 (read)xSuspendedTaskList/16 (addr)xSchedulerRunning/20 (read)pxCurrentTCB/7 (read)xSchedulerRunning/20 (read)uxSchedulerSuspended/28 (read)xSuspendedTaskList/16 (read)uxCurrentNumberOfTasks/17 (read)pxCurrentTCB/7 (write)
  807. Referring:
  808. Availability: available
  809. Function flags: body
  810. Called by:
  811. Calls: vTaskSwitchContext/57 vPortExitCritical/101 prvResetNextTaskUnblockTime/77 vPortEnterCritical/100 vPortExitCritical/101 vListInsertEnd/103 uxListRemove/102 uxListRemove/102 vPortEnterCritical/100
  812. vTaskPrioritySet/38 (vTaskPrioritySet) @06d1a8c0
  813. Type: function definition analyzed
  814. Visibility: force_output externally_visible no_reorder public
  815. References: pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (read)pxReadyTasksLists/8 (addr)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)
  816. Referring:
  817. Availability: available
  818. Function flags: body
  819. Called by:
  820. Calls: vPortExitCritical/101 uxListRemove/102 vPortEnterCritical/100
  821. uxTaskPriorityGetFromISR/37 (uxTaskPriorityGetFromISR) @06d1a380
  822. Type: function definition analyzed
  823. Visibility: force_output externally_visible no_reorder public
  824. References: pxCurrentTCB/7 (read)
  825. Referring:
  826. Availability: available
  827. Function flags: body
  828. Called by:
  829. Calls: vPortValidateInterruptPriority/104
  830. uxTaskPriorityGet/36 (uxTaskPriorityGet) @06d1a000
  831. Type: function definition analyzed
  832. Visibility: force_output externally_visible no_reorder public
  833. References: pxCurrentTCB/7 (read)
  834. Referring:
  835. Availability: available
  836. Function flags: body
  837. Called by:
  838. Calls: vPortExitCritical/101 vPortEnterCritical/100
  839. eTaskGetState/35 (eTaskGetState) @06d0f2a0
  840. Type: function definition analyzed
  841. Visibility: force_output externally_visible no_reorder public
  842. References: pxCurrentTCB/7 (read)pxDelayedTaskList/11 (read)pxOverflowDelayedTaskList/12 (read)xSuspendedTaskList/16 (addr)xTasksWaitingTermination/14 (addr)
  843. Referring:
  844. Availability: available
  845. Function flags: body
  846. Called by: vTaskGetInfo/72 xTaskAbortDelay/55
  847. Calls: vPortExitCritical/101 vPortEnterCritical/100
  848. vTaskDelay/34 (vTaskDelay) @06d0fc40
  849. Type: function definition analyzed
  850. Visibility: force_output externally_visible no_reorder public
  851. References: uxSchedulerSuspended/28 (read)
  852. Referring:
  853. Availability: available
  854. Function flags: body
  855. Called by:
  856. Calls: xTaskResumeAll/46 prvAddCurrentTaskToDelayedList/94 vTaskSuspendAll/45
  857. xTaskDelayUntil/33 (xTaskDelayUntil) @06d0f7e0
  858. Type: function definition analyzed
  859. Visibility: force_output externally_visible no_reorder public
  860. References: uxSchedulerSuspended/28 (read)xTickCount/18 (read)
  861. Referring:
  862. Availability: available
  863. Function flags: body
  864. Called by:
  865. Calls: xTaskResumeAll/46 prvAddCurrentTaskToDelayedList/94 vTaskSuspendAll/45
  866. vTaskDelete/32 (vTaskDelete) @06d0f1c0
  867. Type: function definition analyzed
  868. Visibility: force_output externally_visible no_reorder public
  869. References: pxCurrentTCB/7 (read)uxTaskNumber/24 (read)uxTaskNumber/24 (write)pxCurrentTCB/7 (read)xTasksWaitingTermination/14 (addr)uxDeletedTasksWaitingCleanUp/15 (read)uxDeletedTasksWaitingCleanUp/15 (write)uxCurrentNumberOfTasks/17 (read)uxCurrentNumberOfTasks/17 (write)xSchedulerRunning/20 (read)pxCurrentTCB/7 (read)uxSchedulerSuspended/28 (read)
  870. Referring:
  871. Availability: available
  872. Function flags: body
  873. Called by:
  874. Calls: vPortExitCritical/101 prvResetNextTaskUnblockTime/77 prvDeleteTCB/76 vListInsertEnd/103 uxListRemove/102 uxListRemove/102 vPortEnterCritical/100
  875. prvAddNewTaskToReadyList/31 (prvAddNewTaskToReadyList) @06cf8540
  876. Type: function definition analyzed
  877. Visibility: force_output no_reorder prevailing_def_ironly
  878. References: uxCurrentNumberOfTasks/17 (read)uxCurrentNumberOfTasks/17 (write)pxCurrentTCB/7 (read)pxCurrentTCB/7 (write)uxCurrentNumberOfTasks/17 (read)xSchedulerRunning/20 (read)pxCurrentTCB/7 (read)pxCurrentTCB/7 (write)uxTaskNumber/24 (read)uxTaskNumber/24 (write)uxTaskNumber/24 (read)uxTopReadyPriority/19 (read)uxTopReadyPriority/19 (write)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (addr)pxReadyTasksLists/8 (read)pxReadyTasksLists/8 (write)xSchedulerRunning/20 (read)pxCurrentTCB/7 (read)
  879. Referring:
  880. Availability: available
  881. Function flags: body
  882. Called by: xTaskCreate/29
  883. Calls: vPortExitCritical/101 prvInitialiseTaskLists/70 vPortEnterCritical/100
  884. prvInitialiseNewTask/30 (prvInitialiseNewTask) @06cf8c40
  885. Type: function definition analyzed
  886. Visibility: force_output no_reorder prevailing_def_ironly
  887. References:
  888. Referring:
  889. Availability: available
  890. Function flags: body
  891. Called by: xTaskCreate/29
  892. Calls: pxPortInitialiseStack/99 memset/97 memset/97 vListInitialiseItem/98 vListInitialiseItem/98 memset/97
  893. xTaskCreate/29 (xTaskCreate) @06cf8700
  894. Type: function definition analyzed
  895. Visibility: force_output externally_visible no_reorder public
  896. References:
  897. Referring:
  898. Availability: available
  899. Function flags: body
  900. Called by: vTaskStartScheduler/43
  901. Calls: prvAddNewTaskToReadyList/31 prvInitialiseNewTask/30 vPortFree/96 pvPortMalloc/95 pvPortMalloc/95
  902. uxSchedulerSuspended/28 (uxSchedulerSuspended) @06cf15a0
  903. Type: variable definition analyzed
  904. Visibility: force_output no_reorder prevailing_def_ironly
  905. References:
  906. Referring: xTaskRemoveFromEventList/61 (read)xTaskGenericNotifyFromISR/90 (read)vTaskGenericNotifyGiveFromISR/91 (read)vTaskRemoveFromUnorderedEventList/62 (read)xTaskGetSchedulerState/79 (read)xTaskCatchUpTicks/54 (read)vTaskDelay/34 (read)vTaskSwitchContext/57 (read)xTaskResumeAll/46 (read)vTaskSuspendAll/45 (read)vTaskSuspend/39 (read)xTaskIncrementTick/56 (read)vTaskDelete/32 (read)xTaskResumeFromISR/42 (read)xTaskDelayUntil/33 (read)vTaskSuspendAll/45 (write)xTaskResumeAll/46 (read)xTaskResumeAll/46 (read)xTaskResumeAll/46 (write)vTaskPlaceOnUnorderedEventList/59 (read)
  907. Availability: available
  908. Varpool flags: initialized
  909. uxTopUsedPriority/27 (uxTopUsedPriority) @06cf1510
  910. Type: variable definition analyzed
  911. Visibility: force_output externally_visible no_reorder public
  912. References:
  913. Referring: vTaskStartScheduler/43 (read)
  914. Availability: available
  915. Varpool flags: initialized read-only
  916. xIdleTaskHandle/26 (xIdleTaskHandle) @06cf1480
  917. Type: variable definition analyzed
  918. Visibility: force_output no_reorder prevailing_def_ironly
  919. References:
  920. Referring: vTaskStartScheduler/43 (addr)
  921. Availability: available
  922. Varpool flags: initialized
  923. xNextTaskUnblockTime/25 (xNextTaskUnblockTime) @06cf13f0
  924. Type: variable definition analyzed
  925. Visibility: force_output no_reorder prevailing_def_ironly
  926. References:
  927. Referring: prvResetNextTaskUnblockTime/77 (write)xTaskIncrementTick/56 (write)xTaskIncrementTick/56 (write)vTaskStartScheduler/43 (write)prvResetNextTaskUnblockTime/77 (write)xTaskIncrementTick/56 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (write)
  928. Availability: available
  929. Varpool flags: initialized
  930. uxTaskNumber/24 (uxTaskNumber) @06cf1360
  931. Type: variable definition analyzed
  932. Visibility: force_output no_reorder prevailing_def_ironly
  933. References:
  934. Referring: prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (write)prvAddNewTaskToReadyList/31 (read)vTaskDelete/32 (read)vTaskDelete/32 (write)
  935. Availability: available
  936. Varpool flags: initialized
  937. xNumOfOverflows/23 (xNumOfOverflows) @06cf1318
  938. Type: variable definition analyzed
  939. Visibility: force_output no_reorder prevailing_def_ironly
  940. References:
  941. Referring: xTaskCheckForTimeOut/65 (read)vTaskInternalSetTimeOutState/64 (read)vTaskSetTimeOutState/63 (read)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)
  942. Availability: available
  943. Varpool flags: initialized
  944. xYieldPending/22 (xYieldPending) @06cf12d0
  945. Type: variable definition analyzed
  946. Visibility: force_output no_reorder prevailing_def_ironly
  947. References:
  948. Referring: xTaskAbortDelay/55 (write)xTaskRemoveFromEventList/61 (write)vTaskSwitchContext/57 (write)vTaskMissedYield/66 (write)xTaskIncrementTick/56 (read)vTaskRemoveFromUnorderedEventList/62 (write)xTaskResumeAll/46 (read)xTaskGenericNotifyFromISR/90 (write)xTaskResumeFromISR/42 (write)vTaskSwitchContext/57 (write)xTaskResumeAll/46 (write)xTaskResumeAll/46 (write)vTaskGenericNotifyGiveFromISR/91 (write)
  949. Availability: available
  950. Varpool flags: initialized
  951. xPendedTicks/21 (xPendedTicks) @06cf1240
  952. Type: variable definition analyzed
  953. Visibility: force_output no_reorder prevailing_def_ironly
  954. References:
  955. Referring: xTaskResumeAll/46 (read)xTaskResumeAll/46 (write)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)xTaskCatchUpTicks/54 (read)xTaskCatchUpTicks/54 (write)
  956. Availability: available
  957. Varpool flags: initialized
  958. xSchedulerRunning/20 (xSchedulerRunning) @06cf11b0
  959. Type: variable definition analyzed
  960. Visibility: force_output no_reorder prevailing_def_ironly
  961. References:
  962. Referring: vTaskDelete/32 (read)vTaskSuspend/39 (read)prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (read)vTaskStartScheduler/43 (write)vTaskEndScheduler/44 (write)vTaskSuspend/39 (read)xTaskGetSchedulerState/79 (read)
  963. Availability: available
  964. Varpool flags: initialized
  965. uxTopReadyPriority/19 (uxTopReadyPriority) @06cf1120
  966. Type: variable definition analyzed
  967. Visibility: force_output no_reorder prevailing_def_ironly
  968. References:
  969. Referring: xTaskRemoveFromEventList/61 (read)xTaskRemoveFromEventList/61 (write)xTaskGenericNotify/89 (read)xTaskGenericNotify/89 (write)xTaskGenericNotifyFromISR/90 (read)xTaskGenericNotifyFromISR/90 (write)vTaskPrioritySet/38 (read)vTaskPrioritySet/38 (write)prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (write)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)vTaskRemoveFromUnorderedEventList/62 (read)vTaskRemoveFromUnorderedEventList/62 (write)vTaskResume/41 (read)vTaskResume/41 (write)xTaskResumeFromISR/42 (read)xTaskResumeFromISR/42 (write)vTaskSwitchContext/57 (read)vTaskSwitchContext/57 (write)xTaskResumeAll/46 (read)xTaskResumeAll/46 (write)xTaskAbortDelay/55 (read)xTaskAbortDelay/55 (write)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (write)xTaskPriorityDisinherit/81 (read)xTaskPriorityDisinherit/81 (write)vTaskPriorityDisinheritAfterTimeout/82 (read)vTaskPriorityDisinheritAfterTimeout/82 (write)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (write)
  970. Availability: available
  971. Varpool flags: initialized
  972. xTickCount/18 (xTickCount) @06cf10d8
  973. Type: variable definition analyzed
  974. Visibility: force_output no_reorder prevailing_def_ironly
  975. References:
  976. Referring: xTaskGenericNotifyFromISR/90 (read)vTaskInternalSetTimeOutState/64 (read)xTaskGenericNotify/89 (read)prvAddCurrentTaskToDelayedList/94 (read)xTaskIncrementTick/56 (write)xTaskCheckForTimeOut/65 (read)xTaskGetTickCount/47 (read)xTaskGetTickCountFromISR/48 (read)vTaskSetTimeOutState/63 (read)vTaskStartScheduler/43 (write)xTaskIncrementTick/56 (read)xTaskDelayUntil/33 (read)
  977. Availability: available
  978. Varpool flags: initialized
  979. uxCurrentNumberOfTasks/17 (uxCurrentNumberOfTasks) @06cf1090
  980. Type: variable definition analyzed
  981. Visibility: force_output no_reorder prevailing_def_ironly
  982. References:
  983. Referring: uxTaskGetNumberOfTasks/49 (read)prvCheckTasksWaitingTermination/71 (read)uxTaskGetSystemState/53 (read)prvAddNewTaskToReadyList/31 (write)prvAddNewTaskToReadyList/31 (read)prvCheckTasksWaitingTermination/71 (write)vTaskDelete/32 (write)xTaskResumeAll/46 (read)vTaskSuspend/39 (read)vTaskDelete/32 (read)prvAddNewTaskToReadyList/31 (read)vTaskList/84 (read)vTaskList/84 (read)
  984. Availability: available
  985. Varpool flags: initialized
  986. xSuspendedTaskList/16 (xSuspendedTaskList) @06ceef78
  987. Type: variable definition analyzed
  988. Visibility: force_output no_reorder prevailing_def_ironly
  989. References:
  990. Referring: xTaskGetHandle/52 (addr)vTaskSuspend/39 (addr)prvTaskIsTaskSuspended/40 (addr)uxTaskGetSystemState/53 (addr)prvInitialiseTaskLists/70 (addr)vTaskSuspend/39 (read)eTaskGetState/35 (addr)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (addr)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (write)
  991. Availability: available
  992. Varpool flags:
  993. uxDeletedTasksWaitingCleanUp/15 (uxDeletedTasksWaitingCleanUp) @06ceeee8
  994. Type: variable definition analyzed
  995. Visibility: force_output no_reorder prevailing_def_ironly
  996. References:
  997. Referring: prvCheckTasksWaitingTermination/71 (write)prvCheckTasksWaitingTermination/71 (read)prvCheckTasksWaitingTermination/71 (read)vTaskDelete/32 (read)vTaskDelete/32 (write)
  998. Availability: available
  999. Varpool flags: initialized
  1000. xTasksWaitingTermination/14 (xTasksWaitingTermination) @06ceee58
  1001. Type: variable definition analyzed
  1002. Visibility: force_output no_reorder prevailing_def_ironly
  1003. References:
  1004. Referring: prvInitialiseTaskLists/70 (addr)eTaskGetState/35 (addr)prvCheckTasksWaitingTermination/71 (read)vTaskDelete/32 (addr)xTaskGetHandle/52 (addr)uxTaskGetSystemState/53 (addr)
  1005. Availability: available
  1006. Varpool flags:
  1007. xPendingReadyList/13 (xPendingReadyList) @06ceedc8
  1008. Type: variable definition analyzed
  1009. Visibility: force_output no_reorder prevailing_def_ironly
  1010. References:
  1011. Referring: xTaskResumeAll/46 (read)xTaskGenericNotifyFromISR/90 (write)xTaskGenericNotifyFromISR/90 (read)xTaskRemoveFromEventList/61 (write)xTaskRemoveFromEventList/61 (read)xTaskRemoveFromEventList/61 (addr)xTaskResumeAll/46 (read)prvTaskIsTaskSuspended/40 (addr)xTaskResumeFromISR/42 (addr)xTaskGenericNotifyFromISR/90 (read)xTaskGenericNotifyFromISR/90 (addr)xTaskRemoveFromEventList/61 (read)prvInitialiseTaskLists/70 (addr)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (addr)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (write)
  1012. Availability: available
  1013. Varpool flags:
  1014. pxOverflowDelayedTaskList/12 (pxOverflowDelayedTaskList) @06ceed38
  1015. Type: variable definition analyzed
  1016. Visibility: force_output no_reorder prevailing_def_ironly
  1017. References:
  1018. Referring: xTaskGetHandle/52 (read)prvInitialiseTaskLists/70 (write)xTaskIncrementTick/56 (write)uxTaskGetSystemState/53 (read)eTaskGetState/35 (read)xTaskIncrementTick/56 (read)prvAddCurrentTaskToDelayedList/94 (read)
  1019. Availability: available
  1020. Varpool flags:
  1021. pxDelayedTaskList/11 (pxDelayedTaskList) @06ceecf0
  1022. Type: variable definition analyzed
  1023. Visibility: force_output no_reorder prevailing_def_ironly
  1024. References:
  1025. Referring: xTaskGetHandle/52 (read)prvResetNextTaskUnblockTime/77 (read)xTaskIncrementTick/56 (read)prvInitialiseTaskLists/70 (write)uxTaskGetSystemState/53 (read)eTaskGetState/35 (read)prvResetNextTaskUnblockTime/77 (read)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)xTaskIncrementTick/56 (read)prvAddCurrentTaskToDelayedList/94 (read)
  1026. Availability: available
  1027. Varpool flags:
  1028. xDelayedTaskList2/10 (xDelayedTaskList2) @06ceeca8
  1029. Type: variable definition analyzed
  1030. Visibility: force_output no_reorder prevailing_def_ironly
  1031. References:
  1032. Referring: prvInitialiseTaskLists/70 (addr)prvInitialiseTaskLists/70 (addr)
  1033. Availability: available
  1034. Varpool flags:
  1035. xDelayedTaskList1/9 (xDelayedTaskList1) @06ceec18
  1036. Type: variable definition analyzed
  1037. Visibility: force_output no_reorder prevailing_def_ironly
  1038. References:
  1039. Referring: prvInitialiseTaskLists/70 (addr)prvInitialiseTaskLists/70 (addr)
  1040. Availability: available
  1041. Varpool flags:
  1042. pxReadyTasksLists/8 (pxReadyTasksLists) @06ceeb88
  1043. Type: variable definition analyzed
  1044. Visibility: force_output no_reorder prevailing_def_ironly
  1045. References:
  1046. Referring: xTaskRemoveFromEventList/61 (read)xTaskRemoveFromEventList/61 (addr)xTaskRemoveFromEventList/61 (read)vTaskRemoveFromUnorderedEventList/62 (write)vTaskPriorityDisinheritAfterTimeout/82 (write)xTaskGenericNotify/89 (read)xTaskGenericNotify/89 (addr)xTaskGenericNotify/89 (read)xTaskGenericNotify/89 (write)xTaskGenericNotifyFromISR/90 (read)xTaskGenericNotifyFromISR/90 (addr)xTaskGenericNotifyFromISR/90 (read)xTaskGenericNotifyFromISR/90 (write)vTaskPrioritySet/38 (read)vTaskPrioritySet/38 (addr)vTaskPrioritySet/38 (read)vTaskPrioritySet/38 (write)prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (addr)prvAddNewTaskToReadyList/31 (read)prvIdleTask/69 (read)xTaskIncrementTick/56 (read)xTaskGetHandle/52 (addr)xTaskIncrementTick/56 (addr)xTaskIncrementTick/56 (read)xTaskIncrementTick/56 (write)xTaskResumeAll/46 (write)xTaskPriorityInherit/80 (addr)vTaskRemoveFromUnorderedEventList/62 (read)vTaskRemoveFromUnorderedEventList/62 (addr)vTaskRemoveFromUnorderedEventList/62 (read)prvAddNewTaskToReadyList/31 (write)vTaskResume/41 (read)vTaskResume/41 (write)vTaskResume/41 (read)vTaskResume/41 (addr)xTaskResumeFromISR/42 (read)xTaskResumeFromISR/42 (write)xTaskResumeFromISR/42 (read)xTaskResumeFromISR/42 (addr)vTaskSwitchContext/57 (read)vTaskSwitchContext/57 (addr)prvInitialiseTaskLists/70 (addr)xTaskRemoveFromEventList/61 (write)vTaskPrioritySet/38 (addr)xTaskResumeAll/46 (read)xTaskResumeAll/46 (addr)xTaskResumeAll/46 (read)xTaskAbortDelay/55 (write)xTaskAbortDelay/55 (read)xTaskAbortDelay/55 (addr)xTaskAbortDelay/55 (read)uxTaskGetSystemState/53 (addr)xTaskIncrementTick/56 (read)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (addr)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (write)xTaskPriorityDisinherit/81 (read)xTaskPriorityDisinherit/81 (addr)xTaskPriorityDisinherit/81 (read)xTaskPriorityDisinherit/81 (write)vTaskPriorityDisinheritAfterTimeout/82 (read)vTaskPriorityDisinheritAfterTimeout/82 (addr)vTaskPriorityDisinheritAfterTimeout/82 (read)vTaskPriorityDisinheritAfterTimeout/82 (addr)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (addr)vTaskGenericNotifyGiveFromISR/91 (read)vTaskGenericNotifyGiveFromISR/91 (write)
  1047. Availability: available
  1048. Varpool flags:
  1049. pxCurrentTCB/7 (pxCurrentTCB) @06ceeb40
  1050. Type: variable definition analyzed
  1051. Visibility: force_output externally_visible no_reorder public
  1052. References:
  1053. Referring: prvAddNewTaskToReadyList/31 (read)ulTaskGenericNotifyTake/87 (read)ulTaskGenericNotifyTake/87 (read)vTaskResume/41 (read)vTaskRemoveFromUnorderedEventList/62 (read)vTaskPrioritySet/38 (read)xTaskCheckForTimeOut/65 (read)prvAddNewTaskToReadyList/31 (read)xTaskGenericNotifyStateClear/92 (read)ulTaskGenericNotifyTake/87 (read)eTaskGetState/35 (read)prvAddNewTaskToReadyList/31 (write)uxTaskResetEventItemValue/85 (read)uxTaskResetEventItemValue/85 (read)uxTaskPriorityGet/36 (read)prvAddNewTaskToReadyList/31 (read)prvAddNewTaskToReadyList/31 (write)uxTaskGetStackHighWaterMark/75 (read)ulTaskGenericNotifyTake/87 (read)uxTaskPriorityGetFromISR/37 (read)vTaskPrioritySet/38 (read)vTaskSuspend/39 (write)vTaskResume/41 (read)xTaskIncrementTick/56 (read)vTaskDelete/32 (read)vTaskDelete/32 (read)xTaskResumeFromISR/42 (read)ulTaskGenericNotifyValueClear/93 (read)ulTaskGenericNotifyTake/87 (read)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (read)pvTaskIncrementMutexHeldCount/86 (read)pvTaskIncrementMutexHeldCount/86 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)vTaskPlaceOnEventList/58 (read)pcTaskGetName/50 (read)vTaskSwitchContext/57 (write)vTaskPrioritySet/38 (read)xTaskRemoveFromEventList/61 (read)vTaskSuspend/39 (read)xTaskResumeAll/46 (read)xTaskCheckForTimeOut/65 (read)xTaskAbortDelay/55 (read)ulTaskGenericNotifyTake/87 (read)vTaskPrioritySet/38 (read)vTaskDelete/32 (read)xTaskIncrementTick/56 (read)vTaskGetInfo/72 (read)xTaskGetCurrentTaskHandle/78 (read)xTaskPriorityInherit/80 (read)vTaskSuspend/39 (read)vTaskGetInfo/72 (read)xTaskPriorityDisinherit/81 (read)xTaskPriorityInherit/80 (read)xTaskPriorityInherit/80 (read)vTaskPriorityDisinheritAfterTimeout/82 (read)prvAddCurrentTaskToDelayedList/94 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnUnorderedEventList/59 (read)prvAddCurrentTaskToDelayedList/94 (read)vTaskPlaceOnUnorderedEventList/59 (read)vTaskPlaceOnEventListRestricted/60 (read)vTaskPlaceOnEventListRestricted/60 (read)vTaskPlaceOnEventListRestricted/60 (read)vTaskPlaceOnEventListRestricted/60 (read)vTaskPlaceOnEventListRestricted/60 (read)uxTaskResetEventItemValue/85 (read)pvTaskIncrementMutexHeldCount/86 (read)xTaskGenericNotify/89 (read)xTaskGenericNotifyFromISR/90 (read)vTaskGenericNotifyGiveFromISR/91 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)prvAddCurrentTaskToDelayedList/94 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)xTaskGenericNotifyWait/88 (read)
  1054. Availability: available
  1055. Varpool flags: initialized
  1056. ;; Function xTaskCreate (xTaskCreate, funcdef_no=7, decl_uid=6139, cgraph_uid=8, symbol_order=29)
  1057. xTaskCreate (void (*TaskFunction_t) (void *) pxTaskCode, const char * const pcName, const uint16_t usStackDepth, void * const pvParameters, UBaseType_t uxPriority, struct tskTaskControlBlock * * const pxCreatedTask)
  1058. {
  1059. StackType_t * pxStack;
  1060. BaseType_t xReturn;
  1061. struct TCB_t * pxNewTCB;
  1062. BaseType_t D.7508;
  1063. unsigned int _1;
  1064. unsigned int _2;
  1065. long unsigned int _3;
  1066. BaseType_t _26;
  1067. <bb 2> :
  1068. _1 = (unsigned int) usStackDepth_8(D);
  1069. _2 = _1 * 4;
  1070. pxStack_11 = pvPortMalloc (_2);
  1071. if (pxStack_11 != 0B)
  1072. goto <bb 3>; [INV]
  1073. else
  1074. goto <bb 6>; [INV]
  1075. <bb 3> :
  1076. pxNewTCB_14 = pvPortMalloc (88);
  1077. if (pxNewTCB_14 != 0B)
  1078. goto <bb 4>; [INV]
  1079. else
  1080. goto <bb 5>; [INV]
  1081. <bb 4> :
  1082. pxNewTCB_14->pxStack = pxStack_11;
  1083. goto <bb 7>; [INV]
  1084. <bb 5> :
  1085. vPortFree (pxStack_11);
  1086. goto <bb 7>; [INV]
  1087. <bb 6> :
  1088. pxNewTCB_12 = 0B;
  1089. <bb 7> :
  1090. # pxNewTCB_4 = PHI <pxNewTCB_14(5), pxNewTCB_12(6), pxNewTCB_14(4)>
  1091. if (pxNewTCB_4 != 0B)
  1092. goto <bb 8>; [INV]
  1093. else
  1094. goto <bb 9>; [INV]
  1095. <bb 8> :
  1096. _3 = (long unsigned int) usStackDepth_8(D);
  1097. prvInitialiseNewTask (pxTaskCode_18(D), pcName_19(D), _3, pvParameters_20(D), uxPriority_21(D), pxCreatedTask_22(D), pxNewTCB_4, 0B);
  1098. prvAddNewTaskToReadyList (pxNewTCB_4);
  1099. xReturn_25 = 1;
  1100. goto <bb 10>; [INV]
  1101. <bb 9> :
  1102. xReturn_17 = -1;
  1103. <bb 10> :
  1104. # xReturn_5 = PHI <xReturn_25(8), xReturn_17(9)>
  1105. _26 = xReturn_5;
  1106. <bb 11> :
  1107. <L9>:
  1108. return _26;
  1109. }
  1110. ;; Function prvInitialiseNewTask (prvInitialiseNewTask, funcdef_no=8, decl_uid=6973, cgraph_uid=9, symbol_order=30)
  1111. prvInitialiseNewTask (void (*TaskFunction_t) (void *) pxTaskCode, const char * const pcName, const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, struct tskTaskControlBlock * * const pxCreatedTask, struct TCB_t * pxNewTCB, const struct MemoryRegion_t * const xRegions)
  1112. {
  1113. uint32_t ulNewBASEPRI;
  1114. uint32_t ulNewBASEPRI;
  1115. UBaseType_t x;
  1116. StackType_t * pxTopOfStack;
  1117. StackType_t * _1;
  1118. unsigned int _2;
  1119. StackType_t * _3;
  1120. sizetype _4;
  1121. sizetype _5;
  1122. long unsigned int pxTopOfStack.0_6;
  1123. long unsigned int _7;
  1124. long unsigned int pxTopOfStack.1_8;
  1125. long unsigned int _9;
  1126. const char * _10;
  1127. char _11;
  1128. const char * _12;
  1129. char _13;
  1130. struct ListItem_t * _14;
  1131. struct ListItem_t * _15;
  1132. long unsigned int _16;
  1133. volatile uint32_t * _17;
  1134. volatile uint8_t * _18;
  1135. StackType_t * _19;
  1136. <bb 2> :
  1137. _1 = pxNewTCB_27(D)->pxStack;
  1138. _2 = ulStackDepth_28(D) * 4;
  1139. memset (_1, 165, _2);
  1140. _3 = pxNewTCB_27(D)->pxStack;
  1141. _4 = ulStackDepth_28(D) + 1073741823;
  1142. _5 = _4 * 4;
  1143. pxTopOfStack_30 = _3 + _5;
  1144. pxTopOfStack.0_6 = (long unsigned int) pxTopOfStack_30;
  1145. _7 = pxTopOfStack.0_6 & 4294967288;
  1146. pxTopOfStack_31 = (StackType_t *) _7;
  1147. pxTopOfStack.1_8 = (long unsigned int) pxTopOfStack_31;
  1148. _9 = pxTopOfStack.1_8 & 7;
  1149. if (_9 != 0)
  1150. goto <bb 3>; [INV]
  1151. else
  1152. goto <bb 6>; [INV]
  1153. <bb 3> :
  1154. __asm__ __volatile__(" mov %0, %1
  1155. msr basepri, %0
  1156. isb
  1157. dsb
  1158. " : "=r" ulNewBASEPRI_57 : "i" 16 : "memory");
  1159. <bb 4> :
  1160. <bb 5> :
  1161. goto <bb 5>; [INV]
  1162. <bb 6> :
  1163. if (pcName_32(D) != 0B)
  1164. goto <bb 7>; [INV]
  1165. else
  1166. goto <bb 13>; [INV]
  1167. <bb 7> :
  1168. x_34 = 0;
  1169. goto <bb 11>; [INV]
  1170. <bb 8> :
  1171. _10 = pcName_32(D) + x_21;
  1172. _11 = *_10;
  1173. pxNewTCB_27(D)->pcTaskName[x_21] = _11;
  1174. _12 = pcName_32(D) + x_21;
  1175. _13 = *_12;
  1176. if (_13 == 0)
  1177. goto <bb 9>; [INV]
  1178. else
  1179. goto <bb 10>; [INV]
  1180. <bb 9> :
  1181. goto <bb 12>; [INV]
  1182. <bb 10> :
  1183. x_36 = x_21 + 1;
  1184. <bb 11> :
  1185. # x_21 = PHI <x_34(7), x_36(10)>
  1186. if (x_21 <= 9)
  1187. goto <bb 8>; [INV]
  1188. else
  1189. goto <bb 12>; [INV]
  1190. <bb 12> :
  1191. pxNewTCB_27(D)->pcTaskName[9] = 0;
  1192. goto <bb 14>; [INV]
  1193. <bb 13> :
  1194. pxNewTCB_27(D)->pcTaskName[0] = 0;
  1195. <bb 14> :
  1196. if (uxPriority_38(D) > 4)
  1197. goto <bb 15>; [INV]
  1198. else
  1199. goto <bb 18>; [INV]
  1200. <bb 15> :
  1201. __asm__ __volatile__(" mov %0, %1
  1202. msr basepri, %0
  1203. isb
  1204. dsb
  1205. " : "=r" ulNewBASEPRI_58 : "i" 16 : "memory");
  1206. <bb 16> :
  1207. <bb 17> :
  1208. goto <bb 17>; [INV]
  1209. <bb 18> :
  1210. if (uxPriority_38(D) > 4)
  1211. goto <bb 19>; [INV]
  1212. else
  1213. goto <bb 20>; [INV]
  1214. <bb 19> :
  1215. uxPriority_39 = 4;
  1216. <bb 20> :
  1217. # uxPriority_20 = PHI <uxPriority_38(D)(18), uxPriority_39(19)>
  1218. pxNewTCB_27(D)->uxPriority = uxPriority_20;
  1219. pxNewTCB_27(D)->uxBasePriority = uxPriority_20;
  1220. pxNewTCB_27(D)->uxMutexesHeld = 0;
  1221. _14 = &pxNewTCB_27(D)->xStateListItem;
  1222. vListInitialiseItem (_14);
  1223. _15 = &pxNewTCB_27(D)->xEventListItem;
  1224. vListInitialiseItem (_15);
  1225. pxNewTCB_27(D)->xStateListItem.pvOwner = pxNewTCB_27(D);
  1226. _16 = 5 - uxPriority_20;
  1227. pxNewTCB_27(D)->xEventListItem.xItemValue = _16;
  1228. pxNewTCB_27(D)->xEventListItem.pvOwner = pxNewTCB_27(D);
  1229. _17 = &pxNewTCB_27(D)->ulNotifiedValue[0];
  1230. memset (_17, 0, 4);
  1231. _18 = &pxNewTCB_27(D)->ucNotifyState[0];
  1232. memset (_18, 0, 1);
  1233. pxNewTCB_27(D)->ucDelayAborted = 0;
  1234. _19 = pxPortInitialiseStack (pxTopOfStack_31, pxTaskCode_51(D), pvParameters_52(D));
  1235. pxNewTCB_27(D)->pxTopOfStack = _19;
  1236. if (pxCreatedTask_55(D) != 0B)
  1237. goto <bb 21>; [INV]
  1238. else
  1239. goto <bb 22>; [INV]
  1240. <bb 21> :
  1241. *pxCreatedTask_55(D) = pxNewTCB_27(D);
  1242. <bb 22> :
  1243. return;
  1244. }
  1245. ;; Function prvAddNewTaskToReadyList (prvAddNewTaskToReadyList, funcdef_no=9, decl_uid=6975, cgraph_uid=10, symbol_order=31)
  1246. prvAddNewTaskToReadyList (struct TCB_t * pxNewTCB)
  1247. {
  1248. struct ListItem_t * const pxIndex;
  1249. long unsigned int uxCurrentNumberOfTasks.2_1;
  1250. long unsigned int _2;
  1251. struct TCB_t * pxCurrentTCB.3_3;
  1252. long unsigned int uxCurrentNumberOfTasks.4_4;
  1253. long int xSchedulerRunning.5_5;
  1254. struct TCB_t * pxCurrentTCB.6_6;
  1255. long unsigned int _7;
  1256. long unsigned int _8;
  1257. long unsigned int uxTaskNumber.7_9;
  1258. long unsigned int _10;
  1259. long unsigned int uxTaskNumber.8_11;
  1260. long unsigned int _12;
  1261. long unsigned int uxTopReadyPriority.9_13;
  1262. long unsigned int _14;
  1263. long unsigned int _15;
  1264. struct xLIST_ITEM * _16;
  1265. struct xLIST_ITEM * _17;
  1266. struct ListItem_t * _18;
  1267. struct ListItem_t * _19;
  1268. long unsigned int _20;
  1269. struct List_t * _21;
  1270. long unsigned int _22;
  1271. long unsigned int _23;
  1272. long unsigned int _24;
  1273. long int xSchedulerRunning.10_25;
  1274. struct TCB_t * pxCurrentTCB.11_26;
  1275. long unsigned int _27;
  1276. long unsigned int _28;
  1277. volatile uint32_t * _29;
  1278. <bb 2> :
  1279. vPortEnterCritical ();
  1280. uxCurrentNumberOfTasks.2_1 ={v} uxCurrentNumberOfTasks;
  1281. _2 = uxCurrentNumberOfTasks.2_1 + 1;
  1282. uxCurrentNumberOfTasks ={v} _2;
  1283. pxCurrentTCB.3_3 ={v} pxCurrentTCB;
  1284. if (pxCurrentTCB.3_3 == 0B)
  1285. goto <bb 3>; [INV]
  1286. else
  1287. goto <bb 5>; [INV]
  1288. <bb 3> :
  1289. pxCurrentTCB ={v} pxNewTCB_36(D);
  1290. uxCurrentNumberOfTasks.4_4 ={v} uxCurrentNumberOfTasks;
  1291. if (uxCurrentNumberOfTasks.4_4 == 1)
  1292. goto <bb 4>; [INV]
  1293. else
  1294. goto <bb 8>; [INV]
  1295. <bb 4> :
  1296. prvInitialiseTaskLists ();
  1297. goto <bb 8>; [INV]
  1298. <bb 5> :
  1299. xSchedulerRunning.5_5 ={v} xSchedulerRunning;
  1300. if (xSchedulerRunning.5_5 == 0)
  1301. goto <bb 6>; [INV]
  1302. else
  1303. goto <bb 8>; [INV]
  1304. <bb 6> :
  1305. pxCurrentTCB.6_6 ={v} pxCurrentTCB;
  1306. _7 = pxCurrentTCB.6_6->uxPriority;
  1307. _8 = pxNewTCB_36(D)->uxPriority;
  1308. if (_7 <= _8)
  1309. goto <bb 7>; [INV]
  1310. else
  1311. goto <bb 8>; [INV]
  1312. <bb 7> :
  1313. pxCurrentTCB ={v} pxNewTCB_36(D);
  1314. <bb 8> :
  1315. uxTaskNumber.7_9 = uxTaskNumber;
  1316. _10 = uxTaskNumber.7_9 + 1;
  1317. uxTaskNumber = _10;
  1318. uxTaskNumber.8_11 = uxTaskNumber;
  1319. pxNewTCB_36(D)->uxTCBNumber = uxTaskNumber.8_11;
  1320. _12 = pxNewTCB_36(D)->uxPriority;
  1321. uxTopReadyPriority.9_13 ={v} uxTopReadyPriority;
  1322. if (_12 > uxTopReadyPriority.9_13)
  1323. goto <bb 9>; [INV]
  1324. else
  1325. goto <bb 10>; [INV]
  1326. <bb 9> :
  1327. _14 = pxNewTCB_36(D)->uxPriority;
  1328. uxTopReadyPriority ={v} _14;
  1329. <bb 10> :
  1330. _15 = pxNewTCB_36(D)->uxPriority;
  1331. pxIndex_43 = pxReadyTasksLists[_15].pxIndex;
  1332. pxNewTCB_36(D)->xStateListItem.pxNext = pxIndex_43;
  1333. _16 = pxIndex_43->pxPrevious;
  1334. pxNewTCB_36(D)->xStateListItem.pxPrevious = _16;
  1335. _17 = pxIndex_43->pxPrevious;
  1336. _18 = &pxNewTCB_36(D)->xStateListItem;
  1337. _17->pxNext = _18;
  1338. _19 = &pxNewTCB_36(D)->xStateListItem;
  1339. pxIndex_43->pxPrevious = _19;
  1340. _20 = pxNewTCB_36(D)->uxPriority;
  1341. _21 = &pxReadyTasksLists[_20];
  1342. pxNewTCB_36(D)->xStateListItem.pvContainer = _21;
  1343. _22 = pxNewTCB_36(D)->uxPriority;
  1344. _23 ={v} pxReadyTasksLists[_22].uxNumberOfItems;
  1345. _24 = _23 + 1;
  1346. pxReadyTasksLists[_22].uxNumberOfItems ={v} _24;
  1347. vPortExitCritical ();
  1348. xSchedulerRunning.10_25 ={v} xSchedulerRunning;
  1349. if (xSchedulerRunning.10_25 != 0)
  1350. goto <bb 11>; [INV]
  1351. else
  1352. goto <bb 13>; [INV]
  1353. <bb 11> :
  1354. pxCurrentTCB.11_26 ={v} pxCurrentTCB;
  1355. _27 = pxCurrentTCB.11_26->uxPriority;
  1356. _28 = pxNewTCB_36(D)->uxPriority;
  1357. if (_27 < _28)
  1358. goto <bb 12>; [INV]
  1359. else
  1360. goto <bb 13>; [INV]
  1361. <bb 12> :
  1362. _29 = 3758157060B;
  1363. *_29 ={v} 268435456;
  1364. __asm__ __volatile__("dsb" : : : "memory");
  1365. __asm__ __volatile__("isb");
  1366. <bb 13> :
  1367. return;
  1368. }
  1369. ;; Function vTaskDelete (vTaskDelete, funcdef_no=10, decl_uid=6144, cgraph_uid=11, symbol_order=32)
  1370. vTaskDelete (struct tskTaskControlBlock * xTaskToDelete)
  1371. {
  1372. uint32_t ulNewBASEPRI;
  1373. struct TCB_t * pxTCB;
  1374. struct TCB_t * iftmp.12;
  1375. struct ListItem_t * _1;
  1376. long unsigned int _2;
  1377. struct xLIST * _3;
  1378. struct ListItem_t * _4;
  1379. long unsigned int uxTaskNumber.13_5;
  1380. long unsigned int _6;
  1381. struct TCB_t * pxCurrentTCB.14_7;
  1382. struct ListItem_t * _8;
  1383. long unsigned int uxDeletedTasksWaitingCleanUp.15_9;
  1384. long unsigned int _10;
  1385. long unsigned int uxCurrentNumberOfTasks.16_11;
  1386. long unsigned int _12;
  1387. long int xSchedulerRunning.17_13;
  1388. struct TCB_t * pxCurrentTCB.18_14;
  1389. long unsigned int uxSchedulerSuspended.19_15;
  1390. volatile uint32_t * _16;
  1391. struct TCB_t * iftmp.12_17;
  1392. struct TCB_t * iftmp.12_24;
  1393. struct TCB_t * iftmp.12_25;
  1394. <bb 2> :
  1395. vPortEnterCritical ();
  1396. if (xTaskToDelete_23(D) == 0B)
  1397. goto <bb 3>; [INV]
  1398. else
  1399. goto <bb 4>; [INV]
  1400. <bb 3> :
  1401. iftmp.12_25 ={v} pxCurrentTCB;
  1402. goto <bb 5>; [INV]
  1403. <bb 4> :
  1404. iftmp.12_24 = xTaskToDelete_23(D);
  1405. <bb 5> :
  1406. # iftmp.12_17 = PHI <iftmp.12_25(3), iftmp.12_24(4)>
  1407. pxTCB_26 = iftmp.12_17;
  1408. _1 = &pxTCB_26->xStateListItem;
  1409. _2 = uxListRemove (_1);
  1410. <bb 6> :
  1411. _3 = pxTCB_26->xEventListItem.pvContainer;
  1412. if (_3 != 0B)
  1413. goto <bb 7>; [INV]
  1414. else
  1415. goto <bb 8>; [INV]
  1416. <bb 7> :
  1417. _4 = &pxTCB_26->xEventListItem;
  1418. uxListRemove (_4);
  1419. <bb 8> :
  1420. uxTaskNumber.13_5 = uxTaskNumber;
  1421. _6 = uxTaskNumber.13_5 + 1;
  1422. uxTaskNumber = _6;
  1423. pxCurrentTCB.14_7 ={v} pxCurrentTCB;
  1424. if (pxTCB_26 == pxCurrentTCB.14_7)
  1425. goto <bb 9>; [INV]
  1426. else
  1427. goto <bb 10>; [INV]
  1428. <bb 9> :
  1429. _8 = &pxTCB_26->xStateListItem;
  1430. vListInsertEnd (&xTasksWaitingTermination, _8);
  1431. uxDeletedTasksWaitingCleanUp.15_9 ={v} uxDeletedTasksWaitingCleanUp;
  1432. _10 = uxDeletedTasksWaitingCleanUp.15_9 + 1;
  1433. uxDeletedTasksWaitingCleanUp ={v} _10;
  1434. goto <bb 11>; [INV]
  1435. <bb 10> :
  1436. uxCurrentNumberOfTasks.16_11 ={v} uxCurrentNumberOfTasks;
  1437. _12 = uxCurrentNumberOfTasks.16_11 + 4294967295;
  1438. uxCurrentNumberOfTasks ={v} _12;
  1439. prvDeleteTCB (pxTCB_26);
  1440. prvResetNextTaskUnblockTime ();
  1441. <bb 11> :
  1442. vPortExitCritical ();
  1443. xSchedulerRunning.17_13 ={v} xSchedulerRunning;
  1444. if (xSchedulerRunning.17_13 != 0)
  1445. goto <bb 12>; [INV]
  1446. else
  1447. goto <bb 18>; [INV]
  1448. <bb 12> :
  1449. pxCurrentTCB.18_14 ={v} pxCurrentTCB;
  1450. if (pxTCB_26 == pxCurrentTCB.18_14)
  1451. goto <bb 13>; [INV]
  1452. else
  1453. goto <bb 18>; [INV]
  1454. <bb 13> :
  1455. uxSchedulerSuspended.19_15 ={v} uxSchedulerSuspended;
  1456. if (uxSchedulerSuspended.19_15 != 0)
  1457. goto <bb 14>; [INV]
  1458. else
  1459. goto <bb 17>; [INV]
  1460. <bb 14> :
  1461. __asm__ __volatile__(" mov %0, %1
  1462. msr basepri, %0
  1463. isb
  1464. dsb
  1465. " : "=r" ulNewBASEPRI_39 : "i" 16 : "memory");
  1466. <bb 15> :
  1467. <bb 16> :
  1468. goto <bb 16>; [INV]
  1469. <bb 17> :
  1470. _16 = 3758157060B;
  1471. *_16 ={v} 268435456;
  1472. __asm__ __volatile__("dsb" : : : "memory");
  1473. __asm__ __volatile__("isb");
  1474. <bb 18> :
  1475. return;
  1476. }
  1477. ;; Function xTaskDelayUntil (xTaskDelayUntil, funcdef_no=11, decl_uid=6149, cgraph_uid=12, symbol_order=33)
  1478. xTaskDelayUntil (TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement)
  1479. {
  1480. uint32_t ulNewBASEPRI;
  1481. uint32_t ulNewBASEPRI;
  1482. uint32_t ulNewBASEPRI;
  1483. const TickType_t xConstTickCount;
  1484. BaseType_t xShouldDelay;
  1485. BaseType_t xAlreadyYielded;
  1486. TickType_t xTimeToWake;
  1487. BaseType_t D.7588;
  1488. long unsigned int uxSchedulerSuspended.20_1;
  1489. long unsigned int _2;
  1490. long unsigned int _3;
  1491. long unsigned int _4;
  1492. long unsigned int _5;
  1493. long unsigned int _6;
  1494. volatile uint32_t * _7;
  1495. BaseType_t _27;
  1496. <bb 2> :
  1497. xShouldDelay_11 = 0;
  1498. if (pxPreviousWakeTime_12(D) == 0B)
  1499. goto <bb 3>; [INV]
  1500. else
  1501. goto <bb 6>; [INV]
  1502. <bb 3> :
  1503. __asm__ __volatile__(" mov %0, %1
  1504. msr basepri, %0
  1505. isb
  1506. dsb
  1507. " : "=r" ulNewBASEPRI_28 : "i" 16 : "memory");
  1508. <bb 4> :
  1509. <bb 5> :
  1510. goto <bb 5>; [INV]
  1511. <bb 6> :
  1512. if (xTimeIncrement_13(D) == 0)
  1513. goto <bb 7>; [INV]
  1514. else
  1515. goto <bb 10>; [INV]
  1516. <bb 7> :
  1517. __asm__ __volatile__(" mov %0, %1
  1518. msr basepri, %0
  1519. isb
  1520. dsb
  1521. " : "=r" ulNewBASEPRI_29 : "i" 16 : "memory");
  1522. <bb 8> :
  1523. <bb 9> :
  1524. goto <bb 9>; [INV]
  1525. <bb 10> :
  1526. uxSchedulerSuspended.20_1 ={v} uxSchedulerSuspended;
  1527. if (uxSchedulerSuspended.20_1 != 0)
  1528. goto <bb 11>; [INV]
  1529. else
  1530. goto <bb 14>; [INV]
  1531. <bb 11> :
  1532. __asm__ __volatile__(" mov %0, %1
  1533. msr basepri, %0
  1534. isb
  1535. dsb
  1536. " : "=r" ulNewBASEPRI_30 : "i" 16 : "memory");
  1537. <bb 12> :
  1538. <bb 13> :
  1539. goto <bb 13>; [INV]
  1540. <bb 14> :
  1541. vTaskSuspendAll ();
  1542. xConstTickCount_16 ={v} xTickCount;
  1543. _2 = *pxPreviousWakeTime_12(D);
  1544. xTimeToWake_17 = xTimeIncrement_13(D) + _2;
  1545. _3 = *pxPreviousWakeTime_12(D);
  1546. if (xConstTickCount_16 < _3)
  1547. goto <bb 15>; [INV]
  1548. else
  1549. goto <bb 18>; [INV]
  1550. <bb 15> :
  1551. _4 = *pxPreviousWakeTime_12(D);
  1552. if (xTimeToWake_17 < _4)
  1553. goto <bb 16>; [INV]
  1554. else
  1555. goto <bb 21>; [INV]
  1556. <bb 16> :
  1557. if (xTimeToWake_17 > xConstTickCount_16)
  1558. goto <bb 17>; [INV]
  1559. else
  1560. goto <bb 21>; [INV]
  1561. <bb 17> :
  1562. xShouldDelay_19 = 1;
  1563. goto <bb 21>; [INV]
  1564. <bb 18> :
  1565. _5 = *pxPreviousWakeTime_12(D);
  1566. if (xTimeToWake_17 < _5)
  1567. goto <bb 20>; [INV]
  1568. else
  1569. goto <bb 19>; [INV]
  1570. <bb 19> :
  1571. if (xTimeToWake_17 > xConstTickCount_16)
  1572. goto <bb 20>; [INV]
  1573. else
  1574. goto <bb 21>; [INV]
  1575. <bb 20> :
  1576. xShouldDelay_18 = 1;
  1577. <bb 21> :
  1578. # xShouldDelay_8 = PHI <xShouldDelay_11(16), xShouldDelay_11(19), xShouldDelay_18(20), xShouldDelay_11(15), xShouldDelay_19(17)>
  1579. *pxPreviousWakeTime_12(D) = xTimeToWake_17;
  1580. if (xShouldDelay_8 != 0)
  1581. goto <bb 22>; [INV]
  1582. else
  1583. goto <bb 23>; [INV]
  1584. <bb 22> :
  1585. _6 = xTimeToWake_17 - xConstTickCount_16;
  1586. prvAddCurrentTaskToDelayedList (_6, 0);
  1587. <bb 23> :
  1588. xAlreadyYielded_23 = xTaskResumeAll ();
  1589. if (xAlreadyYielded_23 == 0)
  1590. goto <bb 24>; [INV]
  1591. else
  1592. goto <bb 25>; [INV]
  1593. <bb 24> :
  1594. _7 = 3758157060B;
  1595. *_7 ={v} 268435456;
  1596. __asm__ __volatile__("dsb" : : : "memory");
  1597. __asm__ __volatile__("isb");
  1598. <bb 25> :
  1599. _27 = xShouldDelay_8;
  1600. <bb 26> :
  1601. <L26>:
  1602. return _27;
  1603. }
  1604. ;; Function vTaskDelay (vTaskDelay, funcdef_no=12, decl_uid=6146, cgraph_uid=13, symbol_order=34)
  1605. vTaskDelay (const TickType_t xTicksToDelay)
  1606. {
  1607. uint32_t ulNewBASEPRI;
  1608. BaseType_t xAlreadyYielded;
  1609. long unsigned int uxSchedulerSuspended.21_1;
  1610. volatile uint32_t * _2;
  1611. <bb 2> :
  1612. xAlreadyYielded_6 = 0;
  1613. if (xTicksToDelay_7(D) != 0)
  1614. goto <bb 3>; [INV]
  1615. else
  1616. goto <bb 8>; [INV]
  1617. <bb 3> :
  1618. uxSchedulerSuspended.21_1 ={v} uxSchedulerSuspended;
  1619. if (uxSchedulerSuspended.21_1 != 0)
  1620. goto <bb 4>; [INV]
  1621. else
  1622. goto <bb 7>; [INV]
  1623. <bb 4> :
  1624. __asm__ __volatile__(" mov %0, %1
  1625. msr basepri, %0
  1626. isb
  1627. dsb
  1628. " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
  1629. <bb 5> :
  1630. <bb 6> :
  1631. goto <bb 6>; [INV]
  1632. <bb 7> :
  1633. vTaskSuspendAll ();
  1634. prvAddCurrentTaskToDelayedList (xTicksToDelay_7(D), 0);
  1635. xAlreadyYielded_12 = xTaskResumeAll ();
  1636. <bb 8> :
  1637. # xAlreadyYielded_3 = PHI <xAlreadyYielded_6(2), xAlreadyYielded_12(7)>
  1638. if (xAlreadyYielded_3 == 0)
  1639. goto <bb 9>; [INV]
  1640. else
  1641. goto <bb 10>; [INV]
  1642. <bb 9> :
  1643. _2 = 3758157060B;
  1644. *_2 ={v} 268435456;
  1645. __asm__ __volatile__("dsb" : : : "memory");
  1646. __asm__ __volatile__("isb");
  1647. <bb 10> :
  1648. return;
  1649. }
  1650. ;; Function eTaskGetState (eTaskGetState, funcdef_no=13, decl_uid=6157, cgraph_uid=14, symbol_order=35)
  1651. eTaskGetState (struct tskTaskControlBlock * xTask)
  1652. {
  1653. uint32_t ulNewBASEPRI;
  1654. BaseType_t x;
  1655. const struct TCB_t * const pxTCB;
  1656. const struct List_t * pxOverflowedDelayedList;
  1657. const struct List_t * pxDelayedList;
  1658. const struct List_t * pxStateList;
  1659. eTaskState eReturn;
  1660. eTaskState D.7619;
  1661. struct TCB_t * pxCurrentTCB.22_1;
  1662. struct xLIST * _2;
  1663. unsigned char _3;
  1664. eTaskState _25;
  1665. <bb 2> :
  1666. pxTCB_9 = xTask_8(D);
  1667. if (pxTCB_9 == 0B)
  1668. goto <bb 3>; [INV]
  1669. else
  1670. goto <bb 6>; [INV]
  1671. <bb 3> :
  1672. __asm__ __volatile__(" mov %0, %1
  1673. msr basepri, %0
  1674. isb
  1675. dsb
  1676. " : "=r" ulNewBASEPRI_26 : "i" 16 : "memory");
  1677. <bb 4> :
  1678. <bb 5> :
  1679. goto <bb 5>; [INV]
  1680. <bb 6> :
  1681. pxCurrentTCB.22_1 ={v} pxCurrentTCB;
  1682. if (pxTCB_9 == pxCurrentTCB.22_1)
  1683. goto <bb 7>; [INV]
  1684. else
  1685. goto <bb 8>; [INV]
  1686. <bb 7> :
  1687. eReturn_24 = 0;
  1688. goto <bb 24>; [INV]
  1689. <bb 8> :
  1690. vPortEnterCritical ();
  1691. pxStateList_12 = pxTCB_9->xStateListItem.pvContainer;
  1692. pxDelayedList_13 ={v} pxDelayedTaskList;
  1693. pxOverflowedDelayedList_14 ={v} pxOverflowDelayedTaskList;
  1694. vPortExitCritical ();
  1695. if (pxStateList_12 == pxDelayedList_13)
  1696. goto <bb 10>; [INV]
  1697. else
  1698. goto <bb 9>; [INV]
  1699. <bb 9> :
  1700. if (pxStateList_12 == pxOverflowedDelayedList_14)
  1701. goto <bb 10>; [INV]
  1702. else
  1703. goto <bb 11>; [INV]
  1704. <bb 10> :
  1705. eReturn_23 = 2;
  1706. goto <bb 24>; [INV]
  1707. <bb 11> :
  1708. if (pxStateList_12 == &xSuspendedTaskList)
  1709. goto <bb 12>; [INV]
  1710. else
  1711. goto <bb 20>; [INV]
  1712. <bb 12> :
  1713. _2 = pxTCB_9->xEventListItem.pvContainer;
  1714. if (_2 == 0B)
  1715. goto <bb 13>; [INV]
  1716. else
  1717. goto <bb 19>; [INV]
  1718. <bb 13> :
  1719. eReturn_19 = 3;
  1720. x_20 = 0;
  1721. goto <bb 17>; [INV]
  1722. <bb 14> :
  1723. _3 ={v} pxTCB_9->ucNotifyState[x_6];
  1724. if (_3 == 1)
  1725. goto <bb 15>; [INV]
  1726. else
  1727. goto <bb 16>; [INV]
  1728. <bb 15> :
  1729. eReturn_22 = 2;
  1730. goto <bb 18>; [INV]
  1731. <bb 16> :
  1732. x_21 = x_6 + 1;
  1733. <bb 17> :
  1734. # x_6 = PHI <x_20(13), x_21(16)>
  1735. if (x_6 <= 0)
  1736. goto <bb 14>; [INV]
  1737. else
  1738. goto <bb 18>; [INV]
  1739. <bb 18> :
  1740. # eReturn_4 = PHI <eReturn_22(15), eReturn_19(17)>
  1741. goto <bb 24>; [INV]
  1742. <bb 19> :
  1743. eReturn_18 = 2;
  1744. goto <bb 24>; [INV]
  1745. <bb 20> :
  1746. if (pxStateList_12 == &xTasksWaitingTermination)
  1747. goto <bb 22>; [INV]
  1748. else
  1749. goto <bb 21>; [INV]
  1750. <bb 21> :
  1751. if (pxStateList_12 == 0B)
  1752. goto <bb 22>; [INV]
  1753. else
  1754. goto <bb 23>; [INV]
  1755. <bb 22> :
  1756. eReturn_17 = 4;
  1757. goto <bb 24>; [INV]
  1758. <bb 23> :
  1759. eReturn_16 = 1;
  1760. <bb 24> :
  1761. # eReturn_5 = PHI <eReturn_24(7), eReturn_23(10), eReturn_18(19), eReturn_17(22), eReturn_16(23), eReturn_4(18)>
  1762. _25 = eReturn_5;
  1763. <bb 25> :
  1764. <L25>:
  1765. return _25;
  1766. }
  1767. ;; Function uxTaskPriorityGet (uxTaskPriorityGet, funcdef_no=14, decl_uid=6153, cgraph_uid=15, symbol_order=36)
  1768. uxTaskPriorityGet (struct tskTaskControlBlock * const xTask)
  1769. {
  1770. UBaseType_t uxReturn;
  1771. const struct TCB_t * pxTCB;
  1772. UBaseType_t D.7625;
  1773. const struct TCB_t * iftmp.23;
  1774. const struct TCB_t * iftmp.23_1;
  1775. const struct TCB_t * iftmp.23_5;
  1776. const struct TCB_t * iftmp.23_6;
  1777. UBaseType_t _10;
  1778. <bb 2> :
  1779. vPortEnterCritical ();
  1780. if (xTask_4(D) == 0B)
  1781. goto <bb 3>; [INV]
  1782. else
  1783. goto <bb 4>; [INV]
  1784. <bb 3> :
  1785. iftmp.23_6 ={v} pxCurrentTCB;
  1786. goto <bb 5>; [INV]
  1787. <bb 4> :
  1788. iftmp.23_5 = xTask_4(D);
  1789. <bb 5> :
  1790. # iftmp.23_1 = PHI <iftmp.23_6(3), iftmp.23_5(4)>
  1791. pxTCB_7 = iftmp.23_1;
  1792. uxReturn_8 = pxTCB_7->uxPriority;
  1793. vPortExitCritical ();
  1794. _10 = uxReturn_8;
  1795. <bb 6> :
  1796. <L3>:
  1797. return _10;
  1798. }
  1799. ;; Function uxTaskPriorityGetFromISR (uxTaskPriorityGetFromISR, funcdef_no=15, decl_uid=6155, cgraph_uid=16, symbol_order=37)
  1800. uxTaskPriorityGetFromISR (struct tskTaskControlBlock * const xTask)
  1801. {
  1802. uint32_t ulNewMaskValue;
  1803. uint32_t D.8312;
  1804. uint32_t ulOriginalBASEPRI;
  1805. uint32_t ulNewBASEPRI;
  1806. uint32_t D.8311;
  1807. UBaseType_t uxSavedInterruptState;
  1808. UBaseType_t uxReturn;
  1809. const struct TCB_t * pxTCB;
  1810. UBaseType_t D.7631;
  1811. const struct TCB_t * iftmp.24;
  1812. const struct TCB_t * iftmp.24_1;
  1813. const struct TCB_t * iftmp.24_6;
  1814. const struct TCB_t * iftmp.24_7;
  1815. UBaseType_t _10;
  1816. long unsigned int _13;
  1817. <bb 2> :
  1818. vPortValidateInterruptPriority ();
  1819. __asm__ __volatile__(" mrs %0, basepri
  1820. mov %1, %2
  1821. msr basepri, %1
  1822. isb
  1823. dsb
  1824. " : "=r" ulOriginalBASEPRI_11, "=r" ulNewBASEPRI_12 : "i" 16 : "memory");
  1825. _13 = ulOriginalBASEPRI_11;
  1826. <bb 3> :
  1827. <L4>:
  1828. _16 = _13;
  1829. <bb 4> :
  1830. uxSavedInterruptState_4 = _16;
  1831. if (xTask_5(D) == 0B)
  1832. goto <bb 5>; [INV]
  1833. else
  1834. goto <bb 6>; [INV]
  1835. <bb 5> :
  1836. iftmp.24_7 ={v} pxCurrentTCB;
  1837. goto <bb 7>; [INV]
  1838. <bb 6> :
  1839. iftmp.24_6 = xTask_5(D);
  1840. <bb 7> :
  1841. # iftmp.24_1 = PHI <iftmp.24_7(5), iftmp.24_6(6)>
  1842. pxTCB_8 = iftmp.24_1;
  1843. uxReturn_9 = pxTCB_8->uxPriority;
  1844. ulNewMaskValue_14 = uxSavedInterruptState_4;
  1845. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_14 : "memory");
  1846. <bb 8> :
  1847. _10 = uxReturn_9;
  1848. <bb 9> :
  1849. <L3>:
  1850. return _10;
  1851. }
  1852. ;; Function vTaskPrioritySet (vTaskPrioritySet, funcdef_no=16, decl_uid=6165, cgraph_uid=17, symbol_order=38)
  1853. vTaskPrioritySet (struct tskTaskControlBlock * xTask, UBaseType_t uxNewPriority)
  1854. {
  1855. uint32_t ulNewBASEPRI;
  1856. struct ListItem_t * const pxIndex;
  1857. BaseType_t xYieldRequired;
  1858. UBaseType_t uxPriorityUsedOnEntry;
  1859. UBaseType_t uxCurrentBasePriority;
  1860. struct TCB_t * pxTCB;
  1861. struct TCB_t * iftmp.25;
  1862. struct TCB_t * pxCurrentTCB.26_1;
  1863. struct TCB_t * pxCurrentTCB.27_2;
  1864. long unsigned int _3;
  1865. struct TCB_t * pxCurrentTCB.28_4;
  1866. long unsigned int _5;
  1867. long unsigned int _6;
  1868. long unsigned int _7;
  1869. signed int _8;
  1870. long unsigned int _9;
  1871. struct xLIST * _10;
  1872. struct List_t * _11;
  1873. struct ListItem_t * _12;
  1874. long unsigned int _13;
  1875. long unsigned int _14;
  1876. long unsigned int uxTopReadyPriority.29_15;
  1877. long unsigned int _16;
  1878. long unsigned int _17;
  1879. struct xLIST_ITEM * _18;
  1880. struct xLIST_ITEM * _19;
  1881. struct ListItem_t * _20;
  1882. struct ListItem_t * _21;
  1883. long unsigned int _22;
  1884. struct List_t * _23;
  1885. long unsigned int _24;
  1886. long unsigned int _25;
  1887. long unsigned int _26;
  1888. volatile uint32_t * _27;
  1889. struct TCB_t * iftmp.25_30;
  1890. struct TCB_t * iftmp.25_42;
  1891. struct TCB_t * iftmp.25_43;
  1892. <bb 2> :
  1893. xYieldRequired_36 = 0;
  1894. if (uxNewPriority_37(D) > 4)
  1895. goto <bb 3>; [INV]
  1896. else
  1897. goto <bb 6>; [INV]
  1898. <bb 3> :
  1899. __asm__ __volatile__(" mov %0, %1
  1900. msr basepri, %0
  1901. isb
  1902. dsb
  1903. " : "=r" ulNewBASEPRI_65 : "i" 16 : "memory");
  1904. <bb 4> :
  1905. <bb 5> :
  1906. goto <bb 5>; [INV]
  1907. <bb 6> :
  1908. if (uxNewPriority_37(D) > 4)
  1909. goto <bb 7>; [INV]
  1910. else
  1911. goto <bb 8>; [INV]
  1912. <bb 7> :
  1913. uxNewPriority_38 = 4;
  1914. <bb 8> :
  1915. # uxNewPriority_28 = PHI <uxNewPriority_37(D)(6), uxNewPriority_38(7)>
  1916. vPortEnterCritical ();
  1917. if (xTask_41(D) == 0B)
  1918. goto <bb 9>; [INV]
  1919. else
  1920. goto <bb 10>; [INV]
  1921. <bb 9> :
  1922. iftmp.25_43 ={v} pxCurrentTCB;
  1923. goto <bb 11>; [INV]
  1924. <bb 10> :
  1925. iftmp.25_42 = xTask_41(D);
  1926. <bb 11> :
  1927. # iftmp.25_30 = PHI <iftmp.25_43(9), iftmp.25_42(10)>
  1928. pxTCB_44 = iftmp.25_30;
  1929. uxCurrentBasePriority_45 = pxTCB_44->uxBasePriority;
  1930. if (uxCurrentBasePriority_45 != uxNewPriority_28)
  1931. goto <bb 12>; [INV]
  1932. else
  1933. goto <bb 29>; [INV]
  1934. <bb 12> :
  1935. if (uxNewPriority_28 > uxCurrentBasePriority_45)
  1936. goto <bb 13>; [INV]
  1937. else
  1938. goto <bb 16>; [INV]
  1939. <bb 13> :
  1940. pxCurrentTCB.26_1 ={v} pxCurrentTCB;
  1941. if (pxTCB_44 != pxCurrentTCB.26_1)
  1942. goto <bb 14>; [INV]
  1943. else
  1944. goto <bb 18>; [INV]
  1945. <bb 14> :
  1946. pxCurrentTCB.27_2 ={v} pxCurrentTCB;
  1947. _3 = pxCurrentTCB.27_2->uxPriority;
  1948. if (uxNewPriority_28 >= _3)
  1949. goto <bb 15>; [INV]
  1950. else
  1951. goto <bb 18>; [INV]
  1952. <bb 15> :
  1953. xYieldRequired_47 = 1;
  1954. goto <bb 18>; [INV]
  1955. <bb 16> :
  1956. pxCurrentTCB.28_4 ={v} pxCurrentTCB;
  1957. if (pxTCB_44 == pxCurrentTCB.28_4)
  1958. goto <bb 17>; [INV]
  1959. else
  1960. goto <bb 18>; [INV]
  1961. <bb 17> :
  1962. xYieldRequired_46 = 1;
  1963. <bb 18> :
  1964. # xYieldRequired_29 = PHI <xYieldRequired_47(15), xYieldRequired_36(16), xYieldRequired_46(17), xYieldRequired_36(13), xYieldRequired_36(14)>
  1965. uxPriorityUsedOnEntry_48 = pxTCB_44->uxPriority;
  1966. _5 = pxTCB_44->uxBasePriority;
  1967. _6 = pxTCB_44->uxPriority;
  1968. if (_5 == _6)
  1969. goto <bb 19>; [INV]
  1970. else
  1971. goto <bb 20>; [INV]
  1972. <bb 19> :
  1973. pxTCB_44->uxPriority = uxNewPriority_28;
  1974. <bb 20> :
  1975. pxTCB_44->uxBasePriority = uxNewPriority_28;
  1976. _7 = pxTCB_44->xEventListItem.xItemValue;
  1977. _8 = (signed int) _7;
  1978. if (_8 >= 0)
  1979. goto <bb 21>; [INV]
  1980. else
  1981. goto <bb 22>; [INV]
  1982. <bb 21> :
  1983. _9 = 5 - uxNewPriority_28;
  1984. pxTCB_44->xEventListItem.xItemValue = _9;
  1985. <bb 22> :
  1986. _10 = pxTCB_44->xStateListItem.pvContainer;
  1987. _11 = &pxReadyTasksLists[uxPriorityUsedOnEntry_48];
  1988. if (_10 == _11)
  1989. goto <bb 23>; [INV]
  1990. else
  1991. goto <bb 27>; [INV]
  1992. <bb 23> :
  1993. _12 = &pxTCB_44->xStateListItem;
  1994. _13 = uxListRemove (_12);
  1995. <bb 24> :
  1996. _14 = pxTCB_44->uxPriority;
  1997. uxTopReadyPriority.29_15 ={v} uxTopReadyPriority;
  1998. if (_14 > uxTopReadyPriority.29_15)
  1999. goto <bb 25>; [INV]
  2000. else
  2001. goto <bb 26>; [INV]
  2002. <bb 25> :
  2003. _16 = pxTCB_44->uxPriority;
  2004. uxTopReadyPriority ={v} _16;
  2005. <bb 26> :
  2006. _17 = pxTCB_44->uxPriority;
  2007. pxIndex_54 = pxReadyTasksLists[_17].pxIndex;
  2008. pxTCB_44->xStateListItem.pxNext = pxIndex_54;
  2009. _18 = pxIndex_54->pxPrevious;
  2010. pxTCB_44->xStateListItem.pxPrevious = _18;
  2011. _19 = pxIndex_54->pxPrevious;
  2012. _20 = &pxTCB_44->xStateListItem;
  2013. _19->pxNext = _20;
  2014. _21 = &pxTCB_44->xStateListItem;
  2015. pxIndex_54->pxPrevious = _21;
  2016. _22 = pxTCB_44->uxPriority;
  2017. _23 = &pxReadyTasksLists[_22];
  2018. pxTCB_44->xStateListItem.pvContainer = _23;
  2019. _24 = pxTCB_44->uxPriority;
  2020. _25 ={v} pxReadyTasksLists[_24].uxNumberOfItems;
  2021. _26 = _25 + 1;
  2022. pxReadyTasksLists[_24].uxNumberOfItems ={v} _26;
  2023. <bb 27> :
  2024. if (xYieldRequired_29 != 0)
  2025. goto <bb 28>; [INV]
  2026. else
  2027. goto <bb 29>; [INV]
  2028. <bb 28> :
  2029. _27 = 3758157060B;
  2030. *_27 ={v} 268435456;
  2031. __asm__ __volatile__("dsb" : : : "memory");
  2032. __asm__ __volatile__("isb");
  2033. <bb 29> :
  2034. vPortExitCritical ();
  2035. return;
  2036. }
  2037. ;; Function vTaskSuspend (vTaskSuspend, funcdef_no=17, decl_uid=6167, cgraph_uid=18, symbol_order=39)
  2038. vTaskSuspend (struct tskTaskControlBlock * xTaskToSuspend)
  2039. {
  2040. uint32_t ulNewBASEPRI;
  2041. BaseType_t x;
  2042. struct TCB_t * pxTCB;
  2043. struct TCB_t * iftmp.30;
  2044. struct ListItem_t * _1;
  2045. long unsigned int _2;
  2046. struct xLIST * _3;
  2047. struct ListItem_t * _4;
  2048. struct ListItem_t * _5;
  2049. unsigned char _6;
  2050. long int xSchedulerRunning.31_7;
  2051. struct TCB_t * pxCurrentTCB.32_8;
  2052. long int xSchedulerRunning.33_9;
  2053. long unsigned int uxSchedulerSuspended.34_10;
  2054. volatile uint32_t * _11;
  2055. long unsigned int _12;
  2056. long unsigned int uxCurrentNumberOfTasks.35_13;
  2057. struct TCB_t * iftmp.30_15;
  2058. struct TCB_t * iftmp.30_24;
  2059. struct TCB_t * iftmp.30_25;
  2060. <bb 2> :
  2061. vPortEnterCritical ();
  2062. if (xTaskToSuspend_23(D) == 0B)
  2063. goto <bb 3>; [INV]
  2064. else
  2065. goto <bb 4>; [INV]
  2066. <bb 3> :
  2067. iftmp.30_25 ={v} pxCurrentTCB;
  2068. goto <bb 5>; [INV]
  2069. <bb 4> :
  2070. iftmp.30_24 = xTaskToSuspend_23(D);
  2071. <bb 5> :
  2072. # iftmp.30_15 = PHI <iftmp.30_25(3), iftmp.30_24(4)>
  2073. pxTCB_26 = iftmp.30_15;
  2074. _1 = &pxTCB_26->xStateListItem;
  2075. _2 = uxListRemove (_1);
  2076. <bb 6> :
  2077. _3 = pxTCB_26->xEventListItem.pvContainer;
  2078. if (_3 != 0B)
  2079. goto <bb 7>; [INV]
  2080. else
  2081. goto <bb 8>; [INV]
  2082. <bb 7> :
  2083. _4 = &pxTCB_26->xEventListItem;
  2084. uxListRemove (_4);
  2085. <bb 8> :
  2086. _5 = &pxTCB_26->xStateListItem;
  2087. vListInsertEnd (&xSuspendedTaskList, _5);
  2088. x_30 = 0;
  2089. goto <bb 12>; [INV]
  2090. <bb 9> :
  2091. _6 ={v} pxTCB_26->ucNotifyState[x_14];
  2092. if (_6 == 1)
  2093. goto <bb 10>; [INV]
  2094. else
  2095. goto <bb 11>; [INV]
  2096. <bb 10> :
  2097. pxTCB_26->ucNotifyState[x_14] ={v} 0;
  2098. <bb 11> :
  2099. x_41 = x_14 + 1;
  2100. <bb 12> :
  2101. # x_14 = PHI <x_30(8), x_41(11)>
  2102. if (x_14 <= 0)
  2103. goto <bb 9>; [INV]
  2104. else
  2105. goto <bb 13>; [INV]
  2106. <bb 13> :
  2107. vPortExitCritical ();
  2108. xSchedulerRunning.31_7 ={v} xSchedulerRunning;
  2109. if (xSchedulerRunning.31_7 != 0)
  2110. goto <bb 14>; [INV]
  2111. else
  2112. goto <bb 15>; [INV]
  2113. <bb 14> :
  2114. vPortEnterCritical ();
  2115. prvResetNextTaskUnblockTime ();
  2116. vPortExitCritical ();
  2117. <bb 15> :
  2118. pxCurrentTCB.32_8 ={v} pxCurrentTCB;
  2119. if (pxTCB_26 == pxCurrentTCB.32_8)
  2120. goto <bb 16>; [INV]
  2121. else
  2122. goto <bb 25>; [INV]
  2123. <bb 16> :
  2124. xSchedulerRunning.33_9 ={v} xSchedulerRunning;
  2125. if (xSchedulerRunning.33_9 != 0)
  2126. goto <bb 17>; [INV]
  2127. else
  2128. goto <bb 22>; [INV]
  2129. <bb 17> :
  2130. uxSchedulerSuspended.34_10 ={v} uxSchedulerSuspended;
  2131. if (uxSchedulerSuspended.34_10 != 0)
  2132. goto <bb 18>; [INV]
  2133. else
  2134. goto <bb 21>; [INV]
  2135. <bb 18> :
  2136. __asm__ __volatile__(" mov %0, %1
  2137. msr basepri, %0
  2138. isb
  2139. dsb
  2140. " : "=r" ulNewBASEPRI_42 : "i" 16 : "memory");
  2141. <bb 19> :
  2142. <bb 20> :
  2143. goto <bb 20>; [INV]
  2144. <bb 21> :
  2145. _11 = 3758157060B;
  2146. *_11 ={v} 268435456;
  2147. __asm__ __volatile__("dsb" : : : "memory");
  2148. __asm__ __volatile__("isb");
  2149. goto <bb 25>; [INV]
  2150. <bb 22> :
  2151. _12 ={v} xSuspendedTaskList.uxNumberOfItems;
  2152. uxCurrentNumberOfTasks.35_13 ={v} uxCurrentNumberOfTasks;
  2153. if (_12 == uxCurrentNumberOfTasks.35_13)
  2154. goto <bb 23>; [INV]
  2155. else
  2156. goto <bb 24>; [INV]
  2157. <bb 23> :
  2158. pxCurrentTCB ={v} 0B;
  2159. goto <bb 25>; [INV]
  2160. <bb 24> :
  2161. vTaskSwitchContext ();
  2162. <bb 25> :
  2163. return;
  2164. }
  2165. ;; Function prvTaskIsTaskSuspended (prvTaskIsTaskSuspended, funcdef_no=18, decl_uid=6939, cgraph_uid=19, symbol_order=40)
  2166. prvTaskIsTaskSuspended (struct tskTaskControlBlock * const xTask)
  2167. {
  2168. uint32_t ulNewBASEPRI;
  2169. const struct TCB_t * const pxTCB;
  2170. BaseType_t xReturn;
  2171. BaseType_t D.7712;
  2172. struct xLIST * _1;
  2173. struct xLIST * _2;
  2174. struct xLIST * _3;
  2175. BaseType_t _10;
  2176. <bb 2> :
  2177. xReturn_5 = 0;
  2178. pxTCB_7 = xTask_6(D);
  2179. if (xTask_6(D) == 0B)
  2180. goto <bb 3>; [INV]
  2181. else
  2182. goto <bb 6>; [INV]
  2183. <bb 3> :
  2184. __asm__ __volatile__(" mov %0, %1
  2185. msr basepri, %0
  2186. isb
  2187. dsb
  2188. " : "=r" ulNewBASEPRI_11 : "i" 16 : "memory");
  2189. <bb 4> :
  2190. <bb 5> :
  2191. goto <bb 5>; [INV]
  2192. <bb 6> :
  2193. _1 = pxTCB_7->xStateListItem.pvContainer;
  2194. if (_1 == &xSuspendedTaskList)
  2195. goto <bb 7>; [INV]
  2196. else
  2197. goto <bb 10>; [INV]
  2198. <bb 7> :
  2199. _2 = pxTCB_7->xEventListItem.pvContainer;
  2200. if (_2 != &xPendingReadyList)
  2201. goto <bb 8>; [INV]
  2202. else
  2203. goto <bb 10>; [INV]
  2204. <bb 8> :
  2205. _3 = pxTCB_7->xEventListItem.pvContainer;
  2206. if (_3 == 0B)
  2207. goto <bb 9>; [INV]
  2208. else
  2209. goto <bb 10>; [INV]
  2210. <bb 9> :
  2211. xReturn_9 = 1;
  2212. <bb 10> :
  2213. # xReturn_4 = PHI <xReturn_5(6), xReturn_9(9), xReturn_5(7), xReturn_5(8)>
  2214. _10 = xReturn_4;
  2215. <bb 11> :
  2216. <L12>:
  2217. return _10;
  2218. }
  2219. ;; Function vTaskResume (vTaskResume, funcdef_no=19, decl_uid=6169, cgraph_uid=20, symbol_order=41)
  2220. vTaskResume (struct tskTaskControlBlock * xTaskToResume)
  2221. {
  2222. uint32_t ulNewBASEPRI;
  2223. struct ListItem_t * const pxIndex;
  2224. struct TCB_t * const pxTCB;
  2225. struct TCB_t * pxCurrentTCB.36_1;
  2226. long int _2;
  2227. struct ListItem_t * _3;
  2228. long unsigned int _4;
  2229. long unsigned int uxTopReadyPriority.37_5;
  2230. long unsigned int _6;
  2231. long unsigned int _7;
  2232. struct xLIST_ITEM * _8;
  2233. struct xLIST_ITEM * _9;
  2234. struct ListItem_t * _10;
  2235. struct ListItem_t * _11;
  2236. long unsigned int _12;
  2237. struct List_t * _13;
  2238. long unsigned int _14;
  2239. long unsigned int _15;
  2240. long unsigned int _16;
  2241. long unsigned int _17;
  2242. struct TCB_t * pxCurrentTCB.38_18;
  2243. long unsigned int _19;
  2244. volatile uint32_t * _20;
  2245. <bb 2> :
  2246. pxTCB_25 = xTaskToResume_24(D);
  2247. if (xTaskToResume_24(D) == 0B)
  2248. goto <bb 3>; [INV]
  2249. else
  2250. goto <bb 6>; [INV]
  2251. <bb 3> :
  2252. __asm__ __volatile__(" mov %0, %1
  2253. msr basepri, %0
  2254. isb
  2255. dsb
  2256. " : "=r" ulNewBASEPRI_42 : "i" 16 : "memory");
  2257. <bb 4> :
  2258. <bb 5> :
  2259. goto <bb 5>; [INV]
  2260. <bb 6> :
  2261. pxCurrentTCB.36_1 ={v} pxCurrentTCB;
  2262. if (pxTCB_25 != pxCurrentTCB.36_1)
  2263. goto <bb 7>; [INV]
  2264. else
  2265. goto <bb 14>; [INV]
  2266. <bb 7> :
  2267. if (pxTCB_25 != 0B)
  2268. goto <bb 8>; [INV]
  2269. else
  2270. goto <bb 14>; [INV]
  2271. <bb 8> :
  2272. vPortEnterCritical ();
  2273. _2 = prvTaskIsTaskSuspended (pxTCB_25);
  2274. if (_2 != 0)
  2275. goto <bb 9>; [INV]
  2276. else
  2277. goto <bb 13>; [INV]
  2278. <bb 9> :
  2279. _3 = &pxTCB_25->xStateListItem;
  2280. uxListRemove (_3);
  2281. _4 = pxTCB_25->uxPriority;
  2282. uxTopReadyPriority.37_5 ={v} uxTopReadyPriority;
  2283. if (_4 > uxTopReadyPriority.37_5)
  2284. goto <bb 10>; [INV]
  2285. else
  2286. goto <bb 11>; [INV]
  2287. <bb 10> :
  2288. _6 = pxTCB_25->uxPriority;
  2289. uxTopReadyPriority ={v} _6;
  2290. <bb 11> :
  2291. _7 = pxTCB_25->uxPriority;
  2292. pxIndex_31 = pxReadyTasksLists[_7].pxIndex;
  2293. pxTCB_25->xStateListItem.pxNext = pxIndex_31;
  2294. _8 = pxIndex_31->pxPrevious;
  2295. pxTCB_25->xStateListItem.pxPrevious = _8;
  2296. _9 = pxIndex_31->pxPrevious;
  2297. _10 = &pxTCB_25->xStateListItem;
  2298. _9->pxNext = _10;
  2299. _11 = &pxTCB_25->xStateListItem;
  2300. pxIndex_31->pxPrevious = _11;
  2301. _12 = pxTCB_25->uxPriority;
  2302. _13 = &pxReadyTasksLists[_12];
  2303. pxTCB_25->xStateListItem.pvContainer = _13;
  2304. _14 = pxTCB_25->uxPriority;
  2305. _15 ={v} pxReadyTasksLists[_14].uxNumberOfItems;
  2306. _16 = _15 + 1;
  2307. pxReadyTasksLists[_14].uxNumberOfItems ={v} _16;
  2308. _17 = pxTCB_25->uxPriority;
  2309. pxCurrentTCB.38_18 ={v} pxCurrentTCB;
  2310. _19 = pxCurrentTCB.38_18->uxPriority;
  2311. if (_17 >= _19)
  2312. goto <bb 12>; [INV]
  2313. else
  2314. goto <bb 13>; [INV]
  2315. <bb 12> :
  2316. _20 = 3758157060B;
  2317. *_20 ={v} 268435456;
  2318. __asm__ __volatile__("dsb" : : : "memory");
  2319. __asm__ __volatile__("isb");
  2320. <bb 13> :
  2321. vPortExitCritical ();
  2322. <bb 14> :
  2323. return;
  2324. }
  2325. ;; Function xTaskResumeFromISR (xTaskResumeFromISR, funcdef_no=20, decl_uid=6171, cgraph_uid=21, symbol_order=42)
  2326. xTaskResumeFromISR (struct tskTaskControlBlock * xTaskToResume)
  2327. {
  2328. uint32_t ulNewMaskValue;
  2329. uint32_t D.8322;
  2330. uint32_t ulOriginalBASEPRI;
  2331. uint32_t ulNewBASEPRI;
  2332. uint32_t D.8321;
  2333. uint32_t ulNewBASEPRI;
  2334. struct ListItem_t * const pxIndex;
  2335. UBaseType_t uxSavedInterruptStatus;
  2336. struct TCB_t * const pxTCB;
  2337. BaseType_t xYieldRequired;
  2338. BaseType_t D.7742;
  2339. long int _1;
  2340. long unsigned int uxSchedulerSuspended.39_2;
  2341. long unsigned int _3;
  2342. struct TCB_t * pxCurrentTCB.40_4;
  2343. long unsigned int _5;
  2344. struct ListItem_t * _6;
  2345. long unsigned int _7;
  2346. long unsigned int uxTopReadyPriority.41_8;
  2347. long unsigned int _9;
  2348. long unsigned int _10;
  2349. struct xLIST_ITEM * _11;
  2350. struct xLIST_ITEM * _12;
  2351. struct ListItem_t * _13;
  2352. struct ListItem_t * _14;
  2353. long unsigned int _15;
  2354. struct List_t * _16;
  2355. long unsigned int _17;
  2356. long unsigned int _18;
  2357. long unsigned int _19;
  2358. struct ListItem_t * _20;
  2359. BaseType_t _45;
  2360. long unsigned int _49;
  2361. <bb 2> :
  2362. xYieldRequired_26 = 0;
  2363. pxTCB_28 = xTaskToResume_27(D);
  2364. if (xTaskToResume_27(D) == 0B)
  2365. goto <bb 3>; [INV]
  2366. else
  2367. goto <bb 6>; [INV]
  2368. <bb 3> :
  2369. __asm__ __volatile__(" mov %0, %1
  2370. msr basepri, %0
  2371. isb
  2372. dsb
  2373. " : "=r" ulNewBASEPRI_46 : "i" 16 : "memory");
  2374. <bb 4> :
  2375. <bb 5> :
  2376. goto <bb 5>; [INV]
  2377. <bb 6> :
  2378. vPortValidateInterruptPriority ();
  2379. __asm__ __volatile__(" mrs %0, basepri
  2380. mov %1, %2
  2381. msr basepri, %1
  2382. isb
  2383. dsb
  2384. " : "=r" ulOriginalBASEPRI_47, "=r" ulNewBASEPRI_48 : "i" 16 : "memory");
  2385. _49 = ulOriginalBASEPRI_47;
  2386. <bb 7> :
  2387. <L15>:
  2388. _52 = _49;
  2389. <bb 8> :
  2390. uxSavedInterruptStatus_31 = _52;
  2391. _1 = prvTaskIsTaskSuspended (pxTCB_28);
  2392. if (_1 != 0)
  2393. goto <bb 9>; [INV]
  2394. else
  2395. goto <bb 16>; [INV]
  2396. <bb 9> :
  2397. uxSchedulerSuspended.39_2 ={v} uxSchedulerSuspended;
  2398. if (uxSchedulerSuspended.39_2 == 0)
  2399. goto <bb 10>; [INV]
  2400. else
  2401. goto <bb 15>; [INV]
  2402. <bb 10> :
  2403. _3 = pxTCB_28->uxPriority;
  2404. pxCurrentTCB.40_4 ={v} pxCurrentTCB;
  2405. _5 = pxCurrentTCB.40_4->uxPriority;
  2406. if (_3 >= _5)
  2407. goto <bb 11>; [INV]
  2408. else
  2409. goto <bb 12>; [INV]
  2410. <bb 11> :
  2411. xYieldRequired_34 = 1;
  2412. xYieldPending ={v} 1;
  2413. <bb 12> :
  2414. # xYieldRequired_21 = PHI <xYieldRequired_26(10), xYieldRequired_34(11)>
  2415. _6 = &pxTCB_28->xStateListItem;
  2416. uxListRemove (_6);
  2417. _7 = pxTCB_28->uxPriority;
  2418. uxTopReadyPriority.41_8 ={v} uxTopReadyPriority;
  2419. if (_7 > uxTopReadyPriority.41_8)
  2420. goto <bb 13>; [INV]
  2421. else
  2422. goto <bb 14>; [INV]
  2423. <bb 13> :
  2424. _9 = pxTCB_28->uxPriority;
  2425. uxTopReadyPriority ={v} _9;
  2426. <bb 14> :
  2427. _10 = pxTCB_28->uxPriority;
  2428. pxIndex_38 = pxReadyTasksLists[_10].pxIndex;
  2429. pxTCB_28->xStateListItem.pxNext = pxIndex_38;
  2430. _11 = pxIndex_38->pxPrevious;
  2431. pxTCB_28->xStateListItem.pxPrevious = _11;
  2432. _12 = pxIndex_38->pxPrevious;
  2433. _13 = &pxTCB_28->xStateListItem;
  2434. _12->pxNext = _13;
  2435. _14 = &pxTCB_28->xStateListItem;
  2436. pxIndex_38->pxPrevious = _14;
  2437. _15 = pxTCB_28->uxPriority;
  2438. _16 = &pxReadyTasksLists[_15];
  2439. pxTCB_28->xStateListItem.pvContainer = _16;
  2440. _17 = pxTCB_28->uxPriority;
  2441. _18 ={v} pxReadyTasksLists[_17].uxNumberOfItems;
  2442. _19 = _18 + 1;
  2443. pxReadyTasksLists[_17].uxNumberOfItems ={v} _19;
  2444. goto <bb 16>; [INV]
  2445. <bb 15> :
  2446. _20 = &pxTCB_28->xEventListItem;
  2447. vListInsertEnd (&xPendingReadyList, _20);
  2448. <bb 16> :
  2449. # xYieldRequired_22 = PHI <xYieldRequired_26(8), xYieldRequired_26(15), xYieldRequired_21(14)>
  2450. ulNewMaskValue_50 = uxSavedInterruptStatus_31;
  2451. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_50 : "memory");
  2452. <bb 17> :
  2453. _45 = xYieldRequired_22;
  2454. <bb 18> :
  2455. <L14>:
  2456. return _45;
  2457. }
  2458. ;; Function vTaskStartScheduler (vTaskStartScheduler, funcdef_no=21, decl_uid=6173, cgraph_uid=22, symbol_order=43)
  2459. vTaskStartScheduler ()
  2460. {
  2461. uint32_t ulNewBASEPRI;
  2462. uint32_t ulNewBASEPRI;
  2463. BaseType_t xReturn;
  2464. long unsigned int vol.42;
  2465. long int _1;
  2466. long unsigned int vol.42_14;
  2467. <bb 2> :
  2468. xReturn_7 = xTaskCreate (prvIdleTask, "IDLE", 90, 0B, 0, &xIdleTaskHandle);
  2469. if (xReturn_7 == 1)
  2470. goto <bb 3>; [INV]
  2471. else
  2472. goto <bb 4>; [INV]
  2473. <bb 3> :
  2474. xReturn_9 = xTimerCreateTimerTask ();
  2475. <bb 4> :
  2476. # xReturn_2 = PHI <xReturn_7(2), xReturn_9(3)>
  2477. if (xReturn_2 == 1)
  2478. goto <bb 5>; [INV]
  2479. else
  2480. goto <bb 7>; [INV]
  2481. <bb 5> :
  2482. __asm__ __volatile__(" mov %0, %1
  2483. msr basepri, %0
  2484. isb
  2485. dsb
  2486. " : "=r" ulNewBASEPRI_15 : "i" 16 : "memory");
  2487. <bb 6> :
  2488. xNextTaskUnblockTime ={v} 4294967295;
  2489. xSchedulerRunning ={v} 1;
  2490. xTickCount ={v} 0;
  2491. _1 = xPortStartScheduler ();
  2492. goto <bb 11>; [INV]
  2493. <bb 7> :
  2494. if (xReturn_2 == -1)
  2495. goto <bb 8>; [INV]
  2496. else
  2497. goto <bb 11>; [INV]
  2498. <bb 8> :
  2499. __asm__ __volatile__(" mov %0, %1
  2500. msr basepri, %0
  2501. isb
  2502. dsb
  2503. " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
  2504. <bb 9> :
  2505. <bb 10> :
  2506. goto <bb 10>; [INV]
  2507. <bb 11> :
  2508. vol.42_14 ={v} uxTopUsedPriority;
  2509. return;
  2510. }
  2511. ;; Function vTaskEndScheduler (vTaskEndScheduler, funcdef_no=22, decl_uid=6175, cgraph_uid=23, symbol_order=44)
  2512. vTaskEndScheduler ()
  2513. {
  2514. uint32_t ulNewBASEPRI;
  2515. <bb 2> :
  2516. __asm__ __volatile__(" mov %0, %1
  2517. msr basepri, %0
  2518. isb
  2519. dsb
  2520. " : "=r" ulNewBASEPRI_4 : "i" 16 : "memory");
  2521. <bb 3> :
  2522. xSchedulerRunning ={v} 0;
  2523. vPortEndScheduler ();
  2524. return;
  2525. }
  2526. ;; Function vTaskSuspendAll (vTaskSuspendAll, funcdef_no=23, decl_uid=6177, cgraph_uid=24, symbol_order=45)
  2527. vTaskSuspendAll ()
  2528. {
  2529. long unsigned int uxSchedulerSuspended.43_1;
  2530. long unsigned int _2;
  2531. <bb 2> :
  2532. uxSchedulerSuspended.43_1 ={v} uxSchedulerSuspended;
  2533. _2 = uxSchedulerSuspended.43_1 + 1;
  2534. uxSchedulerSuspended ={v} _2;
  2535. __asm__ __volatile__("" : : : "memory");
  2536. return;
  2537. }
  2538. ;; Function xTaskResumeAll (xTaskResumeAll, funcdef_no=24, decl_uid=6179, cgraph_uid=25, symbol_order=46)
  2539. xTaskResumeAll ()
  2540. {
  2541. uint32_t ulNewBASEPRI;
  2542. TickType_t xPendedCounts;
  2543. struct ListItem_t * const pxIndex;
  2544. struct List_t * const pxList;
  2545. struct List_t * const pxList;
  2546. BaseType_t xAlreadyYielded;
  2547. struct TCB_t * pxTCB;
  2548. BaseType_t D.7783;
  2549. long unsigned int uxSchedulerSuspended.44_1;
  2550. long unsigned int uxSchedulerSuspended.45_2;
  2551. long unsigned int _3;
  2552. long unsigned int uxSchedulerSuspended.46_4;
  2553. long unsigned int uxCurrentNumberOfTasks.47_5;
  2554. struct xLIST_ITEM * _6;
  2555. struct xLIST_ITEM * _7;
  2556. struct xLIST_ITEM * _8;
  2557. struct xLIST_ITEM * _9;
  2558. struct xLIST_ITEM * _10;
  2559. struct ListItem_t * _11;
  2560. struct ListItem_t * _12;
  2561. struct xLIST_ITEM * _13;
  2562. long unsigned int _14;
  2563. long unsigned int _15;
  2564. struct xLIST_ITEM * _16;
  2565. struct xLIST_ITEM * _17;
  2566. struct xLIST_ITEM * _18;
  2567. struct xLIST_ITEM * _19;
  2568. struct ListItem_t * _20;
  2569. struct ListItem_t * _21;
  2570. struct xLIST_ITEM * _22;
  2571. long unsigned int _23;
  2572. long unsigned int _24;
  2573. long unsigned int _25;
  2574. long unsigned int uxTopReadyPriority.48_26;
  2575. long unsigned int _27;
  2576. long unsigned int _28;
  2577. struct xLIST_ITEM * _29;
  2578. struct xLIST_ITEM * _30;
  2579. struct ListItem_t * _31;
  2580. struct ListItem_t * _32;
  2581. long unsigned int _33;
  2582. struct List_t * _34;
  2583. long unsigned int _35;
  2584. long unsigned int _36;
  2585. long unsigned int _37;
  2586. long unsigned int _38;
  2587. struct TCB_t * pxCurrentTCB.49_39;
  2588. long unsigned int _40;
  2589. long unsigned int _41;
  2590. long int _42;
  2591. long int xYieldPending.50_43;
  2592. volatile uint32_t * _44;
  2593. BaseType_t _96;
  2594. <bb 2> :
  2595. pxTCB_57 = 0B;
  2596. xAlreadyYielded_58 = 0;
  2597. uxSchedulerSuspended.44_1 ={v} uxSchedulerSuspended;
  2598. if (uxSchedulerSuspended.44_1 == 0)
  2599. goto <bb 3>; [INV]
  2600. else
  2601. goto <bb 6>; [INV]
  2602. <bb 3> :
  2603. __asm__ __volatile__(" mov %0, %1
  2604. msr basepri, %0
  2605. isb
  2606. dsb
  2607. " : "=r" ulNewBASEPRI_97 : "i" 16 : "memory");
  2608. <bb 4> :
  2609. <bb 5> :
  2610. goto <bb 5>; [INV]
  2611. <bb 6> :
  2612. vPortEnterCritical ();
  2613. uxSchedulerSuspended.45_2 ={v} uxSchedulerSuspended;
  2614. _3 = uxSchedulerSuspended.45_2 + 4294967295;
  2615. uxSchedulerSuspended ={v} _3;
  2616. uxSchedulerSuspended.46_4 ={v} uxSchedulerSuspended;
  2617. if (uxSchedulerSuspended.46_4 == 0)
  2618. goto <bb 7>; [INV]
  2619. else
  2620. goto <bb 27>; [INV]
  2621. <bb 7> :
  2622. uxCurrentNumberOfTasks.47_5 ={v} uxCurrentNumberOfTasks;
  2623. if (uxCurrentNumberOfTasks.47_5 != 0)
  2624. goto <bb 8>; [INV]
  2625. else
  2626. goto <bb 27>; [INV]
  2627. <bb 8> :
  2628. goto <bb 17>; [INV]
  2629. <bb 9> :
  2630. _6 = xPendingReadyList.xListEnd.pxNext;
  2631. pxTCB_72 = _6->pvOwner;
  2632. pxList_73 = pxTCB_72->xEventListItem.pvContainer;
  2633. _7 = pxTCB_72->xEventListItem.pxNext;
  2634. _8 = pxTCB_72->xEventListItem.pxPrevious;
  2635. _7->pxPrevious = _8;
  2636. _9 = pxTCB_72->xEventListItem.pxPrevious;
  2637. _10 = pxTCB_72->xEventListItem.pxNext;
  2638. _9->pxNext = _10;
  2639. _11 = pxList_73->pxIndex;
  2640. _12 = &pxTCB_72->xEventListItem;
  2641. if (_11 == _12)
  2642. goto <bb 10>; [INV]
  2643. else
  2644. goto <bb 11>; [INV]
  2645. <bb 10> :
  2646. _13 = pxTCB_72->xEventListItem.pxPrevious;
  2647. pxList_73->pxIndex = _13;
  2648. <bb 11> :
  2649. pxTCB_72->xEventListItem.pvContainer = 0B;
  2650. _14 ={v} pxList_73->uxNumberOfItems;
  2651. _15 = _14 + 4294967295;
  2652. pxList_73->uxNumberOfItems ={v} _15;
  2653. __asm__ __volatile__("" : : : "memory");
  2654. pxList_80 = pxTCB_72->xStateListItem.pvContainer;
  2655. _16 = pxTCB_72->xStateListItem.pxNext;
  2656. _17 = pxTCB_72->xStateListItem.pxPrevious;
  2657. _16->pxPrevious = _17;
  2658. _18 = pxTCB_72->xStateListItem.pxPrevious;
  2659. _19 = pxTCB_72->xStateListItem.pxNext;
  2660. _18->pxNext = _19;
  2661. _20 = pxList_80->pxIndex;
  2662. _21 = &pxTCB_72->xStateListItem;
  2663. if (_20 == _21)
  2664. goto <bb 12>; [INV]
  2665. else
  2666. goto <bb 13>; [INV]
  2667. <bb 12> :
  2668. _22 = pxTCB_72->xStateListItem.pxPrevious;
  2669. pxList_80->pxIndex = _22;
  2670. <bb 13> :
  2671. pxTCB_72->xStateListItem.pvContainer = 0B;
  2672. _23 ={v} pxList_80->uxNumberOfItems;
  2673. _24 = _23 + 4294967295;
  2674. pxList_80->uxNumberOfItems ={v} _24;
  2675. _25 = pxTCB_72->uxPriority;
  2676. uxTopReadyPriority.48_26 ={v} uxTopReadyPriority;
  2677. if (_25 > uxTopReadyPriority.48_26)
  2678. goto <bb 14>; [INV]
  2679. else
  2680. goto <bb 15>; [INV]
  2681. <bb 14> :
  2682. _27 = pxTCB_72->uxPriority;
  2683. uxTopReadyPriority ={v} _27;
  2684. <bb 15> :
  2685. _28 = pxTCB_72->uxPriority;
  2686. pxIndex_87 = pxReadyTasksLists[_28].pxIndex;
  2687. pxTCB_72->xStateListItem.pxNext = pxIndex_87;
  2688. _29 = pxIndex_87->pxPrevious;
  2689. pxTCB_72->xStateListItem.pxPrevious = _29;
  2690. _30 = pxIndex_87->pxPrevious;
  2691. _31 = &pxTCB_72->xStateListItem;
  2692. _30->pxNext = _31;
  2693. _32 = &pxTCB_72->xStateListItem;
  2694. pxIndex_87->pxPrevious = _32;
  2695. _33 = pxTCB_72->uxPriority;
  2696. _34 = &pxReadyTasksLists[_33];
  2697. pxTCB_72->xStateListItem.pvContainer = _34;
  2698. _35 = pxTCB_72->uxPriority;
  2699. _36 ={v} pxReadyTasksLists[_35].uxNumberOfItems;
  2700. _37 = _36 + 1;
  2701. pxReadyTasksLists[_35].uxNumberOfItems ={v} _37;
  2702. _38 = pxTCB_72->uxPriority;
  2703. pxCurrentTCB.49_39 ={v} pxCurrentTCB;
  2704. _40 = pxCurrentTCB.49_39->uxPriority;
  2705. if (_38 >= _40)
  2706. goto <bb 16>; [INV]
  2707. else
  2708. goto <bb 17>; [INV]
  2709. <bb 16> :
  2710. xYieldPending ={v} 1;
  2711. <bb 17> :
  2712. # pxTCB_45 = PHI <pxTCB_57(8), pxTCB_72(15), pxTCB_72(16)>
  2713. _41 ={v} xPendingReadyList.uxNumberOfItems;
  2714. if (_41 != 0)
  2715. goto <bb 9>; [INV]
  2716. else
  2717. goto <bb 18>; [INV]
  2718. <bb 18> :
  2719. if (pxTCB_45 != 0B)
  2720. goto <bb 19>; [INV]
  2721. else
  2722. goto <bb 20>; [INV]
  2723. <bb 19> :
  2724. prvResetNextTaskUnblockTime ();
  2725. <bb 20> :
  2726. xPendedCounts_63 ={v} xPendedTicks;
  2727. if (xPendedCounts_63 != 0)
  2728. goto <bb 21>; [INV]
  2729. else
  2730. goto <bb 25>; [INV]
  2731. <bb 21> :
  2732. # xPendedCounts_47 = PHI <xPendedCounts_63(20), xPendedCounts_66(23)>
  2733. _42 = xTaskIncrementTick ();
  2734. if (_42 != 0)
  2735. goto <bb 22>; [INV]
  2736. else
  2737. goto <bb 23>; [INV]
  2738. <bb 22> :
  2739. xYieldPending ={v} 1;
  2740. <bb 23> :
  2741. xPendedCounts_66 = xPendedCounts_47 + 4294967295;
  2742. if (xPendedCounts_66 != 0)
  2743. goto <bb 21>; [INV]
  2744. else
  2745. goto <bb 24>; [INV]
  2746. <bb 24> :
  2747. xPendedTicks ={v} 0;
  2748. <bb 25> :
  2749. xYieldPending.50_43 ={v} xYieldPending;
  2750. if (xYieldPending.50_43 != 0)
  2751. goto <bb 26>; [INV]
  2752. else
  2753. goto <bb 27>; [INV]
  2754. <bb 26> :
  2755. xAlreadyYielded_68 = 1;
  2756. _44 = 3758157060B;
  2757. *_44 ={v} 268435456;
  2758. __asm__ __volatile__("dsb" : : : "memory");
  2759. __asm__ __volatile__("isb");
  2760. <bb 27> :
  2761. # xAlreadyYielded_46 = PHI <xAlreadyYielded_58(6), xAlreadyYielded_58(25), xAlreadyYielded_58(7), xAlreadyYielded_68(26)>
  2762. vPortExitCritical ();
  2763. _96 = xAlreadyYielded_46;
  2764. <bb 28> :
  2765. <L33>:
  2766. return _96;
  2767. }
  2768. ;; Function xTaskGetTickCount (xTaskGetTickCount, funcdef_no=25, decl_uid=6181, cgraph_uid=26, symbol_order=47)
  2769. xTaskGetTickCount ()
  2770. {
  2771. TickType_t xTicks;
  2772. TickType_t D.7785;
  2773. TickType_t _3;
  2774. <bb 2> :
  2775. xTicks_2 ={v} xTickCount;
  2776. _3 = xTicks_2;
  2777. <bb 3> :
  2778. <L0>:
  2779. return _3;
  2780. }
  2781. ;; Function xTaskGetTickCountFromISR (xTaskGetTickCountFromISR, funcdef_no=26, decl_uid=6183, cgraph_uid=27, symbol_order=48)
  2782. xTaskGetTickCountFromISR ()
  2783. {
  2784. UBaseType_t uxSavedInterruptStatus;
  2785. TickType_t xReturn;
  2786. TickType_t D.7787;
  2787. TickType_t _5;
  2788. <bb 2> :
  2789. vPortValidateInterruptPriority ();
  2790. uxSavedInterruptStatus_3 = 0;
  2791. xReturn_4 ={v} xTickCount;
  2792. _5 = xReturn_4;
  2793. <bb 3> :
  2794. <L0>:
  2795. return _5;
  2796. }
  2797. ;; Function uxTaskGetNumberOfTasks (uxTaskGetNumberOfTasks, funcdef_no=27, decl_uid=6185, cgraph_uid=28, symbol_order=49)
  2798. uxTaskGetNumberOfTasks ()
  2799. {
  2800. UBaseType_t D.7789;
  2801. UBaseType_t _2;
  2802. <bb 2> :
  2803. _2 ={v} uxCurrentNumberOfTasks;
  2804. <bb 3> :
  2805. <L0>:
  2806. return _2;
  2807. }
  2808. ;; Function pcTaskGetName (pcTaskGetName, funcdef_no=28, decl_uid=6187, cgraph_uid=29, symbol_order=50)
  2809. pcTaskGetName (struct tskTaskControlBlock * xTaskToQuery)
  2810. {
  2811. uint32_t ulNewBASEPRI;
  2812. struct TCB_t * pxTCB;
  2813. char * D.7797;
  2814. struct TCB_t * iftmp.51;
  2815. struct TCB_t * iftmp.51_1;
  2816. struct TCB_t * iftmp.51_3;
  2817. struct TCB_t * iftmp.51_5;
  2818. char * _7;
  2819. <bb 2> :
  2820. if (xTaskToQuery_2(D) == 0B)
  2821. goto <bb 3>; [INV]
  2822. else
  2823. goto <bb 4>; [INV]
  2824. <bb 3> :
  2825. iftmp.51_5 ={v} pxCurrentTCB;
  2826. goto <bb 5>; [INV]
  2827. <bb 4> :
  2828. iftmp.51_3 = xTaskToQuery_2(D);
  2829. <bb 5> :
  2830. # iftmp.51_1 = PHI <iftmp.51_5(3), iftmp.51_3(4)>
  2831. pxTCB_6 = iftmp.51_1;
  2832. if (pxTCB_6 == 0B)
  2833. goto <bb 6>; [INV]
  2834. else
  2835. goto <bb 9>; [INV]
  2836. <bb 6> :
  2837. __asm__ __volatile__(" mov %0, %1
  2838. msr basepri, %0
  2839. isb
  2840. dsb
  2841. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  2842. <bb 7> :
  2843. <bb 8> :
  2844. goto <bb 8>; [INV]
  2845. <bb 9> :
  2846. _7 = &pxTCB_6->pcTaskName[0];
  2847. <bb 10> :
  2848. <L6>:
  2849. return _7;
  2850. }
  2851. ;; Function prvSearchForNameWithinSingleList (prvSearchForNameWithinSingleList, funcdef_no=29, decl_uid=6957, cgraph_uid=30, symbol_order=51)
  2852. prvSearchForNameWithinSingleList (struct List_t * pxList, const char * pcNameToQuery)
  2853. {
  2854. struct List_t * const pxConstList;
  2855. struct List_t * const pxConstList;
  2856. BaseType_t xBreakLoop;
  2857. char cNextChar;
  2858. UBaseType_t x;
  2859. struct TCB_t * pxReturn;
  2860. struct TCB_t * pxFirstTCB;
  2861. struct TCB_t * pxNextTCB;
  2862. struct TCB_t * D.7816;
  2863. long unsigned int _1;
  2864. struct ListItem_t * _2;
  2865. struct xLIST_ITEM * _3;
  2866. struct ListItem_t * _4;
  2867. struct MiniListItem_t * _5;
  2868. struct ListItem_t * _6;
  2869. struct xLIST_ITEM * _7;
  2870. struct ListItem_t * _8;
  2871. struct ListItem_t * _9;
  2872. struct xLIST_ITEM * _10;
  2873. struct ListItem_t * _11;
  2874. struct MiniListItem_t * _12;
  2875. struct ListItem_t * _13;
  2876. struct xLIST_ITEM * _14;
  2877. struct ListItem_t * _15;
  2878. const char * _16;
  2879. char _17;
  2880. struct TCB_t * _49;
  2881. <bb 2> :
  2882. pxReturn_30 = 0B;
  2883. _1 ={v} pxList_32(D)->uxNumberOfItems;
  2884. if (_1 != 0)
  2885. goto <bb 3>; [INV]
  2886. else
  2887. goto <bb 21>; [INV]
  2888. <bb 3> :
  2889. pxConstList_33 = pxList_32(D);
  2890. _2 = pxConstList_33->pxIndex;
  2891. _3 = _2->pxNext;
  2892. pxConstList_33->pxIndex = _3;
  2893. _4 = pxConstList_33->pxIndex;
  2894. _5 = &pxConstList_33->xListEnd;
  2895. if (_4 == _5)
  2896. goto <bb 4>; [INV]
  2897. else
  2898. goto <bb 5>; [INV]
  2899. <bb 4> :
  2900. _6 = pxConstList_33->pxIndex;
  2901. _7 = _6->pxNext;
  2902. pxConstList_33->pxIndex = _7;
  2903. <bb 5> :
  2904. _8 = pxConstList_33->pxIndex;
  2905. pxFirstTCB_36 = _8->pvOwner;
  2906. <bb 6> :
  2907. # pxReturn_18 = PHI <pxReturn_30(5), pxReturn_21(19)>
  2908. pxConstList_37 = pxList_32(D);
  2909. _9 = pxConstList_37->pxIndex;
  2910. _10 = _9->pxNext;
  2911. pxConstList_37->pxIndex = _10;
  2912. _11 = pxConstList_37->pxIndex;
  2913. _12 = &pxConstList_37->xListEnd;
  2914. if (_11 == _12)
  2915. goto <bb 7>; [INV]
  2916. else
  2917. goto <bb 8>; [INV]
  2918. <bb 7> :
  2919. _13 = pxConstList_37->pxIndex;
  2920. _14 = _13->pxNext;
  2921. pxConstList_37->pxIndex = _14;
  2922. <bb 8> :
  2923. _15 = pxConstList_37->pxIndex;
  2924. pxNextTCB_40 = _15->pvOwner;
  2925. xBreakLoop_41 = 0;
  2926. x_42 = 0;
  2927. goto <bb 16>; [INV]
  2928. <bb 9> :
  2929. cNextChar_43 = pxNextTCB_40->pcTaskName[x_23];
  2930. _16 = pcNameToQuery_44(D) + x_23;
  2931. _17 = *_16;
  2932. if (cNextChar_43 != _17)
  2933. goto <bb 10>; [INV]
  2934. else
  2935. goto <bb 11>; [INV]
  2936. <bb 10> :
  2937. xBreakLoop_47 = 1;
  2938. goto <bb 13>; [INV]
  2939. <bb 11> :
  2940. if (cNextChar_43 == 0)
  2941. goto <bb 12>; [INV]
  2942. else
  2943. goto <bb 13>; [INV]
  2944. <bb 12> :
  2945. pxReturn_45 = pxNextTCB_40;
  2946. xBreakLoop_46 = 1;
  2947. <bb 13> :
  2948. # pxReturn_19 = PHI <pxReturn_20(10), pxReturn_20(11), pxReturn_45(12)>
  2949. # xBreakLoop_24 = PHI <xBreakLoop_47(10), xBreakLoop_25(11), xBreakLoop_46(12)>
  2950. if (xBreakLoop_24 != 0)
  2951. goto <bb 14>; [INV]
  2952. else
  2953. goto <bb 15>; [INV]
  2954. <bb 14> :
  2955. goto <bb 17>; [INV]
  2956. <bb 15> :
  2957. x_48 = x_23 + 1;
  2958. <bb 16> :
  2959. # pxReturn_20 = PHI <pxReturn_18(8), pxReturn_19(15)>
  2960. # x_23 = PHI <x_42(8), x_48(15)>
  2961. # xBreakLoop_25 = PHI <xBreakLoop_41(8), xBreakLoop_24(15)>
  2962. if (x_23 <= 9)
  2963. goto <bb 9>; [INV]
  2964. else
  2965. goto <bb 17>; [INV]
  2966. <bb 17> :
  2967. # pxReturn_21 = PHI <pxReturn_19(14), pxReturn_20(16)>
  2968. if (pxReturn_21 != 0B)
  2969. goto <bb 18>; [INV]
  2970. else
  2971. goto <bb 19>; [INV]
  2972. <bb 18> :
  2973. goto <bb 20>; [INV]
  2974. <bb 19> :
  2975. if (pxNextTCB_40 != pxFirstTCB_36)
  2976. goto <bb 6>; [INV]
  2977. else
  2978. goto <bb 20>; [INV]
  2979. <bb 20> :
  2980. <bb 21> :
  2981. # pxReturn_22 = PHI <pxReturn_30(2), pxReturn_21(20)>
  2982. _49 = pxReturn_22;
  2983. <bb 22> :
  2984. <L22>:
  2985. return _49;
  2986. }
  2987. ;; Function xTaskGetHandle (xTaskGetHandle, funcdef_no=30, decl_uid=6189, cgraph_uid=31, symbol_order=52)
  2988. xTaskGetHandle (const char * pcNameToQuery)
  2989. {
  2990. uint32_t ulNewBASEPRI;
  2991. struct TCB_t * pxTCB;
  2992. UBaseType_t uxQueue;
  2993. struct tskTaskControlBlock * D.7830;
  2994. unsigned int _1;
  2995. struct List_t * _2;
  2996. struct List_t * pxDelayedTaskList.52_3;
  2997. struct List_t * pxOverflowDelayedTaskList.53_4;
  2998. struct tskTaskControlBlock * _31;
  2999. <bb 2> :
  3000. uxQueue_15 = 5;
  3001. _1 = strlen (pcNameToQuery_17(D));
  3002. if (_1 > 9)
  3003. goto <bb 3>; [INV]
  3004. else
  3005. goto <bb 6>; [INV]
  3006. <bb 3> :
  3007. __asm__ __volatile__(" mov %0, %1
  3008. msr basepri, %0
  3009. isb
  3010. dsb
  3011. " : "=r" ulNewBASEPRI_32 : "i" 16 : "memory");
  3012. <bb 4> :
  3013. <bb 5> :
  3014. goto <bb 5>; [INV]
  3015. <bb 6> :
  3016. vTaskSuspendAll ();
  3017. <bb 7> :
  3018. # uxQueue_5 = PHI <uxQueue_15(6), uxQueue_19(9)>
  3019. uxQueue_19 = uxQueue_5 + 4294967295;
  3020. _2 = &pxReadyTasksLists[uxQueue_19];
  3021. pxTCB_21 = prvSearchForNameWithinSingleList (_2, pcNameToQuery_17(D));
  3022. if (pxTCB_21 != 0B)
  3023. goto <bb 8>; [INV]
  3024. else
  3025. goto <bb 9>; [INV]
  3026. <bb 8> :
  3027. goto <bb 10>; [INV]
  3028. <bb 9> :
  3029. if (uxQueue_19 != 0)
  3030. goto <bb 7>; [INV]
  3031. else
  3032. goto <bb 10>; [INV]
  3033. <bb 10> :
  3034. if (pxTCB_21 == 0B)
  3035. goto <bb 11>; [INV]
  3036. else
  3037. goto <bb 12>; [INV]
  3038. <bb 11> :
  3039. pxDelayedTaskList.52_3 ={v} pxDelayedTaskList;
  3040. pxTCB_23 = prvSearchForNameWithinSingleList (pxDelayedTaskList.52_3, pcNameToQuery_17(D));
  3041. <bb 12> :
  3042. # pxTCB_6 = PHI <pxTCB_21(10), pxTCB_23(11)>
  3043. if (pxTCB_6 == 0B)
  3044. goto <bb 13>; [INV]
  3045. else
  3046. goto <bb 14>; [INV]
  3047. <bb 13> :
  3048. pxOverflowDelayedTaskList.53_4 ={v} pxOverflowDelayedTaskList;
  3049. pxTCB_25 = prvSearchForNameWithinSingleList (pxOverflowDelayedTaskList.53_4, pcNameToQuery_17(D));
  3050. <bb 14> :
  3051. # pxTCB_7 = PHI <pxTCB_6(12), pxTCB_25(13)>
  3052. if (pxTCB_7 == 0B)
  3053. goto <bb 15>; [INV]
  3054. else
  3055. goto <bb 16>; [INV]
  3056. <bb 15> :
  3057. pxTCB_27 = prvSearchForNameWithinSingleList (&xSuspendedTaskList, pcNameToQuery_17(D));
  3058. <bb 16> :
  3059. # pxTCB_8 = PHI <pxTCB_7(14), pxTCB_27(15)>
  3060. if (pxTCB_8 == 0B)
  3061. goto <bb 17>; [INV]
  3062. else
  3063. goto <bb 18>; [INV]
  3064. <bb 17> :
  3065. pxTCB_29 = prvSearchForNameWithinSingleList (&xTasksWaitingTermination, pcNameToQuery_17(D));
  3066. <bb 18> :
  3067. # pxTCB_9 = PHI <pxTCB_8(16), pxTCB_29(17)>
  3068. xTaskResumeAll ();
  3069. _31 = pxTCB_9;
  3070. <bb 19> :
  3071. <L15>:
  3072. return _31;
  3073. }
  3074. ;; Function uxTaskGetSystemState (uxTaskGetSystemState, funcdef_no=31, decl_uid=6202, cgraph_uid=32, symbol_order=53)
  3075. uxTaskGetSystemState (struct TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime)
  3076. {
  3077. UBaseType_t uxQueue;
  3078. UBaseType_t uxTask;
  3079. UBaseType_t D.7842;
  3080. long unsigned int D.7838;
  3081. long unsigned int D.7837;
  3082. long unsigned int D.7836;
  3083. long unsigned int D.7835;
  3084. long unsigned int D.7834;
  3085. long unsigned int uxCurrentNumberOfTasks.54_1;
  3086. long unsigned int _2;
  3087. struct TaskStatus_t * _3;
  3088. struct List_t * _4;
  3089. long unsigned int _5;
  3090. struct TaskStatus_t * _6;
  3091. struct List_t * pxDelayedTaskList.55_7;
  3092. long unsigned int _8;
  3093. struct TaskStatus_t * _9;
  3094. struct List_t * pxOverflowDelayedTaskList.56_10;
  3095. long unsigned int _11;
  3096. struct TaskStatus_t * _12;
  3097. long unsigned int _13;
  3098. struct TaskStatus_t * _14;
  3099. long unsigned int _28;
  3100. long unsigned int _31;
  3101. long unsigned int _34;
  3102. long unsigned int _37;
  3103. long unsigned int _40;
  3104. UBaseType_t _45;
  3105. <bb 2> :
  3106. uxTask_20 = 0;
  3107. uxQueue_21 = 5;
  3108. vTaskSuspendAll ();
  3109. uxCurrentNumberOfTasks.54_1 ={v} uxCurrentNumberOfTasks;
  3110. if (uxArraySize_24(D) >= uxCurrentNumberOfTasks.54_1)
  3111. goto <bb 3>; [INV]
  3112. else
  3113. goto <bb 6>; [INV]
  3114. <bb 3> :
  3115. # uxTask_15 = PHI <uxTask_20(2), uxTask_29(3)>
  3116. # uxQueue_17 = PHI <uxQueue_21(2), uxQueue_25(3)>
  3117. uxQueue_25 = uxQueue_17 + 4294967295;
  3118. _2 = uxTask_15 * 36;
  3119. _3 = pxTaskStatusArray_26(D) + _2;
  3120. _4 = &pxReadyTasksLists[uxQueue_25];
  3121. _28 = prvListTasksWithinSingleList (_3, _4, 1);
  3122. uxTask_29 = _28 + uxTask_15;
  3123. if (uxQueue_25 != 0)
  3124. goto <bb 3>; [INV]
  3125. else
  3126. goto <bb 4>; [INV]
  3127. <bb 4> :
  3128. _5 = uxTask_29 * 36;
  3129. _6 = pxTaskStatusArray_26(D) + _5;
  3130. pxDelayedTaskList.55_7 ={v} pxDelayedTaskList;
  3131. _31 = prvListTasksWithinSingleList (_6, pxDelayedTaskList.55_7, 2);
  3132. uxTask_32 = _31 + uxTask_29;
  3133. _8 = uxTask_32 * 36;
  3134. _9 = pxTaskStatusArray_26(D) + _8;
  3135. pxOverflowDelayedTaskList.56_10 ={v} pxOverflowDelayedTaskList;
  3136. _34 = prvListTasksWithinSingleList (_9, pxOverflowDelayedTaskList.56_10, 2);
  3137. uxTask_35 = _34 + uxTask_32;
  3138. _11 = uxTask_35 * 36;
  3139. _12 = pxTaskStatusArray_26(D) + _11;
  3140. _37 = prvListTasksWithinSingleList (_12, &xTasksWaitingTermination, 4);
  3141. uxTask_38 = _37 + uxTask_35;
  3142. _13 = uxTask_38 * 36;
  3143. _14 = pxTaskStatusArray_26(D) + _13;
  3144. _40 = prvListTasksWithinSingleList (_14, &xSuspendedTaskList, 3);
  3145. uxTask_41 = _40 + uxTask_38;
  3146. if (pulTotalRunTime_42(D) != 0B)
  3147. goto <bb 5>; [INV]
  3148. else
  3149. goto <bb 6>; [INV]
  3150. <bb 5> :
  3151. *pulTotalRunTime_42(D) = 0;
  3152. <bb 6> :
  3153. # uxTask_16 = PHI <uxTask_20(2), uxTask_41(5), uxTask_41(4)>
  3154. xTaskResumeAll ();
  3155. _45 = uxTask_16;
  3156. <bb 7> :
  3157. <L7>:
  3158. return _45;
  3159. }
  3160. ;; Function xTaskCatchUpTicks (xTaskCatchUpTicks, funcdef_no=32, decl_uid=6249, cgraph_uid=33, symbol_order=54)
  3161. xTaskCatchUpTicks (TickType_t xTicksToCatchUp)
  3162. {
  3163. uint32_t ulNewBASEPRI;
  3164. BaseType_t xYieldOccurred;
  3165. BaseType_t D.7846;
  3166. long unsigned int uxSchedulerSuspended.57_1;
  3167. long unsigned int xPendedTicks.58_2;
  3168. long unsigned int _3;
  3169. BaseType_t _10;
  3170. <bb 2> :
  3171. uxSchedulerSuspended.57_1 ={v} uxSchedulerSuspended;
  3172. if (uxSchedulerSuspended.57_1 != 0)
  3173. goto <bb 3>; [INV]
  3174. else
  3175. goto <bb 6>; [INV]
  3176. <bb 3> :
  3177. __asm__ __volatile__(" mov %0, %1
  3178. msr basepri, %0
  3179. isb
  3180. dsb
  3181. " : "=r" ulNewBASEPRI_11 : "i" 16 : "memory");
  3182. <bb 4> :
  3183. <bb 5> :
  3184. goto <bb 5>; [INV]
  3185. <bb 6> :
  3186. vTaskSuspendAll ();
  3187. xPendedTicks.58_2 ={v} xPendedTicks;
  3188. _3 = xTicksToCatchUp_6(D) + xPendedTicks.58_2;
  3189. xPendedTicks ={v} _3;
  3190. xYieldOccurred_9 = xTaskResumeAll ();
  3191. _10 = xYieldOccurred_9;
  3192. <bb 7> :
  3193. <L3>:
  3194. return _10;
  3195. }
  3196. ;; Function xTaskAbortDelay (xTaskAbortDelay, funcdef_no=33, decl_uid=6151, cgraph_uid=34, symbol_order=55)
  3197. xTaskAbortDelay (struct tskTaskControlBlock * xTask)
  3198. {
  3199. uint32_t ulNewBASEPRI;
  3200. struct ListItem_t * const pxIndex;
  3201. BaseType_t xReturn;
  3202. struct TCB_t * pxTCB;
  3203. BaseType_t D.7861;
  3204. <unnamed type> _1;
  3205. struct ListItem_t * _2;
  3206. struct xLIST * _3;
  3207. struct ListItem_t * _4;
  3208. long unsigned int _5;
  3209. long unsigned int uxTopReadyPriority.59_6;
  3210. long unsigned int _7;
  3211. long unsigned int _8;
  3212. struct xLIST_ITEM * _9;
  3213. struct xLIST_ITEM * _10;
  3214. struct ListItem_t * _11;
  3215. struct ListItem_t * _12;
  3216. long unsigned int _13;
  3217. struct List_t * _14;
  3218. long unsigned int _15;
  3219. long unsigned int _16;
  3220. long unsigned int _17;
  3221. long unsigned int _18;
  3222. struct TCB_t * pxCurrentTCB.60_19;
  3223. long unsigned int _20;
  3224. BaseType_t _47;
  3225. <bb 2> :
  3226. pxTCB_26 = xTask_25(D);
  3227. if (pxTCB_26 == 0B)
  3228. goto <bb 3>; [INV]
  3229. else
  3230. goto <bb 6>; [INV]
  3231. <bb 3> :
  3232. __asm__ __volatile__(" mov %0, %1
  3233. msr basepri, %0
  3234. isb
  3235. dsb
  3236. " : "=r" ulNewBASEPRI_48 : "i" 16 : "memory");
  3237. <bb 4> :
  3238. <bb 5> :
  3239. goto <bb 5>; [INV]
  3240. <bb 6> :
  3241. vTaskSuspendAll ();
  3242. _1 = eTaskGetState (xTask_25(D));
  3243. if (_1 == 2)
  3244. goto <bb 7>; [INV]
  3245. else
  3246. goto <bb 13>; [INV]
  3247. <bb 7> :
  3248. xReturn_31 = 1;
  3249. _2 = &pxTCB_26->xStateListItem;
  3250. uxListRemove (_2);
  3251. vPortEnterCritical ();
  3252. _3 = pxTCB_26->xEventListItem.pvContainer;
  3253. if (_3 != 0B)
  3254. goto <bb 8>; [INV]
  3255. else
  3256. goto <bb 9>; [INV]
  3257. <bb 8> :
  3258. _4 = &pxTCB_26->xEventListItem;
  3259. uxListRemove (_4);
  3260. pxTCB_26->ucDelayAborted = 1;
  3261. <bb 9> :
  3262. vPortExitCritical ();
  3263. _5 = pxTCB_26->uxPriority;
  3264. uxTopReadyPriority.59_6 ={v} uxTopReadyPriority;
  3265. if (_5 > uxTopReadyPriority.59_6)
  3266. goto <bb 10>; [INV]
  3267. else
  3268. goto <bb 11>; [INV]
  3269. <bb 10> :
  3270. _7 = pxTCB_26->uxPriority;
  3271. uxTopReadyPriority ={v} _7;
  3272. <bb 11> :
  3273. _8 = pxTCB_26->uxPriority;
  3274. pxIndex_38 = pxReadyTasksLists[_8].pxIndex;
  3275. pxTCB_26->xStateListItem.pxNext = pxIndex_38;
  3276. _9 = pxIndex_38->pxPrevious;
  3277. pxTCB_26->xStateListItem.pxPrevious = _9;
  3278. _10 = pxIndex_38->pxPrevious;
  3279. _11 = &pxTCB_26->xStateListItem;
  3280. _10->pxNext = _11;
  3281. _12 = &pxTCB_26->xStateListItem;
  3282. pxIndex_38->pxPrevious = _12;
  3283. _13 = pxTCB_26->uxPriority;
  3284. _14 = &pxReadyTasksLists[_13];
  3285. pxTCB_26->xStateListItem.pvContainer = _14;
  3286. _15 = pxTCB_26->uxPriority;
  3287. _16 ={v} pxReadyTasksLists[_15].uxNumberOfItems;
  3288. _17 = _16 + 1;
  3289. pxReadyTasksLists[_15].uxNumberOfItems ={v} _17;
  3290. _18 = pxTCB_26->uxPriority;
  3291. pxCurrentTCB.60_19 ={v} pxCurrentTCB;
  3292. _20 = pxCurrentTCB.60_19->uxPriority;
  3293. if (_18 > _20)
  3294. goto <bb 12>; [INV]
  3295. else
  3296. goto <bb 14>; [INV]
  3297. <bb 12> :
  3298. xYieldPending ={v} 1;
  3299. goto <bb 14>; [INV]
  3300. <bb 13> :
  3301. xReturn_30 = 0;
  3302. <bb 14> :
  3303. # xReturn_21 = PHI <xReturn_31(12), xReturn_30(13), xReturn_31(11)>
  3304. xTaskResumeAll ();
  3305. _47 = xReturn_21;
  3306. <bb 15> :
  3307. <L14>:
  3308. return _47;
  3309. }
  3310. ;; Function xTaskIncrementTick (xTaskIncrementTick, funcdef_no=34, decl_uid=6251, cgraph_uid=35, symbol_order=56)
  3311. xTaskIncrementTick ()
  3312. {
  3313. uint32_t ulNewBASEPRI;
  3314. struct ListItem_t * const pxIndex;
  3315. struct List_t * const pxList;
  3316. struct List_t * const pxList;
  3317. struct List_t * pxTemp;
  3318. const TickType_t xConstTickCount;
  3319. BaseType_t xSwitchRequired;
  3320. TickType_t xItemValue;
  3321. struct TCB_t * pxTCB;
  3322. BaseType_t D.7895;
  3323. long unsigned int uxSchedulerSuspended.61_1;
  3324. long unsigned int xTickCount.62_2;
  3325. struct List_t * pxDelayedTaskList.63_3;
  3326. long unsigned int _4;
  3327. struct List_t * pxOverflowDelayedTaskList.64_5;
  3328. long int xNumOfOverflows.65_6;
  3329. long int _7;
  3330. long unsigned int xNextTaskUnblockTime.66_8;
  3331. struct List_t * pxDelayedTaskList.67_9;
  3332. long unsigned int _10;
  3333. struct List_t * pxDelayedTaskList.68_11;
  3334. struct xLIST_ITEM * _12;
  3335. struct xLIST_ITEM * _13;
  3336. struct xLIST_ITEM * _14;
  3337. struct xLIST_ITEM * _15;
  3338. struct xLIST_ITEM * _16;
  3339. struct ListItem_t * _17;
  3340. struct ListItem_t * _18;
  3341. struct xLIST_ITEM * _19;
  3342. long unsigned int _20;
  3343. long unsigned int _21;
  3344. struct xLIST * _22;
  3345. struct xLIST_ITEM * _23;
  3346. struct xLIST_ITEM * _24;
  3347. struct xLIST_ITEM * _25;
  3348. struct xLIST_ITEM * _26;
  3349. struct ListItem_t * _27;
  3350. struct ListItem_t * _28;
  3351. struct xLIST_ITEM * _29;
  3352. long unsigned int _30;
  3353. long unsigned int _31;
  3354. long unsigned int _32;
  3355. long unsigned int uxTopReadyPriority.69_33;
  3356. long unsigned int _34;
  3357. long unsigned int _35;
  3358. struct xLIST_ITEM * _36;
  3359. struct xLIST_ITEM * _37;
  3360. struct ListItem_t * _38;
  3361. struct ListItem_t * _39;
  3362. long unsigned int _40;
  3363. struct List_t * _41;
  3364. long unsigned int _42;
  3365. long unsigned int _43;
  3366. long unsigned int _44;
  3367. long unsigned int _45;
  3368. struct TCB_t * pxCurrentTCB.70_46;
  3369. long unsigned int _47;
  3370. struct TCB_t * pxCurrentTCB.71_48;
  3371. long unsigned int _49;
  3372. long unsigned int _50;
  3373. long int xYieldPending.72_51;
  3374. long unsigned int xPendedTicks.73_52;
  3375. long unsigned int _53;
  3376. BaseType_t _104;
  3377. <bb 2> :
  3378. xSwitchRequired_67 = 0;
  3379. uxSchedulerSuspended.61_1 ={v} uxSchedulerSuspended;
  3380. if (uxSchedulerSuspended.61_1 == 0)
  3381. goto <bb 3>; [INV]
  3382. else
  3383. goto <bb 29>; [INV]
  3384. <bb 3> :
  3385. xTickCount.62_2 ={v} xTickCount;
  3386. xConstTickCount_70 = xTickCount.62_2 + 1;
  3387. xTickCount ={v} xConstTickCount_70;
  3388. if (xConstTickCount_70 == 0)
  3389. goto <bb 4>; [INV]
  3390. else
  3391. goto <bb 9>; [INV]
  3392. <bb 4> :
  3393. pxDelayedTaskList.63_3 ={v} pxDelayedTaskList;
  3394. _4 ={v} pxDelayedTaskList.63_3->uxNumberOfItems;
  3395. if (_4 != 0)
  3396. goto <bb 5>; [INV]
  3397. else
  3398. goto <bb 8>; [INV]
  3399. <bb 5> :
  3400. __asm__ __volatile__(" mov %0, %1
  3401. msr basepri, %0
  3402. isb
  3403. dsb
  3404. " : "=r" ulNewBASEPRI_105 : "i" 16 : "memory");
  3405. <bb 6> :
  3406. <bb 7> :
  3407. goto <bb 7>; [INV]
  3408. <bb 8> :
  3409. pxTemp_72 ={v} pxDelayedTaskList;
  3410. pxOverflowDelayedTaskList.64_5 ={v} pxOverflowDelayedTaskList;
  3411. pxDelayedTaskList ={v} pxOverflowDelayedTaskList.64_5;
  3412. pxOverflowDelayedTaskList ={v} pxTemp_72;
  3413. xNumOfOverflows.65_6 ={v} xNumOfOverflows;
  3414. _7 = xNumOfOverflows.65_6 + 1;
  3415. xNumOfOverflows ={v} _7;
  3416. prvResetNextTaskUnblockTime ();
  3417. <bb 9> :
  3418. xNextTaskUnblockTime.66_8 ={v} xNextTaskUnblockTime;
  3419. if (xConstTickCount_70 >= xNextTaskUnblockTime.66_8)
  3420. goto <bb 10>; [INV]
  3421. else
  3422. goto <bb 25>; [INV]
  3423. <bb 10> :
  3424. # xSwitchRequired_54 = PHI <xSwitchRequired_67(9), xSwitchRequired_55(24)>
  3425. pxDelayedTaskList.67_9 ={v} pxDelayedTaskList;
  3426. _10 ={v} pxDelayedTaskList.67_9->uxNumberOfItems;
  3427. if (_10 == 0)
  3428. goto <bb 11>; [INV]
  3429. else
  3430. goto <bb 12>; [INV]
  3431. <bb 11> :
  3432. xNextTaskUnblockTime ={v} 4294967295;
  3433. goto <bb 25>; [INV]
  3434. <bb 12> :
  3435. pxDelayedTaskList.68_11 ={v} pxDelayedTaskList;
  3436. _12 = pxDelayedTaskList.68_11->xListEnd.pxNext;
  3437. pxTCB_77 = _12->pvOwner;
  3438. xItemValue_78 = pxTCB_77->xStateListItem.xItemValue;
  3439. if (xConstTickCount_70 < xItemValue_78)
  3440. goto <bb 13>; [INV]
  3441. else
  3442. goto <bb 14>; [INV]
  3443. <bb 13> :
  3444. xNextTaskUnblockTime ={v} xItemValue_78;
  3445. goto <bb 25>; [INV]
  3446. <bb 14> :
  3447. pxList_79 = pxTCB_77->xStateListItem.pvContainer;
  3448. _13 = pxTCB_77->xStateListItem.pxNext;
  3449. _14 = pxTCB_77->xStateListItem.pxPrevious;
  3450. _13->pxPrevious = _14;
  3451. _15 = pxTCB_77->xStateListItem.pxPrevious;
  3452. _16 = pxTCB_77->xStateListItem.pxNext;
  3453. _15->pxNext = _16;
  3454. _17 = pxList_79->pxIndex;
  3455. _18 = &pxTCB_77->xStateListItem;
  3456. if (_17 == _18)
  3457. goto <bb 15>; [INV]
  3458. else
  3459. goto <bb 16>; [INV]
  3460. <bb 15> :
  3461. _19 = pxTCB_77->xStateListItem.pxPrevious;
  3462. pxList_79->pxIndex = _19;
  3463. <bb 16> :
  3464. pxTCB_77->xStateListItem.pvContainer = 0B;
  3465. _20 ={v} pxList_79->uxNumberOfItems;
  3466. _21 = _20 + 4294967295;
  3467. pxList_79->uxNumberOfItems ={v} _21;
  3468. _22 = pxTCB_77->xEventListItem.pvContainer;
  3469. if (_22 != 0B)
  3470. goto <bb 17>; [INV]
  3471. else
  3472. goto <bb 20>; [INV]
  3473. <bb 17> :
  3474. pxList_85 = pxTCB_77->xEventListItem.pvContainer;
  3475. _23 = pxTCB_77->xEventListItem.pxNext;
  3476. _24 = pxTCB_77->xEventListItem.pxPrevious;
  3477. _23->pxPrevious = _24;
  3478. _25 = pxTCB_77->xEventListItem.pxPrevious;
  3479. _26 = pxTCB_77->xEventListItem.pxNext;
  3480. _25->pxNext = _26;
  3481. _27 = pxList_85->pxIndex;
  3482. _28 = &pxTCB_77->xEventListItem;
  3483. if (_27 == _28)
  3484. goto <bb 18>; [INV]
  3485. else
  3486. goto <bb 19>; [INV]
  3487. <bb 18> :
  3488. _29 = pxTCB_77->xEventListItem.pxPrevious;
  3489. pxList_85->pxIndex = _29;
  3490. <bb 19> :
  3491. pxTCB_77->xEventListItem.pvContainer = 0B;
  3492. _30 ={v} pxList_85->uxNumberOfItems;
  3493. _31 = _30 + 4294967295;
  3494. pxList_85->uxNumberOfItems ={v} _31;
  3495. <bb 20> :
  3496. _32 = pxTCB_77->uxPriority;
  3497. uxTopReadyPriority.69_33 ={v} uxTopReadyPriority;
  3498. if (_32 > uxTopReadyPriority.69_33)
  3499. goto <bb 21>; [INV]
  3500. else
  3501. goto <bb 22>; [INV]
  3502. <bb 21> :
  3503. _34 = pxTCB_77->uxPriority;
  3504. uxTopReadyPriority ={v} _34;
  3505. <bb 22> :
  3506. _35 = pxTCB_77->uxPriority;
  3507. pxIndex_92 = pxReadyTasksLists[_35].pxIndex;
  3508. pxTCB_77->xStateListItem.pxNext = pxIndex_92;
  3509. _36 = pxIndex_92->pxPrevious;
  3510. pxTCB_77->xStateListItem.pxPrevious = _36;
  3511. _37 = pxIndex_92->pxPrevious;
  3512. _38 = &pxTCB_77->xStateListItem;
  3513. _37->pxNext = _38;
  3514. _39 = &pxTCB_77->xStateListItem;
  3515. pxIndex_92->pxPrevious = _39;
  3516. _40 = pxTCB_77->uxPriority;
  3517. _41 = &pxReadyTasksLists[_40];
  3518. pxTCB_77->xStateListItem.pvContainer = _41;
  3519. _42 = pxTCB_77->uxPriority;
  3520. _43 ={v} pxReadyTasksLists[_42].uxNumberOfItems;
  3521. _44 = _43 + 1;
  3522. pxReadyTasksLists[_42].uxNumberOfItems ={v} _44;
  3523. _45 = pxTCB_77->uxPriority;
  3524. pxCurrentTCB.70_46 ={v} pxCurrentTCB;
  3525. _47 = pxCurrentTCB.70_46->uxPriority;
  3526. if (_45 >= _47)
  3527. goto <bb 23>; [INV]
  3528. else
  3529. goto <bb 24>; [INV]
  3530. <bb 23> :
  3531. xSwitchRequired_99 = 1;
  3532. <bb 24> :
  3533. # xSwitchRequired_55 = PHI <xSwitchRequired_54(22), xSwitchRequired_99(23)>
  3534. goto <bb 10>; [INV]
  3535. <bb 25> :
  3536. # xSwitchRequired_56 = PHI <xSwitchRequired_67(9), xSwitchRequired_54(11), xSwitchRequired_54(13)>
  3537. pxCurrentTCB.71_48 ={v} pxCurrentTCB;
  3538. _49 = pxCurrentTCB.71_48->uxPriority;
  3539. _50 ={v} pxReadyTasksLists[_49].uxNumberOfItems;
  3540. if (_50 > 1)
  3541. goto <bb 26>; [INV]
  3542. else
  3543. goto <bb 27>; [INV]
  3544. <bb 26> :
  3545. xSwitchRequired_102 = 1;
  3546. <bb 27> :
  3547. # xSwitchRequired_57 = PHI <xSwitchRequired_56(25), xSwitchRequired_102(26)>
  3548. xYieldPending.72_51 ={v} xYieldPending;
  3549. if (xYieldPending.72_51 != 0)
  3550. goto <bb 28>; [INV]
  3551. else
  3552. goto <bb 30>; [INV]
  3553. <bb 28> :
  3554. xSwitchRequired_103 = 1;
  3555. goto <bb 30>; [INV]
  3556. <bb 29> :
  3557. xPendedTicks.73_52 ={v} xPendedTicks;
  3558. _53 = xPendedTicks.73_52 + 1;
  3559. xPendedTicks ={v} _53;
  3560. <bb 30> :
  3561. # xSwitchRequired_58 = PHI <xSwitchRequired_103(28), xSwitchRequired_67(29), xSwitchRequired_57(27)>
  3562. _104 = xSwitchRequired_58;
  3563. <bb 31> :
  3564. <L35>:
  3565. return _104;
  3566. }
  3567. ;; Function vTaskSwitchContext (vTaskSwitchContext, funcdef_no=35, decl_uid=6269, cgraph_uid=36, symbol_order=57)
  3568. __attribute__((used))
  3569. vTaskSwitchContext ()
  3570. {
  3571. uint32_t ulNewBASEPRI;
  3572. struct List_t * const pxConstList;
  3573. UBaseType_t uxTopPriority;
  3574. long unsigned int uxSchedulerSuspended.74_1;
  3575. long unsigned int _2;
  3576. struct ListItem_t * _3;
  3577. struct xLIST_ITEM * _4;
  3578. struct ListItem_t * _5;
  3579. struct MiniListItem_t * _6;
  3580. struct ListItem_t * _7;
  3581. struct xLIST_ITEM * _8;
  3582. struct ListItem_t * _9;
  3583. void * _10;
  3584. <bb 2> :
  3585. uxSchedulerSuspended.74_1 ={v} uxSchedulerSuspended;
  3586. if (uxSchedulerSuspended.74_1 != 0)
  3587. goto <bb 3>; [INV]
  3588. else
  3589. goto <bb 4>; [INV]
  3590. <bb 3> :
  3591. xYieldPending ={v} 1;
  3592. goto <bb 14>; [INV]
  3593. <bb 4> :
  3594. xYieldPending ={v} 0;
  3595. uxTopPriority_16 ={v} uxTopReadyPriority;
  3596. goto <bb 10>; [INV]
  3597. <bb 5> :
  3598. if (uxTopPriority_11 == 0)
  3599. goto <bb 6>; [INV]
  3600. else
  3601. goto <bb 9>; [INV]
  3602. <bb 6> :
  3603. __asm__ __volatile__(" mov %0, %1
  3604. msr basepri, %0
  3605. isb
  3606. dsb
  3607. " : "=r" ulNewBASEPRI_24 : "i" 16 : "memory");
  3608. <bb 7> :
  3609. <bb 8> :
  3610. goto <bb 8>; [INV]
  3611. <bb 9> :
  3612. uxTopPriority_22 = uxTopPriority_11 + 4294967295;
  3613. <bb 10> :
  3614. # uxTopPriority_11 = PHI <uxTopPriority_16(4), uxTopPriority_22(9)>
  3615. _2 ={v} pxReadyTasksLists[uxTopPriority_11].uxNumberOfItems;
  3616. if (_2 == 0)
  3617. goto <bb 5>; [INV]
  3618. else
  3619. goto <bb 11>; [INV]
  3620. <bb 11> :
  3621. pxConstList_17 = &pxReadyTasksLists[uxTopPriority_11];
  3622. _3 = pxConstList_17->pxIndex;
  3623. _4 = _3->pxNext;
  3624. pxConstList_17->pxIndex = _4;
  3625. _5 = pxConstList_17->pxIndex;
  3626. _6 = &pxConstList_17->xListEnd;
  3627. if (_5 == _6)
  3628. goto <bb 12>; [INV]
  3629. else
  3630. goto <bb 13>; [INV]
  3631. <bb 12> :
  3632. _7 = pxConstList_17->pxIndex;
  3633. _8 = _7->pxNext;
  3634. pxConstList_17->pxIndex = _8;
  3635. <bb 13> :
  3636. _9 = pxConstList_17->pxIndex;
  3637. _10 = _9->pvOwner;
  3638. pxCurrentTCB ={v} _10;
  3639. uxTopReadyPriority ={v} uxTopPriority_11;
  3640. <bb 14> :
  3641. return;
  3642. }
  3643. ;; Function vTaskPlaceOnEventList (vTaskPlaceOnEventList, funcdef_no=36, decl_uid=6254, cgraph_uid=37, symbol_order=58)
  3644. vTaskPlaceOnEventList (struct List_t * const pxEventList, const TickType_t xTicksToWait)
  3645. {
  3646. uint32_t ulNewBASEPRI;
  3647. struct TCB_t * pxCurrentTCB.75_1;
  3648. struct ListItem_t * _2;
  3649. <bb 2> :
  3650. if (pxEventList_3(D) == 0B)
  3651. goto <bb 3>; [INV]
  3652. else
  3653. goto <bb 6>; [INV]
  3654. <bb 3> :
  3655. __asm__ __volatile__(" mov %0, %1
  3656. msr basepri, %0
  3657. isb
  3658. dsb
  3659. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  3660. <bb 4> :
  3661. <bb 5> :
  3662. goto <bb 5>; [INV]
  3663. <bb 6> :
  3664. pxCurrentTCB.75_1 ={v} pxCurrentTCB;
  3665. _2 = &pxCurrentTCB.75_1->xEventListItem;
  3666. vListInsert (pxEventList_3(D), _2);
  3667. prvAddCurrentTaskToDelayedList (xTicksToWait_6(D), 1);
  3668. return;
  3669. }
  3670. ;; Function vTaskPlaceOnUnorderedEventList (vTaskPlaceOnUnorderedEventList, funcdef_no=37, decl_uid=6258, cgraph_uid=38, symbol_order=59)
  3671. vTaskPlaceOnUnorderedEventList (struct List_t * pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait)
  3672. {
  3673. uint32_t ulNewBASEPRI;
  3674. uint32_t ulNewBASEPRI;
  3675. struct ListItem_t * const pxIndex;
  3676. long unsigned int uxSchedulerSuspended.76_1;
  3677. struct TCB_t * pxCurrentTCB.77_2;
  3678. long unsigned int _3;
  3679. struct TCB_t * pxCurrentTCB.78_4;
  3680. struct TCB_t * pxCurrentTCB.79_5;
  3681. struct xLIST_ITEM * _6;
  3682. struct TCB_t * pxCurrentTCB.80_7;
  3683. struct xLIST_ITEM * _8;
  3684. struct ListItem_t * _9;
  3685. struct TCB_t * pxCurrentTCB.81_10;
  3686. struct ListItem_t * _11;
  3687. struct TCB_t * pxCurrentTCB.82_12;
  3688. long unsigned int _13;
  3689. long unsigned int _14;
  3690. <bb 2> :
  3691. if (pxEventList_15(D) == 0B)
  3692. goto <bb 3>; [INV]
  3693. else
  3694. goto <bb 6>; [INV]
  3695. <bb 3> :
  3696. __asm__ __volatile__(" mov %0, %1
  3697. msr basepri, %0
  3698. isb
  3699. dsb
  3700. " : "=r" ulNewBASEPRI_28 : "i" 16 : "memory");
  3701. <bb 4> :
  3702. <bb 5> :
  3703. goto <bb 5>; [INV]
  3704. <bb 6> :
  3705. uxSchedulerSuspended.76_1 ={v} uxSchedulerSuspended;
  3706. if (uxSchedulerSuspended.76_1 == 0)
  3707. goto <bb 7>; [INV]
  3708. else
  3709. goto <bb 10>; [INV]
  3710. <bb 7> :
  3711. __asm__ __volatile__(" mov %0, %1
  3712. msr basepri, %0
  3713. isb
  3714. dsb
  3715. " : "=r" ulNewBASEPRI_29 : "i" 16 : "memory");
  3716. <bb 8> :
  3717. <bb 9> :
  3718. goto <bb 9>; [INV]
  3719. <bb 10> :
  3720. pxCurrentTCB.77_2 ={v} pxCurrentTCB;
  3721. _3 = xItemValue_17(D) | 2147483648;
  3722. pxCurrentTCB.77_2->xEventListItem.xItemValue = _3;
  3723. pxIndex_19 = pxEventList_15(D)->pxIndex;
  3724. pxCurrentTCB.78_4 ={v} pxCurrentTCB;
  3725. pxCurrentTCB.78_4->xEventListItem.pxNext = pxIndex_19;
  3726. pxCurrentTCB.79_5 ={v} pxCurrentTCB;
  3727. _6 = pxIndex_19->pxPrevious;
  3728. pxCurrentTCB.79_5->xEventListItem.pxPrevious = _6;
  3729. pxCurrentTCB.80_7 ={v} pxCurrentTCB;
  3730. _8 = pxIndex_19->pxPrevious;
  3731. _9 = &pxCurrentTCB.80_7->xEventListItem;
  3732. _8->pxNext = _9;
  3733. pxCurrentTCB.81_10 ={v} pxCurrentTCB;
  3734. _11 = &pxCurrentTCB.81_10->xEventListItem;
  3735. pxIndex_19->pxPrevious = _11;
  3736. pxCurrentTCB.82_12 ={v} pxCurrentTCB;
  3737. pxCurrentTCB.82_12->xEventListItem.pvContainer = pxEventList_15(D);
  3738. _13 ={v} pxEventList_15(D)->uxNumberOfItems;
  3739. _14 = _13 + 1;
  3740. pxEventList_15(D)->uxNumberOfItems ={v} _14;
  3741. prvAddCurrentTaskToDelayedList (xTicksToWait_26(D), 1);
  3742. return;
  3743. }
  3744. ;; Function vTaskPlaceOnEventListRestricted (vTaskPlaceOnEventListRestricted, funcdef_no=38, decl_uid=6262, cgraph_uid=39, symbol_order=60)
  3745. vTaskPlaceOnEventListRestricted (struct List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely)
  3746. {
  3747. uint32_t ulNewBASEPRI;
  3748. struct ListItem_t * const pxIndex;
  3749. struct TCB_t * pxCurrentTCB.83_1;
  3750. struct TCB_t * pxCurrentTCB.84_2;
  3751. struct xLIST_ITEM * _3;
  3752. struct TCB_t * pxCurrentTCB.85_4;
  3753. struct xLIST_ITEM * _5;
  3754. struct ListItem_t * _6;
  3755. struct TCB_t * pxCurrentTCB.86_7;
  3756. struct ListItem_t * _8;
  3757. struct TCB_t * pxCurrentTCB.87_9;
  3758. long unsigned int _10;
  3759. long unsigned int _11;
  3760. <bb 2> :
  3761. if (pxEventList_13(D) == 0B)
  3762. goto <bb 3>; [INV]
  3763. else
  3764. goto <bb 6>; [INV]
  3765. <bb 3> :
  3766. __asm__ __volatile__(" mov %0, %1
  3767. msr basepri, %0
  3768. isb
  3769. dsb
  3770. " : "=r" ulNewBASEPRI_26 : "i" 16 : "memory");
  3771. <bb 4> :
  3772. <bb 5> :
  3773. goto <bb 5>; [INV]
  3774. <bb 6> :
  3775. pxIndex_15 = pxEventList_13(D)->pxIndex;
  3776. pxCurrentTCB.83_1 ={v} pxCurrentTCB;
  3777. pxCurrentTCB.83_1->xEventListItem.pxNext = pxIndex_15;
  3778. pxCurrentTCB.84_2 ={v} pxCurrentTCB;
  3779. _3 = pxIndex_15->pxPrevious;
  3780. pxCurrentTCB.84_2->xEventListItem.pxPrevious = _3;
  3781. pxCurrentTCB.85_4 ={v} pxCurrentTCB;
  3782. _5 = pxIndex_15->pxPrevious;
  3783. _6 = &pxCurrentTCB.85_4->xEventListItem;
  3784. _5->pxNext = _6;
  3785. pxCurrentTCB.86_7 ={v} pxCurrentTCB;
  3786. _8 = &pxCurrentTCB.86_7->xEventListItem;
  3787. pxIndex_15->pxPrevious = _8;
  3788. pxCurrentTCB.87_9 ={v} pxCurrentTCB;
  3789. pxCurrentTCB.87_9->xEventListItem.pvContainer = pxEventList_13(D);
  3790. _10 ={v} pxEventList_13(D)->uxNumberOfItems;
  3791. _11 = _10 + 1;
  3792. pxEventList_13(D)->uxNumberOfItems ={v} _11;
  3793. if (xWaitIndefinitely_22(D) != 0)
  3794. goto <bb 7>; [INV]
  3795. else
  3796. goto <bb 8>; [INV]
  3797. <bb 7> :
  3798. xTicksToWait_24 = 4294967295;
  3799. <bb 8> :
  3800. # xTicksToWait_12 = PHI <xTicksToWait_23(D)(6), xTicksToWait_24(7)>
  3801. prvAddCurrentTaskToDelayedList (xTicksToWait_12, xWaitIndefinitely_22(D));
  3802. return;
  3803. }
  3804. ;; Function xTaskRemoveFromEventList (xTaskRemoveFromEventList, funcdef_no=39, decl_uid=6264, cgraph_uid=40, symbol_order=61)
  3805. xTaskRemoveFromEventList (const struct List_t * const pxEventList)
  3806. {
  3807. uint32_t ulNewBASEPRI;
  3808. struct ListItem_t * const pxIndex;
  3809. struct ListItem_t * const pxIndex;
  3810. struct List_t * const pxList;
  3811. struct List_t * const pxList;
  3812. BaseType_t xReturn;
  3813. struct TCB_t * pxUnblockedTCB;
  3814. BaseType_t D.7928;
  3815. struct xLIST_ITEM * _1;
  3816. struct xLIST_ITEM * _2;
  3817. struct xLIST_ITEM * _3;
  3818. struct xLIST_ITEM * _4;
  3819. struct xLIST_ITEM * _5;
  3820. struct ListItem_t * _6;
  3821. struct ListItem_t * _7;
  3822. struct xLIST_ITEM * _8;
  3823. long unsigned int _9;
  3824. long unsigned int _10;
  3825. long unsigned int uxSchedulerSuspended.88_11;
  3826. struct xLIST_ITEM * _12;
  3827. struct xLIST_ITEM * _13;
  3828. struct xLIST_ITEM * _14;
  3829. struct xLIST_ITEM * _15;
  3830. struct ListItem_t * _16;
  3831. struct ListItem_t * _17;
  3832. struct xLIST_ITEM * _18;
  3833. long unsigned int _19;
  3834. long unsigned int _20;
  3835. long unsigned int _21;
  3836. long unsigned int uxTopReadyPriority.89_22;
  3837. long unsigned int _23;
  3838. long unsigned int _24;
  3839. struct xLIST_ITEM * _25;
  3840. struct xLIST_ITEM * _26;
  3841. struct ListItem_t * _27;
  3842. struct ListItem_t * _28;
  3843. long unsigned int _29;
  3844. struct List_t * _30;
  3845. long unsigned int _31;
  3846. long unsigned int _32;
  3847. long unsigned int _33;
  3848. struct xLIST_ITEM * _34;
  3849. struct xLIST_ITEM * _35;
  3850. struct ListItem_t * _36;
  3851. struct ListItem_t * _37;
  3852. long unsigned int _38;
  3853. long unsigned int _39;
  3854. long unsigned int _40;
  3855. struct TCB_t * pxCurrentTCB.90_41;
  3856. long unsigned int _42;
  3857. BaseType_t _82;
  3858. <bb 2> :
  3859. _1 = pxEventList_50(D)->xListEnd.pxNext;
  3860. pxUnblockedTCB_51 = _1->pvOwner;
  3861. if (pxUnblockedTCB_51 == 0B)
  3862. goto <bb 3>; [INV]
  3863. else
  3864. goto <bb 6>; [INV]
  3865. <bb 3> :
  3866. __asm__ __volatile__(" mov %0, %1
  3867. msr basepri, %0
  3868. isb
  3869. dsb
  3870. " : "=r" ulNewBASEPRI_83 : "i" 16 : "memory");
  3871. <bb 4> :
  3872. <bb 5> :
  3873. goto <bb 5>; [INV]
  3874. <bb 6> :
  3875. pxList_52 = pxUnblockedTCB_51->xEventListItem.pvContainer;
  3876. _2 = pxUnblockedTCB_51->xEventListItem.pxNext;
  3877. _3 = pxUnblockedTCB_51->xEventListItem.pxPrevious;
  3878. _2->pxPrevious = _3;
  3879. _4 = pxUnblockedTCB_51->xEventListItem.pxPrevious;
  3880. _5 = pxUnblockedTCB_51->xEventListItem.pxNext;
  3881. _4->pxNext = _5;
  3882. _6 = pxList_52->pxIndex;
  3883. _7 = &pxUnblockedTCB_51->xEventListItem;
  3884. if (_6 == _7)
  3885. goto <bb 7>; [INV]
  3886. else
  3887. goto <bb 8>; [INV]
  3888. <bb 7> :
  3889. _8 = pxUnblockedTCB_51->xEventListItem.pxPrevious;
  3890. pxList_52->pxIndex = _8;
  3891. <bb 8> :
  3892. pxUnblockedTCB_51->xEventListItem.pvContainer = 0B;
  3893. _9 ={v} pxList_52->uxNumberOfItems;
  3894. _10 = _9 + 4294967295;
  3895. pxList_52->uxNumberOfItems ={v} _10;
  3896. uxSchedulerSuspended.88_11 ={v} uxSchedulerSuspended;
  3897. if (uxSchedulerSuspended.88_11 == 0)
  3898. goto <bb 9>; [INV]
  3899. else
  3900. goto <bb 14>; [INV]
  3901. <bb 9> :
  3902. pxList_65 = pxUnblockedTCB_51->xStateListItem.pvContainer;
  3903. _12 = pxUnblockedTCB_51->xStateListItem.pxNext;
  3904. _13 = pxUnblockedTCB_51->xStateListItem.pxPrevious;
  3905. _12->pxPrevious = _13;
  3906. _14 = pxUnblockedTCB_51->xStateListItem.pxPrevious;
  3907. _15 = pxUnblockedTCB_51->xStateListItem.pxNext;
  3908. _14->pxNext = _15;
  3909. _16 = pxList_65->pxIndex;
  3910. _17 = &pxUnblockedTCB_51->xStateListItem;
  3911. if (_16 == _17)
  3912. goto <bb 10>; [INV]
  3913. else
  3914. goto <bb 11>; [INV]
  3915. <bb 10> :
  3916. _18 = pxUnblockedTCB_51->xStateListItem.pxPrevious;
  3917. pxList_65->pxIndex = _18;
  3918. <bb 11> :
  3919. pxUnblockedTCB_51->xStateListItem.pvContainer = 0B;
  3920. _19 ={v} pxList_65->uxNumberOfItems;
  3921. _20 = _19 + 4294967295;
  3922. pxList_65->uxNumberOfItems ={v} _20;
  3923. _21 = pxUnblockedTCB_51->uxPriority;
  3924. uxTopReadyPriority.89_22 ={v} uxTopReadyPriority;
  3925. if (_21 > uxTopReadyPriority.89_22)
  3926. goto <bb 12>; [INV]
  3927. else
  3928. goto <bb 13>; [INV]
  3929. <bb 12> :
  3930. _23 = pxUnblockedTCB_51->uxPriority;
  3931. uxTopReadyPriority ={v} _23;
  3932. <bb 13> :
  3933. _24 = pxUnblockedTCB_51->uxPriority;
  3934. pxIndex_72 = pxReadyTasksLists[_24].pxIndex;
  3935. pxUnblockedTCB_51->xStateListItem.pxNext = pxIndex_72;
  3936. _25 = pxIndex_72->pxPrevious;
  3937. pxUnblockedTCB_51->xStateListItem.pxPrevious = _25;
  3938. _26 = pxIndex_72->pxPrevious;
  3939. _27 = &pxUnblockedTCB_51->xStateListItem;
  3940. _26->pxNext = _27;
  3941. _28 = &pxUnblockedTCB_51->xStateListItem;
  3942. pxIndex_72->pxPrevious = _28;
  3943. _29 = pxUnblockedTCB_51->uxPriority;
  3944. _30 = &pxReadyTasksLists[_29];
  3945. pxUnblockedTCB_51->xStateListItem.pvContainer = _30;
  3946. _31 = pxUnblockedTCB_51->uxPriority;
  3947. _32 ={v} pxReadyTasksLists[_31].uxNumberOfItems;
  3948. _33 = _32 + 1;
  3949. pxReadyTasksLists[_31].uxNumberOfItems ={v} _33;
  3950. goto <bb 15>; [INV]
  3951. <bb 14> :
  3952. pxIndex_58 = xPendingReadyList.pxIndex;
  3953. pxUnblockedTCB_51->xEventListItem.pxNext = pxIndex_58;
  3954. _34 = pxIndex_58->pxPrevious;
  3955. pxUnblockedTCB_51->xEventListItem.pxPrevious = _34;
  3956. _35 = pxIndex_58->pxPrevious;
  3957. _36 = &pxUnblockedTCB_51->xEventListItem;
  3958. _35->pxNext = _36;
  3959. _37 = &pxUnblockedTCB_51->xEventListItem;
  3960. pxIndex_58->pxPrevious = _37;
  3961. pxUnblockedTCB_51->xEventListItem.pvContainer = &xPendingReadyList;
  3962. _38 ={v} xPendingReadyList.uxNumberOfItems;
  3963. _39 = _38 + 1;
  3964. xPendingReadyList.uxNumberOfItems ={v} _39;
  3965. <bb 15> :
  3966. _40 = pxUnblockedTCB_51->uxPriority;
  3967. pxCurrentTCB.90_41 ={v} pxCurrentTCB;
  3968. _42 = pxCurrentTCB.90_41->uxPriority;
  3969. if (_40 > _42)
  3970. goto <bb 16>; [INV]
  3971. else
  3972. goto <bb 17>; [INV]
  3973. <bb 16> :
  3974. xReturn_80 = 1;
  3975. xYieldPending ={v} 1;
  3976. goto <bb 18>; [INV]
  3977. <bb 17> :
  3978. xReturn_79 = 0;
  3979. <bb 18> :
  3980. # xReturn_43 = PHI <xReturn_80(16), xReturn_79(17)>
  3981. _82 = xReturn_43;
  3982. <bb 19> :
  3983. <L15>:
  3984. return _82;
  3985. }
  3986. ;; Function vTaskRemoveFromUnorderedEventList (vTaskRemoveFromUnorderedEventList, funcdef_no=40, decl_uid=6267, cgraph_uid=41, symbol_order=62)
  3987. vTaskRemoveFromUnorderedEventList (struct ListItem_t * pxEventListItem, const TickType_t xItemValue)
  3988. {
  3989. uint32_t ulNewBASEPRI;
  3990. uint32_t ulNewBASEPRI;
  3991. struct ListItem_t * const pxIndex;
  3992. struct List_t * const pxList;
  3993. struct List_t * const pxList;
  3994. struct TCB_t * pxUnblockedTCB;
  3995. long unsigned int uxSchedulerSuspended.91_1;
  3996. long unsigned int _2;
  3997. struct xLIST_ITEM * _3;
  3998. struct xLIST_ITEM * _4;
  3999. struct xLIST_ITEM * _5;
  4000. struct xLIST_ITEM * _6;
  4001. struct ListItem_t * _7;
  4002. struct xLIST_ITEM * _8;
  4003. long unsigned int _9;
  4004. long unsigned int _10;
  4005. struct xLIST_ITEM * _11;
  4006. struct xLIST_ITEM * _12;
  4007. struct xLIST_ITEM * _13;
  4008. struct xLIST_ITEM * _14;
  4009. struct ListItem_t * _15;
  4010. struct ListItem_t * _16;
  4011. struct xLIST_ITEM * _17;
  4012. long unsigned int _18;
  4013. long unsigned int _19;
  4014. long unsigned int _20;
  4015. long unsigned int uxTopReadyPriority.92_21;
  4016. long unsigned int _22;
  4017. long unsigned int _23;
  4018. struct xLIST_ITEM * _24;
  4019. struct xLIST_ITEM * _25;
  4020. struct ListItem_t * _26;
  4021. struct ListItem_t * _27;
  4022. long unsigned int _28;
  4023. struct List_t * _29;
  4024. long unsigned int _30;
  4025. long unsigned int _31;
  4026. long unsigned int _32;
  4027. long unsigned int _33;
  4028. struct TCB_t * pxCurrentTCB.93_34;
  4029. long unsigned int _35;
  4030. <bb 2> :
  4031. uxSchedulerSuspended.91_1 ={v} uxSchedulerSuspended;
  4032. if (uxSchedulerSuspended.91_1 == 0)
  4033. goto <bb 3>; [INV]
  4034. else
  4035. goto <bb 6>; [INV]
  4036. <bb 3> :
  4037. __asm__ __volatile__(" mov %0, %1
  4038. msr basepri, %0
  4039. isb
  4040. dsb
  4041. " : "=r" ulNewBASEPRI_66 : "i" 16 : "memory");
  4042. <bb 4> :
  4043. <bb 5> :
  4044. goto <bb 5>; [INV]
  4045. <bb 6> :
  4046. _2 = xItemValue_41(D) | 2147483648;
  4047. pxEventListItem_42(D)->xItemValue = _2;
  4048. pxUnblockedTCB_44 = pxEventListItem_42(D)->pvOwner;
  4049. if (pxUnblockedTCB_44 == 0B)
  4050. goto <bb 7>; [INV]
  4051. else
  4052. goto <bb 10>; [INV]
  4053. <bb 7> :
  4054. __asm__ __volatile__(" mov %0, %1
  4055. msr basepri, %0
  4056. isb
  4057. dsb
  4058. " : "=r" ulNewBASEPRI_67 : "i" 16 : "memory");
  4059. <bb 8> :
  4060. <bb 9> :
  4061. goto <bb 9>; [INV]
  4062. <bb 10> :
  4063. pxList_45 = pxEventListItem_42(D)->pvContainer;
  4064. _3 = pxEventListItem_42(D)->pxNext;
  4065. _4 = pxEventListItem_42(D)->pxPrevious;
  4066. _3->pxPrevious = _4;
  4067. _5 = pxEventListItem_42(D)->pxPrevious;
  4068. _6 = pxEventListItem_42(D)->pxNext;
  4069. _5->pxNext = _6;
  4070. _7 = pxList_45->pxIndex;
  4071. if (pxEventListItem_42(D) == _7)
  4072. goto <bb 11>; [INV]
  4073. else
  4074. goto <bb 12>; [INV]
  4075. <bb 11> :
  4076. _8 = pxEventListItem_42(D)->pxPrevious;
  4077. pxList_45->pxIndex = _8;
  4078. <bb 12> :
  4079. pxEventListItem_42(D)->pvContainer = 0B;
  4080. _9 ={v} pxList_45->uxNumberOfItems;
  4081. _10 = _9 + 4294967295;
  4082. pxList_45->uxNumberOfItems ={v} _10;
  4083. pxList_51 = pxUnblockedTCB_44->xStateListItem.pvContainer;
  4084. _11 = pxUnblockedTCB_44->xStateListItem.pxNext;
  4085. _12 = pxUnblockedTCB_44->xStateListItem.pxPrevious;
  4086. _11->pxPrevious = _12;
  4087. _13 = pxUnblockedTCB_44->xStateListItem.pxPrevious;
  4088. _14 = pxUnblockedTCB_44->xStateListItem.pxNext;
  4089. _13->pxNext = _14;
  4090. _15 = pxList_51->pxIndex;
  4091. _16 = &pxUnblockedTCB_44->xStateListItem;
  4092. if (_15 == _16)
  4093. goto <bb 13>; [INV]
  4094. else
  4095. goto <bb 14>; [INV]
  4096. <bb 13> :
  4097. _17 = pxUnblockedTCB_44->xStateListItem.pxPrevious;
  4098. pxList_51->pxIndex = _17;
  4099. <bb 14> :
  4100. pxUnblockedTCB_44->xStateListItem.pvContainer = 0B;
  4101. _18 ={v} pxList_51->uxNumberOfItems;
  4102. _19 = _18 + 4294967295;
  4103. pxList_51->uxNumberOfItems ={v} _19;
  4104. _20 = pxUnblockedTCB_44->uxPriority;
  4105. uxTopReadyPriority.92_21 ={v} uxTopReadyPriority;
  4106. if (_20 > uxTopReadyPriority.92_21)
  4107. goto <bb 15>; [INV]
  4108. else
  4109. goto <bb 16>; [INV]
  4110. <bb 15> :
  4111. _22 = pxUnblockedTCB_44->uxPriority;
  4112. uxTopReadyPriority ={v} _22;
  4113. <bb 16> :
  4114. _23 = pxUnblockedTCB_44->uxPriority;
  4115. pxIndex_58 = pxReadyTasksLists[_23].pxIndex;
  4116. pxUnblockedTCB_44->xStateListItem.pxNext = pxIndex_58;
  4117. _24 = pxIndex_58->pxPrevious;
  4118. pxUnblockedTCB_44->xStateListItem.pxPrevious = _24;
  4119. _25 = pxIndex_58->pxPrevious;
  4120. _26 = &pxUnblockedTCB_44->xStateListItem;
  4121. _25->pxNext = _26;
  4122. _27 = &pxUnblockedTCB_44->xStateListItem;
  4123. pxIndex_58->pxPrevious = _27;
  4124. _28 = pxUnblockedTCB_44->uxPriority;
  4125. _29 = &pxReadyTasksLists[_28];
  4126. pxUnblockedTCB_44->xStateListItem.pvContainer = _29;
  4127. _30 = pxUnblockedTCB_44->uxPriority;
  4128. _31 ={v} pxReadyTasksLists[_30].uxNumberOfItems;
  4129. _32 = _31 + 1;
  4130. pxReadyTasksLists[_30].uxNumberOfItems ={v} _32;
  4131. _33 = pxUnblockedTCB_44->uxPriority;
  4132. pxCurrentTCB.93_34 ={v} pxCurrentTCB;
  4133. _35 = pxCurrentTCB.93_34->uxPriority;
  4134. if (_33 > _35)
  4135. goto <bb 17>; [INV]
  4136. else
  4137. goto <bb 18>; [INV]
  4138. <bb 17> :
  4139. xYieldPending ={v} 1;
  4140. <bb 18> :
  4141. return;
  4142. }
  4143. ;; Function vTaskSetTimeOutState (vTaskSetTimeOutState, funcdef_no=41, decl_uid=6244, cgraph_uid=42, symbol_order=63)
  4144. vTaskSetTimeOutState (struct TimeOut_t * const pxTimeOut)
  4145. {
  4146. uint32_t ulNewBASEPRI;
  4147. long int xNumOfOverflows.94_1;
  4148. long unsigned int xTickCount.95_2;
  4149. <bb 2> :
  4150. if (pxTimeOut_3(D) == 0B)
  4151. goto <bb 3>; [INV]
  4152. else
  4153. goto <bb 6>; [INV]
  4154. <bb 3> :
  4155. __asm__ __volatile__(" mov %0, %1
  4156. msr basepri, %0
  4157. isb
  4158. dsb
  4159. " : "=r" ulNewBASEPRI_9 : "i" 16 : "memory");
  4160. <bb 4> :
  4161. <bb 5> :
  4162. goto <bb 5>; [INV]
  4163. <bb 6> :
  4164. vPortEnterCritical ();
  4165. xNumOfOverflows.94_1 ={v} xNumOfOverflows;
  4166. pxTimeOut_3(D)->xOverflowCount = xNumOfOverflows.94_1;
  4167. xTickCount.95_2 ={v} xTickCount;
  4168. pxTimeOut_3(D)->xTimeOnEntering = xTickCount.95_2;
  4169. vPortExitCritical ();
  4170. return;
  4171. }
  4172. ;; Function vTaskInternalSetTimeOutState (vTaskInternalSetTimeOutState, funcdef_no=42, decl_uid=6297, cgraph_uid=43, symbol_order=64)
  4173. vTaskInternalSetTimeOutState (struct TimeOut_t * const pxTimeOut)
  4174. {
  4175. long int xNumOfOverflows.96_1;
  4176. long unsigned int xTickCount.97_2;
  4177. <bb 2> :
  4178. xNumOfOverflows.96_1 ={v} xNumOfOverflows;
  4179. pxTimeOut_4(D)->xOverflowCount = xNumOfOverflows.96_1;
  4180. xTickCount.97_2 ={v} xTickCount;
  4181. pxTimeOut_4(D)->xTimeOnEntering = xTickCount.97_2;
  4182. return;
  4183. }
  4184. ;; Function xTaskCheckForTimeOut (xTaskCheckForTimeOut, funcdef_no=43, decl_uid=6247, cgraph_uid=44, symbol_order=65)
  4185. xTaskCheckForTimeOut (struct TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait)
  4186. {
  4187. uint32_t ulNewBASEPRI;
  4188. uint32_t ulNewBASEPRI;
  4189. const TickType_t xElapsedTime;
  4190. const TickType_t xConstTickCount;
  4191. BaseType_t xReturn;
  4192. BaseType_t D.7961;
  4193. long unsigned int _1;
  4194. struct TCB_t * pxCurrentTCB.98_2;
  4195. unsigned char _3;
  4196. struct TCB_t * pxCurrentTCB.99_4;
  4197. long unsigned int _5;
  4198. long int _6;
  4199. long int xNumOfOverflows.100_7;
  4200. long unsigned int _8;
  4201. long unsigned int _9;
  4202. long unsigned int _10;
  4203. long unsigned int _11;
  4204. BaseType_t _31;
  4205. <bb 2> :
  4206. if (pxTimeOut_14(D) == 0B)
  4207. goto <bb 3>; [INV]
  4208. else
  4209. goto <bb 6>; [INV]
  4210. <bb 3> :
  4211. __asm__ __volatile__(" mov %0, %1
  4212. msr basepri, %0
  4213. isb
  4214. dsb
  4215. " : "=r" ulNewBASEPRI_32 : "i" 16 : "memory");
  4216. <bb 4> :
  4217. <bb 5> :
  4218. goto <bb 5>; [INV]
  4219. <bb 6> :
  4220. if (pxTicksToWait_15(D) == 0B)
  4221. goto <bb 7>; [INV]
  4222. else
  4223. goto <bb 10>; [INV]
  4224. <bb 7> :
  4225. __asm__ __volatile__(" mov %0, %1
  4226. msr basepri, %0
  4227. isb
  4228. dsb
  4229. " : "=r" ulNewBASEPRI_33 : "i" 16 : "memory");
  4230. <bb 8> :
  4231. <bb 9> :
  4232. goto <bb 9>; [INV]
  4233. <bb 10> :
  4234. vPortEnterCritical ();
  4235. xConstTickCount_18 ={v} xTickCount;
  4236. _1 = pxTimeOut_14(D)->xTimeOnEntering;
  4237. xElapsedTime_19 = xConstTickCount_18 - _1;
  4238. pxCurrentTCB.98_2 ={v} pxCurrentTCB;
  4239. _3 = pxCurrentTCB.98_2->ucDelayAborted;
  4240. if (_3 != 0)
  4241. goto <bb 11>; [INV]
  4242. else
  4243. goto <bb 12>; [INV]
  4244. <bb 11> :
  4245. pxCurrentTCB.99_4 ={v} pxCurrentTCB;
  4246. pxCurrentTCB.99_4->ucDelayAborted = 0;
  4247. xReturn_29 = 1;
  4248. goto <bb 20>; [INV]
  4249. <bb 12> :
  4250. _5 = *pxTicksToWait_15(D);
  4251. if (_5 == 4294967295)
  4252. goto <bb 13>; [INV]
  4253. else
  4254. goto <bb 14>; [INV]
  4255. <bb 13> :
  4256. xReturn_27 = 0;
  4257. goto <bb 20>; [INV]
  4258. <bb 14> :
  4259. _6 = pxTimeOut_14(D)->xOverflowCount;
  4260. xNumOfOverflows.100_7 ={v} xNumOfOverflows;
  4261. if (_6 != xNumOfOverflows.100_7)
  4262. goto <bb 15>; [INV]
  4263. else
  4264. goto <bb 17>; [INV]
  4265. <bb 15> :
  4266. _8 = pxTimeOut_14(D)->xTimeOnEntering;
  4267. if (xConstTickCount_18 >= _8)
  4268. goto <bb 16>; [INV]
  4269. else
  4270. goto <bb 17>; [INV]
  4271. <bb 16> :
  4272. xReturn_20 = 1;
  4273. *pxTicksToWait_15(D) = 0;
  4274. goto <bb 20>; [INV]
  4275. <bb 17> :
  4276. _9 = *pxTicksToWait_15(D);
  4277. if (xElapsedTime_19 < _9)
  4278. goto <bb 18>; [INV]
  4279. else
  4280. goto <bb 19>; [INV]
  4281. <bb 18> :
  4282. _10 = *pxTicksToWait_15(D);
  4283. _11 = _10 - xElapsedTime_19;
  4284. *pxTicksToWait_15(D) = _11;
  4285. vTaskInternalSetTimeOutState (pxTimeOut_14(D));
  4286. xReturn_26 = 0;
  4287. goto <bb 20>; [INV]
  4288. <bb 19> :
  4289. *pxTicksToWait_15(D) = 0;
  4290. xReturn_23 = 1;
  4291. <bb 20> :
  4292. # xReturn_12 = PHI <xReturn_29(11), xReturn_27(13), xReturn_20(16), xReturn_26(18), xReturn_23(19)>
  4293. vPortExitCritical ();
  4294. _31 = xReturn_12;
  4295. <bb 21> :
  4296. <L19>:
  4297. return _31;
  4298. }
  4299. ;; Function vTaskMissedYield (vTaskMissedYield, funcdef_no=44, decl_uid=6275, cgraph_uid=45, symbol_order=66)
  4300. vTaskMissedYield ()
  4301. {
  4302. <bb 2> :
  4303. xYieldPending ={v} 1;
  4304. return;
  4305. }
  4306. ;; Function uxTaskGetTaskNumber (uxTaskGetTaskNumber, funcdef_no=45, decl_uid=6286, cgraph_uid=46, symbol_order=67)
  4307. uxTaskGetTaskNumber (struct tskTaskControlBlock * xTask)
  4308. {
  4309. const struct TCB_t * pxTCB;
  4310. UBaseType_t uxReturn;
  4311. UBaseType_t D.7966;
  4312. UBaseType_t _7;
  4313. <bb 2> :
  4314. if (xTask_2(D) != 0B)
  4315. goto <bb 3>; [INV]
  4316. else
  4317. goto <bb 4>; [INV]
  4318. <bb 3> :
  4319. pxTCB_4 = xTask_2(D);
  4320. uxReturn_6 = pxTCB_4->uxTaskNumber;
  4321. goto <bb 5>; [INV]
  4322. <bb 4> :
  4323. uxReturn_3 = 0;
  4324. <bb 5> :
  4325. # uxReturn_1 = PHI <uxReturn_6(3), uxReturn_3(4)>
  4326. _7 = uxReturn_1;
  4327. <bb 6> :
  4328. <L3>:
  4329. return _7;
  4330. }
  4331. ;; Function vTaskSetTaskNumber (vTaskSetTaskNumber, funcdef_no=46, decl_uid=6289, cgraph_uid=47, symbol_order=68)
  4332. vTaskSetTaskNumber (struct tskTaskControlBlock * xTask, const UBaseType_t uxHandle)
  4333. {
  4334. struct TCB_t * pxTCB;
  4335. <bb 2> :
  4336. if (xTask_2(D) != 0B)
  4337. goto <bb 3>; [INV]
  4338. else
  4339. goto <bb 4>; [INV]
  4340. <bb 3> :
  4341. pxTCB_4 = xTask_2(D);
  4342. pxTCB_4->uxTaskNumber = uxHandle_5(D);
  4343. <bb 4> :
  4344. return;
  4345. }
  4346. ;; Function prvIdleTask (prvIdleTask, funcdef_no=47, decl_uid=6943, cgraph_uid=48, symbol_order=69)
  4347. prvIdleTask (void * pvParameters)
  4348. {
  4349. long unsigned int _1;
  4350. volatile uint32_t * _2;
  4351. <bb 2> :
  4352. prvCheckTasksWaitingTermination ();
  4353. _1 ={v} pxReadyTasksLists[0].uxNumberOfItems;
  4354. if (_1 > 1)
  4355. goto <bb 3>; [INV]
  4356. else
  4357. goto <bb 4>; [INV]
  4358. <bb 3> :
  4359. _2 = 3758157060B;
  4360. *_2 ={v} 268435456;
  4361. __asm__ __volatile__("dsb" : : : "memory");
  4362. __asm__ __volatile__("isb");
  4363. <bb 4> :
  4364. goto <bb 2>; [INV]
  4365. }
  4366. ;; Function prvInitialiseTaskLists (prvInitialiseTaskLists, funcdef_no=48, decl_uid=6941, cgraph_uid=49, symbol_order=70)
  4367. prvInitialiseTaskLists ()
  4368. {
  4369. UBaseType_t uxPriority;
  4370. struct List_t * _1;
  4371. <bb 2> :
  4372. uxPriority_4 = 0;
  4373. goto <bb 4>; [INV]
  4374. <bb 3> :
  4375. _1 = &pxReadyTasksLists[uxPriority_2];
  4376. vListInitialise (_1);
  4377. uxPriority_14 = uxPriority_2 + 1;
  4378. <bb 4> :
  4379. # uxPriority_2 = PHI <uxPriority_4(2), uxPriority_14(3)>
  4380. if (uxPriority_2 <= 4)
  4381. goto <bb 3>; [INV]
  4382. else
  4383. goto <bb 5>; [INV]
  4384. <bb 5> :
  4385. vListInitialise (&xDelayedTaskList1);
  4386. vListInitialise (&xDelayedTaskList2);
  4387. vListInitialise (&xPendingReadyList);
  4388. vListInitialise (&xTasksWaitingTermination);
  4389. vListInitialise (&xSuspendedTaskList);
  4390. pxDelayedTaskList ={v} &xDelayedTaskList1;
  4391. pxOverflowDelayedTaskList ={v} &xDelayedTaskList2;
  4392. return;
  4393. }
  4394. ;; Function prvCheckTasksWaitingTermination (prvCheckTasksWaitingTermination, funcdef_no=49, decl_uid=6947, cgraph_uid=50, symbol_order=71)
  4395. prvCheckTasksWaitingTermination ()
  4396. {
  4397. struct TCB_t * pxTCB;
  4398. struct xLIST_ITEM * _1;
  4399. struct ListItem_t * _2;
  4400. long unsigned int uxCurrentNumberOfTasks.101_3;
  4401. long unsigned int _4;
  4402. long unsigned int uxDeletedTasksWaitingCleanUp.102_5;
  4403. long unsigned int _6;
  4404. long unsigned int uxDeletedTasksWaitingCleanUp.103_7;
  4405. <bb 2> :
  4406. goto <bb 4>; [INV]
  4407. <bb 3> :
  4408. vPortEnterCritical ();
  4409. _1 = xTasksWaitingTermination.xListEnd.pxNext;
  4410. pxTCB_11 = _1->pvOwner;
  4411. _2 = &pxTCB_11->xStateListItem;
  4412. uxListRemove (_2);
  4413. uxCurrentNumberOfTasks.101_3 ={v} uxCurrentNumberOfTasks;
  4414. _4 = uxCurrentNumberOfTasks.101_3 + 4294967295;
  4415. uxCurrentNumberOfTasks ={v} _4;
  4416. uxDeletedTasksWaitingCleanUp.102_5 ={v} uxDeletedTasksWaitingCleanUp;
  4417. _6 = uxDeletedTasksWaitingCleanUp.102_5 + 4294967295;
  4418. uxDeletedTasksWaitingCleanUp ={v} _6;
  4419. vPortExitCritical ();
  4420. prvDeleteTCB (pxTCB_11);
  4421. <bb 4> :
  4422. uxDeletedTasksWaitingCleanUp.103_7 ={v} uxDeletedTasksWaitingCleanUp;
  4423. if (uxDeletedTasksWaitingCleanUp.103_7 != 0)
  4424. goto <bb 3>; [INV]
  4425. else
  4426. goto <bb 5>; [INV]
  4427. <bb 5> :
  4428. return;
  4429. }
  4430. ;; Function vTaskGetInfo (vTaskGetInfo, funcdef_no=50, decl_uid=6162, cgraph_uid=51, symbol_order=72)
  4431. vTaskGetInfo (struct tskTaskControlBlock * xTask, struct TaskStatus_t * pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState)
  4432. {
  4433. struct TCB_t * pxTCB;
  4434. struct TCB_t * iftmp.104;
  4435. char * _1;
  4436. long unsigned int _2;
  4437. StackType_t * _3;
  4438. long unsigned int _4;
  4439. long unsigned int _5;
  4440. struct TCB_t * pxCurrentTCB.105_6;
  4441. struct xLIST * _7;
  4442. <unnamed type> _8;
  4443. StackType_t * _9;
  4444. short unsigned int _10;
  4445. struct TCB_t * iftmp.104_11;
  4446. struct TCB_t * iftmp.104_16;
  4447. struct TCB_t * iftmp.104_18;
  4448. <bb 2> :
  4449. if (xTask_15(D) == 0B)
  4450. goto <bb 3>; [INV]
  4451. else
  4452. goto <bb 4>; [INV]
  4453. <bb 3> :
  4454. iftmp.104_18 ={v} pxCurrentTCB;
  4455. goto <bb 5>; [INV]
  4456. <bb 4> :
  4457. iftmp.104_16 = xTask_15(D);
  4458. <bb 5> :
  4459. # iftmp.104_11 = PHI <iftmp.104_18(3), iftmp.104_16(4)>
  4460. pxTCB_19 = iftmp.104_11;
  4461. pxTaskStatus_20(D)->xHandle = pxTCB_19;
  4462. _1 = &pxTCB_19->pcTaskName[0];
  4463. pxTaskStatus_20(D)->pcTaskName = _1;
  4464. _2 = pxTCB_19->uxPriority;
  4465. pxTaskStatus_20(D)->uxCurrentPriority = _2;
  4466. _3 = pxTCB_19->pxStack;
  4467. pxTaskStatus_20(D)->pxStackBase = _3;
  4468. _4 = pxTCB_19->uxTCBNumber;
  4469. pxTaskStatus_20(D)->xTaskNumber = _4;
  4470. _5 = pxTCB_19->uxBasePriority;
  4471. pxTaskStatus_20(D)->uxBasePriority = _5;
  4472. pxTaskStatus_20(D)->ulRunTimeCounter = 0;
  4473. if (eState_28(D) != 5)
  4474. goto <bb 6>; [INV]
  4475. else
  4476. goto <bb 12>; [INV]
  4477. <bb 6> :
  4478. pxCurrentTCB.105_6 ={v} pxCurrentTCB;
  4479. if (pxTCB_19 == pxCurrentTCB.105_6)
  4480. goto <bb 7>; [INV]
  4481. else
  4482. goto <bb 8>; [INV]
  4483. <bb 7> :
  4484. pxTaskStatus_20(D)->eCurrentState = 0;
  4485. goto <bb 13>; [INV]
  4486. <bb 8> :
  4487. pxTaskStatus_20(D)->eCurrentState = eState_28(D);
  4488. if (eState_28(D) == 3)
  4489. goto <bb 9>; [INV]
  4490. else
  4491. goto <bb 13>; [INV]
  4492. <bb 9> :
  4493. vTaskSuspendAll ();
  4494. _7 = pxTCB_19->xEventListItem.pvContainer;
  4495. if (_7 != 0B)
  4496. goto <bb 10>; [INV]
  4497. else
  4498. goto <bb 11>; [INV]
  4499. <bb 10> :
  4500. pxTaskStatus_20(D)->eCurrentState = 2;
  4501. <bb 11> :
  4502. xTaskResumeAll ();
  4503. goto <bb 13>; [INV]
  4504. <bb 12> :
  4505. _8 = eTaskGetState (pxTCB_19);
  4506. pxTaskStatus_20(D)->eCurrentState = _8;
  4507. <bb 13> :
  4508. if (xGetFreeStackSpace_36(D) != 0)
  4509. goto <bb 14>; [INV]
  4510. else
  4511. goto <bb 15>; [INV]
  4512. <bb 14> :
  4513. _9 = pxTCB_19->pxStack;
  4514. _10 = prvTaskCheckFreeStackSpace (_9);
  4515. pxTaskStatus_20(D)->usStackHighWaterMark = _10;
  4516. goto <bb 16>; [INV]
  4517. <bb 15> :
  4518. pxTaskStatus_20(D)->usStackHighWaterMark = 0;
  4519. <bb 16> :
  4520. return;
  4521. }
  4522. ;; Function prvListTasksWithinSingleList (prvListTasksWithinSingleList, funcdef_no=51, decl_uid=6954, cgraph_uid=52, symbol_order=73)
  4523. prvListTasksWithinSingleList (struct TaskStatus_t * pxTaskStatusArray, struct List_t * pxList, eTaskState eState)
  4524. {
  4525. struct List_t * const pxConstList;
  4526. struct List_t * const pxConstList;
  4527. UBaseType_t uxTask;
  4528. struct TCB_t * pxFirstTCB;
  4529. struct TCB_t * pxNextTCB;
  4530. UBaseType_t D.7997;
  4531. long unsigned int _1;
  4532. struct ListItem_t * _2;
  4533. struct xLIST_ITEM * _3;
  4534. struct ListItem_t * _4;
  4535. struct MiniListItem_t * _5;
  4536. struct ListItem_t * _6;
  4537. struct xLIST_ITEM * _7;
  4538. struct ListItem_t * _8;
  4539. struct ListItem_t * _9;
  4540. struct xLIST_ITEM * _10;
  4541. struct ListItem_t * _11;
  4542. struct MiniListItem_t * _12;
  4543. struct ListItem_t * _13;
  4544. struct xLIST_ITEM * _14;
  4545. struct ListItem_t * _15;
  4546. long unsigned int _16;
  4547. struct TaskStatus_t * _17;
  4548. UBaseType_t _39;
  4549. <bb 2> :
  4550. uxTask_24 = 0;
  4551. _1 ={v} pxList_26(D)->uxNumberOfItems;
  4552. if (_1 != 0)
  4553. goto <bb 3>; [INV]
  4554. else
  4555. goto <bb 9>; [INV]
  4556. <bb 3> :
  4557. pxConstList_27 = pxList_26(D);
  4558. _2 = pxConstList_27->pxIndex;
  4559. _3 = _2->pxNext;
  4560. pxConstList_27->pxIndex = _3;
  4561. _4 = pxConstList_27->pxIndex;
  4562. _5 = &pxConstList_27->xListEnd;
  4563. if (_4 == _5)
  4564. goto <bb 4>; [INV]
  4565. else
  4566. goto <bb 5>; [INV]
  4567. <bb 4> :
  4568. _6 = pxConstList_27->pxIndex;
  4569. _7 = _6->pxNext;
  4570. pxConstList_27->pxIndex = _7;
  4571. <bb 5> :
  4572. _8 = pxConstList_27->pxIndex;
  4573. pxFirstTCB_30 = _8->pvOwner;
  4574. <bb 6> :
  4575. # uxTask_18 = PHI <uxTask_24(5), uxTask_38(8)>
  4576. pxConstList_31 = pxList_26(D);
  4577. _9 = pxConstList_31->pxIndex;
  4578. _10 = _9->pxNext;
  4579. pxConstList_31->pxIndex = _10;
  4580. _11 = pxConstList_31->pxIndex;
  4581. _12 = &pxConstList_31->xListEnd;
  4582. if (_11 == _12)
  4583. goto <bb 7>; [INV]
  4584. else
  4585. goto <bb 8>; [INV]
  4586. <bb 7> :
  4587. _13 = pxConstList_31->pxIndex;
  4588. _14 = _13->pxNext;
  4589. pxConstList_31->pxIndex = _14;
  4590. <bb 8> :
  4591. _15 = pxConstList_31->pxIndex;
  4592. pxNextTCB_34 = _15->pvOwner;
  4593. _16 = uxTask_18 * 36;
  4594. _17 = pxTaskStatusArray_35(D) + _16;
  4595. vTaskGetInfo (pxNextTCB_34, _17, 1, eState_36(D));
  4596. uxTask_38 = uxTask_18 + 1;
  4597. if (pxNextTCB_34 != pxFirstTCB_30)
  4598. goto <bb 6>; [INV]
  4599. else
  4600. goto <bb 9>; [INV]
  4601. <bb 9> :
  4602. # uxTask_19 = PHI <uxTask_24(2), uxTask_38(8)>
  4603. _39 = uxTask_19;
  4604. <bb 10> :
  4605. <L9>:
  4606. return _39;
  4607. }
  4608. ;; Function prvTaskCheckFreeStackSpace (prvTaskCheckFreeStackSpace, funcdef_no=52, decl_uid=6959, cgraph_uid=53, symbol_order=74)
  4609. prvTaskCheckFreeStackSpace (const uint8_t * pucStackByte)
  4610. {
  4611. uint32_t ulCount;
  4612. uint16_t D.7999;
  4613. unsigned char _1;
  4614. uint16_t _8;
  4615. <bb 2> :
  4616. ulCount_4 = 0;
  4617. goto <bb 4>; [INV]
  4618. <bb 3> :
  4619. pucStackByte_9 = pucStackByte_2 + 1;
  4620. ulCount_10 = ulCount_3 + 1;
  4621. <bb 4> :
  4622. # pucStackByte_2 = PHI <pucStackByte_5(D)(2), pucStackByte_9(3)>
  4623. # ulCount_3 = PHI <ulCount_4(2), ulCount_10(3)>
  4624. _1 = *pucStackByte_2;
  4625. if (_1 == 165)
  4626. goto <bb 3>; [INV]
  4627. else
  4628. goto <bb 5>; [INV]
  4629. <bb 5> :
  4630. ulCount_7 = ulCount_3 / 4;
  4631. _8 = (uint16_t) ulCount_7;
  4632. <bb 6> :
  4633. <L3>:
  4634. return _8;
  4635. }
  4636. ;; Function uxTaskGetStackHighWaterMark (uxTaskGetStackHighWaterMark, funcdef_no=53, decl_uid=6191, cgraph_uid=54, symbol_order=75)
  4637. uxTaskGetStackHighWaterMark (struct tskTaskControlBlock * xTask)
  4638. {
  4639. UBaseType_t uxReturn;
  4640. uint8_t * pucEndOfStack;
  4641. struct TCB_t * pxTCB;
  4642. UBaseType_t D.8005;
  4643. struct TCB_t * iftmp.106;
  4644. short unsigned int _1;
  4645. struct TCB_t * iftmp.106_2;
  4646. struct TCB_t * iftmp.106_4;
  4647. struct TCB_t * iftmp.106_6;
  4648. UBaseType_t _11;
  4649. <bb 2> :
  4650. if (xTask_3(D) == 0B)
  4651. goto <bb 3>; [INV]
  4652. else
  4653. goto <bb 4>; [INV]
  4654. <bb 3> :
  4655. iftmp.106_6 ={v} pxCurrentTCB;
  4656. goto <bb 5>; [INV]
  4657. <bb 4> :
  4658. iftmp.106_4 = xTask_3(D);
  4659. <bb 5> :
  4660. # iftmp.106_2 = PHI <iftmp.106_6(3), iftmp.106_4(4)>
  4661. pxTCB_7 = iftmp.106_2;
  4662. pucEndOfStack_8 = pxTCB_7->pxStack;
  4663. _1 = prvTaskCheckFreeStackSpace (pucEndOfStack_8);
  4664. uxReturn_10 = (UBaseType_t) _1;
  4665. _11 = uxReturn_10;
  4666. <bb 6> :
  4667. <L3>:
  4668. return _11;
  4669. }
  4670. ;; Function prvDeleteTCB (prvDeleteTCB, funcdef_no=54, decl_uid=6945, cgraph_uid=55, symbol_order=76)
  4671. prvDeleteTCB (struct TCB_t * pxTCB)
  4672. {
  4673. StackType_t * _1;
  4674. <bb 2> :
  4675. _1 = pxTCB_3(D)->pxStack;
  4676. vPortFree (_1);
  4677. vPortFree (pxTCB_3(D));
  4678. return;
  4679. }
  4680. ;; Function prvResetNextTaskUnblockTime (prvResetNextTaskUnblockTime, funcdef_no=55, decl_uid=6961, cgraph_uid=56, symbol_order=77)
  4681. prvResetNextTaskUnblockTime ()
  4682. {
  4683. struct List_t * pxDelayedTaskList.107_1;
  4684. long unsigned int _2;
  4685. struct List_t * pxDelayedTaskList.108_3;
  4686. struct xLIST_ITEM * _4;
  4687. long unsigned int _5;
  4688. <bb 2> :
  4689. pxDelayedTaskList.107_1 ={v} pxDelayedTaskList;
  4690. _2 ={v} pxDelayedTaskList.107_1->uxNumberOfItems;
  4691. if (_2 == 0)
  4692. goto <bb 3>; [INV]
  4693. else
  4694. goto <bb 4>; [INV]
  4695. <bb 3> :
  4696. xNextTaskUnblockTime ={v} 4294967295;
  4697. goto <bb 5>; [INV]
  4698. <bb 4> :
  4699. pxDelayedTaskList.108_3 ={v} pxDelayedTaskList;
  4700. _4 = pxDelayedTaskList.108_3->xListEnd.pxNext;
  4701. _5 = _4->xItemValue;
  4702. xNextTaskUnblockTime ={v} _5;
  4703. <bb 5> :
  4704. return;
  4705. }
  4706. ;; Function xTaskGetCurrentTaskHandle (xTaskGetCurrentTaskHandle, funcdef_no=56, decl_uid=6273, cgraph_uid=57, symbol_order=78)
  4707. xTaskGetCurrentTaskHandle ()
  4708. {
  4709. struct tskTaskControlBlock * xReturn;
  4710. struct tskTaskControlBlock * D.8010;
  4711. struct tskTaskControlBlock * _3;
  4712. <bb 2> :
  4713. xReturn_2 ={v} pxCurrentTCB;
  4714. _3 = xReturn_2;
  4715. <bb 3> :
  4716. <L0>:
  4717. return _3;
  4718. }
  4719. ;; Function xTaskGetSchedulerState (xTaskGetSchedulerState, funcdef_no=57, decl_uid=6277, cgraph_uid=58, symbol_order=79)
  4720. xTaskGetSchedulerState ()
  4721. {
  4722. BaseType_t xReturn;
  4723. BaseType_t D.8018;
  4724. long int xSchedulerRunning.109_1;
  4725. long unsigned int uxSchedulerSuspended.110_2;
  4726. BaseType_t _8;
  4727. <bb 2> :
  4728. xSchedulerRunning.109_1 ={v} xSchedulerRunning;
  4729. if (xSchedulerRunning.109_1 == 0)
  4730. goto <bb 3>; [INV]
  4731. else
  4732. goto <bb 4>; [INV]
  4733. <bb 3> :
  4734. xReturn_7 = 1;
  4735. goto <bb 7>; [INV]
  4736. <bb 4> :
  4737. uxSchedulerSuspended.110_2 ={v} uxSchedulerSuspended;
  4738. if (uxSchedulerSuspended.110_2 == 0)
  4739. goto <bb 5>; [INV]
  4740. else
  4741. goto <bb 6>; [INV]
  4742. <bb 5> :
  4743. xReturn_6 = 2;
  4744. goto <bb 7>; [INV]
  4745. <bb 6> :
  4746. xReturn_5 = 0;
  4747. <bb 7> :
  4748. # xReturn_3 = PHI <xReturn_7(3), xReturn_6(5), xReturn_5(6)>
  4749. _8 = xReturn_3;
  4750. <bb 8> :
  4751. <L6>:
  4752. return _8;
  4753. }
  4754. ;; Function xTaskPriorityInherit (xTaskPriorityInherit, funcdef_no=58, decl_uid=6279, cgraph_uid=59, symbol_order=80)
  4755. xTaskPriorityInherit (struct tskTaskControlBlock * const pxMutexHolder)
  4756. {
  4757. struct ListItem_t * const pxIndex;
  4758. BaseType_t xReturn;
  4759. struct TCB_t * const pxMutexHolderTCB;
  4760. BaseType_t D.8040;
  4761. long unsigned int _1;
  4762. struct TCB_t * pxCurrentTCB.111_2;
  4763. long unsigned int _3;
  4764. long unsigned int _4;
  4765. signed int _5;
  4766. struct TCB_t * pxCurrentTCB.112_6;
  4767. long unsigned int _7;
  4768. long unsigned int _8;
  4769. struct xLIST * _9;
  4770. long unsigned int _10;
  4771. struct List_t * _11;
  4772. struct ListItem_t * _12;
  4773. long unsigned int _13;
  4774. struct TCB_t * pxCurrentTCB.113_14;
  4775. long unsigned int _15;
  4776. long unsigned int _16;
  4777. long unsigned int uxTopReadyPriority.114_17;
  4778. long unsigned int _18;
  4779. long unsigned int _19;
  4780. struct xLIST_ITEM * _20;
  4781. struct xLIST_ITEM * _21;
  4782. struct ListItem_t * _22;
  4783. struct ListItem_t * _23;
  4784. long unsigned int _24;
  4785. struct List_t * _25;
  4786. long unsigned int _26;
  4787. long unsigned int _27;
  4788. long unsigned int _28;
  4789. struct TCB_t * pxCurrentTCB.115_29;
  4790. long unsigned int _30;
  4791. long unsigned int _31;
  4792. struct TCB_t * pxCurrentTCB.116_32;
  4793. long unsigned int _33;
  4794. BaseType_t _57;
  4795. <bb 2> :
  4796. pxMutexHolderTCB_40 = pxMutexHolder_39(D);
  4797. xReturn_41 = 0;
  4798. if (pxMutexHolder_39(D) != 0B)
  4799. goto <bb 3>; [INV]
  4800. else
  4801. goto <bb 15>; [INV]
  4802. <bb 3> :
  4803. _1 = pxMutexHolderTCB_40->uxPriority;
  4804. pxCurrentTCB.111_2 ={v} pxCurrentTCB;
  4805. _3 = pxCurrentTCB.111_2->uxPriority;
  4806. if (_1 < _3)
  4807. goto <bb 4>; [INV]
  4808. else
  4809. goto <bb 13>; [INV]
  4810. <bb 4> :
  4811. _4 = pxMutexHolderTCB_40->xEventListItem.xItemValue;
  4812. _5 = (signed int) _4;
  4813. if (_5 >= 0)
  4814. goto <bb 5>; [INV]
  4815. else
  4816. goto <bb 6>; [INV]
  4817. <bb 5> :
  4818. pxCurrentTCB.112_6 ={v} pxCurrentTCB;
  4819. _7 = pxCurrentTCB.112_6->uxPriority;
  4820. _8 = 5 - _7;
  4821. pxMutexHolderTCB_40->xEventListItem.xItemValue = _8;
  4822. <bb 6> :
  4823. _9 = pxMutexHolderTCB_40->xStateListItem.pvContainer;
  4824. _10 = pxMutexHolderTCB_40->uxPriority;
  4825. _11 = &pxReadyTasksLists[_10];
  4826. if (_9 == _11)
  4827. goto <bb 7>; [INV]
  4828. else
  4829. goto <bb 11>; [INV]
  4830. <bb 7> :
  4831. _12 = &pxMutexHolderTCB_40->xStateListItem;
  4832. _13 = uxListRemove (_12);
  4833. <bb 8> :
  4834. pxCurrentTCB.113_14 ={v} pxCurrentTCB;
  4835. _15 = pxCurrentTCB.113_14->uxPriority;
  4836. pxMutexHolderTCB_40->uxPriority = _15;
  4837. _16 = pxMutexHolderTCB_40->uxPriority;
  4838. uxTopReadyPriority.114_17 ={v} uxTopReadyPriority;
  4839. if (_16 > uxTopReadyPriority.114_17)
  4840. goto <bb 9>; [INV]
  4841. else
  4842. goto <bb 10>; [INV]
  4843. <bb 9> :
  4844. _18 = pxMutexHolderTCB_40->uxPriority;
  4845. uxTopReadyPriority ={v} _18;
  4846. <bb 10> :
  4847. _19 = pxMutexHolderTCB_40->uxPriority;
  4848. pxIndex_49 = pxReadyTasksLists[_19].pxIndex;
  4849. pxMutexHolderTCB_40->xStateListItem.pxNext = pxIndex_49;
  4850. _20 = pxIndex_49->pxPrevious;
  4851. pxMutexHolderTCB_40->xStateListItem.pxPrevious = _20;
  4852. _21 = pxIndex_49->pxPrevious;
  4853. _22 = &pxMutexHolderTCB_40->xStateListItem;
  4854. _21->pxNext = _22;
  4855. _23 = &pxMutexHolderTCB_40->xStateListItem;
  4856. pxIndex_49->pxPrevious = _23;
  4857. _24 = pxMutexHolderTCB_40->uxPriority;
  4858. _25 = &pxReadyTasksLists[_24];
  4859. pxMutexHolderTCB_40->xStateListItem.pvContainer = _25;
  4860. _26 = pxMutexHolderTCB_40->uxPriority;
  4861. _27 ={v} pxReadyTasksLists[_26].uxNumberOfItems;
  4862. _28 = _27 + 1;
  4863. pxReadyTasksLists[_26].uxNumberOfItems ={v} _28;
  4864. goto <bb 12>; [INV]
  4865. <bb 11> :
  4866. pxCurrentTCB.115_29 ={v} pxCurrentTCB;
  4867. _30 = pxCurrentTCB.115_29->uxPriority;
  4868. pxMutexHolderTCB_40->uxPriority = _30;
  4869. <bb 12> :
  4870. xReturn_56 = 1;
  4871. goto <bb 15>; [INV]
  4872. <bb 13> :
  4873. _31 = pxMutexHolderTCB_40->uxBasePriority;
  4874. pxCurrentTCB.116_32 ={v} pxCurrentTCB;
  4875. _33 = pxCurrentTCB.116_32->uxPriority;
  4876. if (_31 < _33)
  4877. goto <bb 14>; [INV]
  4878. else
  4879. goto <bb 15>; [INV]
  4880. <bb 14> :
  4881. xReturn_43 = 1;
  4882. <bb 15> :
  4883. # xReturn_34 = PHI <xReturn_41(2), xReturn_41(13), xReturn_56(12), xReturn_43(14)>
  4884. _57 = xReturn_34;
  4885. <bb 16> :
  4886. <L20>:
  4887. return _57;
  4888. }
  4889. ;; Function xTaskPriorityDisinherit (xTaskPriorityDisinherit, funcdef_no=59, decl_uid=6281, cgraph_uid=60, symbol_order=81)
  4890. xTaskPriorityDisinherit (struct tskTaskControlBlock * const pxMutexHolder)
  4891. {
  4892. uint32_t ulNewBASEPRI;
  4893. uint32_t ulNewBASEPRI;
  4894. struct ListItem_t * const pxIndex;
  4895. BaseType_t xReturn;
  4896. struct TCB_t * const pxTCB;
  4897. BaseType_t D.8060;
  4898. struct TCB_t * pxCurrentTCB.117_1;
  4899. long unsigned int _2;
  4900. long unsigned int _3;
  4901. long unsigned int _4;
  4902. long unsigned int _5;
  4903. long unsigned int _6;
  4904. long unsigned int _7;
  4905. struct ListItem_t * _8;
  4906. long unsigned int _9;
  4907. long unsigned int _10;
  4908. long unsigned int _11;
  4909. long unsigned int _12;
  4910. long unsigned int _13;
  4911. long unsigned int uxTopReadyPriority.118_14;
  4912. long unsigned int _15;
  4913. long unsigned int _16;
  4914. struct xLIST_ITEM * _17;
  4915. struct xLIST_ITEM * _18;
  4916. struct ListItem_t * _19;
  4917. struct ListItem_t * _20;
  4918. long unsigned int _21;
  4919. struct List_t * _22;
  4920. long unsigned int _23;
  4921. long unsigned int _24;
  4922. long unsigned int _25;
  4923. BaseType_t _46;
  4924. <bb 2> :
  4925. pxTCB_30 = pxMutexHolder_29(D);
  4926. xReturn_31 = 0;
  4927. if (pxMutexHolder_29(D) != 0B)
  4928. goto <bb 3>; [INV]
  4929. else
  4930. goto <bb 17>; [INV]
  4931. <bb 3> :
  4932. pxCurrentTCB.117_1 ={v} pxCurrentTCB;
  4933. if (pxTCB_30 != pxCurrentTCB.117_1)
  4934. goto <bb 4>; [INV]
  4935. else
  4936. goto <bb 7>; [INV]
  4937. <bb 4> :
  4938. __asm__ __volatile__(" mov %0, %1
  4939. msr basepri, %0
  4940. isb
  4941. dsb
  4942. " : "=r" ulNewBASEPRI_47 : "i" 16 : "memory");
  4943. <bb 5> :
  4944. <bb 6> :
  4945. goto <bb 6>; [INV]
  4946. <bb 7> :
  4947. _2 = pxTCB_30->uxMutexesHeld;
  4948. if (_2 == 0)
  4949. goto <bb 8>; [INV]
  4950. else
  4951. goto <bb 11>; [INV]
  4952. <bb 8> :
  4953. __asm__ __volatile__(" mov %0, %1
  4954. msr basepri, %0
  4955. isb
  4956. dsb
  4957. " : "=r" ulNewBASEPRI_48 : "i" 16 : "memory");
  4958. <bb 9> :
  4959. <bb 10> :
  4960. goto <bb 10>; [INV]
  4961. <bb 11> :
  4962. _3 = pxTCB_30->uxMutexesHeld;
  4963. _4 = _3 + 4294967295;
  4964. pxTCB_30->uxMutexesHeld = _4;
  4965. _5 = pxTCB_30->uxPriority;
  4966. _6 = pxTCB_30->uxBasePriority;
  4967. if (_5 != _6)
  4968. goto <bb 12>; [INV]
  4969. else
  4970. goto <bb 17>; [INV]
  4971. <bb 12> :
  4972. _7 = pxTCB_30->uxMutexesHeld;
  4973. if (_7 == 0)
  4974. goto <bb 13>; [INV]
  4975. else
  4976. goto <bb 17>; [INV]
  4977. <bb 13> :
  4978. _8 = &pxTCB_30->xStateListItem;
  4979. _9 = uxListRemove (_8);
  4980. <bb 14> :
  4981. _10 = pxTCB_30->uxBasePriority;
  4982. pxTCB_30->uxPriority = _10;
  4983. _11 = pxTCB_30->uxPriority;
  4984. _12 = 5 - _11;
  4985. pxTCB_30->xEventListItem.xItemValue = _12;
  4986. _13 = pxTCB_30->uxPriority;
  4987. uxTopReadyPriority.118_14 ={v} uxTopReadyPriority;
  4988. if (_13 > uxTopReadyPriority.118_14)
  4989. goto <bb 15>; [INV]
  4990. else
  4991. goto <bb 16>; [INV]
  4992. <bb 15> :
  4993. _15 = pxTCB_30->uxPriority;
  4994. uxTopReadyPriority ={v} _15;
  4995. <bb 16> :
  4996. _16 = pxTCB_30->uxPriority;
  4997. pxIndex_38 = pxReadyTasksLists[_16].pxIndex;
  4998. pxTCB_30->xStateListItem.pxNext = pxIndex_38;
  4999. _17 = pxIndex_38->pxPrevious;
  5000. pxTCB_30->xStateListItem.pxPrevious = _17;
  5001. _18 = pxIndex_38->pxPrevious;
  5002. _19 = &pxTCB_30->xStateListItem;
  5003. _18->pxNext = _19;
  5004. _20 = &pxTCB_30->xStateListItem;
  5005. pxIndex_38->pxPrevious = _20;
  5006. _21 = pxTCB_30->uxPriority;
  5007. _22 = &pxReadyTasksLists[_21];
  5008. pxTCB_30->xStateListItem.pvContainer = _22;
  5009. _23 = pxTCB_30->uxPriority;
  5010. _24 ={v} pxReadyTasksLists[_23].uxNumberOfItems;
  5011. _25 = _24 + 1;
  5012. pxReadyTasksLists[_23].uxNumberOfItems ={v} _25;
  5013. xReturn_45 = 1;
  5014. <bb 17> :
  5015. # xReturn_26 = PHI <xReturn_31(2), xReturn_45(16), xReturn_31(11), xReturn_31(12)>
  5016. _46 = xReturn_26;
  5017. <bb 18> :
  5018. <L20>:
  5019. return _46;
  5020. }
  5021. ;; Function vTaskPriorityDisinheritAfterTimeout (vTaskPriorityDisinheritAfterTimeout, funcdef_no=60, decl_uid=6284, cgraph_uid=61, symbol_order=82)
  5022. vTaskPriorityDisinheritAfterTimeout (struct tskTaskControlBlock * const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask)
  5023. {
  5024. uint32_t ulNewBASEPRI;
  5025. uint32_t ulNewBASEPRI;
  5026. struct ListItem_t * const pxIndex;
  5027. const UBaseType_t uxOnlyOneMutexHeld;
  5028. UBaseType_t uxPriorityToUse;
  5029. UBaseType_t uxPriorityUsedOnEntry;
  5030. struct TCB_t * const pxTCB;
  5031. long unsigned int _1;
  5032. long unsigned int _2;
  5033. long unsigned int _3;
  5034. long unsigned int _4;
  5035. struct TCB_t * pxCurrentTCB.119_5;
  5036. long unsigned int _6;
  5037. signed int _7;
  5038. long unsigned int _8;
  5039. struct xLIST * _9;
  5040. struct List_t * _10;
  5041. struct ListItem_t * _11;
  5042. long unsigned int _12;
  5043. long unsigned int _13;
  5044. long unsigned int uxTopReadyPriority.120_14;
  5045. long unsigned int _15;
  5046. long unsigned int _16;
  5047. struct xLIST_ITEM * _17;
  5048. struct xLIST_ITEM * _18;
  5049. struct ListItem_t * _19;
  5050. struct ListItem_t * _20;
  5051. long unsigned int _21;
  5052. struct List_t * _22;
  5053. long unsigned int _23;
  5054. long unsigned int _24;
  5055. long unsigned int _25;
  5056. <bb 2> :
  5057. pxTCB_31 = pxMutexHolder_30(D);
  5058. uxOnlyOneMutexHeld_32 = 1;
  5059. if (pxMutexHolder_30(D) != 0B)
  5060. goto <bb 3>; [INV]
  5061. else
  5062. goto <bb 23>; [INV]
  5063. <bb 3> :
  5064. _1 = pxTCB_31->uxMutexesHeld;
  5065. if (_1 == 0)
  5066. goto <bb 4>; [INV]
  5067. else
  5068. goto <bb 7>; [INV]
  5069. <bb 4> :
  5070. __asm__ __volatile__(" mov %0, %1
  5071. msr basepri, %0
  5072. isb
  5073. dsb
  5074. " : "=r" ulNewBASEPRI_49 : "i" 16 : "memory");
  5075. <bb 5> :
  5076. <bb 6> :
  5077. goto <bb 6>; [INV]
  5078. <bb 7> :
  5079. _2 = pxTCB_31->uxBasePriority;
  5080. if (uxHighestPriorityWaitingTask_34(D) > _2)
  5081. goto <bb 8>; [INV]
  5082. else
  5083. goto <bb 9>; [INV]
  5084. <bb 8> :
  5085. uxPriorityToUse_36 = uxHighestPriorityWaitingTask_34(D);
  5086. goto <bb 10>; [INV]
  5087. <bb 9> :
  5088. uxPriorityToUse_35 = pxTCB_31->uxBasePriority;
  5089. <bb 10> :
  5090. # uxPriorityToUse_26 = PHI <uxPriorityToUse_36(8), uxPriorityToUse_35(9)>
  5091. _3 = pxTCB_31->uxPriority;
  5092. if (uxPriorityToUse_26 != _3)
  5093. goto <bb 11>; [INV]
  5094. else
  5095. goto <bb 23>; [INV]
  5096. <bb 11> :
  5097. _4 = pxTCB_31->uxMutexesHeld;
  5098. if (uxOnlyOneMutexHeld_32 == _4)
  5099. goto <bb 12>; [INV]
  5100. else
  5101. goto <bb 23>; [INV]
  5102. <bb 12> :
  5103. pxCurrentTCB.119_5 ={v} pxCurrentTCB;
  5104. if (pxTCB_31 == pxCurrentTCB.119_5)
  5105. goto <bb 13>; [INV]
  5106. else
  5107. goto <bb 16>; [INV]
  5108. <bb 13> :
  5109. __asm__ __volatile__(" mov %0, %1
  5110. msr basepri, %0
  5111. isb
  5112. dsb
  5113. " : "=r" ulNewBASEPRI_50 : "i" 16 : "memory");
  5114. <bb 14> :
  5115. <bb 15> :
  5116. goto <bb 15>; [INV]
  5117. <bb 16> :
  5118. uxPriorityUsedOnEntry_37 = pxTCB_31->uxPriority;
  5119. pxTCB_31->uxPriority = uxPriorityToUse_26;
  5120. _6 = pxTCB_31->xEventListItem.xItemValue;
  5121. _7 = (signed int) _6;
  5122. if (_7 >= 0)
  5123. goto <bb 17>; [INV]
  5124. else
  5125. goto <bb 18>; [INV]
  5126. <bb 17> :
  5127. _8 = 5 - uxPriorityToUse_26;
  5128. pxTCB_31->xEventListItem.xItemValue = _8;
  5129. <bb 18> :
  5130. _9 = pxTCB_31->xStateListItem.pvContainer;
  5131. _10 = &pxReadyTasksLists[uxPriorityUsedOnEntry_37];
  5132. if (_9 == _10)
  5133. goto <bb 19>; [INV]
  5134. else
  5135. goto <bb 23>; [INV]
  5136. <bb 19> :
  5137. _11 = &pxTCB_31->xStateListItem;
  5138. _12 = uxListRemove (_11);
  5139. <bb 20> :
  5140. _13 = pxTCB_31->uxPriority;
  5141. uxTopReadyPriority.120_14 ={v} uxTopReadyPriority;
  5142. if (_13 > uxTopReadyPriority.120_14)
  5143. goto <bb 21>; [INV]
  5144. else
  5145. goto <bb 22>; [INV]
  5146. <bb 21> :
  5147. _15 = pxTCB_31->uxPriority;
  5148. uxTopReadyPriority ={v} _15;
  5149. <bb 22> :
  5150. _16 = pxTCB_31->uxPriority;
  5151. pxIndex_42 = pxReadyTasksLists[_16].pxIndex;
  5152. pxTCB_31->xStateListItem.pxNext = pxIndex_42;
  5153. _17 = pxIndex_42->pxPrevious;
  5154. pxTCB_31->xStateListItem.pxPrevious = _17;
  5155. _18 = pxIndex_42->pxPrevious;
  5156. _19 = &pxTCB_31->xStateListItem;
  5157. _18->pxNext = _19;
  5158. _20 = &pxTCB_31->xStateListItem;
  5159. pxIndex_42->pxPrevious = _20;
  5160. _21 = pxTCB_31->uxPriority;
  5161. _22 = &pxReadyTasksLists[_21];
  5162. pxTCB_31->xStateListItem.pvContainer = _22;
  5163. _23 = pxTCB_31->uxPriority;
  5164. _24 ={v} pxReadyTasksLists[_23].uxNumberOfItems;
  5165. _25 = _24 + 1;
  5166. pxReadyTasksLists[_23].uxNumberOfItems ={v} _25;
  5167. <bb 23> :
  5168. return;
  5169. }
  5170. ;; Function prvWriteNameToBuffer (prvWriteNameToBuffer, funcdef_no=61, decl_uid=6964, cgraph_uid=62, symbol_order=83)
  5171. prvWriteNameToBuffer (char * pcBuffer, const char * pcTaskName)
  5172. {
  5173. size_t x;
  5174. char * D.8089;
  5175. char * _1;
  5176. char * _2;
  5177. char * _11;
  5178. <bb 2> :
  5179. strcpy (pcBuffer_6(D), pcTaskName_7(D));
  5180. x_9 = strlen (pcBuffer_6(D));
  5181. goto <bb 4>; [INV]
  5182. <bb 3> :
  5183. _1 = pcBuffer_6(D) + x_3;
  5184. *_1 = 32;
  5185. x_13 = x_3 + 1;
  5186. <bb 4> :
  5187. # x_3 = PHI <x_9(2), x_13(3)>
  5188. if (x_3 <= 8)
  5189. goto <bb 3>; [INV]
  5190. else
  5191. goto <bb 5>; [INV]
  5192. <bb 5> :
  5193. _2 = pcBuffer_6(D) + x_3;
  5194. *_2 = 0;
  5195. _11 = pcBuffer_6(D) + x_3;
  5196. <bb 6> :
  5197. <L3>:
  5198. return _11;
  5199. }
  5200. ;; Function vTaskList (vTaskList, funcdef_no=62, decl_uid=6204, cgraph_uid=63, symbol_order=84)
  5201. vTaskList (char * pcWriteBuffer)
  5202. {
  5203. char cStatus;
  5204. UBaseType_t x;
  5205. UBaseType_t uxArraySize;
  5206. struct TaskStatus_t * pxTaskStatusArray;
  5207. long unsigned int uxCurrentNumberOfTasks.121_1;
  5208. long unsigned int _2;
  5209. long unsigned int _3;
  5210. struct TaskStatus_t * _4;
  5211. <unnamed type> _5;
  5212. long unsigned int _6;
  5213. struct TaskStatus_t * _7;
  5214. const char * _8;
  5215. int _9;
  5216. long unsigned int _10;
  5217. struct TaskStatus_t * _11;
  5218. long unsigned int _12;
  5219. long unsigned int _13;
  5220. struct TaskStatus_t * _14;
  5221. short unsigned int _15;
  5222. unsigned int _16;
  5223. long unsigned int _17;
  5224. struct TaskStatus_t * _18;
  5225. long unsigned int _19;
  5226. unsigned int _20;
  5227. <bb 2> :
  5228. *pcWriteBuffer_27(D) = 0;
  5229. uxArraySize_29 ={v} uxCurrentNumberOfTasks;
  5230. uxCurrentNumberOfTasks.121_1 ={v} uxCurrentNumberOfTasks;
  5231. _2 = uxCurrentNumberOfTasks.121_1 * 36;
  5232. pxTaskStatusArray_31 = pvPortMalloc (_2);
  5233. if (pxTaskStatusArray_31 != 0B)
  5234. goto <bb 3>; [INV]
  5235. else
  5236. goto <bb 14>; [INV]
  5237. <bb 3> :
  5238. uxArraySize_33 = uxTaskGetSystemState (pxTaskStatusArray_31, uxArraySize_29, 0B);
  5239. x_34 = 0;
  5240. goto <bb 12>; [INV]
  5241. <bb 4> :
  5242. _3 = x_22 * 36;
  5243. _4 = pxTaskStatusArray_31 + _3;
  5244. _5 = _4->eCurrentState;
  5245. switch (_5) <default: <L7> [INV], case 0: <L2> [INV], case 1: <L3> [INV], case 2: <L4> [INV], case 3: <L5> [INV], case 4: <L6> [INV]>
  5246. <bb 5> :
  5247. <L2>:
  5248. cStatus_40 = 88;
  5249. goto <bb 11>; [INV]
  5250. <bb 6> :
  5251. <L3>:
  5252. cStatus_39 = 82;
  5253. goto <bb 11>; [INV]
  5254. <bb 7> :
  5255. <L4>:
  5256. cStatus_38 = 66;
  5257. goto <bb 11>; [INV]
  5258. <bb 8> :
  5259. <L5>:
  5260. cStatus_37 = 83;
  5261. goto <bb 11>; [INV]
  5262. <bb 9> :
  5263. <L6>:
  5264. cStatus_36 = 68;
  5265. goto <bb 11>; [INV]
  5266. <bb 10> :
  5267. <L7>:
  5268. cStatus_41 = 0;
  5269. <bb 11> :
  5270. # cStatus_23 = PHI <cStatus_40(5), cStatus_39(6), cStatus_38(7), cStatus_37(8), cStatus_36(9), cStatus_41(10)>
  5271. _6 = x_22 * 36;
  5272. _7 = pxTaskStatusArray_31 + _6;
  5273. _8 = _7->pcTaskName;
  5274. pcWriteBuffer_43 = prvWriteNameToBuffer (pcWriteBuffer_21, _8);
  5275. _9 = (int) cStatus_23;
  5276. _10 = x_22 * 36;
  5277. _11 = pxTaskStatusArray_31 + _10;
  5278. _12 = _11->uxCurrentPriority;
  5279. _13 = x_22 * 36;
  5280. _14 = pxTaskStatusArray_31 + _13;
  5281. _15 = _14->usStackHighWaterMark;
  5282. _16 = (unsigned int) _15;
  5283. _17 = x_22 * 36;
  5284. _18 = pxTaskStatusArray_31 + _17;
  5285. _19 = _18->xTaskNumber;
  5286. sprintf (pcWriteBuffer_43, "\t%c\t%u\t%u\t%u\r\n", _9, _12, _16, _19);
  5287. _20 = strlen (pcWriteBuffer_43);
  5288. pcWriteBuffer_45 = pcWriteBuffer_43 + _20;
  5289. x_46 = x_22 + 1;
  5290. <bb 12> :
  5291. # pcWriteBuffer_21 = PHI <pcWriteBuffer_27(D)(3), pcWriteBuffer_45(11)>
  5292. # x_22 = PHI <x_34(3), x_46(11)>
  5293. if (x_22 < uxArraySize_33)
  5294. goto <bb 4>; [INV]
  5295. else
  5296. goto <bb 13>; [INV]
  5297. <bb 13> :
  5298. vPortFree (pxTaskStatusArray_31);
  5299. <bb 14> :
  5300. return;
  5301. }
  5302. ;; Function uxTaskResetEventItemValue (uxTaskResetEventItemValue, funcdef_no=63, decl_uid=6271, cgraph_uid=64, symbol_order=85)
  5303. uxTaskResetEventItemValue ()
  5304. {
  5305. TickType_t uxReturn;
  5306. TickType_t D.8094;
  5307. struct TCB_t * pxCurrentTCB.122_1;
  5308. struct TCB_t * pxCurrentTCB.123_2;
  5309. long unsigned int _3;
  5310. struct TCB_t * pxCurrentTCB.124_4;
  5311. long unsigned int _5;
  5312. TickType_t _9;
  5313. <bb 2> :
  5314. pxCurrentTCB.122_1 ={v} pxCurrentTCB;
  5315. uxReturn_7 = pxCurrentTCB.122_1->xEventListItem.xItemValue;
  5316. pxCurrentTCB.123_2 ={v} pxCurrentTCB;
  5317. _3 = pxCurrentTCB.123_2->uxPriority;
  5318. pxCurrentTCB.124_4 ={v} pxCurrentTCB;
  5319. _5 = 5 - _3;
  5320. pxCurrentTCB.124_4->xEventListItem.xItemValue = _5;
  5321. _9 = uxReturn_7;
  5322. <bb 3> :
  5323. <L0>:
  5324. return _9;
  5325. }
  5326. ;; Function pvTaskIncrementMutexHeldCount (pvTaskIncrementMutexHeldCount, funcdef_no=64, decl_uid=6295, cgraph_uid=65, symbol_order=86)
  5327. pvTaskIncrementMutexHeldCount ()
  5328. {
  5329. struct tskTaskControlBlock * D.8098;
  5330. struct TCB_t * pxCurrentTCB.125_1;
  5331. struct TCB_t * pxCurrentTCB.126_2;
  5332. long unsigned int _3;
  5333. long unsigned int _4;
  5334. struct tskTaskControlBlock * _8;
  5335. <bb 2> :
  5336. pxCurrentTCB.125_1 ={v} pxCurrentTCB;
  5337. if (pxCurrentTCB.125_1 != 0B)
  5338. goto <bb 3>; [INV]
  5339. else
  5340. goto <bb 4>; [INV]
  5341. <bb 3> :
  5342. pxCurrentTCB.126_2 ={v} pxCurrentTCB;
  5343. _3 = pxCurrentTCB.126_2->uxMutexesHeld;
  5344. _4 = _3 + 1;
  5345. pxCurrentTCB.126_2->uxMutexesHeld = _4;
  5346. <bb 4> :
  5347. _8 ={v} pxCurrentTCB;
  5348. <bb 5> :
  5349. <L2>:
  5350. return _8;
  5351. }
  5352. ;; Function ulTaskGenericNotifyTake (ulTaskGenericNotifyTake, funcdef_no=65, decl_uid=6235, cgraph_uid=66, symbol_order=87)
  5353. ulTaskGenericNotifyTake (UBaseType_t uxIndexToWait, BaseType_t xClearCountOnExit, TickType_t xTicksToWait)
  5354. {
  5355. uint32_t ulNewBASEPRI;
  5356. uint32_t ulReturn;
  5357. uint32_t D.8114;
  5358. struct TCB_t * pxCurrentTCB.127_1;
  5359. long unsigned int _2;
  5360. struct TCB_t * pxCurrentTCB.128_3;
  5361. volatile uint32_t * _4;
  5362. struct TCB_t * pxCurrentTCB.129_5;
  5363. struct TCB_t * pxCurrentTCB.130_6;
  5364. struct TCB_t * pxCurrentTCB.131_7;
  5365. long unsigned int _8;
  5366. struct TCB_t * pxCurrentTCB.132_9;
  5367. uint32_t _29;
  5368. <bb 2> :
  5369. if (uxIndexToWait_12(D) != 0)
  5370. goto <bb 3>; [INV]
  5371. else
  5372. goto <bb 6>; [INV]
  5373. <bb 3> :
  5374. __asm__ __volatile__(" mov %0, %1
  5375. msr basepri, %0
  5376. isb
  5377. dsb
  5378. " : "=r" ulNewBASEPRI_30 : "i" 16 : "memory");
  5379. <bb 4> :
  5380. <bb 5> :
  5381. goto <bb 5>; [INV]
  5382. <bb 6> :
  5383. vPortEnterCritical ();
  5384. pxCurrentTCB.127_1 ={v} pxCurrentTCB;
  5385. _2 ={v} pxCurrentTCB.127_1->ulNotifiedValue[uxIndexToWait_12(D)];
  5386. if (_2 == 0)
  5387. goto <bb 7>; [INV]
  5388. else
  5389. goto <bb 9>; [INV]
  5390. <bb 7> :
  5391. pxCurrentTCB.128_3 ={v} pxCurrentTCB;
  5392. pxCurrentTCB.128_3->ucNotifyState[uxIndexToWait_12(D)] ={v} 1;
  5393. if (xTicksToWait_16(D) != 0)
  5394. goto <bb 8>; [INV]
  5395. else
  5396. goto <bb 9>; [INV]
  5397. <bb 8> :
  5398. prvAddCurrentTaskToDelayedList (xTicksToWait_16(D), 1);
  5399. _4 = 3758157060B;
  5400. *_4 ={v} 268435456;
  5401. __asm__ __volatile__("dsb" : : : "memory");
  5402. __asm__ __volatile__("isb");
  5403. <bb 9> :
  5404. vPortExitCritical ();
  5405. vPortEnterCritical ();
  5406. pxCurrentTCB.129_5 ={v} pxCurrentTCB;
  5407. ulReturn_23 ={v} pxCurrentTCB.129_5->ulNotifiedValue[uxIndexToWait_12(D)];
  5408. if (ulReturn_23 != 0)
  5409. goto <bb 10>; [INV]
  5410. else
  5411. goto <bb 13>; [INV]
  5412. <bb 10> :
  5413. if (xClearCountOnExit_24(D) != 0)
  5414. goto <bb 11>; [INV]
  5415. else
  5416. goto <bb 12>; [INV]
  5417. <bb 11> :
  5418. pxCurrentTCB.130_6 ={v} pxCurrentTCB;
  5419. pxCurrentTCB.130_6->ulNotifiedValue[uxIndexToWait_12(D)] ={v} 0;
  5420. goto <bb 13>; [INV]
  5421. <bb 12> :
  5422. pxCurrentTCB.131_7 ={v} pxCurrentTCB;
  5423. _8 = ulReturn_23 + 4294967295;
  5424. pxCurrentTCB.131_7->ulNotifiedValue[uxIndexToWait_12(D)] ={v} _8;
  5425. <bb 13> :
  5426. pxCurrentTCB.132_9 ={v} pxCurrentTCB;
  5427. pxCurrentTCB.132_9->ucNotifyState[uxIndexToWait_12(D)] ={v} 0;
  5428. vPortExitCritical ();
  5429. _29 = ulReturn_23;
  5430. <bb 14> :
  5431. <L15>:
  5432. return _29;
  5433. }
  5434. ;; Function xTaskGenericNotifyWait (xTaskGenericNotifyWait, funcdef_no=66, decl_uid=6227, cgraph_uid=67, symbol_order=88)
  5435. xTaskGenericNotifyWait (UBaseType_t uxIndexToWait, uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t * pulNotificationValue, TickType_t xTicksToWait)
  5436. {
  5437. uint32_t ulNewBASEPRI;
  5438. BaseType_t xReturn;
  5439. BaseType_t D.8131;
  5440. struct TCB_t * pxCurrentTCB.138;
  5441. struct TCB_t * pxCurrentTCB.134;
  5442. struct TCB_t * pxCurrentTCB.133_1;
  5443. unsigned char _2;
  5444. long unsigned int _3;
  5445. long unsigned int _4;
  5446. long unsigned int _5;
  5447. struct TCB_t * pxCurrentTCB.135_6;
  5448. volatile uint32_t * _7;
  5449. struct TCB_t * pxCurrentTCB.136_8;
  5450. long unsigned int _9;
  5451. struct TCB_t * pxCurrentTCB.137_10;
  5452. unsigned char _11;
  5453. long unsigned int _12;
  5454. long unsigned int _13;
  5455. long unsigned int _14;
  5456. struct TCB_t * pxCurrentTCB.139_15;
  5457. struct TCB_t * pxCurrentTCB.134_23;
  5458. struct TCB_t * pxCurrentTCB.138_36;
  5459. BaseType_t _43;
  5460. <bb 2> :
  5461. if (uxIndexToWait_20(D) != 0)
  5462. goto <bb 3>; [INV]
  5463. else
  5464. goto <bb 6>; [INV]
  5465. <bb 3> :
  5466. __asm__ __volatile__(" mov %0, %1
  5467. msr basepri, %0
  5468. isb
  5469. dsb
  5470. " : "=r" ulNewBASEPRI_44 : "i" 16 : "memory");
  5471. <bb 4> :
  5472. <bb 5> :
  5473. goto <bb 5>; [INV]
  5474. <bb 6> :
  5475. vPortEnterCritical ();
  5476. pxCurrentTCB.133_1 ={v} pxCurrentTCB;
  5477. _2 ={v} pxCurrentTCB.133_1->ucNotifyState[uxIndexToWait_20(D)];
  5478. if (_2 != 2)
  5479. goto <bb 7>; [INV]
  5480. else
  5481. goto <bb 9>; [INV]
  5482. <bb 7> :
  5483. pxCurrentTCB.134_23 ={v} pxCurrentTCB;
  5484. _3 ={v} pxCurrentTCB.134_23->ulNotifiedValue[uxIndexToWait_20(D)];
  5485. _4 = ~ulBitsToClearOnEntry_24(D);
  5486. _5 = _3 & _4;
  5487. pxCurrentTCB.134_23->ulNotifiedValue[uxIndexToWait_20(D)] ={v} _5;
  5488. pxCurrentTCB.135_6 ={v} pxCurrentTCB;
  5489. pxCurrentTCB.135_6->ucNotifyState[uxIndexToWait_20(D)] ={v} 1;
  5490. if (xTicksToWait_27(D) != 0)
  5491. goto <bb 8>; [INV]
  5492. else
  5493. goto <bb 9>; [INV]
  5494. <bb 8> :
  5495. prvAddCurrentTaskToDelayedList (xTicksToWait_27(D), 1);
  5496. _7 = 3758157060B;
  5497. *_7 ={v} 268435456;
  5498. __asm__ __volatile__("dsb" : : : "memory");
  5499. __asm__ __volatile__("isb");
  5500. <bb 9> :
  5501. vPortExitCritical ();
  5502. vPortEnterCritical ();
  5503. if (pulNotificationValue_34(D) != 0B)
  5504. goto <bb 10>; [INV]
  5505. else
  5506. goto <bb 11>; [INV]
  5507. <bb 10> :
  5508. pxCurrentTCB.136_8 ={v} pxCurrentTCB;
  5509. _9 ={v} pxCurrentTCB.136_8->ulNotifiedValue[uxIndexToWait_20(D)];
  5510. *pulNotificationValue_34(D) = _9;
  5511. <bb 11> :
  5512. pxCurrentTCB.137_10 ={v} pxCurrentTCB;
  5513. _11 ={v} pxCurrentTCB.137_10->ucNotifyState[uxIndexToWait_20(D)];
  5514. if (_11 != 2)
  5515. goto <bb 12>; [INV]
  5516. else
  5517. goto <bb 13>; [INV]
  5518. <bb 12> :
  5519. xReturn_40 = 0;
  5520. goto <bb 14>; [INV]
  5521. <bb 13> :
  5522. pxCurrentTCB.138_36 ={v} pxCurrentTCB;
  5523. _12 ={v} pxCurrentTCB.138_36->ulNotifiedValue[uxIndexToWait_20(D)];
  5524. _13 = ~ulBitsToClearOnExit_37(D);
  5525. _14 = _12 & _13;
  5526. pxCurrentTCB.138_36->ulNotifiedValue[uxIndexToWait_20(D)] ={v} _14;
  5527. xReturn_39 = 1;
  5528. <bb 14> :
  5529. # xReturn_16 = PHI <xReturn_40(12), xReturn_39(13)>
  5530. pxCurrentTCB.139_15 ={v} pxCurrentTCB;
  5531. pxCurrentTCB.139_15->ucNotifyState[uxIndexToWait_20(D)] ={v} 0;
  5532. vPortExitCritical ();
  5533. _43 = xReturn_16;
  5534. <bb 15> :
  5535. <L14>:
  5536. return _43;
  5537. }
  5538. ;; Function xTaskGenericNotify (xTaskGenericNotify, funcdef_no=67, decl_uid=6214, cgraph_uid=68, symbol_order=89)
  5539. xTaskGenericNotify (struct tskTaskControlBlock * xTaskToNotify, UBaseType_t uxIndexToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t * pulPreviousNotificationValue)
  5540. {
  5541. uint32_t ulNewBASEPRI;
  5542. uint32_t ulNewBASEPRI;
  5543. uint32_t ulNewBASEPRI;
  5544. uint32_t ulNewBASEPRI;
  5545. struct ListItem_t * const pxIndex;
  5546. struct List_t * const pxList;
  5547. uint8_t ucOriginalNotifyState;
  5548. BaseType_t xReturn;
  5549. struct TCB_t * pxTCB;
  5550. BaseType_t D.8156;
  5551. long unsigned int _1;
  5552. long unsigned int _2;
  5553. long unsigned int _3;
  5554. long unsigned int _4;
  5555. long unsigned int _5;
  5556. long unsigned int xTickCount.140_6;
  5557. struct xLIST_ITEM * _7;
  5558. struct xLIST_ITEM * _8;
  5559. struct xLIST_ITEM * _9;
  5560. struct xLIST_ITEM * _10;
  5561. struct ListItem_t * _11;
  5562. struct ListItem_t * _12;
  5563. struct xLIST_ITEM * _13;
  5564. long unsigned int _14;
  5565. long unsigned int _15;
  5566. long unsigned int _16;
  5567. long unsigned int uxTopReadyPriority.141_17;
  5568. long unsigned int _18;
  5569. long unsigned int _19;
  5570. struct xLIST_ITEM * _20;
  5571. struct xLIST_ITEM * _21;
  5572. struct ListItem_t * _22;
  5573. struct ListItem_t * _23;
  5574. long unsigned int _24;
  5575. struct List_t * _25;
  5576. long unsigned int _26;
  5577. long unsigned int _27;
  5578. long unsigned int _28;
  5579. struct xLIST * _29;
  5580. long unsigned int _30;
  5581. struct TCB_t * pxCurrentTCB.142_31;
  5582. long unsigned int _32;
  5583. volatile uint32_t * _33;
  5584. BaseType_t _77;
  5585. <bb 2> :
  5586. xReturn_42 = 1;
  5587. if (uxIndexToNotify_43(D) != 0)
  5588. goto <bb 3>; [INV]
  5589. else
  5590. goto <bb 6>; [INV]
  5591. <bb 3> :
  5592. __asm__ __volatile__(" mov %0, %1
  5593. msr basepri, %0
  5594. isb
  5595. dsb
  5596. " : "=r" ulNewBASEPRI_78 : "i" 16 : "memory");
  5597. <bb 4> :
  5598. <bb 5> :
  5599. goto <bb 5>; [INV]
  5600. <bb 6> :
  5601. if (xTaskToNotify_44(D) == 0B)
  5602. goto <bb 7>; [INV]
  5603. else
  5604. goto <bb 10>; [INV]
  5605. <bb 7> :
  5606. __asm__ __volatile__(" mov %0, %1
  5607. msr basepri, %0
  5608. isb
  5609. dsb
  5610. " : "=r" ulNewBASEPRI_79 : "i" 16 : "memory");
  5611. <bb 8> :
  5612. <bb 9> :
  5613. goto <bb 9>; [INV]
  5614. <bb 10> :
  5615. pxTCB_45 = xTaskToNotify_44(D);
  5616. vPortEnterCritical ();
  5617. if (pulPreviousNotificationValue_48(D) != 0B)
  5618. goto <bb 11>; [INV]
  5619. else
  5620. goto <bb 12>; [INV]
  5621. <bb 11> :
  5622. _1 ={v} pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)];
  5623. *pulPreviousNotificationValue_48(D) = _1;
  5624. <bb 12> :
  5625. ucOriginalNotifyState_50 ={v} pxTCB_45->ucNotifyState[uxIndexToNotify_43(D)];
  5626. pxTCB_45->ucNotifyState[uxIndexToNotify_43(D)] ={v} 2;
  5627. switch (eAction_52(D)) <default: <L16> [INV], case 0: <L15> [INV], case 1: <L8> [INV], case 2: <L9> [INV], case 3: <L10> [INV], case 4: <L11> [INV]>
  5628. <bb 13> :
  5629. <L8>:
  5630. _2 ={v} pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)];
  5631. _3 = ulValue_54(D) | _2;
  5632. pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)] ={v} _3;
  5633. goto <bb 26>; [INV]
  5634. <bb 14> :
  5635. <L9>:
  5636. _4 ={v} pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)];
  5637. _5 = _4 + 1;
  5638. pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)] ={v} _5;
  5639. goto <bb 26>; [INV]
  5640. <bb 15> :
  5641. <L10>:
  5642. pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)] ={v} ulValue_54(D);
  5643. goto <bb 26>; [INV]
  5644. <bb 16> :
  5645. <L11>:
  5646. if (ucOriginalNotifyState_50 != 2)
  5647. goto <bb 17>; [INV]
  5648. else
  5649. goto <bb 18>; [INV]
  5650. <bb 17> :
  5651. pxTCB_45->ulNotifiedValue[uxIndexToNotify_43(D)] ={v} ulValue_54(D);
  5652. goto <bb 19>; [INV]
  5653. <bb 18> :
  5654. xReturn_53 = 0;
  5655. <bb 19> :
  5656. # xReturn_34 = PHI <xReturn_42(17), xReturn_53(18)>
  5657. goto <bb 26>; [INV]
  5658. <bb 20> :
  5659. <L15>:
  5660. goto <bb 26>; [INV]
  5661. <bb 21> :
  5662. <L16>:
  5663. xTickCount.140_6 ={v} xTickCount;
  5664. if (xTickCount.140_6 != 0)
  5665. goto <bb 22>; [INV]
  5666. else
  5667. goto <bb 25>; [INV]
  5668. <bb 22> :
  5669. __asm__ __volatile__(" mov %0, %1
  5670. msr basepri, %0
  5671. isb
  5672. dsb
  5673. " : "=r" ulNewBASEPRI_80 : "i" 16 : "memory");
  5674. <bb 23> :
  5675. <bb 24> :
  5676. goto <bb 24>; [INV]
  5677. <bb 25> :
  5678. <bb 26> :
  5679. # xReturn_35 = PHI <xReturn_42(13), xReturn_42(14), xReturn_42(15), xReturn_34(19), xReturn_42(20), xReturn_42(25)>
  5680. if (ucOriginalNotifyState_50 == 1)
  5681. goto <bb 27>; [INV]
  5682. else
  5683. goto <bb 37>; [INV]
  5684. <bb 27> :
  5685. pxList_59 = pxTCB_45->xStateListItem.pvContainer;
  5686. _7 = pxTCB_45->xStateListItem.pxNext;
  5687. _8 = pxTCB_45->xStateListItem.pxPrevious;
  5688. _7->pxPrevious = _8;
  5689. _9 = pxTCB_45->xStateListItem.pxPrevious;
  5690. _10 = pxTCB_45->xStateListItem.pxNext;
  5691. _9->pxNext = _10;
  5692. _11 = pxList_59->pxIndex;
  5693. _12 = &pxTCB_45->xStateListItem;
  5694. if (_11 == _12)
  5695. goto <bb 28>; [INV]
  5696. else
  5697. goto <bb 29>; [INV]
  5698. <bb 28> :
  5699. _13 = pxTCB_45->xStateListItem.pxPrevious;
  5700. pxList_59->pxIndex = _13;
  5701. <bb 29> :
  5702. pxTCB_45->xStateListItem.pvContainer = 0B;
  5703. _14 ={v} pxList_59->uxNumberOfItems;
  5704. _15 = _14 + 4294967295;
  5705. pxList_59->uxNumberOfItems ={v} _15;
  5706. _16 = pxTCB_45->uxPriority;
  5707. uxTopReadyPriority.141_17 ={v} uxTopReadyPriority;
  5708. if (_16 > uxTopReadyPriority.141_17)
  5709. goto <bb 30>; [INV]
  5710. else
  5711. goto <bb 31>; [INV]
  5712. <bb 30> :
  5713. _18 = pxTCB_45->uxPriority;
  5714. uxTopReadyPriority ={v} _18;
  5715. <bb 31> :
  5716. _19 = pxTCB_45->uxPriority;
  5717. pxIndex_66 = pxReadyTasksLists[_19].pxIndex;
  5718. pxTCB_45->xStateListItem.pxNext = pxIndex_66;
  5719. _20 = pxIndex_66->pxPrevious;
  5720. pxTCB_45->xStateListItem.pxPrevious = _20;
  5721. _21 = pxIndex_66->pxPrevious;
  5722. _22 = &pxTCB_45->xStateListItem;
  5723. _21->pxNext = _22;
  5724. _23 = &pxTCB_45->xStateListItem;
  5725. pxIndex_66->pxPrevious = _23;
  5726. _24 = pxTCB_45->uxPriority;
  5727. _25 = &pxReadyTasksLists[_24];
  5728. pxTCB_45->xStateListItem.pvContainer = _25;
  5729. _26 = pxTCB_45->uxPriority;
  5730. _27 ={v} pxReadyTasksLists[_26].uxNumberOfItems;
  5731. _28 = _27 + 1;
  5732. pxReadyTasksLists[_26].uxNumberOfItems ={v} _28;
  5733. _29 = pxTCB_45->xEventListItem.pvContainer;
  5734. if (_29 != 0B)
  5735. goto <bb 32>; [INV]
  5736. else
  5737. goto <bb 35>; [INV]
  5738. <bb 32> :
  5739. __asm__ __volatile__(" mov %0, %1
  5740. msr basepri, %0
  5741. isb
  5742. dsb
  5743. " : "=r" ulNewBASEPRI_81 : "i" 16 : "memory");
  5744. <bb 33> :
  5745. <bb 34> :
  5746. goto <bb 34>; [INV]
  5747. <bb 35> :
  5748. _30 = pxTCB_45->uxPriority;
  5749. pxCurrentTCB.142_31 ={v} pxCurrentTCB;
  5750. _32 = pxCurrentTCB.142_31->uxPriority;
  5751. if (_30 > _32)
  5752. goto <bb 36>; [INV]
  5753. else
  5754. goto <bb 37>; [INV]
  5755. <bb 36> :
  5756. _33 = 3758157060B;
  5757. *_33 ={v} 268435456;
  5758. __asm__ __volatile__("dsb" : : : "memory");
  5759. __asm__ __volatile__("isb");
  5760. <bb 37> :
  5761. vPortExitCritical ();
  5762. _77 = xReturn_35;
  5763. <bb 38> :
  5764. <L34>:
  5765. return _77;
  5766. }
  5767. ;; Function xTaskGenericNotifyFromISR (xTaskGenericNotifyFromISR, funcdef_no=68, decl_uid=6221, cgraph_uid=69, symbol_order=90)
  5768. xTaskGenericNotifyFromISR (struct tskTaskControlBlock * xTaskToNotify, UBaseType_t uxIndexToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t * pulPreviousNotificationValue, BaseType_t * pxHigherPriorityTaskWoken)
  5769. {
  5770. uint32_t ulNewMaskValue;
  5771. uint32_t ulNewBASEPRI;
  5772. uint32_t ulNewBASEPRI;
  5773. uint32_t D.8356;
  5774. uint32_t ulOriginalBASEPRI;
  5775. uint32_t ulNewBASEPRI;
  5776. uint32_t D.8355;
  5777. uint32_t ulNewBASEPRI;
  5778. uint32_t ulNewBASEPRI;
  5779. struct ListItem_t * const pxIndex;
  5780. struct ListItem_t * const pxIndex;
  5781. struct List_t * const pxList;
  5782. UBaseType_t uxSavedInterruptStatus;
  5783. BaseType_t xReturn;
  5784. uint8_t ucOriginalNotifyState;
  5785. struct TCB_t * pxTCB;
  5786. BaseType_t D.8185;
  5787. long unsigned int _1;
  5788. long unsigned int _2;
  5789. long unsigned int _3;
  5790. long unsigned int _4;
  5791. long unsigned int _5;
  5792. long unsigned int xTickCount.143_6;
  5793. struct xLIST * _7;
  5794. long unsigned int uxSchedulerSuspended.144_8;
  5795. struct xLIST_ITEM * _9;
  5796. struct xLIST_ITEM * _10;
  5797. struct xLIST_ITEM * _11;
  5798. struct xLIST_ITEM * _12;
  5799. struct ListItem_t * _13;
  5800. struct ListItem_t * _14;
  5801. struct xLIST_ITEM * _15;
  5802. long unsigned int _16;
  5803. long unsigned int _17;
  5804. long unsigned int _18;
  5805. long unsigned int uxTopReadyPriority.145_19;
  5806. long unsigned int _20;
  5807. long unsigned int _21;
  5808. struct xLIST_ITEM * _22;
  5809. struct xLIST_ITEM * _23;
  5810. struct ListItem_t * _24;
  5811. struct ListItem_t * _25;
  5812. long unsigned int _26;
  5813. struct List_t * _27;
  5814. long unsigned int _28;
  5815. long unsigned int _29;
  5816. long unsigned int _30;
  5817. struct xLIST_ITEM * _31;
  5818. struct xLIST_ITEM * _32;
  5819. struct ListItem_t * _33;
  5820. struct ListItem_t * _34;
  5821. long unsigned int _35;
  5822. long unsigned int _36;
  5823. long unsigned int _37;
  5824. struct TCB_t * pxCurrentTCB.146_38;
  5825. long unsigned int _39;
  5826. BaseType_t _92;
  5827. long unsigned int _97;
  5828. <bb 2> :
  5829. xReturn_50 = 1;
  5830. if (xTaskToNotify_51(D) == 0B)
  5831. goto <bb 3>; [INV]
  5832. else
  5833. goto <bb 6>; [INV]
  5834. <bb 3> :
  5835. __asm__ __volatile__(" mov %0, %1
  5836. msr basepri, %0
  5837. isb
  5838. dsb
  5839. " : "=r" ulNewBASEPRI_93 : "i" 16 : "memory");
  5840. <bb 4> :
  5841. <bb 5> :
  5842. goto <bb 5>; [INV]
  5843. <bb 6> :
  5844. if (uxIndexToNotify_52(D) != 0)
  5845. goto <bb 7>; [INV]
  5846. else
  5847. goto <bb 10>; [INV]
  5848. <bb 7> :
  5849. __asm__ __volatile__(" mov %0, %1
  5850. msr basepri, %0
  5851. isb
  5852. dsb
  5853. " : "=r" ulNewBASEPRI_94 : "i" 16 : "memory");
  5854. <bb 8> :
  5855. <bb 9> :
  5856. goto <bb 9>; [INV]
  5857. <bb 10> :
  5858. vPortValidateInterruptPriority ();
  5859. pxTCB_55 = xTaskToNotify_51(D);
  5860. __asm__ __volatile__(" mrs %0, basepri
  5861. mov %1, %2
  5862. msr basepri, %1
  5863. isb
  5864. dsb
  5865. " : "=r" ulOriginalBASEPRI_95, "=r" ulNewBASEPRI_96 : "i" 16 : "memory");
  5866. _97 = ulOriginalBASEPRI_95;
  5867. <bb 11> :
  5868. <L39>:
  5869. _102 = _97;
  5870. <bb 12> :
  5871. uxSavedInterruptStatus_56 = _102;
  5872. if (pulPreviousNotificationValue_57(D) != 0B)
  5873. goto <bb 13>; [INV]
  5874. else
  5875. goto <bb 14>; [INV]
  5876. <bb 13> :
  5877. _1 ={v} pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)];
  5878. *pulPreviousNotificationValue_57(D) = _1;
  5879. <bb 14> :
  5880. ucOriginalNotifyState_59 ={v} pxTCB_55->ucNotifyState[uxIndexToNotify_52(D)];
  5881. pxTCB_55->ucNotifyState[uxIndexToNotify_52(D)] ={v} 2;
  5882. switch (eAction_61(D)) <default: <L16> [INV], case 0: <L15> [INV], case 1: <L8> [INV], case 2: <L9> [INV], case 3: <L10> [INV], case 4: <L11> [INV]>
  5883. <bb 15> :
  5884. <L8>:
  5885. _2 ={v} pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)];
  5886. _3 = ulValue_63(D) | _2;
  5887. pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)] ={v} _3;
  5888. goto <bb 28>; [INV]
  5889. <bb 16> :
  5890. <L9>:
  5891. _4 ={v} pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)];
  5892. _5 = _4 + 1;
  5893. pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)] ={v} _5;
  5894. goto <bb 28>; [INV]
  5895. <bb 17> :
  5896. <L10>:
  5897. pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)] ={v} ulValue_63(D);
  5898. goto <bb 28>; [INV]
  5899. <bb 18> :
  5900. <L11>:
  5901. if (ucOriginalNotifyState_59 != 2)
  5902. goto <bb 19>; [INV]
  5903. else
  5904. goto <bb 20>; [INV]
  5905. <bb 19> :
  5906. pxTCB_55->ulNotifiedValue[uxIndexToNotify_52(D)] ={v} ulValue_63(D);
  5907. goto <bb 21>; [INV]
  5908. <bb 20> :
  5909. xReturn_62 = 0;
  5910. <bb 21> :
  5911. # xReturn_40 = PHI <xReturn_50(19), xReturn_62(20)>
  5912. goto <bb 28>; [INV]
  5913. <bb 22> :
  5914. <L15>:
  5915. goto <bb 28>; [INV]
  5916. <bb 23> :
  5917. <L16>:
  5918. xTickCount.143_6 ={v} xTickCount;
  5919. if (xTickCount.143_6 != 0)
  5920. goto <bb 24>; [INV]
  5921. else
  5922. goto <bb 27>; [INV]
  5923. <bb 24> :
  5924. __asm__ __volatile__(" mov %0, %1
  5925. msr basepri, %0
  5926. isb
  5927. dsb
  5928. " : "=r" ulNewBASEPRI_98 : "i" 16 : "memory");
  5929. <bb 25> :
  5930. <bb 26> :
  5931. goto <bb 26>; [INV]
  5932. <bb 27> :
  5933. <bb 28> :
  5934. # xReturn_41 = PHI <xReturn_50(15), xReturn_50(16), xReturn_50(17), xReturn_40(21), xReturn_50(22), xReturn_50(27)>
  5935. if (ucOriginalNotifyState_59 == 1)
  5936. goto <bb 29>; [INV]
  5937. else
  5938. goto <bb 44>; [INV]
  5939. <bb 29> :
  5940. _7 = pxTCB_55->xEventListItem.pvContainer;
  5941. if (_7 != 0B)
  5942. goto <bb 30>; [INV]
  5943. else
  5944. goto <bb 33>; [INV]
  5945. <bb 30> :
  5946. __asm__ __volatile__(" mov %0, %1
  5947. msr basepri, %0
  5948. isb
  5949. dsb
  5950. " : "=r" ulNewBASEPRI_99 : "i" 16 : "memory");
  5951. <bb 31> :
  5952. <bb 32> :
  5953. goto <bb 32>; [INV]
  5954. <bb 33> :
  5955. uxSchedulerSuspended.144_8 ={v} uxSchedulerSuspended;
  5956. if (uxSchedulerSuspended.144_8 == 0)
  5957. goto <bb 34>; [INV]
  5958. else
  5959. goto <bb 39>; [INV]
  5960. <bb 34> :
  5961. pxList_75 = pxTCB_55->xStateListItem.pvContainer;
  5962. _9 = pxTCB_55->xStateListItem.pxNext;
  5963. _10 = pxTCB_55->xStateListItem.pxPrevious;
  5964. _9->pxPrevious = _10;
  5965. _11 = pxTCB_55->xStateListItem.pxPrevious;
  5966. _12 = pxTCB_55->xStateListItem.pxNext;
  5967. _11->pxNext = _12;
  5968. _13 = pxList_75->pxIndex;
  5969. _14 = &pxTCB_55->xStateListItem;
  5970. if (_13 == _14)
  5971. goto <bb 35>; [INV]
  5972. else
  5973. goto <bb 36>; [INV]
  5974. <bb 35> :
  5975. _15 = pxTCB_55->xStateListItem.pxPrevious;
  5976. pxList_75->pxIndex = _15;
  5977. <bb 36> :
  5978. pxTCB_55->xStateListItem.pvContainer = 0B;
  5979. _16 ={v} pxList_75->uxNumberOfItems;
  5980. _17 = _16 + 4294967295;
  5981. pxList_75->uxNumberOfItems ={v} _17;
  5982. _18 = pxTCB_55->uxPriority;
  5983. uxTopReadyPriority.145_19 ={v} uxTopReadyPriority;
  5984. if (_18 > uxTopReadyPriority.145_19)
  5985. goto <bb 37>; [INV]
  5986. else
  5987. goto <bb 38>; [INV]
  5988. <bb 37> :
  5989. _20 = pxTCB_55->uxPriority;
  5990. uxTopReadyPriority ={v} _20;
  5991. <bb 38> :
  5992. _21 = pxTCB_55->uxPriority;
  5993. pxIndex_82 = pxReadyTasksLists[_21].pxIndex;
  5994. pxTCB_55->xStateListItem.pxNext = pxIndex_82;
  5995. _22 = pxIndex_82->pxPrevious;
  5996. pxTCB_55->xStateListItem.pxPrevious = _22;
  5997. _23 = pxIndex_82->pxPrevious;
  5998. _24 = &pxTCB_55->xStateListItem;
  5999. _23->pxNext = _24;
  6000. _25 = &pxTCB_55->xStateListItem;
  6001. pxIndex_82->pxPrevious = _25;
  6002. _26 = pxTCB_55->uxPriority;
  6003. _27 = &pxReadyTasksLists[_26];
  6004. pxTCB_55->xStateListItem.pvContainer = _27;
  6005. _28 = pxTCB_55->uxPriority;
  6006. _29 ={v} pxReadyTasksLists[_28].uxNumberOfItems;
  6007. _30 = _29 + 1;
  6008. pxReadyTasksLists[_28].uxNumberOfItems ={v} _30;
  6009. goto <bb 40>; [INV]
  6010. <bb 39> :
  6011. pxIndex_68 = xPendingReadyList.pxIndex;
  6012. pxTCB_55->xEventListItem.pxNext = pxIndex_68;
  6013. _31 = pxIndex_68->pxPrevious;
  6014. pxTCB_55->xEventListItem.pxPrevious = _31;
  6015. _32 = pxIndex_68->pxPrevious;
  6016. _33 = &pxTCB_55->xEventListItem;
  6017. _32->pxNext = _33;
  6018. _34 = &pxTCB_55->xEventListItem;
  6019. pxIndex_68->pxPrevious = _34;
  6020. pxTCB_55->xEventListItem.pvContainer = &xPendingReadyList;
  6021. _35 ={v} xPendingReadyList.uxNumberOfItems;
  6022. _36 = _35 + 1;
  6023. xPendingReadyList.uxNumberOfItems ={v} _36;
  6024. <bb 40> :
  6025. _37 = pxTCB_55->uxPriority;
  6026. pxCurrentTCB.146_38 ={v} pxCurrentTCB;
  6027. _39 = pxCurrentTCB.146_38->uxPriority;
  6028. if (_37 > _39)
  6029. goto <bb 41>; [INV]
  6030. else
  6031. goto <bb 44>; [INV]
  6032. <bb 41> :
  6033. if (pxHigherPriorityTaskWoken_89(D) != 0B)
  6034. goto <bb 42>; [INV]
  6035. else
  6036. goto <bb 43>; [INV]
  6037. <bb 42> :
  6038. *pxHigherPriorityTaskWoken_89(D) = 1;
  6039. <bb 43> :
  6040. xYieldPending ={v} 1;
  6041. <bb 44> :
  6042. ulNewMaskValue_100 = uxSavedInterruptStatus_56;
  6043. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_100 : "memory");
  6044. <bb 45> :
  6045. _92 = xReturn_41;
  6046. <bb 46> :
  6047. <L38>:
  6048. return _92;
  6049. }
  6050. ;; Function vTaskGenericNotifyGiveFromISR (vTaskGenericNotifyGiveFromISR, funcdef_no=69, decl_uid=6231, cgraph_uid=70, symbol_order=91)
  6051. vTaskGenericNotifyGiveFromISR (struct tskTaskControlBlock * xTaskToNotify, UBaseType_t uxIndexToNotify, BaseType_t * pxHigherPriorityTaskWoken)
  6052. {
  6053. uint32_t ulNewMaskValue;
  6054. uint32_t ulNewBASEPRI;
  6055. uint32_t D.8366;
  6056. uint32_t ulOriginalBASEPRI;
  6057. uint32_t ulNewBASEPRI;
  6058. uint32_t D.8365;
  6059. uint32_t ulNewBASEPRI;
  6060. uint32_t ulNewBASEPRI;
  6061. struct ListItem_t * const pxIndex;
  6062. struct ListItem_t * const pxIndex;
  6063. struct List_t * const pxList;
  6064. UBaseType_t uxSavedInterruptStatus;
  6065. uint8_t ucOriginalNotifyState;
  6066. struct TCB_t * pxTCB;
  6067. long unsigned int _1;
  6068. long unsigned int _2;
  6069. struct xLIST * _3;
  6070. long unsigned int uxSchedulerSuspended.147_4;
  6071. struct xLIST_ITEM * _5;
  6072. struct xLIST_ITEM * _6;
  6073. struct xLIST_ITEM * _7;
  6074. struct xLIST_ITEM * _8;
  6075. struct ListItem_t * _9;
  6076. struct ListItem_t * _10;
  6077. struct xLIST_ITEM * _11;
  6078. long unsigned int _12;
  6079. long unsigned int _13;
  6080. long unsigned int _14;
  6081. long unsigned int uxTopReadyPriority.148_15;
  6082. long unsigned int _16;
  6083. long unsigned int _17;
  6084. struct xLIST_ITEM * _18;
  6085. struct xLIST_ITEM * _19;
  6086. struct ListItem_t * _20;
  6087. struct ListItem_t * _21;
  6088. long unsigned int _22;
  6089. struct List_t * _23;
  6090. long unsigned int _24;
  6091. long unsigned int _25;
  6092. long unsigned int _26;
  6093. struct xLIST_ITEM * _27;
  6094. struct xLIST_ITEM * _28;
  6095. struct ListItem_t * _29;
  6096. struct ListItem_t * _30;
  6097. long unsigned int _31;
  6098. long unsigned int _32;
  6099. long unsigned int _33;
  6100. struct TCB_t * pxCurrentTCB.149_34;
  6101. long unsigned int _35;
  6102. long unsigned int _78;
  6103. <bb 2> :
  6104. if (xTaskToNotify_41(D) == 0B)
  6105. goto <bb 3>; [INV]
  6106. else
  6107. goto <bb 6>; [INV]
  6108. <bb 3> :
  6109. __asm__ __volatile__(" mov %0, %1
  6110. msr basepri, %0
  6111. isb
  6112. dsb
  6113. " : "=r" ulNewBASEPRI_74 : "i" 16 : "memory");
  6114. <bb 4> :
  6115. <bb 5> :
  6116. goto <bb 5>; [INV]
  6117. <bb 6> :
  6118. if (uxIndexToNotify_42(D) != 0)
  6119. goto <bb 7>; [INV]
  6120. else
  6121. goto <bb 10>; [INV]
  6122. <bb 7> :
  6123. __asm__ __volatile__(" mov %0, %1
  6124. msr basepri, %0
  6125. isb
  6126. dsb
  6127. " : "=r" ulNewBASEPRI_75 : "i" 16 : "memory");
  6128. <bb 8> :
  6129. <bb 9> :
  6130. goto <bb 9>; [INV]
  6131. <bb 10> :
  6132. vPortValidateInterruptPriority ();
  6133. pxTCB_45 = xTaskToNotify_41(D);
  6134. __asm__ __volatile__(" mrs %0, basepri
  6135. mov %1, %2
  6136. msr basepri, %1
  6137. isb
  6138. dsb
  6139. " : "=r" ulOriginalBASEPRI_76, "=r" ulNewBASEPRI_77 : "i" 16 : "memory");
  6140. _78 = ulOriginalBASEPRI_76;
  6141. <bb 11> :
  6142. <L23>:
  6143. _82 = _78;
  6144. <bb 12> :
  6145. uxSavedInterruptStatus_46 = _82;
  6146. ucOriginalNotifyState_47 ={v} pxTCB_45->ucNotifyState[uxIndexToNotify_42(D)];
  6147. pxTCB_45->ucNotifyState[uxIndexToNotify_42(D)] ={v} 2;
  6148. _1 ={v} pxTCB_45->ulNotifiedValue[uxIndexToNotify_42(D)];
  6149. _2 = _1 + 1;
  6150. pxTCB_45->ulNotifiedValue[uxIndexToNotify_42(D)] ={v} _2;
  6151. if (ucOriginalNotifyState_47 == 1)
  6152. goto <bb 13>; [INV]
  6153. else
  6154. goto <bb 28>; [INV]
  6155. <bb 13> :
  6156. _3 = pxTCB_45->xEventListItem.pvContainer;
  6157. if (_3 != 0B)
  6158. goto <bb 14>; [INV]
  6159. else
  6160. goto <bb 17>; [INV]
  6161. <bb 14> :
  6162. __asm__ __volatile__(" mov %0, %1
  6163. msr basepri, %0
  6164. isb
  6165. dsb
  6166. " : "=r" ulNewBASEPRI_79 : "i" 16 : "memory");
  6167. <bb 15> :
  6168. <bb 16> :
  6169. goto <bb 16>; [INV]
  6170. <bb 17> :
  6171. uxSchedulerSuspended.147_4 ={v} uxSchedulerSuspended;
  6172. if (uxSchedulerSuspended.147_4 == 0)
  6173. goto <bb 18>; [INV]
  6174. else
  6175. goto <bb 23>; [INV]
  6176. <bb 18> :
  6177. pxList_57 = pxTCB_45->xStateListItem.pvContainer;
  6178. _5 = pxTCB_45->xStateListItem.pxNext;
  6179. _6 = pxTCB_45->xStateListItem.pxPrevious;
  6180. _5->pxPrevious = _6;
  6181. _7 = pxTCB_45->xStateListItem.pxPrevious;
  6182. _8 = pxTCB_45->xStateListItem.pxNext;
  6183. _7->pxNext = _8;
  6184. _9 = pxList_57->pxIndex;
  6185. _10 = &pxTCB_45->xStateListItem;
  6186. if (_9 == _10)
  6187. goto <bb 19>; [INV]
  6188. else
  6189. goto <bb 20>; [INV]
  6190. <bb 19> :
  6191. _11 = pxTCB_45->xStateListItem.pxPrevious;
  6192. pxList_57->pxIndex = _11;
  6193. <bb 20> :
  6194. pxTCB_45->xStateListItem.pvContainer = 0B;
  6195. _12 ={v} pxList_57->uxNumberOfItems;
  6196. _13 = _12 + 4294967295;
  6197. pxList_57->uxNumberOfItems ={v} _13;
  6198. _14 = pxTCB_45->uxPriority;
  6199. uxTopReadyPriority.148_15 ={v} uxTopReadyPriority;
  6200. if (_14 > uxTopReadyPriority.148_15)
  6201. goto <bb 21>; [INV]
  6202. else
  6203. goto <bb 22>; [INV]
  6204. <bb 21> :
  6205. _16 = pxTCB_45->uxPriority;
  6206. uxTopReadyPriority ={v} _16;
  6207. <bb 22> :
  6208. _17 = pxTCB_45->uxPriority;
  6209. pxIndex_64 = pxReadyTasksLists[_17].pxIndex;
  6210. pxTCB_45->xStateListItem.pxNext = pxIndex_64;
  6211. _18 = pxIndex_64->pxPrevious;
  6212. pxTCB_45->xStateListItem.pxPrevious = _18;
  6213. _19 = pxIndex_64->pxPrevious;
  6214. _20 = &pxTCB_45->xStateListItem;
  6215. _19->pxNext = _20;
  6216. _21 = &pxTCB_45->xStateListItem;
  6217. pxIndex_64->pxPrevious = _21;
  6218. _22 = pxTCB_45->uxPriority;
  6219. _23 = &pxReadyTasksLists[_22];
  6220. pxTCB_45->xStateListItem.pvContainer = _23;
  6221. _24 = pxTCB_45->uxPriority;
  6222. _25 ={v} pxReadyTasksLists[_24].uxNumberOfItems;
  6223. _26 = _25 + 1;
  6224. pxReadyTasksLists[_24].uxNumberOfItems ={v} _26;
  6225. goto <bb 24>; [INV]
  6226. <bb 23> :
  6227. pxIndex_50 = xPendingReadyList.pxIndex;
  6228. pxTCB_45->xEventListItem.pxNext = pxIndex_50;
  6229. _27 = pxIndex_50->pxPrevious;
  6230. pxTCB_45->xEventListItem.pxPrevious = _27;
  6231. _28 = pxIndex_50->pxPrevious;
  6232. _29 = &pxTCB_45->xEventListItem;
  6233. _28->pxNext = _29;
  6234. _30 = &pxTCB_45->xEventListItem;
  6235. pxIndex_50->pxPrevious = _30;
  6236. pxTCB_45->xEventListItem.pvContainer = &xPendingReadyList;
  6237. _31 ={v} xPendingReadyList.uxNumberOfItems;
  6238. _32 = _31 + 1;
  6239. xPendingReadyList.uxNumberOfItems ={v} _32;
  6240. <bb 24> :
  6241. _33 = pxTCB_45->uxPriority;
  6242. pxCurrentTCB.149_34 ={v} pxCurrentTCB;
  6243. _35 = pxCurrentTCB.149_34->uxPriority;
  6244. if (_33 > _35)
  6245. goto <bb 25>; [INV]
  6246. else
  6247. goto <bb 28>; [INV]
  6248. <bb 25> :
  6249. if (pxHigherPriorityTaskWoken_71(D) != 0B)
  6250. goto <bb 26>; [INV]
  6251. else
  6252. goto <bb 27>; [INV]
  6253. <bb 26> :
  6254. *pxHigherPriorityTaskWoken_71(D) = 1;
  6255. <bb 27> :
  6256. xYieldPending ={v} 1;
  6257. <bb 28> :
  6258. ulNewMaskValue_80 = uxSavedInterruptStatus_46;
  6259. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue_80 : "memory");
  6260. <bb 29> :
  6261. return;
  6262. }
  6263. ;; Function xTaskGenericNotifyStateClear (xTaskGenericNotifyStateClear, funcdef_no=70, decl_uid=6238, cgraph_uid=71, symbol_order=92)
  6264. xTaskGenericNotifyStateClear (struct tskTaskControlBlock * xTask, UBaseType_t uxIndexToClear)
  6265. {
  6266. uint32_t ulNewBASEPRI;
  6267. BaseType_t xReturn;
  6268. struct TCB_t * pxTCB;
  6269. BaseType_t D.8216;
  6270. struct TCB_t * iftmp.150;
  6271. unsigned char _1;
  6272. struct TCB_t * iftmp.150_3;
  6273. struct TCB_t * iftmp.150_7;
  6274. struct TCB_t * iftmp.150_9;
  6275. BaseType_t _16;
  6276. <bb 2> :
  6277. if (uxIndexToClear_5(D) != 0)
  6278. goto <bb 3>; [INV]
  6279. else
  6280. goto <bb 6>; [INV]
  6281. <bb 3> :
  6282. __asm__ __volatile__(" mov %0, %1
  6283. msr basepri, %0
  6284. isb
  6285. dsb
  6286. " : "=r" ulNewBASEPRI_17 : "i" 16 : "memory");
  6287. <bb 4> :
  6288. <bb 5> :
  6289. goto <bb 5>; [INV]
  6290. <bb 6> :
  6291. if (xTask_6(D) == 0B)
  6292. goto <bb 7>; [INV]
  6293. else
  6294. goto <bb 8>; [INV]
  6295. <bb 7> :
  6296. iftmp.150_9 ={v} pxCurrentTCB;
  6297. goto <bb 9>; [INV]
  6298. <bb 8> :
  6299. iftmp.150_7 = xTask_6(D);
  6300. <bb 9> :
  6301. # iftmp.150_3 = PHI <iftmp.150_9(7), iftmp.150_7(8)>
  6302. pxTCB_10 = iftmp.150_3;
  6303. vPortEnterCritical ();
  6304. _1 ={v} pxTCB_10->ucNotifyState[uxIndexToClear_5(D)];
  6305. if (_1 == 2)
  6306. goto <bb 10>; [INV]
  6307. else
  6308. goto <bb 11>; [INV]
  6309. <bb 10> :
  6310. pxTCB_10->ucNotifyState[uxIndexToClear_5(D)] ={v} 0;
  6311. xReturn_14 = 1;
  6312. goto <bb 12>; [INV]
  6313. <bb 11> :
  6314. xReturn_12 = 0;
  6315. <bb 12> :
  6316. # xReturn_2 = PHI <xReturn_14(10), xReturn_12(11)>
  6317. vPortExitCritical ();
  6318. _16 = xReturn_2;
  6319. <bb 13> :
  6320. <L9>:
  6321. return _16;
  6322. }
  6323. ;; Function ulTaskGenericNotifyValueClear (ulTaskGenericNotifyValueClear, funcdef_no=71, decl_uid=6242, cgraph_uid=72, symbol_order=93)
  6324. ulTaskGenericNotifyValueClear (struct tskTaskControlBlock * xTask, UBaseType_t uxIndexToClear, uint32_t ulBitsToClear)
  6325. {
  6326. uint32_t ulReturn;
  6327. struct TCB_t * pxTCB;
  6328. uint32_t D.8222;
  6329. struct TCB_t * iftmp.151;
  6330. long unsigned int _1;
  6331. long unsigned int _2;
  6332. long unsigned int _3;
  6333. struct TCB_t * iftmp.151_4;
  6334. struct TCB_t * iftmp.151_6;
  6335. struct TCB_t * iftmp.151_8;
  6336. uint32_t _16;
  6337. <bb 2> :
  6338. if (xTask_5(D) == 0B)
  6339. goto <bb 3>; [INV]
  6340. else
  6341. goto <bb 4>; [INV]
  6342. <bb 3> :
  6343. iftmp.151_8 ={v} pxCurrentTCB;
  6344. goto <bb 5>; [INV]
  6345. <bb 4> :
  6346. iftmp.151_6 = xTask_5(D);
  6347. <bb 5> :
  6348. # iftmp.151_4 = PHI <iftmp.151_8(3), iftmp.151_6(4)>
  6349. pxTCB_9 = iftmp.151_4;
  6350. vPortEnterCritical ();
  6351. ulReturn_12 ={v} pxTCB_9->ulNotifiedValue[uxIndexToClear_11(D)];
  6352. _1 ={v} pxTCB_9->ulNotifiedValue[uxIndexToClear_11(D)];
  6353. _2 = ~ulBitsToClear_13(D);
  6354. _3 = _1 & _2;
  6355. pxTCB_9->ulNotifiedValue[uxIndexToClear_11(D)] ={v} _3;
  6356. vPortExitCritical ();
  6357. _16 = ulReturn_12;
  6358. <bb 6> :
  6359. <L3>:
  6360. return _16;
  6361. }
  6362. ;; Function prvAddCurrentTaskToDelayedList (prvAddCurrentTaskToDelayedList, funcdef_no=72, decl_uid=6950, cgraph_uid=73, symbol_order=94)
  6363. prvAddCurrentTaskToDelayedList (TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely)
  6364. {
  6365. struct ListItem_t * const pxIndex;
  6366. const TickType_t xConstTickCount;
  6367. TickType_t xTimeToWake;
  6368. struct TCB_t * pxCurrentTCB.152_1;
  6369. struct TCB_t * pxCurrentTCB.153_2;
  6370. struct ListItem_t * _3;
  6371. long unsigned int _4;
  6372. struct TCB_t * pxCurrentTCB.154_5;
  6373. struct TCB_t * pxCurrentTCB.155_6;
  6374. struct xLIST_ITEM * _7;
  6375. struct TCB_t * pxCurrentTCB.156_8;
  6376. struct xLIST_ITEM * _9;
  6377. struct ListItem_t * _10;
  6378. struct TCB_t * pxCurrentTCB.157_11;
  6379. struct ListItem_t * _12;
  6380. struct TCB_t * pxCurrentTCB.158_13;
  6381. long unsigned int _14;
  6382. long unsigned int _15;
  6383. struct TCB_t * pxCurrentTCB.159_16;
  6384. struct List_t * pxOverflowDelayedTaskList.160_17;
  6385. struct TCB_t * pxCurrentTCB.161_18;
  6386. struct ListItem_t * _19;
  6387. struct List_t * pxDelayedTaskList.162_20;
  6388. struct TCB_t * pxCurrentTCB.163_21;
  6389. struct ListItem_t * _22;
  6390. long unsigned int xNextTaskUnblockTime.164_23;
  6391. <bb 2> :
  6392. xConstTickCount_26 ={v} xTickCount;
  6393. pxCurrentTCB.152_1 ={v} pxCurrentTCB;
  6394. pxCurrentTCB.152_1->ucDelayAborted = 0;
  6395. pxCurrentTCB.153_2 ={v} pxCurrentTCB;
  6396. _3 = &pxCurrentTCB.153_2->xStateListItem;
  6397. _4 = uxListRemove (_3);
  6398. <bb 3> :
  6399. if (xTicksToWait_29(D) == 4294967295)
  6400. goto <bb 4>; [INV]
  6401. else
  6402. goto <bb 6>; [INV]
  6403. <bb 4> :
  6404. if (xCanBlockIndefinitely_30(D) != 0)
  6405. goto <bb 5>; [INV]
  6406. else
  6407. goto <bb 6>; [INV]
  6408. <bb 5> :
  6409. pxIndex_31 = xSuspendedTaskList.pxIndex;
  6410. pxCurrentTCB.154_5 ={v} pxCurrentTCB;
  6411. pxCurrentTCB.154_5->xStateListItem.pxNext = pxIndex_31;
  6412. pxCurrentTCB.155_6 ={v} pxCurrentTCB;
  6413. _7 = pxIndex_31->pxPrevious;
  6414. pxCurrentTCB.155_6->xStateListItem.pxPrevious = _7;
  6415. pxCurrentTCB.156_8 ={v} pxCurrentTCB;
  6416. _9 = pxIndex_31->pxPrevious;
  6417. _10 = &pxCurrentTCB.156_8->xStateListItem;
  6418. _9->pxNext = _10;
  6419. pxCurrentTCB.157_11 ={v} pxCurrentTCB;
  6420. _12 = &pxCurrentTCB.157_11->xStateListItem;
  6421. pxIndex_31->pxPrevious = _12;
  6422. pxCurrentTCB.158_13 ={v} pxCurrentTCB;
  6423. pxCurrentTCB.158_13->xStateListItem.pvContainer = &xSuspendedTaskList;
  6424. _14 ={v} xSuspendedTaskList.uxNumberOfItems;
  6425. _15 = _14 + 1;
  6426. xSuspendedTaskList.uxNumberOfItems ={v} _15;
  6427. goto <bb 10>; [INV]
  6428. <bb 6> :
  6429. xTimeToWake_38 = xConstTickCount_26 + xTicksToWait_29(D);
  6430. pxCurrentTCB.159_16 ={v} pxCurrentTCB;
  6431. pxCurrentTCB.159_16->xStateListItem.xItemValue = xTimeToWake_38;
  6432. if (xTimeToWake_38 < xConstTickCount_26)
  6433. goto <bb 7>; [INV]
  6434. else
  6435. goto <bb 8>; [INV]
  6436. <bb 7> :
  6437. pxOverflowDelayedTaskList.160_17 ={v} pxOverflowDelayedTaskList;
  6438. pxCurrentTCB.161_18 ={v} pxCurrentTCB;
  6439. _19 = &pxCurrentTCB.161_18->xStateListItem;
  6440. vListInsert (pxOverflowDelayedTaskList.160_17, _19);
  6441. goto <bb 10>; [INV]
  6442. <bb 8> :
  6443. pxDelayedTaskList.162_20 ={v} pxDelayedTaskList;
  6444. pxCurrentTCB.163_21 ={v} pxCurrentTCB;
  6445. _22 = &pxCurrentTCB.163_21->xStateListItem;
  6446. vListInsert (pxDelayedTaskList.162_20, _22);
  6447. xNextTaskUnblockTime.164_23 ={v} xNextTaskUnblockTime;
  6448. if (xTimeToWake_38 < xNextTaskUnblockTime.164_23)
  6449. goto <bb 9>; [INV]
  6450. else
  6451. goto <bb 10>; [INV]
  6452. <bb 9> :
  6453. xNextTaskUnblockTime ={v} xTimeToWake_38;
  6454. <bb 10> :
  6455. return;
  6456. }