tasks.c.076i.inline 207 KB

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