12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410 |
- prvAddCurrentTaskToDelayedList (TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely)
- {
- struct ListItem_t * const pxIndex;
- const TickType_t xConstTickCount;
- TickType_t xTimeToWake;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xConstTickCount = xTickCount;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.23_1 = pxCurrentTCB;
- pxCurrentTCB.23_1->ucDelayAborted = 0;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.24_2 = pxCurrentTCB;
- _3 = &pxCurrentTCB.24_2->xStateListItem;
- _4 = uxListRemove (_3);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTicksToWait == 4294967295)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- if (xCanBlockIndefinitely != 0)
- goto <bb 4>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- pxIndex = xSuspendedTaskList.pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.25_5 = pxCurrentTCB;
- pxCurrentTCB.25_5->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.26_6 = pxCurrentTCB;
- _7 = pxIndex->pxPrevious;
- pxCurrentTCB.26_6->xStateListItem.pxPrevious = _7;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.27_8 = pxCurrentTCB;
- _9 = pxIndex->pxPrevious;
- _10 = &pxCurrentTCB.27_8->xStateListItem;
- _9->pxNext = _10;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.28_11 = pxCurrentTCB;
- _12 = &pxCurrentTCB.28_11->xStateListItem;
- pxIndex->pxPrevious = _12;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.29_13 = pxCurrentTCB;
- pxCurrentTCB.29_13->xStateListItem.pvContainer = &xSuspendedTaskList;
- # DEBUG BEGIN_STMT
- _14 = xSuspendedTaskList.uxNumberOfItems;
- _15 = _14 + 1;
- xSuspendedTaskList.uxNumberOfItems = _15;
- # DEBUG BEGIN_STMT
- goto <bb 9>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- xTimeToWake = xConstTickCount + xTicksToWait;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.30_16 = pxCurrentTCB;
- pxCurrentTCB.30_16->xStateListItem.xItemValue = xTimeToWake;
- # DEBUG BEGIN_STMT
- if (xTimeToWake < xConstTickCount)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- pxOverflowDelayedTaskList.31_17 = pxOverflowDelayedTaskList;
- pxCurrentTCB.32_18 = pxCurrentTCB;
- _19 = &pxCurrentTCB.32_18->xStateListItem;
- vListInsert (pxOverflowDelayedTaskList.31_17, _19);
- goto <bb 9>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- pxDelayedTaskList.33_20 = pxDelayedTaskList;
- pxCurrentTCB.34_21 = pxCurrentTCB;
- _22 = &pxCurrentTCB.34_21->xStateListItem;
- vListInsert (pxDelayedTaskList.33_20, _22);
- # DEBUG BEGIN_STMT
- xNextTaskUnblockTime.35_23 = xNextTaskUnblockTime;
- if (xTimeToWake < xNextTaskUnblockTime.35_23)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- xNextTaskUnblockTime = xTimeToWake;
- <bb 9> :
- # DEBUG BEGIN_STMT
- return;
- }
- ulTaskGenericNotifyValueClear (struct tskTaskControlBlock * xTask, UBaseType_t uxIndexToClear, uint32_t ulBitsToClear)
- {
- uint32_t ulReturn;
- struct TCB_t * pxTCB;
- uint32_t D.8233;
- struct TCB_t * iftmp.164;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTask == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- iftmp.164 = pxCurrentTCB;
- goto <bb 5>; [INV]
- <bb 4> :
- iftmp.164 = xTask;
- <bb 5> :
- pxTCB = iftmp.164;
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- ulReturn = pxTCB->ulNotifiedValue[uxIndexToClear];
- # DEBUG BEGIN_STMT
- _1 = pxTCB->ulNotifiedValue[uxIndexToClear];
- _2 = ~ulBitsToClear;
- _3 = _1 & _2;
- pxTCB->ulNotifiedValue[uxIndexToClear] = _3;
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- D.8233 = ulReturn;
- return D.8233;
- }
- xTaskGenericNotifyStateClear (struct tskTaskControlBlock * xTask, UBaseType_t uxIndexToClear)
- {
- BaseType_t xReturn;
- struct TCB_t * pxTCB;
- BaseType_t D.8227;
- struct TCB_t * iftmp.163;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxIndexToClear != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTask == 0B)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- iftmp.163 = pxCurrentTCB;
- goto <bb 8>; [INV]
- <bb 7> :
- iftmp.163 = xTask;
- <bb 8> :
- pxTCB = iftmp.163;
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- _1 = pxTCB->ucNotifyState[uxIndexToClear];
- if (_1 == 2)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- pxTCB->ucNotifyState[uxIndexToClear] = 0;
- # DEBUG BEGIN_STMT
- xReturn = 1;
- goto <bb 11>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- <bb 11> :
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- D.8227 = xReturn;
- return D.8227;
- }
- vTaskGenericNotifyGiveFromISR (struct tskTaskControlBlock * xTaskToNotify, UBaseType_t uxIndexToNotify, BaseType_t * pxHigherPriorityTaskWoken)
- {
- struct ListItem_t * const pxIndex;
- struct ListItem_t * const pxIndex;
- struct List_t * const pxList;
- UBaseType_t uxSavedInterruptStatus;
- uint8_t ucOriginalNotifyState;
- struct TCB_t * pxTCB;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTaskToNotify == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxIndexToNotify != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortValidateInterruptPriority ();
- # DEBUG BEGIN_STMT
- pxTCB = xTaskToNotify;
- # DEBUG BEGIN_STMT
- uxSavedInterruptStatus = ulPortRaiseBASEPRI ();
- # DEBUG BEGIN_STMT
- ucOriginalNotifyState = pxTCB->ucNotifyState[uxIndexToNotify];
- # DEBUG BEGIN_STMT
- pxTCB->ucNotifyState[uxIndexToNotify] = 2;
- # DEBUG BEGIN_STMT
- _1 = pxTCB->ulNotifiedValue[uxIndexToNotify];
- _2 = _1 + 1;
- pxTCB->ulNotifiedValue[uxIndexToNotify] = _2;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (ucOriginalNotifyState == 1)
- goto <bb 9>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- _3 = pxTCB->xEventListItem.pvContainer;
- if (_3 != 0B)
- goto <bb 10>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 11> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 11>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.160_4 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.160_4 == 0)
- goto <bb 13>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- pxList = pxTCB->xStateListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _5 = pxTCB->xStateListItem.pxNext;
- _6 = pxTCB->xStateListItem.pxPrevious;
- _5->pxPrevious = _6;
- # DEBUG BEGIN_STMT
- _7 = pxTCB->xStateListItem.pxPrevious;
- _8 = pxTCB->xStateListItem.pxNext;
- _7->pxNext = _8;
- # DEBUG BEGIN_STMT
- _9 = pxList->pxIndex;
- _10 = &pxTCB->xStateListItem;
- if (_9 == _10)
- goto <bb 14>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- _11 = pxTCB->xStateListItem.pxPrevious;
- pxList->pxIndex = _11;
- <bb 15> :
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _12 = pxList->uxNumberOfItems;
- _13 = _12 + 4294967295;
- pxList->uxNumberOfItems = _13;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _14 = pxTCB->uxPriority;
- uxTopReadyPriority.161_15 = uxTopReadyPriority;
- if (_14 > uxTopReadyPriority.161_15)
- goto <bb 16>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- _16 = pxTCB->uxPriority;
- uxTopReadyPriority = _16;
- <bb 17> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _17 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_17].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _18 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _18;
- # DEBUG BEGIN_STMT
- _19 = pxIndex->pxPrevious;
- _20 = &pxTCB->xStateListItem;
- _19->pxNext = _20;
- # DEBUG BEGIN_STMT
- _21 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _21;
- # DEBUG BEGIN_STMT
- _22 = pxTCB->uxPriority;
- _23 = &pxReadyTasksLists[_22];
- pxTCB->xStateListItem.pvContainer = _23;
- # DEBUG BEGIN_STMT
- _24 = pxTCB->uxPriority;
- _25 = pxReadyTasksLists[_24].uxNumberOfItems;
- _26 = _25 + 1;
- pxReadyTasksLists[_24].uxNumberOfItems = _26;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 19>; [INV]
- <bb 18> :
- # DEBUG BEGIN_STMT
- pxIndex = xPendingReadyList.pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xEventListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _27 = pxIndex->pxPrevious;
- pxTCB->xEventListItem.pxPrevious = _27;
- # DEBUG BEGIN_STMT
- _28 = pxIndex->pxPrevious;
- _29 = &pxTCB->xEventListItem;
- _28->pxNext = _29;
- # DEBUG BEGIN_STMT
- _30 = &pxTCB->xEventListItem;
- pxIndex->pxPrevious = _30;
- # DEBUG BEGIN_STMT
- pxTCB->xEventListItem.pvContainer = &xPendingReadyList;
- # DEBUG BEGIN_STMT
- _31 = xPendingReadyList.uxNumberOfItems;
- _32 = _31 + 1;
- xPendingReadyList.uxNumberOfItems = _32;
- <bb 19> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _33 = pxTCB->uxPriority;
- pxCurrentTCB.162_34 = pxCurrentTCB;
- _35 = pxCurrentTCB.162_34->uxPriority;
- if (_33 > _35)
- goto <bb 20>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 20> :
- # DEBUG BEGIN_STMT
- if (pxHigherPriorityTaskWoken != 0B)
- goto <bb 21>; [INV]
- else
- goto <bb 22>; [INV]
- <bb 21> :
- # DEBUG BEGIN_STMT
- *pxHigherPriorityTaskWoken = 1;
- <bb 22> :
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- <bb 23> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortSetBASEPRI (uxSavedInterruptStatus);
- return;
- }
- xTaskGenericNotifyFromISR (struct tskTaskControlBlock * xTaskToNotify, UBaseType_t uxIndexToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t * pulPreviousNotificationValue, BaseType_t * pxHigherPriorityTaskWoken)
- {
- struct ListItem_t * const pxIndex;
- struct ListItem_t * const pxIndex;
- struct List_t * const pxList;
- UBaseType_t uxSavedInterruptStatus;
- BaseType_t xReturn;
- uint8_t ucOriginalNotifyState;
- struct TCB_t * pxTCB;
- BaseType_t D.8195;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xReturn = 1;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTaskToNotify == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxIndexToNotify != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortValidateInterruptPriority ();
- # DEBUG BEGIN_STMT
- pxTCB = xTaskToNotify;
- # DEBUG BEGIN_STMT
- uxSavedInterruptStatus = ulPortRaiseBASEPRI ();
- # DEBUG BEGIN_STMT
- if (pulPreviousNotificationValue != 0B)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- _1 = pxTCB->ulNotifiedValue[uxIndexToNotify];
- *pulPreviousNotificationValue = _1;
- <bb 10> :
- # DEBUG BEGIN_STMT
- ucOriginalNotifyState = pxTCB->ucNotifyState[uxIndexToNotify];
- # DEBUG BEGIN_STMT
- pxTCB->ucNotifyState[uxIndexToNotify] = 2;
- # DEBUG BEGIN_STMT
- switch (eAction) <default: <L16> [INV], case 0: <L39> [INV], case 1: <L8> [INV], case 2: <L9> [INV], case 3: <L10> [INV], case 4: <L11> [INV]>
- <bb 11> :
- <L8>:
- # DEBUG BEGIN_STMT
- _2 = pxTCB->ulNotifiedValue[uxIndexToNotify];
- _3 = ulValue | _2;
- pxTCB->ulNotifiedValue[uxIndexToNotify] = _3;
- # DEBUG BEGIN_STMT
- goto <bb 20>; [INV]
- <bb 12> :
- <L9>:
- # DEBUG BEGIN_STMT
- _4 = pxTCB->ulNotifiedValue[uxIndexToNotify];
- _5 = _4 + 1;
- pxTCB->ulNotifiedValue[uxIndexToNotify] = _5;
- # DEBUG BEGIN_STMT
- goto <bb 20>; [INV]
- <bb 13> :
- <L10>:
- # DEBUG BEGIN_STMT
- pxTCB->ulNotifiedValue[uxIndexToNotify] = ulValue;
- # DEBUG BEGIN_STMT
- goto <bb 20>; [INV]
- <bb 14> :
- <L11>:
- # DEBUG BEGIN_STMT
- if (ucOriginalNotifyState != 2)
- goto <bb 15>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- pxTCB->ulNotifiedValue[uxIndexToNotify] = ulValue;
- goto <bb 20>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- goto <bb 20>; [INV]
- <bb 17> :
- <L16>:
- # DEBUG BEGIN_STMT
- xTickCount.156_6 = xTickCount;
- if (xTickCount.156_6 != 0)
- goto <bb 18>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 18> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 19> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 19>; [INV]
- <bb 20> :
- <L39>:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (ucOriginalNotifyState == 1)
- goto <bb 21>; [INV]
- else
- goto <bb 35>; [INV]
- <bb 21> :
- # DEBUG BEGIN_STMT
- _7 = pxTCB->xEventListItem.pvContainer;
- if (_7 != 0B)
- goto <bb 22>; [INV]
- else
- goto <bb 24>; [INV]
- <bb 22> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 23> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 23>; [INV]
- <bb 24> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.157_8 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.157_8 == 0)
- goto <bb 25>; [INV]
- else
- goto <bb 30>; [INV]
- <bb 25> :
- # DEBUG BEGIN_STMT
- pxList = pxTCB->xStateListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _9 = pxTCB->xStateListItem.pxNext;
- _10 = pxTCB->xStateListItem.pxPrevious;
- _9->pxPrevious = _10;
- # DEBUG BEGIN_STMT
- _11 = pxTCB->xStateListItem.pxPrevious;
- _12 = pxTCB->xStateListItem.pxNext;
- _11->pxNext = _12;
- # DEBUG BEGIN_STMT
- _13 = pxList->pxIndex;
- _14 = &pxTCB->xStateListItem;
- if (_13 == _14)
- goto <bb 26>; [INV]
- else
- goto <bb 27>; [INV]
- <bb 26> :
- # DEBUG BEGIN_STMT
- _15 = pxTCB->xStateListItem.pxPrevious;
- pxList->pxIndex = _15;
- <bb 27> :
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _16 = pxList->uxNumberOfItems;
- _17 = _16 + 4294967295;
- pxList->uxNumberOfItems = _17;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _18 = pxTCB->uxPriority;
- uxTopReadyPriority.158_19 = uxTopReadyPriority;
- if (_18 > uxTopReadyPriority.158_19)
- goto <bb 28>; [INV]
- else
- goto <bb 29>; [INV]
- <bb 28> :
- # DEBUG BEGIN_STMT
- _20 = pxTCB->uxPriority;
- uxTopReadyPriority = _20;
- <bb 29> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _21 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_21].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _22 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _22;
- # DEBUG BEGIN_STMT
- _23 = pxIndex->pxPrevious;
- _24 = &pxTCB->xStateListItem;
- _23->pxNext = _24;
- # DEBUG BEGIN_STMT
- _25 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _25;
- # DEBUG BEGIN_STMT
- _26 = pxTCB->uxPriority;
- _27 = &pxReadyTasksLists[_26];
- pxTCB->xStateListItem.pvContainer = _27;
- # DEBUG BEGIN_STMT
- _28 = pxTCB->uxPriority;
- _29 = pxReadyTasksLists[_28].uxNumberOfItems;
- _30 = _29 + 1;
- pxReadyTasksLists[_28].uxNumberOfItems = _30;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 31>; [INV]
- <bb 30> :
- # DEBUG BEGIN_STMT
- pxIndex = xPendingReadyList.pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xEventListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _31 = pxIndex->pxPrevious;
- pxTCB->xEventListItem.pxPrevious = _31;
- # DEBUG BEGIN_STMT
- _32 = pxIndex->pxPrevious;
- _33 = &pxTCB->xEventListItem;
- _32->pxNext = _33;
- # DEBUG BEGIN_STMT
- _34 = &pxTCB->xEventListItem;
- pxIndex->pxPrevious = _34;
- # DEBUG BEGIN_STMT
- pxTCB->xEventListItem.pvContainer = &xPendingReadyList;
- # DEBUG BEGIN_STMT
- _35 = xPendingReadyList.uxNumberOfItems;
- _36 = _35 + 1;
- xPendingReadyList.uxNumberOfItems = _36;
- <bb 31> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _37 = pxTCB->uxPriority;
- pxCurrentTCB.159_38 = pxCurrentTCB;
- _39 = pxCurrentTCB.159_38->uxPriority;
- if (_37 > _39)
- goto <bb 32>; [INV]
- else
- goto <bb 35>; [INV]
- <bb 32> :
- # DEBUG BEGIN_STMT
- if (pxHigherPriorityTaskWoken != 0B)
- goto <bb 33>; [INV]
- else
- goto <bb 34>; [INV]
- <bb 33> :
- # DEBUG BEGIN_STMT
- *pxHigherPriorityTaskWoken = 1;
- <bb 34> :
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- <bb 35> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortSetBASEPRI (uxSavedInterruptStatus);
- # DEBUG BEGIN_STMT
- D.8195 = xReturn;
- return D.8195;
- }
- xTaskGenericNotify (struct tskTaskControlBlock * xTaskToNotify, UBaseType_t uxIndexToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t * pulPreviousNotificationValue)
- {
- struct ListItem_t * const pxIndex;
- struct List_t * const pxList;
- uint8_t ucOriginalNotifyState;
- BaseType_t xReturn;
- struct TCB_t * pxTCB;
- BaseType_t D.8165;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xReturn = 1;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxIndexToNotify != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTaskToNotify == 0B)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB = xTaskToNotify;
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- if (pulPreviousNotificationValue != 0B)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- _1 = pxTCB->ulNotifiedValue[uxIndexToNotify];
- *pulPreviousNotificationValue = _1;
- <bb 10> :
- # DEBUG BEGIN_STMT
- ucOriginalNotifyState = pxTCB->ucNotifyState[uxIndexToNotify];
- # DEBUG BEGIN_STMT
- pxTCB->ucNotifyState[uxIndexToNotify] = 2;
- # DEBUG BEGIN_STMT
- switch (eAction) <default: <L16> [INV], case 0: <L35> [INV], case 1: <L8> [INV], case 2: <L9> [INV], case 3: <L10> [INV], case 4: <L11> [INV]>
- <bb 11> :
- <L8>:
- # DEBUG BEGIN_STMT
- _2 = pxTCB->ulNotifiedValue[uxIndexToNotify];
- _3 = ulValue | _2;
- pxTCB->ulNotifiedValue[uxIndexToNotify] = _3;
- # DEBUG BEGIN_STMT
- goto <bb 20>; [INV]
- <bb 12> :
- <L9>:
- # DEBUG BEGIN_STMT
- _4 = pxTCB->ulNotifiedValue[uxIndexToNotify];
- _5 = _4 + 1;
- pxTCB->ulNotifiedValue[uxIndexToNotify] = _5;
- # DEBUG BEGIN_STMT
- goto <bb 20>; [INV]
- <bb 13> :
- <L10>:
- # DEBUG BEGIN_STMT
- pxTCB->ulNotifiedValue[uxIndexToNotify] = ulValue;
- # DEBUG BEGIN_STMT
- goto <bb 20>; [INV]
- <bb 14> :
- <L11>:
- # DEBUG BEGIN_STMT
- if (ucOriginalNotifyState != 2)
- goto <bb 15>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- pxTCB->ulNotifiedValue[uxIndexToNotify] = ulValue;
- goto <bb 20>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- goto <bb 20>; [INV]
- <bb 17> :
- <L16>:
- # DEBUG BEGIN_STMT
- xTickCount.153_6 = xTickCount;
- if (xTickCount.153_6 != 0)
- goto <bb 18>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 18> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 19> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 19>; [INV]
- <bb 20> :
- <L35>:
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (ucOriginalNotifyState == 1)
- goto <bb 21>; [INV]
- else
- goto <bb 30>; [INV]
- <bb 21> :
- # DEBUG BEGIN_STMT
- pxList = pxTCB->xStateListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _7 = pxTCB->xStateListItem.pxNext;
- _8 = pxTCB->xStateListItem.pxPrevious;
- _7->pxPrevious = _8;
- # DEBUG BEGIN_STMT
- _9 = pxTCB->xStateListItem.pxPrevious;
- _10 = pxTCB->xStateListItem.pxNext;
- _9->pxNext = _10;
- # DEBUG BEGIN_STMT
- _11 = pxList->pxIndex;
- _12 = &pxTCB->xStateListItem;
- if (_11 == _12)
- goto <bb 22>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 22> :
- # DEBUG BEGIN_STMT
- _13 = pxTCB->xStateListItem.pxPrevious;
- pxList->pxIndex = _13;
- <bb 23> :
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _14 = pxList->uxNumberOfItems;
- _15 = _14 + 4294967295;
- pxList->uxNumberOfItems = _15;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _16 = pxTCB->uxPriority;
- uxTopReadyPriority.154_17 = uxTopReadyPriority;
- if (_16 > uxTopReadyPriority.154_17)
- goto <bb 24>; [INV]
- else
- goto <bb 25>; [INV]
- <bb 24> :
- # DEBUG BEGIN_STMT
- _18 = pxTCB->uxPriority;
- uxTopReadyPriority = _18;
- <bb 25> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _19 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_19].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _20 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _20;
- # DEBUG BEGIN_STMT
- _21 = pxIndex->pxPrevious;
- _22 = &pxTCB->xStateListItem;
- _21->pxNext = _22;
- # DEBUG BEGIN_STMT
- _23 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _23;
- # DEBUG BEGIN_STMT
- _24 = pxTCB->uxPriority;
- _25 = &pxReadyTasksLists[_24];
- pxTCB->xStateListItem.pvContainer = _25;
- # DEBUG BEGIN_STMT
- _26 = pxTCB->uxPriority;
- _27 = pxReadyTasksLists[_26].uxNumberOfItems;
- _28 = _27 + 1;
- pxReadyTasksLists[_26].uxNumberOfItems = _28;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _29 = pxTCB->xEventListItem.pvContainer;
- if (_29 != 0B)
- goto <bb 26>; [INV]
- else
- goto <bb 28>; [INV]
- <bb 26> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 27> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 27>; [INV]
- <bb 28> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _30 = pxTCB->uxPriority;
- pxCurrentTCB.155_31 = pxCurrentTCB;
- _32 = pxCurrentTCB.155_31->uxPriority;
- if (_30 > _32)
- goto <bb 29>; [INV]
- else
- goto <bb 30>; [INV]
- <bb 29> :
- # DEBUG BEGIN_STMT
- _33 = 3758157060B;
- *_33 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 30> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- D.8165 = xReturn;
- return D.8165;
- }
- xTaskGenericNotifyWait (UBaseType_t uxIndexToWait, uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t * pulNotificationValue, TickType_t xTicksToWait)
- {
- BaseType_t xReturn;
- BaseType_t D.8140;
- struct TCB_t * pxCurrentTCB.151;
- struct TCB_t * pxCurrentTCB.147;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxIndexToWait != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- pxCurrentTCB.146_1 = pxCurrentTCB;
- _2 = pxCurrentTCB.146_1->ucNotifyState[uxIndexToWait];
- if (_2 != 2)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.147 = pxCurrentTCB;
- _3 = pxCurrentTCB.147->ulNotifiedValue[uxIndexToWait];
- _4 = ~ulBitsToClearOnEntry;
- _5 = _3 & _4;
- pxCurrentTCB.147->ulNotifiedValue[uxIndexToWait] = _5;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.148_6 = pxCurrentTCB;
- pxCurrentTCB.148_6->ucNotifyState[uxIndexToWait] = 1;
- # DEBUG BEGIN_STMT
- if (xTicksToWait != 0)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- prvAddCurrentTaskToDelayedList (xTicksToWait, 1);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _7 = 3758157060B;
- *_7 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (pulNotificationValue != 0B)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.149_8 = pxCurrentTCB;
- _9 = pxCurrentTCB.149_8->ulNotifiedValue[uxIndexToWait];
- *pulNotificationValue = _9;
- <bb 10> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.150_10 = pxCurrentTCB;
- _11 = pxCurrentTCB.150_10->ucNotifyState[uxIndexToWait];
- if (_11 != 2)
- goto <bb 11>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- goto <bb 13>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.151 = pxCurrentTCB;
- _12 = pxCurrentTCB.151->ulNotifiedValue[uxIndexToWait];
- _13 = ~ulBitsToClearOnExit;
- _14 = _12 & _13;
- pxCurrentTCB.151->ulNotifiedValue[uxIndexToWait] = _14;
- # DEBUG BEGIN_STMT
- xReturn = 1;
- <bb 13> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.152_15 = pxCurrentTCB;
- pxCurrentTCB.152_15->ucNotifyState[uxIndexToWait] = 0;
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- D.8140 = xReturn;
- return D.8140;
- }
- ulTaskGenericNotifyTake (UBaseType_t uxIndexToWait, BaseType_t xClearCountOnExit, TickType_t xTicksToWait)
- {
- uint32_t ulReturn;
- uint32_t D.8123;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxIndexToWait != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- pxCurrentTCB.140_1 = pxCurrentTCB;
- _2 = pxCurrentTCB.140_1->ulNotifiedValue[uxIndexToWait];
- if (_2 == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.141_3 = pxCurrentTCB;
- pxCurrentTCB.141_3->ucNotifyState[uxIndexToWait] = 1;
- # DEBUG BEGIN_STMT
- if (xTicksToWait != 0)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- prvAddCurrentTaskToDelayedList (xTicksToWait, 1);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _4 = 3758157060B;
- *_4 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.142_5 = pxCurrentTCB;
- ulReturn = pxCurrentTCB.142_5->ulNotifiedValue[uxIndexToWait];
- # DEBUG BEGIN_STMT
- if (ulReturn != 0)
- goto <bb 9>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- if (xClearCountOnExit != 0)
- goto <bb 10>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.143_6 = pxCurrentTCB;
- pxCurrentTCB.143_6->ulNotifiedValue[uxIndexToWait] = 0;
- goto <bb 12>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.144_7 = pxCurrentTCB;
- _8 = ulReturn + 4294967295;
- pxCurrentTCB.144_7->ulNotifiedValue[uxIndexToWait] = _8;
- <bb 12> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.145_9 = pxCurrentTCB;
- pxCurrentTCB.145_9->ucNotifyState[uxIndexToWait] = 0;
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- D.8123 = ulReturn;
- return D.8123;
- }
- pvTaskIncrementMutexHeldCount ()
- {
- struct tskTaskControlBlock * D.8107;
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.138_1 = pxCurrentTCB;
- if (pxCurrentTCB.138_1 != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.139_2 = pxCurrentTCB;
- _3 = pxCurrentTCB.139_2->uxMutexesHeld;
- _4 = _3 + 1;
- pxCurrentTCB.139_2->uxMutexesHeld = _4;
- <bb 4> :
- # DEBUG BEGIN_STMT
- D.8107 = pxCurrentTCB;
- return D.8107;
- }
- uxTaskResetEventItemValue ()
- {
- TickType_t uxReturn;
- TickType_t D.8103;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.135_1 = pxCurrentTCB;
- uxReturn = pxCurrentTCB.135_1->xEventListItem.xItemValue;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.136_2 = pxCurrentTCB;
- _3 = pxCurrentTCB.136_2->uxPriority;
- pxCurrentTCB.137_4 = pxCurrentTCB;
- _5 = 5 - _3;
- pxCurrentTCB.137_4->xEventListItem.xItemValue = _5;
- # DEBUG BEGIN_STMT
- D.8103 = uxReturn;
- return D.8103;
- }
- vTaskList (char * pcWriteBuffer)
- {
- char cStatus;
- UBaseType_t x;
- UBaseType_t uxArraySize;
- struct TaskStatus_t * pxTaskStatusArray;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- *pcWriteBuffer = 0;
- # DEBUG BEGIN_STMT
- uxArraySize = uxCurrentNumberOfTasks;
- # DEBUG BEGIN_STMT
- uxCurrentNumberOfTasks.134_1 = uxCurrentNumberOfTasks;
- _2 = uxCurrentNumberOfTasks.134_1 * 36;
- pxTaskStatusArray = pvPortMalloc (_2);
- # DEBUG BEGIN_STMT
- if (pxTaskStatusArray != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- uxArraySize = uxTaskGetSystemState (pxTaskStatusArray, uxArraySize, 0B);
- # DEBUG BEGIN_STMT
- x = 0;
- goto <bb 12>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- _3 = x * 36;
- _4 = pxTaskStatusArray + _3;
- _5 = _4->eCurrentState;
- 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]>
- <bb 5> :
- <L2>:
- # DEBUG BEGIN_STMT
- cStatus = 88;
- # DEBUG BEGIN_STMT
- goto <bb 11>; [INV]
- <bb 6> :
- <L3>:
- # DEBUG BEGIN_STMT
- cStatus = 82;
- # DEBUG BEGIN_STMT
- goto <bb 11>; [INV]
- <bb 7> :
- <L4>:
- # DEBUG BEGIN_STMT
- cStatus = 66;
- # DEBUG BEGIN_STMT
- goto <bb 11>; [INV]
- <bb 8> :
- <L5>:
- # DEBUG BEGIN_STMT
- cStatus = 83;
- # DEBUG BEGIN_STMT
- goto <bb 11>; [INV]
- <bb 9> :
- <L6>:
- # DEBUG BEGIN_STMT
- cStatus = 68;
- # DEBUG BEGIN_STMT
- goto <bb 11>; [INV]
- <bb 10> :
- <L7>:
- # DEBUG BEGIN_STMT
- cStatus = 0;
- # DEBUG BEGIN_STMT
- <bb 11> :
- # DEBUG BEGIN_STMT
- _6 = x * 36;
- _7 = pxTaskStatusArray + _6;
- _8 = _7->pcTaskName;
- pcWriteBuffer = prvWriteNameToBuffer (pcWriteBuffer, _8);
- # DEBUG BEGIN_STMT
- _9 = (int) cStatus;
- _10 = x * 36;
- _11 = pxTaskStatusArray + _10;
- _12 = _11->uxCurrentPriority;
- _13 = x * 36;
- _14 = pxTaskStatusArray + _13;
- _15 = _14->usStackHighWaterMark;
- _16 = (unsigned int) _15;
- _17 = x * 36;
- _18 = pxTaskStatusArray + _17;
- _19 = _18->xTaskNumber;
- sprintf (pcWriteBuffer, "\t%c\t%u\t%u\t%u\r\n", _9, _12, _16, _19);
- # DEBUG BEGIN_STMT
- _20 = strlen (pcWriteBuffer);
- pcWriteBuffer = pcWriteBuffer + _20;
- # DEBUG BEGIN_STMT
- x = x + 1;
- <bb 12> :
- # DEBUG BEGIN_STMT
- if (x < uxArraySize)
- goto <bb 4>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- vPortFree (pxTaskStatusArray);
- <bb 14> :
- # DEBUG BEGIN_STMT
- return;
- }
- prvWriteNameToBuffer (char * pcBuffer, const char * pcTaskName)
- {
- size_t x;
- char * D.8101;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- strcpy (pcBuffer, pcTaskName);
- # DEBUG BEGIN_STMT
- x = strlen (pcBuffer);
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- _1 = pcBuffer + x;
- *_1 = 32;
- # DEBUG BEGIN_STMT
- x = x + 1;
- <bb 4> :
- # DEBUG BEGIN_STMT
- if (x <= 8)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- _2 = pcBuffer + x;
- *_2 = 0;
- # DEBUG BEGIN_STMT
- D.8101 = pcBuffer + x;
- return D.8101;
- }
- vTaskPriorityDisinheritAfterTimeout (struct tskTaskControlBlock * const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask)
- {
- struct ListItem_t * const pxIndex;
- const UBaseType_t uxOnlyOneMutexHeld;
- UBaseType_t uxPriorityToUse;
- UBaseType_t uxPriorityUsedOnEntry;
- struct TCB_t * const pxTCB;
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxTCB = pxMutexHolder;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxOnlyOneMutexHeld = 1;
- # DEBUG BEGIN_STMT
- if (pxMutexHolder != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- _1 = pxTCB->uxMutexesHeld;
- if (_1 == 0)
- goto <bb 4>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 5>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _2 = pxTCB->uxBasePriority;
- if (uxHighestPriorityWaitingTask > _2)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- uxPriorityToUse = uxHighestPriorityWaitingTask;
- goto <bb 9>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- uxPriorityToUse = pxTCB->uxBasePriority;
- <bb 9> :
- # DEBUG BEGIN_STMT
- _3 = pxTCB->uxPriority;
- if (uxPriorityToUse != _3)
- goto <bb 10>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- _4 = pxTCB->uxMutexesHeld;
- if (_4 == 1)
- goto <bb 11>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.132_5 = pxCurrentTCB;
- if (pxTCB == pxCurrentTCB.132_5)
- goto <bb 12>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 13> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 13>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxPriorityUsedOnEntry = pxTCB->uxPriority;
- # DEBUG BEGIN_STMT
- pxTCB->uxPriority = uxPriorityToUse;
- # DEBUG BEGIN_STMT
- _6 = pxTCB->xEventListItem.xItemValue;
- _7 = (signed int) _6;
- if (_7 >= 0)
- goto <bb 15>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- _8 = 5 - uxPriorityToUse;
- pxTCB->xEventListItem.xItemValue = _8;
- <bb 16> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _9 = pxTCB->xStateListItem.pvContainer;
- _10 = &pxReadyTasksLists[uxPriorityUsedOnEntry];
- if (_9 == _10)
- goto <bb 17>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 17> :
- # DEBUG BEGIN_STMT
- _11 = &pxTCB->xStateListItem;
- _12 = uxListRemove (_11);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _13 = pxTCB->uxPriority;
- uxTopReadyPriority.133_14 = uxTopReadyPriority;
- if (_13 > uxTopReadyPriority.133_14)
- goto <bb 18>; [INV]
- else
- goto <bb 19>; [INV]
- <bb 18> :
- # DEBUG BEGIN_STMT
- _15 = pxTCB->uxPriority;
- uxTopReadyPriority = _15;
- <bb 19> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _16 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_16].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _17 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _17;
- # DEBUG BEGIN_STMT
- _18 = pxIndex->pxPrevious;
- _19 = &pxTCB->xStateListItem;
- _18->pxNext = _19;
- # DEBUG BEGIN_STMT
- _20 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _20;
- # DEBUG BEGIN_STMT
- _21 = pxTCB->uxPriority;
- _22 = &pxReadyTasksLists[_21];
- pxTCB->xStateListItem.pvContainer = _22;
- # DEBUG BEGIN_STMT
- _23 = pxTCB->uxPriority;
- _24 = pxReadyTasksLists[_23].uxNumberOfItems;
- _25 = _24 + 1;
- pxReadyTasksLists[_23].uxNumberOfItems = _25;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 20> :
- # DEBUG BEGIN_STMT
- return;
- }
- xTaskPriorityDisinherit (struct tskTaskControlBlock * const pxMutexHolder)
- {
- struct ListItem_t * const pxIndex;
- BaseType_t xReturn;
- struct TCB_t * const pxTCB;
- BaseType_t D.8069;
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxTCB = pxMutexHolder;
- # DEBUG BEGIN_STMT
- xReturn = 0;
- # DEBUG BEGIN_STMT
- if (pxMutexHolder != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.130_1 = pxCurrentTCB;
- if (pxTCB != pxCurrentTCB.130_1)
- goto <bb 4>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 5>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _2 = pxTCB->uxMutexesHeld;
- if (_2 == 0)
- goto <bb 7>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 8>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _3 = pxTCB->uxMutexesHeld;
- _4 = _3 + 4294967295;
- pxTCB->uxMutexesHeld = _4;
- # DEBUG BEGIN_STMT
- _5 = pxTCB->uxPriority;
- _6 = pxTCB->uxBasePriority;
- if (_5 != _6)
- goto <bb 10>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- _7 = pxTCB->uxMutexesHeld;
- if (_7 == 0)
- goto <bb 11>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- _8 = &pxTCB->xStateListItem;
- _9 = uxListRemove (_8);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _10 = pxTCB->uxBasePriority;
- pxTCB->uxPriority = _10;
- # DEBUG BEGIN_STMT
- _11 = pxTCB->uxPriority;
- _12 = 5 - _11;
- pxTCB->xEventListItem.xItemValue = _12;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _13 = pxTCB->uxPriority;
- uxTopReadyPriority.131_14 = uxTopReadyPriority;
- if (_13 > uxTopReadyPriority.131_14)
- goto <bb 12>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- _15 = pxTCB->uxPriority;
- uxTopReadyPriority = _15;
- <bb 13> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _16 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_16].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _17 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _17;
- # DEBUG BEGIN_STMT
- _18 = pxIndex->pxPrevious;
- _19 = &pxTCB->xStateListItem;
- _18->pxNext = _19;
- # DEBUG BEGIN_STMT
- _20 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _20;
- # DEBUG BEGIN_STMT
- _21 = pxTCB->uxPriority;
- _22 = &pxReadyTasksLists[_21];
- pxTCB->xStateListItem.pvContainer = _22;
- # DEBUG BEGIN_STMT
- _23 = pxTCB->uxPriority;
- _24 = pxReadyTasksLists[_23].uxNumberOfItems;
- _25 = _24 + 1;
- pxReadyTasksLists[_23].uxNumberOfItems = _25;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xReturn = 1;
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.8069 = xReturn;
- return D.8069;
- }
- xTaskPriorityInherit (struct tskTaskControlBlock * const pxMutexHolder)
- {
- struct ListItem_t * const pxIndex;
- BaseType_t xReturn;
- struct TCB_t * const pxMutexHolderTCB;
- BaseType_t D.8049;
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxMutexHolderTCB = pxMutexHolder;
- # DEBUG BEGIN_STMT
- xReturn = 0;
- # DEBUG BEGIN_STMT
- if (pxMutexHolder != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- _1 = pxMutexHolderTCB->uxPriority;
- pxCurrentTCB.124_2 = pxCurrentTCB;
- _3 = pxCurrentTCB.124_2->uxPriority;
- if (_1 < _3)
- goto <bb 4>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- _4 = pxMutexHolderTCB->xEventListItem.xItemValue;
- _5 = (signed int) _4;
- if (_5 >= 0)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.125_6 = pxCurrentTCB;
- _7 = pxCurrentTCB.125_6->uxPriority;
- _8 = 5 - _7;
- pxMutexHolderTCB->xEventListItem.xItemValue = _8;
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _9 = pxMutexHolderTCB->xStateListItem.pvContainer;
- _10 = pxMutexHolderTCB->uxPriority;
- _11 = &pxReadyTasksLists[_10];
- if (_9 == _11)
- goto <bb 7>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- _12 = &pxMutexHolderTCB->xStateListItem;
- _13 = uxListRemove (_12);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.126_14 = pxCurrentTCB;
- _15 = pxCurrentTCB.126_14->uxPriority;
- pxMutexHolderTCB->uxPriority = _15;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _16 = pxMutexHolderTCB->uxPriority;
- uxTopReadyPriority.127_17 = uxTopReadyPriority;
- if (_16 > uxTopReadyPriority.127_17)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- _18 = pxMutexHolderTCB->uxPriority;
- uxTopReadyPriority = _18;
- <bb 9> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _19 = pxMutexHolderTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_19].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxMutexHolderTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _20 = pxIndex->pxPrevious;
- pxMutexHolderTCB->xStateListItem.pxPrevious = _20;
- # DEBUG BEGIN_STMT
- _21 = pxIndex->pxPrevious;
- _22 = &pxMutexHolderTCB->xStateListItem;
- _21->pxNext = _22;
- # DEBUG BEGIN_STMT
- _23 = &pxMutexHolderTCB->xStateListItem;
- pxIndex->pxPrevious = _23;
- # DEBUG BEGIN_STMT
- _24 = pxMutexHolderTCB->uxPriority;
- _25 = &pxReadyTasksLists[_24];
- pxMutexHolderTCB->xStateListItem.pvContainer = _25;
- # DEBUG BEGIN_STMT
- _26 = pxMutexHolderTCB->uxPriority;
- _27 = pxReadyTasksLists[_26].uxNumberOfItems;
- _28 = _27 + 1;
- pxReadyTasksLists[_26].uxNumberOfItems = _28;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 11>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.128_29 = pxCurrentTCB;
- _30 = pxCurrentTCB.128_29->uxPriority;
- pxMutexHolderTCB->uxPriority = _30;
- <bb 11> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xReturn = 1;
- goto <bb 14>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- _31 = pxMutexHolderTCB->uxBasePriority;
- pxCurrentTCB.129_32 = pxCurrentTCB;
- _33 = pxCurrentTCB.129_32->uxPriority;
- if (_31 < _33)
- goto <bb 13>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- xReturn = 1;
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.8049 = xReturn;
- return D.8049;
- }
- xTaskGetSchedulerState ()
- {
- BaseType_t xReturn;
- BaseType_t D.8027;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xSchedulerRunning.122_1 = xSchedulerRunning;
- if (xSchedulerRunning.122_1 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- xReturn = 1;
- goto <bb 7>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.123_2 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.123_2 == 0)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- xReturn = 2;
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- <bb 7> :
- # DEBUG BEGIN_STMT
- D.8027 = xReturn;
- return D.8027;
- }
- xTaskGetCurrentTaskHandle ()
- {
- struct tskTaskControlBlock * xReturn;
- struct tskTaskControlBlock * D.8019;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xReturn = pxCurrentTCB;
- # DEBUG BEGIN_STMT
- D.8019 = xReturn;
- return D.8019;
- }
- prvResetNextTaskUnblockTime ()
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxDelayedTaskList.20_1 = pxDelayedTaskList;
- _2 = pxDelayedTaskList.20_1->uxNumberOfItems;
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- xNextTaskUnblockTime = 4294967295;
- goto <bb 5>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- pxDelayedTaskList.21_3 = pxDelayedTaskList;
- _4 = pxDelayedTaskList.21_3->xListEnd.pxNext;
- _5 = _4->xItemValue;
- xNextTaskUnblockTime = _5;
- <bb 5> :
- return;
- }
- prvDeleteTCB (struct TCB_t * pxTCB)
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = pxTCB->pxStack;
- vPortFree (_1);
- # DEBUG BEGIN_STMT
- vPortFree (pxTCB);
- return;
- }
- uxTaskGetStackHighWaterMark (struct tskTaskControlBlock * xTask)
- {
- UBaseType_t uxReturn;
- uint8_t * pucEndOfStack;
- struct TCB_t * pxTCB;
- UBaseType_t D.8017;
- struct TCB_t * iftmp.121;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTask == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- iftmp.121 = pxCurrentTCB;
- goto <bb 5>; [INV]
- <bb 4> :
- iftmp.121 = xTask;
- <bb 5> :
- pxTCB = iftmp.121;
- # DEBUG BEGIN_STMT
- pucEndOfStack = pxTCB->pxStack;
- # DEBUG BEGIN_STMT
- _1 = prvTaskCheckFreeStackSpace (pucEndOfStack);
- uxReturn = (UBaseType_t) _1;
- # DEBUG BEGIN_STMT
- D.8017 = uxReturn;
- return D.8017;
- }
- prvTaskCheckFreeStackSpace (const uint8_t * pucStackByte)
- {
- uint32_t ulCount;
- uint16_t D.8011;
- <bb 2> :
- # DEBUG BEGIN_STMT
- ulCount = 0;
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pucStackByte = pucStackByte + 1;
- # DEBUG BEGIN_STMT
- ulCount = ulCount + 1;
- <bb 4> :
- # DEBUG BEGIN_STMT
- _1 = *pucStackByte;
- if (_1 == 165)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- ulCount = ulCount / 4;
- # DEBUG BEGIN_STMT
- D.8011 = (uint16_t) ulCount;
- return D.8011;
- }
- prvListTasksWithinSingleList (struct TaskStatus_t * pxTaskStatusArray, struct List_t * pxList, eTaskState eState)
- {
- struct List_t * const pxConstList;
- struct List_t * const pxConstList;
- UBaseType_t uxTask;
- struct TCB_t * pxFirstTCB;
- struct TCB_t * pxNextTCB;
- UBaseType_t D.7866;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxTask = 0;
- # DEBUG BEGIN_STMT
- _1 = pxList->uxNumberOfItems;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pxConstList = pxList;
- # DEBUG BEGIN_STMT
- _2 = pxConstList->pxIndex;
- _3 = _2->pxNext;
- pxConstList->pxIndex = _3;
- # DEBUG BEGIN_STMT
- _4 = pxConstList->pxIndex;
- _5 = &pxConstList->xListEnd;
- if (_4 == _5)
- goto <bb 4>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- _6 = pxConstList->pxIndex;
- _7 = _6->pxNext;
- pxConstList->pxIndex = _7;
- <bb 5> :
- # DEBUG BEGIN_STMT
- _8 = pxConstList->pxIndex;
- pxFirstTCB = _8->pvOwner;
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxConstList = pxList;
- # DEBUG BEGIN_STMT
- _9 = pxConstList->pxIndex;
- _10 = _9->pxNext;
- pxConstList->pxIndex = _10;
- # DEBUG BEGIN_STMT
- _11 = pxConstList->pxIndex;
- _12 = &pxConstList->xListEnd;
- if (_11 == _12)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- _13 = pxConstList->pxIndex;
- _14 = _13->pxNext;
- pxConstList->pxIndex = _14;
- <bb 8> :
- # DEBUG BEGIN_STMT
- _15 = pxConstList->pxIndex;
- pxNextTCB = _15->pvOwner;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _16 = uxTask * 36;
- _17 = pxTaskStatusArray + _16;
- vTaskGetInfo (pxNextTCB, _17, 1, eState);
- # DEBUG BEGIN_STMT
- uxTask = uxTask + 1;
- # DEBUG BEGIN_STMT
- if (pxNextTCB != pxFirstTCB)
- goto <bb 6>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.7866 = uxTask;
- return D.7866;
- }
- vTaskGetInfo (struct tskTaskControlBlock * xTask, struct TaskStatus_t * pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState)
- {
- struct TCB_t * pxTCB;
- struct TCB_t * iftmp.119;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTask == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- iftmp.119 = pxCurrentTCB;
- goto <bb 5>; [INV]
- <bb 4> :
- iftmp.119 = xTask;
- <bb 5> :
- pxTCB = iftmp.119;
- # DEBUG BEGIN_STMT
- pxTaskStatus->xHandle = pxTCB;
- # DEBUG BEGIN_STMT
- _1 = &pxTCB->pcTaskName[0];
- pxTaskStatus->pcTaskName = _1;
- # DEBUG BEGIN_STMT
- _2 = pxTCB->uxPriority;
- pxTaskStatus->uxCurrentPriority = _2;
- # DEBUG BEGIN_STMT
- _3 = pxTCB->pxStack;
- pxTaskStatus->pxStackBase = _3;
- # DEBUG BEGIN_STMT
- _4 = pxTCB->uxTCBNumber;
- pxTaskStatus->xTaskNumber = _4;
- # DEBUG BEGIN_STMT
- _5 = pxTCB->uxBasePriority;
- pxTaskStatus->uxBasePriority = _5;
- # DEBUG BEGIN_STMT
- pxTaskStatus->ulRunTimeCounter = 0;
- # DEBUG BEGIN_STMT
- if (eState != 5)
- goto <bb 6>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.120_6 = pxCurrentTCB;
- if (pxTCB == pxCurrentTCB.120_6)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- pxTaskStatus->eCurrentState = 0;
- goto <bb 13>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- pxTaskStatus->eCurrentState = eState;
- # DEBUG BEGIN_STMT
- if (eState == 3)
- goto <bb 9>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- vTaskSuspendAll ();
- # DEBUG BEGIN_STMT
- _7 = pxTCB->xEventListItem.pvContainer;
- if (_7 != 0B)
- goto <bb 10>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- pxTaskStatus->eCurrentState = 2;
- <bb 11> :
- # DEBUG BEGIN_STMT
- xTaskResumeAll ();
- goto <bb 13>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- _8 = eTaskGetState (pxTCB);
- pxTaskStatus->eCurrentState = _8;
- <bb 13> :
- # DEBUG BEGIN_STMT
- if (xGetFreeStackSpace != 0)
- goto <bb 14>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- _9 = pxTCB->pxStack;
- _10 = prvTaskCheckFreeStackSpace (_9);
- pxTaskStatus->usStackHighWaterMark = _10;
- goto <bb 16>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- pxTaskStatus->usStackHighWaterMark = 0;
- <bb 16> :
- return;
- }
- prvCheckTasksWaitingTermination ()
- {
- struct TCB_t * pxTCB;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- _1 = xTasksWaitingTermination.xListEnd.pxNext;
- pxTCB = _1->pvOwner;
- # DEBUG BEGIN_STMT
- _2 = &pxTCB->xStateListItem;
- uxListRemove (_2);
- # DEBUG BEGIN_STMT
- uxCurrentNumberOfTasks.58_3 = uxCurrentNumberOfTasks;
- _4 = uxCurrentNumberOfTasks.58_3 + 4294967295;
- uxCurrentNumberOfTasks = _4;
- # DEBUG BEGIN_STMT
- uxDeletedTasksWaitingCleanUp.59_5 = uxDeletedTasksWaitingCleanUp;
- _6 = uxDeletedTasksWaitingCleanUp.59_5 + 4294967295;
- uxDeletedTasksWaitingCleanUp = _6;
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- prvDeleteTCB (pxTCB);
- <bb 4> :
- # DEBUG BEGIN_STMT
- uxDeletedTasksWaitingCleanUp.60_7 = uxDeletedTasksWaitingCleanUp;
- if (uxDeletedTasksWaitingCleanUp.60_7 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- return;
- }
- prvInitialiseTaskLists ()
- {
- UBaseType_t uxPriority;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxPriority = 0;
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- _1 = &pxReadyTasksLists[uxPriority];
- vListInitialise (_1);
- # DEBUG BEGIN_STMT
- uxPriority = uxPriority + 1;
- <bb 4> :
- # DEBUG BEGIN_STMT
- if (uxPriority <= 4)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- vListInitialise (&xDelayedTaskList1);
- # DEBUG BEGIN_STMT
- vListInitialise (&xDelayedTaskList2);
- # DEBUG BEGIN_STMT
- vListInitialise (&xPendingReadyList);
- # DEBUG BEGIN_STMT
- vListInitialise (&xTasksWaitingTermination);
- # DEBUG BEGIN_STMT
- vListInitialise (&xSuspendedTaskList);
- # DEBUG BEGIN_STMT
- pxDelayedTaskList = &xDelayedTaskList1;
- # DEBUG BEGIN_STMT
- pxOverflowDelayedTaskList = &xDelayedTaskList2;
- return;
- }
- prvIdleTask (void * pvParameters)
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- prvCheckTasksWaitingTermination ();
- # DEBUG BEGIN_STMT
- _1 = pxReadyTasksLists[0].uxNumberOfItems;
- if (_1 > 1)
- goto <bb 3>; [INV]
- else
- goto <bb 2>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- _2 = 3758157060B;
- *_2 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- goto <bb 2>; [INV]
- }
- vTaskSetTaskNumber (struct tskTaskControlBlock * xTask, const UBaseType_t uxHandle)
- {
- struct TCB_t * pxTCB;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTask != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pxTCB = xTask;
- # DEBUG BEGIN_STMT
- pxTCB->uxTaskNumber = uxHandle;
- <bb 4> :
- return;
- }
- uxTaskGetTaskNumber (struct tskTaskControlBlock * xTask)
- {
- const struct TCB_t * pxTCB;
- UBaseType_t uxReturn;
- UBaseType_t D.7990;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTask != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pxTCB = xTask;
- # DEBUG BEGIN_STMT
- uxReturn = pxTCB->uxTaskNumber;
- goto <bb 5>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- uxReturn = 0;
- <bb 5> :
- # DEBUG BEGIN_STMT
- D.7990 = uxReturn;
- return D.7990;
- }
- vTaskMissedYield ()
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- return;
- }
- xTaskCheckForTimeOut (struct TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait)
- {
- const TickType_t xElapsedTime;
- const TickType_t xConstTickCount;
- BaseType_t xReturn;
- BaseType_t D.7985;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (pxTimeOut == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (pxTicksToWait == 0B)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- xConstTickCount = xTickCount;
- # DEBUG BEGIN_STMT
- _1 = pxTimeOut->xTimeOnEntering;
- xElapsedTime = xConstTickCount - _1;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.116_2 = pxCurrentTCB;
- _3 = pxCurrentTCB.116_2->ucDelayAborted;
- if (_3 != 0)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.117_4 = pxCurrentTCB;
- pxCurrentTCB.117_4->ucDelayAborted = 0;
- # DEBUG BEGIN_STMT
- xReturn = 1;
- goto <bb 18>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- _5 = *pxTicksToWait;
- if (_5 == 4294967295)
- goto <bb 11>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- goto <bb 18>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- _6 = pxTimeOut->xOverflowCount;
- xNumOfOverflows.118_7 = xNumOfOverflows;
- if (_6 != xNumOfOverflows.118_7)
- goto <bb 13>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 13> :
- _8 = pxTimeOut->xTimeOnEntering;
- if (xConstTickCount >= _8)
- goto <bb 14>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- xReturn = 1;
- # DEBUG BEGIN_STMT
- *pxTicksToWait = 0;
- goto <bb 18>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- _9 = *pxTicksToWait;
- if (xElapsedTime < _9)
- goto <bb 16>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- _10 = *pxTicksToWait;
- _11 = _10 - xElapsedTime;
- *pxTicksToWait = _11;
- # DEBUG BEGIN_STMT
- vTaskInternalSetTimeOutState (pxTimeOut);
- # DEBUG BEGIN_STMT
- xReturn = 0;
- goto <bb 18>; [INV]
- <bb 17> :
- # DEBUG BEGIN_STMT
- *pxTicksToWait = 0;
- # DEBUG BEGIN_STMT
- xReturn = 1;
- <bb 18> :
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- D.7985 = xReturn;
- return D.7985;
- }
- vTaskInternalSetTimeOutState (struct TimeOut_t * const pxTimeOut)
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- xNumOfOverflows.114_1 = xNumOfOverflows;
- pxTimeOut->xOverflowCount = xNumOfOverflows.114_1;
- # DEBUG BEGIN_STMT
- xTickCount.115_2 = xTickCount;
- pxTimeOut->xTimeOnEntering = xTickCount.115_2;
- return;
- }
- vTaskSetTimeOutState (struct TimeOut_t * const pxTimeOut)
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- if (pxTimeOut == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- xNumOfOverflows.112_1 = xNumOfOverflows;
- pxTimeOut->xOverflowCount = xNumOfOverflows.112_1;
- # DEBUG BEGIN_STMT
- xTickCount.113_2 = xTickCount;
- pxTimeOut->xTimeOnEntering = xTickCount.113_2;
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- return;
- }
- vTaskRemoveFromUnorderedEventList (struct ListItem_t * pxEventListItem, const TickType_t xItemValue)
- {
- struct ListItem_t * const pxIndex;
- struct List_t * const pxList;
- struct List_t * const pxList;
- struct TCB_t * pxUnblockedTCB;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.109_1 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.109_1 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _2 = xItemValue | 2147483648;
- pxEventListItem->xItemValue = _2;
- # DEBUG BEGIN_STMT
- pxUnblockedTCB = pxEventListItem->pvOwner;
- # DEBUG BEGIN_STMT
- if (pxUnblockedTCB == 0B)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxList = pxEventListItem->pvContainer;
- # DEBUG BEGIN_STMT
- _3 = pxEventListItem->pxNext;
- _4 = pxEventListItem->pxPrevious;
- _3->pxPrevious = _4;
- # DEBUG BEGIN_STMT
- _5 = pxEventListItem->pxPrevious;
- _6 = pxEventListItem->pxNext;
- _5->pxNext = _6;
- # DEBUG BEGIN_STMT
- _7 = pxList->pxIndex;
- if (pxEventListItem == _7)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- _8 = pxEventListItem->pxPrevious;
- pxList->pxIndex = _8;
- <bb 10> :
- # DEBUG BEGIN_STMT
- pxEventListItem->pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _9 = pxList->uxNumberOfItems;
- _10 = _9 + 4294967295;
- pxList->uxNumberOfItems = _10;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxList = pxUnblockedTCB->xStateListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _11 = pxUnblockedTCB->xStateListItem.pxNext;
- _12 = pxUnblockedTCB->xStateListItem.pxPrevious;
- _11->pxPrevious = _12;
- # DEBUG BEGIN_STMT
- _13 = pxUnblockedTCB->xStateListItem.pxPrevious;
- _14 = pxUnblockedTCB->xStateListItem.pxNext;
- _13->pxNext = _14;
- # DEBUG BEGIN_STMT
- _15 = pxList->pxIndex;
- _16 = &pxUnblockedTCB->xStateListItem;
- if (_15 == _16)
- goto <bb 11>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- _17 = pxUnblockedTCB->xStateListItem.pxPrevious;
- pxList->pxIndex = _17;
- <bb 12> :
- # DEBUG BEGIN_STMT
- pxUnblockedTCB->xStateListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _18 = pxList->uxNumberOfItems;
- _19 = _18 + 4294967295;
- pxList->uxNumberOfItems = _19;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _20 = pxUnblockedTCB->uxPriority;
- uxTopReadyPriority.110_21 = uxTopReadyPriority;
- if (_20 > uxTopReadyPriority.110_21)
- goto <bb 13>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- _22 = pxUnblockedTCB->uxPriority;
- uxTopReadyPriority = _22;
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _23 = pxUnblockedTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_23].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxUnblockedTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _24 = pxIndex->pxPrevious;
- pxUnblockedTCB->xStateListItem.pxPrevious = _24;
- # DEBUG BEGIN_STMT
- _25 = pxIndex->pxPrevious;
- _26 = &pxUnblockedTCB->xStateListItem;
- _25->pxNext = _26;
- # DEBUG BEGIN_STMT
- _27 = &pxUnblockedTCB->xStateListItem;
- pxIndex->pxPrevious = _27;
- # DEBUG BEGIN_STMT
- _28 = pxUnblockedTCB->uxPriority;
- _29 = &pxReadyTasksLists[_28];
- pxUnblockedTCB->xStateListItem.pvContainer = _29;
- # DEBUG BEGIN_STMT
- _30 = pxUnblockedTCB->uxPriority;
- _31 = pxReadyTasksLists[_30].uxNumberOfItems;
- _32 = _31 + 1;
- pxReadyTasksLists[_30].uxNumberOfItems = _32;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _33 = pxUnblockedTCB->uxPriority;
- pxCurrentTCB.111_34 = pxCurrentTCB;
- _35 = pxCurrentTCB.111_34->uxPriority;
- if (_33 > _35)
- goto <bb 15>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- <bb 16> :
- return;
- }
- xTaskRemoveFromEventList (const struct List_t * const pxEventList)
- {
- struct ListItem_t * const pxIndex;
- struct ListItem_t * const pxIndex;
- struct List_t * const pxList;
- struct List_t * const pxList;
- BaseType_t xReturn;
- struct TCB_t * pxUnblockedTCB;
- BaseType_t D.7952;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = pxEventList->xListEnd.pxNext;
- pxUnblockedTCB = _1->pvOwner;
- # DEBUG BEGIN_STMT
- if (pxUnblockedTCB == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxList = pxUnblockedTCB->xEventListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _2 = pxUnblockedTCB->xEventListItem.pxNext;
- _3 = pxUnblockedTCB->xEventListItem.pxPrevious;
- _2->pxPrevious = _3;
- # DEBUG BEGIN_STMT
- _4 = pxUnblockedTCB->xEventListItem.pxPrevious;
- _5 = pxUnblockedTCB->xEventListItem.pxNext;
- _4->pxNext = _5;
- # DEBUG BEGIN_STMT
- _6 = pxList->pxIndex;
- _7 = &pxUnblockedTCB->xEventListItem;
- if (_6 == _7)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- _8 = pxUnblockedTCB->xEventListItem.pxPrevious;
- pxList->pxIndex = _8;
- <bb 7> :
- # DEBUG BEGIN_STMT
- pxUnblockedTCB->xEventListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _9 = pxList->uxNumberOfItems;
- _10 = _9 + 4294967295;
- pxList->uxNumberOfItems = _10;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.106_11 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.106_11 == 0)
- goto <bb 8>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- pxList = pxUnblockedTCB->xStateListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _12 = pxUnblockedTCB->xStateListItem.pxNext;
- _13 = pxUnblockedTCB->xStateListItem.pxPrevious;
- _12->pxPrevious = _13;
- # DEBUG BEGIN_STMT
- _14 = pxUnblockedTCB->xStateListItem.pxPrevious;
- _15 = pxUnblockedTCB->xStateListItem.pxNext;
- _14->pxNext = _15;
- # DEBUG BEGIN_STMT
- _16 = pxList->pxIndex;
- _17 = &pxUnblockedTCB->xStateListItem;
- if (_16 == _17)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- _18 = pxUnblockedTCB->xStateListItem.pxPrevious;
- pxList->pxIndex = _18;
- <bb 10> :
- # DEBUG BEGIN_STMT
- pxUnblockedTCB->xStateListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _19 = pxList->uxNumberOfItems;
- _20 = _19 + 4294967295;
- pxList->uxNumberOfItems = _20;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _21 = pxUnblockedTCB->uxPriority;
- uxTopReadyPriority.107_22 = uxTopReadyPriority;
- if (_21 > uxTopReadyPriority.107_22)
- goto <bb 11>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- _23 = pxUnblockedTCB->uxPriority;
- uxTopReadyPriority = _23;
- <bb 12> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _24 = pxUnblockedTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_24].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxUnblockedTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _25 = pxIndex->pxPrevious;
- pxUnblockedTCB->xStateListItem.pxPrevious = _25;
- # DEBUG BEGIN_STMT
- _26 = pxIndex->pxPrevious;
- _27 = &pxUnblockedTCB->xStateListItem;
- _26->pxNext = _27;
- # DEBUG BEGIN_STMT
- _28 = &pxUnblockedTCB->xStateListItem;
- pxIndex->pxPrevious = _28;
- # DEBUG BEGIN_STMT
- _29 = pxUnblockedTCB->uxPriority;
- _30 = &pxReadyTasksLists[_29];
- pxUnblockedTCB->xStateListItem.pvContainer = _30;
- # DEBUG BEGIN_STMT
- _31 = pxUnblockedTCB->uxPriority;
- _32 = pxReadyTasksLists[_31].uxNumberOfItems;
- _33 = _32 + 1;
- pxReadyTasksLists[_31].uxNumberOfItems = _33;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 14>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- pxIndex = xPendingReadyList.pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxUnblockedTCB->xEventListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _34 = pxIndex->pxPrevious;
- pxUnblockedTCB->xEventListItem.pxPrevious = _34;
- # DEBUG BEGIN_STMT
- _35 = pxIndex->pxPrevious;
- _36 = &pxUnblockedTCB->xEventListItem;
- _35->pxNext = _36;
- # DEBUG BEGIN_STMT
- _37 = &pxUnblockedTCB->xEventListItem;
- pxIndex->pxPrevious = _37;
- # DEBUG BEGIN_STMT
- pxUnblockedTCB->xEventListItem.pvContainer = &xPendingReadyList;
- # DEBUG BEGIN_STMT
- _38 = xPendingReadyList.uxNumberOfItems;
- _39 = _38 + 1;
- xPendingReadyList.uxNumberOfItems = _39;
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _40 = pxUnblockedTCB->uxPriority;
- pxCurrentTCB.108_41 = pxCurrentTCB;
- _42 = pxCurrentTCB.108_41->uxPriority;
- if (_40 > _42)
- goto <bb 15>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- xReturn = 1;
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- goto <bb 17>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- <bb 17> :
- # DEBUG BEGIN_STMT
- D.7952 = xReturn;
- return D.7952;
- }
- vTaskPlaceOnEventListRestricted (struct List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely)
- {
- struct ListItem_t * const pxIndex;
- <bb 2> :
- # DEBUG BEGIN_STMT
- if (pxEventList == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxIndex = pxEventList->pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.101_1 = pxCurrentTCB;
- pxCurrentTCB.101_1->xEventListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.102_2 = pxCurrentTCB;
- _3 = pxIndex->pxPrevious;
- pxCurrentTCB.102_2->xEventListItem.pxPrevious = _3;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.103_4 = pxCurrentTCB;
- _5 = pxIndex->pxPrevious;
- _6 = &pxCurrentTCB.103_4->xEventListItem;
- _5->pxNext = _6;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.104_7 = pxCurrentTCB;
- _8 = &pxCurrentTCB.104_7->xEventListItem;
- pxIndex->pxPrevious = _8;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.105_9 = pxCurrentTCB;
- pxCurrentTCB.105_9->xEventListItem.pvContainer = pxEventList;
- # DEBUG BEGIN_STMT
- _10 = pxEventList->uxNumberOfItems;
- _11 = _10 + 1;
- pxEventList->uxNumberOfItems = _11;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xWaitIndefinitely != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- xTicksToWait = 4294967295;
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- prvAddCurrentTaskToDelayedList (xTicksToWait, xWaitIndefinitely);
- return;
- }
- vTaskPlaceOnUnorderedEventList (struct List_t * pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait)
- {
- struct ListItem_t * const pxIndex;
- <bb 2> :
- # DEBUG BEGIN_STMT
- if (pxEventList == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.94_1 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.94_1 == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.95_2 = pxCurrentTCB;
- _3 = xItemValue | 2147483648;
- pxCurrentTCB.95_2->xEventListItem.xItemValue = _3;
- # DEBUG BEGIN_STMT
- pxIndex = pxEventList->pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.96_4 = pxCurrentTCB;
- pxCurrentTCB.96_4->xEventListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.97_5 = pxCurrentTCB;
- _6 = pxIndex->pxPrevious;
- pxCurrentTCB.97_5->xEventListItem.pxPrevious = _6;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.98_7 = pxCurrentTCB;
- _8 = pxIndex->pxPrevious;
- _9 = &pxCurrentTCB.98_7->xEventListItem;
- _8->pxNext = _9;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.99_10 = pxCurrentTCB;
- _11 = &pxCurrentTCB.99_10->xEventListItem;
- pxIndex->pxPrevious = _11;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.100_12 = pxCurrentTCB;
- pxCurrentTCB.100_12->xEventListItem.pvContainer = pxEventList;
- # DEBUG BEGIN_STMT
- _13 = pxEventList->uxNumberOfItems;
- _14 = _13 + 1;
- pxEventList->uxNumberOfItems = _14;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- prvAddCurrentTaskToDelayedList (xTicksToWait, 1);
- return;
- }
- vTaskPlaceOnEventList (struct List_t * const pxEventList, const TickType_t xTicksToWait)
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- if (pxEventList == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.93_1 = pxCurrentTCB;
- _2 = &pxCurrentTCB.93_1->xEventListItem;
- vListInsert (pxEventList, _2);
- # DEBUG BEGIN_STMT
- prvAddCurrentTaskToDelayedList (xTicksToWait, 1);
- return;
- }
- __attribute__((used))
- vTaskSwitchContext ()
- {
- struct List_t * const pxConstList;
- UBaseType_t uxTopPriority;
- <bb 2> :
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.92_1 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.92_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- goto <bb 13>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- xYieldPending = 0;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxTopPriority = uxTopReadyPriority;
- # DEBUG BEGIN_STMT
- goto <bb 9>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- if (uxTopPriority == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxTopPriority = uxTopPriority + 4294967295;
- <bb 9> :
- # DEBUG BEGIN_STMT
- _2 = pxReadyTasksLists[uxTopPriority].uxNumberOfItems;
- if (_2 == 0)
- goto <bb 5>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- pxConstList = &pxReadyTasksLists[uxTopPriority];
- # DEBUG BEGIN_STMT
- _3 = pxConstList->pxIndex;
- _4 = _3->pxNext;
- pxConstList->pxIndex = _4;
- # DEBUG BEGIN_STMT
- _5 = pxConstList->pxIndex;
- _6 = &pxConstList->xListEnd;
- if (_5 == _6)
- goto <bb 11>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- _7 = pxConstList->pxIndex;
- _8 = _7->pxNext;
- pxConstList->pxIndex = _8;
- <bb 12> :
- # DEBUG BEGIN_STMT
- _9 = pxConstList->pxIndex;
- _10 = _9->pvOwner;
- pxCurrentTCB = _10;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxTopReadyPriority = uxTopPriority;
- <bb 13> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- return;
- }
- xTaskIncrementTick ()
- {
- struct ListItem_t * const pxIndex;
- struct List_t * const pxList;
- struct List_t * const pxList;
- struct List_t * pxTemp;
- const TickType_t xConstTickCount;
- BaseType_t xSwitchRequired;
- TickType_t xItemValue;
- struct TCB_t * pxTCB;
- BaseType_t D.7919;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xSwitchRequired = 0;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.79_1 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.79_1 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 27>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- xTickCount.80_2 = xTickCount;
- xConstTickCount = xTickCount.80_2 + 1;
- # DEBUG BEGIN_STMT
- xTickCount = xConstTickCount;
- # DEBUG BEGIN_STMT
- if (xConstTickCount == 0)
- goto <bb 4>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxDelayedTaskList.81_3 = pxDelayedTaskList;
- _4 = pxDelayedTaskList.81_3->uxNumberOfItems;
- if (_4 != 0)
- goto <bb 5>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 6>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTemp = pxDelayedTaskList;
- # DEBUG BEGIN_STMT
- pxOverflowDelayedTaskList.82_5 = pxOverflowDelayedTaskList;
- pxDelayedTaskList = pxOverflowDelayedTaskList.82_5;
- # DEBUG BEGIN_STMT
- pxOverflowDelayedTaskList = pxTemp;
- # DEBUG BEGIN_STMT
- xNumOfOverflows.83_6 = xNumOfOverflows;
- _7 = xNumOfOverflows.83_6 + 1;
- xNumOfOverflows = _7;
- # DEBUG BEGIN_STMT
- prvResetNextTaskUnblockTime ();
- # DEBUG BEGIN_STMT
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xNextTaskUnblockTime.84_8 = xNextTaskUnblockTime;
- if (xConstTickCount >= xNextTaskUnblockTime.84_8)
- goto <bb 9>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxDelayedTaskList.85_9 = pxDelayedTaskList;
- _10 = pxDelayedTaskList.85_9->uxNumberOfItems;
- if (_10 == 0)
- goto <bb 10>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- xNextTaskUnblockTime = 4294967295;
- # DEBUG BEGIN_STMT
- goto <bb 23>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- pxDelayedTaskList.86_11 = pxDelayedTaskList;
- _12 = pxDelayedTaskList.86_11->xListEnd.pxNext;
- pxTCB = _12->pvOwner;
- # DEBUG BEGIN_STMT
- xItemValue = pxTCB->xStateListItem.xItemValue;
- # DEBUG BEGIN_STMT
- if (xConstTickCount < xItemValue)
- goto <bb 12>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- xNextTaskUnblockTime = xItemValue;
- # DEBUG BEGIN_STMT
- goto <bb 23>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxList = pxTCB->xStateListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _13 = pxTCB->xStateListItem.pxNext;
- _14 = pxTCB->xStateListItem.pxPrevious;
- _13->pxPrevious = _14;
- # DEBUG BEGIN_STMT
- _15 = pxTCB->xStateListItem.pxPrevious;
- _16 = pxTCB->xStateListItem.pxNext;
- _15->pxNext = _16;
- # DEBUG BEGIN_STMT
- _17 = pxList->pxIndex;
- _18 = &pxTCB->xStateListItem;
- if (_17 == _18)
- goto <bb 14>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- _19 = pxTCB->xStateListItem.pxPrevious;
- pxList->pxIndex = _19;
- <bb 15> :
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _20 = pxList->uxNumberOfItems;
- _21 = _20 + 4294967295;
- pxList->uxNumberOfItems = _21;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _22 = pxTCB->xEventListItem.pvContainer;
- if (_22 != 0B)
- goto <bb 16>; [INV]
- else
- goto <bb 19>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- pxList = pxTCB->xEventListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _23 = pxTCB->xEventListItem.pxNext;
- _24 = pxTCB->xEventListItem.pxPrevious;
- _23->pxPrevious = _24;
- # DEBUG BEGIN_STMT
- _25 = pxTCB->xEventListItem.pxPrevious;
- _26 = pxTCB->xEventListItem.pxNext;
- _25->pxNext = _26;
- # DEBUG BEGIN_STMT
- _27 = pxList->pxIndex;
- _28 = &pxTCB->xEventListItem;
- if (_27 == _28)
- goto <bb 17>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 17> :
- # DEBUG BEGIN_STMT
- _29 = pxTCB->xEventListItem.pxPrevious;
- pxList->pxIndex = _29;
- <bb 18> :
- # DEBUG BEGIN_STMT
- pxTCB->xEventListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _30 = pxList->uxNumberOfItems;
- _31 = _30 + 4294967295;
- pxList->uxNumberOfItems = _31;
- # DEBUG BEGIN_STMT
- <bb 19> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _32 = pxTCB->uxPriority;
- uxTopReadyPriority.87_33 = uxTopReadyPriority;
- if (_32 > uxTopReadyPriority.87_33)
- goto <bb 20>; [INV]
- else
- goto <bb 21>; [INV]
- <bb 20> :
- # DEBUG BEGIN_STMT
- _34 = pxTCB->uxPriority;
- uxTopReadyPriority = _34;
- <bb 21> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _35 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_35].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _36 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _36;
- # DEBUG BEGIN_STMT
- _37 = pxIndex->pxPrevious;
- _38 = &pxTCB->xStateListItem;
- _37->pxNext = _38;
- # DEBUG BEGIN_STMT
- _39 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _39;
- # DEBUG BEGIN_STMT
- _40 = pxTCB->uxPriority;
- _41 = &pxReadyTasksLists[_40];
- pxTCB->xStateListItem.pvContainer = _41;
- # DEBUG BEGIN_STMT
- _42 = pxTCB->uxPriority;
- _43 = pxReadyTasksLists[_42].uxNumberOfItems;
- _44 = _43 + 1;
- pxReadyTasksLists[_42].uxNumberOfItems = _44;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _45 = pxTCB->uxPriority;
- pxCurrentTCB.88_46 = pxCurrentTCB;
- _47 = pxCurrentTCB.88_46->uxPriority;
- if (_45 >= _47)
- goto <bb 22>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 22> :
- # DEBUG BEGIN_STMT
- xSwitchRequired = 1;
- goto <bb 9>; [INV]
- <bb 23> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.89_48 = pxCurrentTCB;
- _49 = pxCurrentTCB.89_48->uxPriority;
- _50 = pxReadyTasksLists[_49].uxNumberOfItems;
- if (_50 > 1)
- goto <bb 24>; [INV]
- else
- goto <bb 25>; [INV]
- <bb 24> :
- # DEBUG BEGIN_STMT
- xSwitchRequired = 1;
- <bb 25> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xYieldPending.90_51 = xYieldPending;
- if (xYieldPending.90_51 != 0)
- goto <bb 26>; [INV]
- else
- goto <bb 28>; [INV]
- <bb 26> :
- # DEBUG BEGIN_STMT
- xSwitchRequired = 1;
- goto <bb 28>; [INV]
- <bb 27> :
- # DEBUG BEGIN_STMT
- xPendedTicks.91_52 = xPendedTicks;
- _53 = xPendedTicks.91_52 + 1;
- xPendedTicks = _53;
- <bb 28> :
- # DEBUG BEGIN_STMT
- D.7919 = xSwitchRequired;
- return D.7919;
- }
- xTaskAbortDelay (struct tskTaskControlBlock * xTask)
- {
- struct ListItem_t * const pxIndex;
- BaseType_t xReturn;
- struct TCB_t * pxTCB;
- BaseType_t D.7885;
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxTCB = xTask;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (pxTCB == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vTaskSuspendAll ();
- # DEBUG BEGIN_STMT
- _1 = eTaskGetState (xTask);
- if (_1 == 2)
- goto <bb 6>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- xReturn = 1;
- # DEBUG BEGIN_STMT
- _2 = &pxTCB->xStateListItem;
- uxListRemove (_2);
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- _3 = pxTCB->xEventListItem.pvContainer;
- if (_3 != 0B)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- _4 = &pxTCB->xEventListItem;
- uxListRemove (_4);
- # DEBUG BEGIN_STMT
- pxTCB->ucDelayAborted = 1;
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _5 = pxTCB->uxPriority;
- uxTopReadyPriority.77_6 = uxTopReadyPriority;
- if (_5 > uxTopReadyPriority.77_6)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- _7 = pxTCB->uxPriority;
- uxTopReadyPriority = _7;
- <bb 10> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _8 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_8].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _9 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _9;
- # DEBUG BEGIN_STMT
- _10 = pxIndex->pxPrevious;
- _11 = &pxTCB->xStateListItem;
- _10->pxNext = _11;
- # DEBUG BEGIN_STMT
- _12 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _12;
- # DEBUG BEGIN_STMT
- _13 = pxTCB->uxPriority;
- _14 = &pxReadyTasksLists[_13];
- pxTCB->xStateListItem.pvContainer = _14;
- # DEBUG BEGIN_STMT
- _15 = pxTCB->uxPriority;
- _16 = pxReadyTasksLists[_15].uxNumberOfItems;
- _17 = _16 + 1;
- pxReadyTasksLists[_15].uxNumberOfItems = _17;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _18 = pxTCB->uxPriority;
- pxCurrentTCB.78_19 = pxCurrentTCB;
- _20 = pxCurrentTCB.78_19->uxPriority;
- if (_18 > _20)
- goto <bb 11>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- goto <bb 13>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- <bb 13> :
- # DEBUG BEGIN_STMT
- xTaskResumeAll ();
- # DEBUG BEGIN_STMT
- D.7885 = xReturn;
- return D.7885;
- }
- xTaskCatchUpTicks (TickType_t xTicksToCatchUp)
- {
- BaseType_t xYieldOccurred;
- BaseType_t D.7870;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.75_1 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.75_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vTaskSuspendAll ();
- # DEBUG BEGIN_STMT
- xPendedTicks.76_2 = xPendedTicks;
- _3 = xTicksToCatchUp + xPendedTicks.76_2;
- xPendedTicks = _3;
- # DEBUG BEGIN_STMT
- xYieldOccurred = xTaskResumeAll ();
- # DEBUG BEGIN_STMT
- D.7870 = xYieldOccurred;
- return D.7870;
- }
- uxTaskGetSystemState (struct TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime)
- {
- UBaseType_t uxQueue;
- UBaseType_t uxTask;
- UBaseType_t D.7857;
- long unsigned int D.7853;
- long unsigned int D.7852;
- long unsigned int D.7851;
- long unsigned int D.7850;
- long unsigned int D.7849;
- <bb 2> :
- # DEBUG BEGIN_STMT
- uxTask = 0;
- uxQueue = 5;
- # DEBUG BEGIN_STMT
- vTaskSuspendAll ();
- # DEBUG BEGIN_STMT
- uxCurrentNumberOfTasks.72_1 = uxCurrentNumberOfTasks;
- if (uxArraySize >= uxCurrentNumberOfTasks.72_1)
- goto <bb 3>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxQueue = uxQueue + 4294967295;
- # DEBUG BEGIN_STMT
- _2 = uxTask * 36;
- _3 = pxTaskStatusArray + _2;
- _4 = &pxReadyTasksLists[uxQueue];
- D.7849 = prvListTasksWithinSingleList (_3, _4, 1);
- uxTask = D.7849 + uxTask;
- # DEBUG BEGIN_STMT
- if (uxQueue != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- _5 = uxTask * 36;
- _6 = pxTaskStatusArray + _5;
- pxDelayedTaskList.73_7 = pxDelayedTaskList;
- D.7850 = prvListTasksWithinSingleList (_6, pxDelayedTaskList.73_7, 2);
- uxTask = D.7850 + uxTask;
- # DEBUG BEGIN_STMT
- _8 = uxTask * 36;
- _9 = pxTaskStatusArray + _8;
- pxOverflowDelayedTaskList.74_10 = pxOverflowDelayedTaskList;
- D.7851 = prvListTasksWithinSingleList (_9, pxOverflowDelayedTaskList.74_10, 2);
- uxTask = D.7851 + uxTask;
- # DEBUG BEGIN_STMT
- _11 = uxTask * 36;
- _12 = pxTaskStatusArray + _11;
- D.7852 = prvListTasksWithinSingleList (_12, &xTasksWaitingTermination, 4);
- uxTask = D.7852 + uxTask;
- # DEBUG BEGIN_STMT
- _13 = uxTask * 36;
- _14 = pxTaskStatusArray + _13;
- D.7853 = prvListTasksWithinSingleList (_14, &xSuspendedTaskList, 3);
- uxTask = D.7853 + uxTask;
- # DEBUG BEGIN_STMT
- if (pulTotalRunTime != 0B)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- *pulTotalRunTime = 0;
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTaskResumeAll ();
- # DEBUG BEGIN_STMT
- D.7857 = uxTask;
- return D.7857;
- }
- xTaskGetHandle (const char * pcNameToQuery)
- {
- struct TCB_t * pxTCB;
- UBaseType_t uxQueue;
- struct tskTaskControlBlock * D.7828;
- <bb 2> :
- # DEBUG BEGIN_STMT
- uxQueue = 5;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = strlen (pcNameToQuery);
- if (_1 > 9)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vTaskSuspendAll ();
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxQueue = uxQueue + 4294967295;
- # DEBUG BEGIN_STMT
- _2 = &pxReadyTasksLists[uxQueue];
- pxTCB = prvSearchForNameWithinSingleList (_2, pcNameToQuery);
- # DEBUG BEGIN_STMT
- if (pxTCB != 0B)
- goto <bb 8>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- if (uxQueue != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- if (pxTCB == 0B)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- pxDelayedTaskList.70_3 = pxDelayedTaskList;
- pxTCB = prvSearchForNameWithinSingleList (pxDelayedTaskList.70_3, pcNameToQuery);
- <bb 10> :
- # DEBUG BEGIN_STMT
- if (pxTCB == 0B)
- goto <bb 11>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- pxOverflowDelayedTaskList.71_4 = pxOverflowDelayedTaskList;
- pxTCB = prvSearchForNameWithinSingleList (pxOverflowDelayedTaskList.71_4, pcNameToQuery);
- <bb 12> :
- # DEBUG BEGIN_STMT
- if (pxTCB == 0B)
- goto <bb 13>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- pxTCB = prvSearchForNameWithinSingleList (&xSuspendedTaskList, pcNameToQuery);
- <bb 14> :
- # DEBUG BEGIN_STMT
- if (pxTCB == 0B)
- goto <bb 15>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- pxTCB = prvSearchForNameWithinSingleList (&xTasksWaitingTermination, pcNameToQuery);
- <bb 16> :
- # DEBUG BEGIN_STMT
- xTaskResumeAll ();
- # DEBUG BEGIN_STMT
- D.7828 = pxTCB;
- return D.7828;
- }
- prvSearchForNameWithinSingleList (struct List_t * pxList, const char * pcNameToQuery)
- {
- struct List_t * const pxConstList;
- struct List_t * const pxConstList;
- BaseType_t xBreakLoop;
- char cNextChar;
- UBaseType_t x;
- struct TCB_t * pxReturn;
- struct TCB_t * pxFirstTCB;
- struct TCB_t * pxNextTCB;
- struct TCB_t * D.7845;
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxReturn = 0B;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = pxList->uxNumberOfItems;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pxConstList = pxList;
- # DEBUG BEGIN_STMT
- _2 = pxConstList->pxIndex;
- _3 = _2->pxNext;
- pxConstList->pxIndex = _3;
- # DEBUG BEGIN_STMT
- _4 = pxConstList->pxIndex;
- _5 = &pxConstList->xListEnd;
- if (_4 == _5)
- goto <bb 4>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- _6 = pxConstList->pxIndex;
- _7 = _6->pxNext;
- pxConstList->pxIndex = _7;
- <bb 5> :
- # DEBUG BEGIN_STMT
- _8 = pxConstList->pxIndex;
- pxFirstTCB = _8->pvOwner;
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxConstList = pxList;
- # DEBUG BEGIN_STMT
- _9 = pxConstList->pxIndex;
- _10 = _9->pxNext;
- pxConstList->pxIndex = _10;
- # DEBUG BEGIN_STMT
- _11 = pxConstList->pxIndex;
- _12 = &pxConstList->xListEnd;
- if (_11 == _12)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- _13 = pxConstList->pxIndex;
- _14 = _13->pxNext;
- pxConstList->pxIndex = _14;
- <bb 8> :
- # DEBUG BEGIN_STMT
- _15 = pxConstList->pxIndex;
- pxNextTCB = _15->pvOwner;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xBreakLoop = 0;
- # DEBUG BEGIN_STMT
- x = 0;
- goto <bb 15>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- cNextChar = pxNextTCB->pcTaskName[x];
- # DEBUG BEGIN_STMT
- _16 = pcNameToQuery + x;
- _17 = *_16;
- if (cNextChar != _17)
- goto <bb 10>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- xBreakLoop = 1;
- goto <bb 13>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- if (cNextChar == 0)
- goto <bb 12>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- pxReturn = pxNextTCB;
- # DEBUG BEGIN_STMT
- xBreakLoop = 1;
- <bb 13> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xBreakLoop != 0)
- goto <bb 16>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- x = x + 1;
- <bb 15> :
- # DEBUG BEGIN_STMT
- if (x <= 9)
- goto <bb 9>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- if (pxReturn != 0B)
- goto <bb 18>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 17> :
- # DEBUG BEGIN_STMT
- if (pxNextTCB != pxFirstTCB)
- goto <bb 6>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 18> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.7845 = pxReturn;
- return D.7845;
- }
- pcTaskGetName (struct tskTaskControlBlock * xTaskToQuery)
- {
- struct TCB_t * pxTCB;
- char * D.7815;
- struct TCB_t * iftmp.69;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTaskToQuery == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- iftmp.69 = pxCurrentTCB;
- goto <bb 5>; [INV]
- <bb 4> :
- iftmp.69 = xTaskToQuery;
- <bb 5> :
- pxTCB = iftmp.69;
- # DEBUG BEGIN_STMT
- if (pxTCB == 0B)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.7815 = &pxTCB->pcTaskName[0];
- return D.7815;
- }
- uxTaskGetNumberOfTasks ()
- {
- UBaseType_t D.7807;
- <bb 2> :
- # DEBUG BEGIN_STMT
- D.7807 = uxCurrentNumberOfTasks;
- return D.7807;
- }
- xTaskGetTickCountFromISR ()
- {
- UBaseType_t uxSavedInterruptStatus;
- TickType_t xReturn;
- TickType_t D.7805;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortValidateInterruptPriority ();
- # DEBUG BEGIN_STMT
- uxSavedInterruptStatus = 0;
- # DEBUG BEGIN_STMT
- xReturn = xTickCount;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.7805 = xReturn;
- return D.7805;
- }
- xTaskGetTickCount ()
- {
- TickType_t xTicks;
- TickType_t D.7803;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTicks = xTickCount;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.7803 = xTicks;
- return D.7803;
- }
- xTaskResumeAll ()
- {
- TickType_t xPendedCounts;
- struct ListItem_t * const pxIndex;
- struct List_t * const pxList;
- struct List_t * const pxList;
- BaseType_t xAlreadyYielded;
- struct TCB_t * pxTCB;
- BaseType_t D.7801;
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxTCB = 0B;
- # DEBUG BEGIN_STMT
- xAlreadyYielded = 0;
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.62_1 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.62_1 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.63_2 = uxSchedulerSuspended;
- _3 = uxSchedulerSuspended.63_2 + 4294967295;
- uxSchedulerSuspended = _3;
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.64_4 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.64_4 == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 25>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- uxCurrentNumberOfTasks.65_5 = uxCurrentNumberOfTasks;
- if (uxCurrentNumberOfTasks.65_5 != 0)
- goto <bb 15>; [INV]
- else
- goto <bb 25>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- _6 = xPendingReadyList.xListEnd.pxNext;
- pxTCB = _6->pvOwner;
- # DEBUG BEGIN_STMT
- pxList = pxTCB->xEventListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _7 = pxTCB->xEventListItem.pxNext;
- _8 = pxTCB->xEventListItem.pxPrevious;
- _7->pxPrevious = _8;
- # DEBUG BEGIN_STMT
- _9 = pxTCB->xEventListItem.pxPrevious;
- _10 = pxTCB->xEventListItem.pxNext;
- _9->pxNext = _10;
- # DEBUG BEGIN_STMT
- _11 = pxList->pxIndex;
- _12 = &pxTCB->xEventListItem;
- if (_11 == _12)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- _13 = pxTCB->xEventListItem.pxPrevious;
- pxList->pxIndex = _13;
- <bb 9> :
- # DEBUG BEGIN_STMT
- pxTCB->xEventListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _14 = pxList->uxNumberOfItems;
- _15 = _14 + 4294967295;
- pxList->uxNumberOfItems = _15;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("" : : : "memory");
- # DEBUG BEGIN_STMT
- pxList = pxTCB->xStateListItem.pvContainer;
- # DEBUG BEGIN_STMT
- _16 = pxTCB->xStateListItem.pxNext;
- _17 = pxTCB->xStateListItem.pxPrevious;
- _16->pxPrevious = _17;
- # DEBUG BEGIN_STMT
- _18 = pxTCB->xStateListItem.pxPrevious;
- _19 = pxTCB->xStateListItem.pxNext;
- _18->pxNext = _19;
- # DEBUG BEGIN_STMT
- _20 = pxList->pxIndex;
- _21 = &pxTCB->xStateListItem;
- if (_20 == _21)
- goto <bb 10>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- _22 = pxTCB->xStateListItem.pxPrevious;
- pxList->pxIndex = _22;
- <bb 11> :
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pvContainer = 0B;
- # DEBUG BEGIN_STMT
- _23 = pxList->uxNumberOfItems;
- _24 = _23 + 4294967295;
- pxList->uxNumberOfItems = _24;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _25 = pxTCB->uxPriority;
- uxTopReadyPriority.66_26 = uxTopReadyPriority;
- if (_25 > uxTopReadyPriority.66_26)
- goto <bb 12>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- _27 = pxTCB->uxPriority;
- uxTopReadyPriority = _27;
- <bb 13> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _28 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_28].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _29 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _29;
- # DEBUG BEGIN_STMT
- _30 = pxIndex->pxPrevious;
- _31 = &pxTCB->xStateListItem;
- _30->pxNext = _31;
- # DEBUG BEGIN_STMT
- _32 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _32;
- # DEBUG BEGIN_STMT
- _33 = pxTCB->uxPriority;
- _34 = &pxReadyTasksLists[_33];
- pxTCB->xStateListItem.pvContainer = _34;
- # DEBUG BEGIN_STMT
- _35 = pxTCB->uxPriority;
- _36 = pxReadyTasksLists[_35].uxNumberOfItems;
- _37 = _36 + 1;
- pxReadyTasksLists[_35].uxNumberOfItems = _37;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _38 = pxTCB->uxPriority;
- pxCurrentTCB.67_39 = pxCurrentTCB;
- _40 = pxCurrentTCB.67_39->uxPriority;
- if (_38 >= _40)
- goto <bb 14>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- <bb 15> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _41 = xPendingReadyList.uxNumberOfItems;
- if (_41 != 0)
- goto <bb 7>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- if (pxTCB != 0B)
- goto <bb 17>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 17> :
- # DEBUG BEGIN_STMT
- prvResetNextTaskUnblockTime ();
- <bb 18> :
- # DEBUG BEGIN_STMT
- xPendedCounts = xPendedTicks;
- # DEBUG BEGIN_STMT
- if (xPendedCounts != 0)
- goto <bb 19>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 19> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _42 = xTaskIncrementTick ();
- if (_42 != 0)
- goto <bb 20>; [INV]
- else
- goto <bb 21>; [INV]
- <bb 20> :
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- <bb 21> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xPendedCounts = xPendedCounts + 4294967295;
- # DEBUG BEGIN_STMT
- if (xPendedCounts != 0)
- goto <bb 19>; [INV]
- else
- goto <bb 22>; [INV]
- <bb 22> :
- # DEBUG BEGIN_STMT
- xPendedTicks = 0;
- <bb 23> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xYieldPending.68_43 = xYieldPending;
- if (xYieldPending.68_43 != 0)
- goto <bb 24>; [INV]
- else
- goto <bb 25>; [INV]
- <bb 24> :
- # DEBUG BEGIN_STMT
- xAlreadyYielded = 1;
- # DEBUG BEGIN_STMT
- _44 = 3758157060B;
- *_44 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 25> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- D.7801 = xAlreadyYielded;
- return D.7801;
- }
- vTaskSuspendAll ()
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.61_1 = uxSchedulerSuspended;
- _2 = uxSchedulerSuspended.61_1 + 1;
- uxSchedulerSuspended = _2;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("" : : : "memory");
- return;
- }
- vTaskEndScheduler ()
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- # DEBUG BEGIN_STMT
- xSchedulerRunning = 0;
- # DEBUG BEGIN_STMT
- vPortEndScheduler ();
- return;
- }
- vTaskStartScheduler ()
- {
- BaseType_t xReturn;
- long unsigned int vol.57;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xReturn = xTaskCreate (prvIdleTask, "IDLE", 90, 0B, 0, &xIdleTaskHandle);
- # DEBUG BEGIN_STMT
- if (xReturn == 1)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- xReturn = xTimerCreateTimerTask ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xReturn == 1)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- # DEBUG BEGIN_STMT
- xNextTaskUnblockTime = 4294967295;
- # DEBUG BEGIN_STMT
- xSchedulerRunning = 1;
- # DEBUG BEGIN_STMT
- xTickCount = 0;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = xPortStartScheduler ();
- goto <bb 9>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- if (xReturn == -1)
- goto <bb 7>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 8>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vol.57 = uxTopUsedPriority;
- return;
- }
- xTaskResumeFromISR (struct tskTaskControlBlock * xTaskToResume)
- {
- struct ListItem_t * const pxIndex;
- UBaseType_t uxSavedInterruptStatus;
- struct TCB_t * const pxTCB;
- BaseType_t xYieldRequired;
- BaseType_t D.7757;
- <bb 2> :
- # DEBUG BEGIN_STMT
- xYieldRequired = 0;
- # DEBUG BEGIN_STMT
- pxTCB = xTaskToResume;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTaskToResume == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortValidateInterruptPriority ();
- # DEBUG BEGIN_STMT
- uxSavedInterruptStatus = ulPortRaiseBASEPRI ();
- # DEBUG BEGIN_STMT
- _1 = prvTaskIsTaskSuspended (pxTCB);
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.54_2 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.54_2 == 0)
- goto <bb 7>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- _3 = pxTCB->uxPriority;
- pxCurrentTCB.55_4 = pxCurrentTCB;
- _5 = pxCurrentTCB.55_4->uxPriority;
- if (_3 >= _5)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- xYieldRequired = 1;
- # DEBUG BEGIN_STMT
- xYieldPending = 1;
- <bb 9> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _6 = &pxTCB->xStateListItem;
- uxListRemove (_6);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _7 = pxTCB->uxPriority;
- uxTopReadyPriority.56_8 = uxTopReadyPriority;
- if (_7 > uxTopReadyPriority.56_8)
- goto <bb 10>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- _9 = pxTCB->uxPriority;
- uxTopReadyPriority = _9;
- <bb 11> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _10 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_10].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _11 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _11;
- # DEBUG BEGIN_STMT
- _12 = pxIndex->pxPrevious;
- _13 = &pxTCB->xStateListItem;
- _12->pxNext = _13;
- # DEBUG BEGIN_STMT
- _14 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _14;
- # DEBUG BEGIN_STMT
- _15 = pxTCB->uxPriority;
- _16 = &pxReadyTasksLists[_15];
- pxTCB->xStateListItem.pvContainer = _16;
- # DEBUG BEGIN_STMT
- _17 = pxTCB->uxPriority;
- _18 = pxReadyTasksLists[_17].uxNumberOfItems;
- _19 = _18 + 1;
- pxReadyTasksLists[_17].uxNumberOfItems = _19;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 13>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- _20 = &pxTCB->xEventListItem;
- vListInsertEnd (&xPendingReadyList, _20);
- <bb 13> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortSetBASEPRI (uxSavedInterruptStatus);
- # DEBUG BEGIN_STMT
- D.7757 = xYieldRequired;
- return D.7757;
- }
- vTaskResume (struct tskTaskControlBlock * xTaskToResume)
- {
- struct ListItem_t * const pxIndex;
- struct TCB_t * const pxTCB;
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxTCB = xTaskToResume;
- # DEBUG BEGIN_STMT
- if (xTaskToResume == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.51_1 = pxCurrentTCB;
- if (pxTCB != pxCurrentTCB.51_1)
- goto <bb 6>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 6> :
- if (pxTCB != 0B)
- goto <bb 7>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- _2 = prvTaskIsTaskSuspended (pxTCB);
- if (_2 != 0)
- goto <bb 8>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _3 = &pxTCB->xStateListItem;
- uxListRemove (_3);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _4 = pxTCB->uxPriority;
- uxTopReadyPriority.52_5 = uxTopReadyPriority;
- if (_4 > uxTopReadyPriority.52_5)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- _6 = pxTCB->uxPriority;
- uxTopReadyPriority = _6;
- <bb 10> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _7 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_7].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _8 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _8;
- # DEBUG BEGIN_STMT
- _9 = pxIndex->pxPrevious;
- _10 = &pxTCB->xStateListItem;
- _9->pxNext = _10;
- # DEBUG BEGIN_STMT
- _11 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _11;
- # DEBUG BEGIN_STMT
- _12 = pxTCB->uxPriority;
- _13 = &pxReadyTasksLists[_12];
- pxTCB->xStateListItem.pvContainer = _13;
- # DEBUG BEGIN_STMT
- _14 = pxTCB->uxPriority;
- _15 = pxReadyTasksLists[_14].uxNumberOfItems;
- _16 = _15 + 1;
- pxReadyTasksLists[_14].uxNumberOfItems = _16;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _17 = pxTCB->uxPriority;
- pxCurrentTCB.53_18 = pxCurrentTCB;
- _19 = pxCurrentTCB.53_18->uxPriority;
- if (_17 >= _19)
- goto <bb 11>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- _20 = 3758157060B;
- *_20 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 12> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- <bb 13> :
- # DEBUG BEGIN_STMT
- return;
- }
- prvTaskIsTaskSuspended (struct tskTaskControlBlock * const xTask)
- {
- const struct TCB_t * const pxTCB;
- BaseType_t xReturn;
- BaseType_t D.7742;
- <bb 2> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- # DEBUG BEGIN_STMT
- pxTCB = xTask;
- # DEBUG BEGIN_STMT
- if (xTask == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = pxTCB->xStateListItem.pvContainer;
- if (_1 == &xSuspendedTaskList)
- goto <bb 6>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- _2 = pxTCB->xEventListItem.pvContainer;
- if (_2 != &xPendingReadyList)
- goto <bb 7>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- _3 = pxTCB->xEventListItem.pvContainer;
- if (_3 == 0B)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- xReturn = 1;
- <bb 9> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.7742 = xReturn;
- return D.7742;
- }
- vTaskSuspend (struct tskTaskControlBlock * xTaskToSuspend)
- {
- BaseType_t x;
- struct TCB_t * pxTCB;
- struct TCB_t * iftmp.45;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- if (xTaskToSuspend == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- iftmp.45 = pxCurrentTCB;
- goto <bb 5>; [INV]
- <bb 4> :
- iftmp.45 = xTaskToSuspend;
- <bb 5> :
- pxTCB = iftmp.45;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = &pxTCB->xStateListItem;
- _2 = uxListRemove (_1);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _3 = pxTCB->xEventListItem.pvContainer;
- if (_3 != 0B)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- _4 = &pxTCB->xEventListItem;
- uxListRemove (_4);
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _5 = &pxTCB->xStateListItem;
- vListInsertEnd (&xSuspendedTaskList, _5);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- x = 0;
- goto <bb 11>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- _6 = pxTCB->ucNotifyState[x];
- if (_6 == 1)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- pxTCB->ucNotifyState[x] = 0;
- <bb 10> :
- # DEBUG BEGIN_STMT
- x = x + 1;
- <bb 11> :
- # DEBUG BEGIN_STMT
- if (x <= 0)
- goto <bb 8>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- xSchedulerRunning.46_7 = xSchedulerRunning;
- if (xSchedulerRunning.46_7 != 0)
- goto <bb 13>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- prvResetNextTaskUnblockTime ();
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.47_8 = pxCurrentTCB;
- if (pxTCB == pxCurrentTCB.47_8)
- goto <bb 15>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- xSchedulerRunning.48_9 = xSchedulerRunning;
- if (xSchedulerRunning.48_9 != 0)
- goto <bb 16>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.49_10 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.49_10 != 0)
- goto <bb 17>; [INV]
- else
- goto <bb 19>; [INV]
- <bb 17> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 18> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 18>; [INV]
- <bb 19> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _11 = 3758157060B;
- *_11 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- goto <bb 23>; [INV]
- <bb 20> :
- # DEBUG BEGIN_STMT
- _12 = xSuspendedTaskList.uxNumberOfItems;
- uxCurrentNumberOfTasks.50_13 = uxCurrentNumberOfTasks;
- if (_12 == uxCurrentNumberOfTasks.50_13)
- goto <bb 21>; [INV]
- else
- goto <bb 22>; [INV]
- <bb 21> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB = 0B;
- goto <bb 23>; [INV]
- <bb 22> :
- # DEBUG BEGIN_STMT
- vTaskSwitchContext ();
- <bb 23> :
- # DEBUG BEGIN_STMT
- return;
- }
- vTaskPrioritySet (struct tskTaskControlBlock * xTask, UBaseType_t uxNewPriority)
- {
- struct ListItem_t * const pxIndex;
- BaseType_t xYieldRequired;
- UBaseType_t uxPriorityUsedOnEntry;
- UBaseType_t uxCurrentBasePriority;
- struct TCB_t * pxTCB;
- struct TCB_t * iftmp.40;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xYieldRequired = 0;
- # DEBUG BEGIN_STMT
- if (uxNewPriority > 4)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxNewPriority > 4)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- uxNewPriority = 4;
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- if (xTask == 0B)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- iftmp.40 = pxCurrentTCB;
- goto <bb 10>; [INV]
- <bb 9> :
- iftmp.40 = xTask;
- <bb 10> :
- pxTCB = iftmp.40;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxCurrentBasePriority = pxTCB->uxBasePriority;
- # DEBUG BEGIN_STMT
- if (uxCurrentBasePriority != uxNewPriority)
- goto <bb 11>; [INV]
- else
- goto <bb 27>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- if (uxNewPriority > uxCurrentBasePriority)
- goto <bb 12>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.41_1 = pxCurrentTCB;
- if (pxTCB != pxCurrentTCB.41_1)
- goto <bb 13>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.42_2 = pxCurrentTCB;
- _3 = pxCurrentTCB.42_2->uxPriority;
- if (uxNewPriority >= _3)
- goto <bb 14>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- xYieldRequired = 1;
- goto <bb 17>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.43_4 = pxCurrentTCB;
- if (pxTCB == pxCurrentTCB.43_4)
- goto <bb 16>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- xYieldRequired = 1;
- <bb 17> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxPriorityUsedOnEntry = pxTCB->uxPriority;
- # DEBUG BEGIN_STMT
- _5 = pxTCB->uxBasePriority;
- _6 = pxTCB->uxPriority;
- if (_5 == _6)
- goto <bb 18>; [INV]
- else
- goto <bb 19>; [INV]
- <bb 18> :
- # DEBUG BEGIN_STMT
- pxTCB->uxPriority = uxNewPriority;
- <bb 19> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->uxBasePriority = uxNewPriority;
- # DEBUG BEGIN_STMT
- _7 = pxTCB->xEventListItem.xItemValue;
- _8 = (signed int) _7;
- if (_8 >= 0)
- goto <bb 20>; [INV]
- else
- goto <bb 21>; [INV]
- <bb 20> :
- # DEBUG BEGIN_STMT
- _9 = 5 - uxNewPriority;
- pxTCB->xEventListItem.xItemValue = _9;
- <bb 21> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _10 = pxTCB->xStateListItem.pvContainer;
- _11 = &pxReadyTasksLists[uxPriorityUsedOnEntry];
- if (_10 == _11)
- goto <bb 22>; [INV]
- else
- goto <bb 25>; [INV]
- <bb 22> :
- # DEBUG BEGIN_STMT
- _12 = &pxTCB->xStateListItem;
- _13 = uxListRemove (_12);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _14 = pxTCB->uxPriority;
- uxTopReadyPriority.44_15 = uxTopReadyPriority;
- if (_14 > uxTopReadyPriority.44_15)
- goto <bb 23>; [INV]
- else
- goto <bb 24>; [INV]
- <bb 23> :
- # DEBUG BEGIN_STMT
- _16 = pxTCB->uxPriority;
- uxTopReadyPriority = _16;
- <bb 24> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _17 = pxTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_17].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _18 = pxIndex->pxPrevious;
- pxTCB->xStateListItem.pxPrevious = _18;
- # DEBUG BEGIN_STMT
- _19 = pxIndex->pxPrevious;
- _20 = &pxTCB->xStateListItem;
- _19->pxNext = _20;
- # DEBUG BEGIN_STMT
- _21 = &pxTCB->xStateListItem;
- pxIndex->pxPrevious = _21;
- # DEBUG BEGIN_STMT
- _22 = pxTCB->uxPriority;
- _23 = &pxReadyTasksLists[_22];
- pxTCB->xStateListItem.pvContainer = _23;
- # DEBUG BEGIN_STMT
- _24 = pxTCB->uxPriority;
- _25 = pxReadyTasksLists[_24].uxNumberOfItems;
- _26 = _25 + 1;
- pxReadyTasksLists[_24].uxNumberOfItems = _26;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- <bb 25> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xYieldRequired != 0)
- goto <bb 26>; [INV]
- else
- goto <bb 27>; [INV]
- <bb 26> :
- # DEBUG BEGIN_STMT
- _27 = 3758157060B;
- *_27 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 27> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- return;
- }
- uxTaskPriorityGetFromISR (struct tskTaskControlBlock * const xTask)
- {
- UBaseType_t uxSavedInterruptState;
- UBaseType_t uxReturn;
- const struct TCB_t * pxTCB;
- UBaseType_t D.7646;
- const struct TCB_t * iftmp.39;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortValidateInterruptPriority ();
- # DEBUG BEGIN_STMT
- uxSavedInterruptState = ulPortRaiseBASEPRI ();
- # DEBUG BEGIN_STMT
- if (xTask == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- iftmp.39 = pxCurrentTCB;
- goto <bb 5>; [INV]
- <bb 4> :
- iftmp.39 = xTask;
- <bb 5> :
- pxTCB = iftmp.39;
- # DEBUG BEGIN_STMT
- uxReturn = pxTCB->uxPriority;
- # DEBUG BEGIN_STMT
- vPortSetBASEPRI (uxSavedInterruptState);
- # DEBUG BEGIN_STMT
- D.7646 = uxReturn;
- return D.7646;
- }
- uxTaskPriorityGet (struct tskTaskControlBlock * const xTask)
- {
- UBaseType_t uxReturn;
- const struct TCB_t * pxTCB;
- UBaseType_t D.7640;
- const struct TCB_t * iftmp.38;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- if (xTask == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- iftmp.38 = pxCurrentTCB;
- goto <bb 5>; [INV]
- <bb 4> :
- iftmp.38 = xTask;
- <bb 5> :
- pxTCB = iftmp.38;
- # DEBUG BEGIN_STMT
- uxReturn = pxTCB->uxPriority;
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- D.7640 = uxReturn;
- return D.7640;
- }
- eTaskGetState (struct tskTaskControlBlock * xTask)
- {
- BaseType_t x;
- const struct TCB_t * const pxTCB;
- const struct List_t * pxOverflowedDelayedList;
- const struct List_t * pxDelayedList;
- const struct List_t * pxStateList;
- eTaskState eReturn;
- eTaskState D.7634;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxTCB = xTask;
- # DEBUG BEGIN_STMT
- if (pxTCB == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxCurrentTCB.37_1 = pxCurrentTCB;
- if (pxTCB == pxCurrentTCB.37_1)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- eReturn = 0;
- goto <bb 22>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- pxStateList = pxTCB->xStateListItem.pvContainer;
- # DEBUG BEGIN_STMT
- pxDelayedList = pxDelayedTaskList;
- # DEBUG BEGIN_STMT
- pxOverflowedDelayedList = pxOverflowDelayedTaskList;
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- if (pxStateList == pxDelayedList)
- goto <bb 9>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 8> :
- if (pxStateList == pxOverflowedDelayedList)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- eReturn = 2;
- goto <bb 22>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- if (pxStateList == &xSuspendedTaskList)
- goto <bb 11>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- _2 = pxTCB->xEventListItem.pvContainer;
- if (_2 == 0B)
- goto <bb 12>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- eReturn = 3;
- # DEBUG BEGIN_STMT
- x = 0;
- goto <bb 16>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- _3 = pxTCB->ucNotifyState[x];
- if (_3 == 1)
- goto <bb 14>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- eReturn = 2;
- # DEBUG BEGIN_STMT
- goto <bb 22>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- x = x + 1;
- <bb 16> :
- # DEBUG BEGIN_STMT
- if (x <= 0)
- goto <bb 13>; [INV]
- else
- goto <bb 22>; [INV]
- <bb 17> :
- # DEBUG BEGIN_STMT
- eReturn = 2;
- goto <bb 22>; [INV]
- <bb 18> :
- # DEBUG BEGIN_STMT
- if (pxStateList == &xTasksWaitingTermination)
- goto <bb 20>; [INV]
- else
- goto <bb 19>; [INV]
- <bb 19> :
- if (pxStateList == 0B)
- goto <bb 20>; [INV]
- else
- goto <bb 21>; [INV]
- <bb 20> :
- # DEBUG BEGIN_STMT
- eReturn = 4;
- goto <bb 22>; [INV]
- <bb 21> :
- # DEBUG BEGIN_STMT
- eReturn = 1;
- <bb 22> :
- # DEBUG BEGIN_STMT
- D.7634 = eReturn;
- return D.7634;
- }
- vTaskDelay (const TickType_t xTicksToDelay)
- {
- BaseType_t xAlreadyYielded;
- <bb 2> :
- # DEBUG BEGIN_STMT
- xAlreadyYielded = 0;
- # DEBUG BEGIN_STMT
- if (xTicksToDelay != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.36_1 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.36_1 != 0)
- goto <bb 4>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 5>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vTaskSuspendAll ();
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- prvAddCurrentTaskToDelayedList (xTicksToDelay, 0);
- # DEBUG BEGIN_STMT
- xAlreadyYielded = xTaskResumeAll ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xAlreadyYielded == 0)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- _2 = 3758157060B;
- *_2 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 9> :
- # DEBUG BEGIN_STMT
- return;
- }
- xTaskDelayUntil (TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement)
- {
- const TickType_t xConstTickCount;
- BaseType_t xShouldDelay;
- BaseType_t xAlreadyYielded;
- TickType_t xTimeToWake;
- BaseType_t D.7590;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xShouldDelay = 0;
- # DEBUG BEGIN_STMT
- if (pxPreviousWakeTime == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xTimeIncrement == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.22_1 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.22_1 != 0)
- goto <bb 9>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 10> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 10>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vTaskSuspendAll ();
- # DEBUG BEGIN_STMT
- xConstTickCount = xTickCount;
- # DEBUG BEGIN_STMT
- _2 = *pxPreviousWakeTime;
- xTimeToWake = xTimeIncrement + _2;
- # DEBUG BEGIN_STMT
- _3 = *pxPreviousWakeTime;
- if (xConstTickCount < _3)
- goto <bb 12>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- _4 = *pxPreviousWakeTime;
- if (xTimeToWake < _4)
- goto <bb 13>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 13> :
- if (xTimeToWake > xConstTickCount)
- goto <bb 14>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 14> :
- # DEBUG BEGIN_STMT
- xShouldDelay = 1;
- goto <bb 18>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- _5 = *pxPreviousWakeTime;
- if (xTimeToWake < _5)
- goto <bb 17>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 16> :
- if (xTimeToWake > xConstTickCount)
- goto <bb 17>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 17> :
- # DEBUG BEGIN_STMT
- xShouldDelay = 1;
- <bb 18> :
- # DEBUG BEGIN_STMT
- *pxPreviousWakeTime = xTimeToWake;
- # DEBUG BEGIN_STMT
- if (xShouldDelay != 0)
- goto <bb 19>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 19> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _6 = xTimeToWake - xConstTickCount;
- prvAddCurrentTaskToDelayedList (_6, 0);
- <bb 20> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xAlreadyYielded = xTaskResumeAll ();
- # DEBUG BEGIN_STMT
- if (xAlreadyYielded == 0)
- goto <bb 21>; [INV]
- else
- goto <bb 22>; [INV]
- <bb 21> :
- # DEBUG BEGIN_STMT
- _7 = 3758157060B;
- *_7 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 22> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.7590 = xShouldDelay;
- return D.7590;
- }
- vTaskDelete (struct tskTaskControlBlock * xTaskToDelete)
- {
- struct TCB_t * pxTCB;
- struct TCB_t * iftmp.12;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- if (xTaskToDelete == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- iftmp.12 = pxCurrentTCB;
- goto <bb 5>; [INV]
- <bb 4> :
- iftmp.12 = xTaskToDelete;
- <bb 5> :
- pxTCB = iftmp.12;
- # DEBUG BEGIN_STMT
- _1 = &pxTCB->xStateListItem;
- _2 = uxListRemove (_1);
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _3 = pxTCB->xEventListItem.pvContainer;
- if (_3 != 0B)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- _4 = &pxTCB->xEventListItem;
- uxListRemove (_4);
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxTaskNumber.13_5 = uxTaskNumber;
- _6 = uxTaskNumber.13_5 + 1;
- uxTaskNumber = _6;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.14_7 = pxCurrentTCB;
- if (pxTCB == pxCurrentTCB.14_7)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- _8 = &pxTCB->xStateListItem;
- vListInsertEnd (&xTasksWaitingTermination, _8);
- # DEBUG BEGIN_STMT
- uxDeletedTasksWaitingCleanUp.15_9 = uxDeletedTasksWaitingCleanUp;
- _10 = uxDeletedTasksWaitingCleanUp.15_9 + 1;
- uxDeletedTasksWaitingCleanUp = _10;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- uxCurrentNumberOfTasks.16_11 = uxCurrentNumberOfTasks;
- _12 = uxCurrentNumberOfTasks.16_11 + 4294967295;
- uxCurrentNumberOfTasks = _12;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- prvDeleteTCB (pxTCB);
- # DEBUG BEGIN_STMT
- prvResetNextTaskUnblockTime ();
- <bb 10> :
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- xSchedulerRunning.17_13 = xSchedulerRunning;
- if (xSchedulerRunning.17_13 != 0)
- goto <bb 11>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.18_14 = pxCurrentTCB;
- if (pxTCB == pxCurrentTCB.18_14)
- goto <bb 12>; [INV]
- else
- goto <bb 16>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- uxSchedulerSuspended.19_15 = uxSchedulerSuspended;
- if (uxSchedulerSuspended.19_15 != 0)
- goto <bb 13>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 14>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _16 = 3758157060B;
- *_16 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 16> :
- # DEBUG BEGIN_STMT
- return;
- }
- prvAddNewTaskToReadyList (struct TCB_t * pxNewTCB)
- {
- struct ListItem_t * const pxIndex;
- <bb 2> :
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- uxCurrentNumberOfTasks.2_1 = uxCurrentNumberOfTasks;
- _2 = uxCurrentNumberOfTasks.2_1 + 1;
- uxCurrentNumberOfTasks = _2;
- # DEBUG BEGIN_STMT
- pxCurrentTCB.3_3 = pxCurrentTCB;
- if (pxCurrentTCB.3_3 == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB = pxNewTCB;
- # DEBUG BEGIN_STMT
- uxCurrentNumberOfTasks.4_4 = uxCurrentNumberOfTasks;
- if (uxCurrentNumberOfTasks.4_4 == 1)
- goto <bb 4>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- prvInitialiseTaskLists ();
- goto <bb 8>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- xSchedulerRunning.5_5 = xSchedulerRunning;
- if (xSchedulerRunning.5_5 == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.6_6 = pxCurrentTCB;
- _7 = pxCurrentTCB.6_6->uxPriority;
- _8 = pxNewTCB->uxPriority;
- if (_7 <= _8)
- goto <bb 7>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB = pxNewTCB;
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxTaskNumber.7_9 = uxTaskNumber;
- _10 = uxTaskNumber.7_9 + 1;
- uxTaskNumber = _10;
- # DEBUG BEGIN_STMT
- uxTaskNumber.8_11 = uxTaskNumber;
- pxNewTCB->uxTCBNumber = uxTaskNumber.8_11;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _12 = pxNewTCB->uxPriority;
- uxTopReadyPriority.9_13 = uxTopReadyPriority;
- if (_12 > uxTopReadyPriority.9_13)
- goto <bb 9>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- _14 = pxNewTCB->uxPriority;
- uxTopReadyPriority = _14;
- <bb 10> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _15 = pxNewTCB->uxPriority;
- pxIndex = pxReadyTasksLists[_15].pxIndex;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxNewTCB->xStateListItem.pxNext = pxIndex;
- # DEBUG BEGIN_STMT
- _16 = pxIndex->pxPrevious;
- pxNewTCB->xStateListItem.pxPrevious = _16;
- # DEBUG BEGIN_STMT
- _17 = pxIndex->pxPrevious;
- _18 = &pxNewTCB->xStateListItem;
- _17->pxNext = _18;
- # DEBUG BEGIN_STMT
- _19 = &pxNewTCB->xStateListItem;
- pxIndex->pxPrevious = _19;
- # DEBUG BEGIN_STMT
- _20 = pxNewTCB->uxPriority;
- _21 = &pxReadyTasksLists[_20];
- pxNewTCB->xStateListItem.pvContainer = _21;
- # DEBUG BEGIN_STMT
- _22 = pxNewTCB->uxPriority;
- _23 = pxReadyTasksLists[_22].uxNumberOfItems;
- _24 = _23 + 1;
- pxReadyTasksLists[_22].uxNumberOfItems = _24;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- xSchedulerRunning.10_25 = xSchedulerRunning;
- if (xSchedulerRunning.10_25 != 0)
- goto <bb 11>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- pxCurrentTCB.11_26 = pxCurrentTCB;
- _27 = pxCurrentTCB.11_26->uxPriority;
- _28 = pxNewTCB->uxPriority;
- if (_27 < _28)
- goto <bb 12>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- _29 = 3758157060B;
- *_29 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 13> :
- # DEBUG BEGIN_STMT
- return;
- }
- 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)
- {
- UBaseType_t x;
- StackType_t * pxTopOfStack;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = pxNewTCB->pxStack;
- _2 = ulStackDepth * 4;
- memset (_1, 165, _2);
- # DEBUG BEGIN_STMT
- _3 = pxNewTCB->pxStack;
- _4 = ulStackDepth + 1073741823;
- _5 = _4 * 4;
- pxTopOfStack = _3 + _5;
- # DEBUG BEGIN_STMT
- pxTopOfStack.0_6 = (long unsigned int) pxTopOfStack;
- _7 = pxTopOfStack.0_6 & 4294967288;
- pxTopOfStack = (StackType_t *) _7;
- # DEBUG BEGIN_STMT
- pxTopOfStack.1_8 = (long unsigned int) pxTopOfStack;
- _9 = pxTopOfStack.1_8 & 7;
- if (_9 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (pcName != 0B)
- goto <bb 6>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- x = 0;
- goto <bb 9>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- _10 = pcName + x;
- _11 = *_10;
- pxNewTCB->pcTaskName[x] = _11;
- # DEBUG BEGIN_STMT
- _12 = pcName + x;
- _13 = *_12;
- if (_13 == 0)
- goto <bb 10>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- x = x + 1;
- <bb 9> :
- # DEBUG BEGIN_STMT
- if (x <= 9)
- goto <bb 7>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- pxNewTCB->pcTaskName[9] = 0;
- goto <bb 12>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- pxNewTCB->pcTaskName[0] = 0;
- <bb 12> :
- # DEBUG BEGIN_STMT
- if (uxPriority > 4)
- goto <bb 13>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 14>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxPriority > 4)
- goto <bb 16>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- uxPriority = 4;
- <bb 17> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxNewTCB->uxPriority = uxPriority;
- # DEBUG BEGIN_STMT
- pxNewTCB->uxBasePriority = uxPriority;
- # DEBUG BEGIN_STMT
- pxNewTCB->uxMutexesHeld = 0;
- # DEBUG BEGIN_STMT
- _14 = &pxNewTCB->xStateListItem;
- vListInitialiseItem (_14);
- # DEBUG BEGIN_STMT
- _15 = &pxNewTCB->xEventListItem;
- vListInitialiseItem (_15);
- # DEBUG BEGIN_STMT
- pxNewTCB->xStateListItem.pvOwner = pxNewTCB;
- # DEBUG BEGIN_STMT
- _16 = 5 - uxPriority;
- pxNewTCB->xEventListItem.xItemValue = _16;
- # DEBUG BEGIN_STMT
- pxNewTCB->xEventListItem.pvOwner = pxNewTCB;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _17 = &pxNewTCB->ulNotifiedValue[0];
- memset (_17, 0, 4);
- # DEBUG BEGIN_STMT
- _18 = &pxNewTCB->ucNotifyState[0];
- memset (_18, 0, 1);
- # DEBUG BEGIN_STMT
- pxNewTCB->ucDelayAborted = 0;
- # DEBUG BEGIN_STMT
- _19 = pxPortInitialiseStack (pxTopOfStack, pxTaskCode, pvParameters);
- pxNewTCB->pxTopOfStack = _19;
- # DEBUG BEGIN_STMT
- if (pxCreatedTask != 0B)
- goto <bb 18>; [INV]
- else
- goto <bb 19>; [INV]
- <bb 18> :
- # DEBUG BEGIN_STMT
- *pxCreatedTask = pxNewTCB;
- <bb 19> :
- # DEBUG BEGIN_STMT
- return;
- }
- xTaskCreate (void (*TaskFunction_t) (void *) pxTaskCode, const char * const pcName, const uint16_t usStackDepth, void * const pvParameters, UBaseType_t uxPriority, struct tskTaskControlBlock * * const pxCreatedTask)
- {
- StackType_t * pxStack;
- BaseType_t xReturn;
- struct TCB_t * pxNewTCB;
- BaseType_t D.7508;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = (unsigned int) usStackDepth;
- _2 = _1 * 4;
- pxStack = pvPortMalloc (_2);
- # DEBUG BEGIN_STMT
- if (pxStack != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pxNewTCB = pvPortMalloc (88);
- # DEBUG BEGIN_STMT
- if (pxNewTCB != 0B)
- goto <bb 4>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- pxNewTCB->pxStack = pxStack;
- goto <bb 7>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- vPortFree (pxStack);
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- pxNewTCB = 0B;
- <bb 7> :
- # DEBUG BEGIN_STMT
- if (pxNewTCB != 0B)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- _3 = (long unsigned int) usStackDepth;
- prvInitialiseNewTask (pxTaskCode, pcName, _3, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, 0B);
- # DEBUG BEGIN_STMT
- prvAddNewTaskToReadyList (pxNewTCB);
- # DEBUG BEGIN_STMT
- xReturn = 1;
- goto <bb 10>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- xReturn = -1;
- <bb 10> :
- # DEBUG BEGIN_STMT
- D.7508 = xReturn;
- return D.7508;
- }
- __attribute__((always_inline))
- vPortSetBASEPRI (uint32_t ulNewMaskValue)
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue : "memory");
- return;
- }
- __attribute__((always_inline))
- ulPortRaiseBASEPRI ()
- {
- uint32_t ulNewBASEPRI;
- uint32_t ulOriginalBASEPRI;
- uint32_t D.7648;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mrs %0, basepri
- mov %1, %2
- msr basepri, %1
- isb
- dsb
- " : "=r" ulOriginalBASEPRI, "=r" ulNewBASEPRI : "i" 16 : "memory");
- # DEBUG BEGIN_STMT
- D.7648 = ulOriginalBASEPRI;
- return D.7648;
- }
- __attribute__((always_inline))
- vPortRaiseBASEPRI ()
- {
- uint32_t ulNewBASEPRI;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI : "i" 16 : "memory");
- return;
- }
|