12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888 |
- [INFO][runOnModule] Starting analysis for module: <stdin>
- [INFO][buildCallGraph] Building complete call graph
- ```mermaid
- graph TD
- %% Project Call Graph
- calculateCircleArea["calculateCircleArea\nDepth: 3\nCritical Points: 2"]
- calculateDistance["calculateDistance\nDepth: 3\nCritical Points: 2"]
- countSetBits["countSetBits\nDepth: 2\nCritical Points: 3"]:::target
- createDynamicArray["createDynamicArray\nDepth: 2\nCritical Points: 2"]
- createMatrix["createMatrix\nDepth: 2\nCritical Points: 2"]
- factorial["factorial\nDepth: 3\nCritical Points: 2"]
- findCentroid["findCentroid\nDepth: 3\nCritical Points: 2"]
- getErrorMessage["getErrorMessage\nDepth: 3\nCritical Points: 2"]
- insertNode["insertNode\nDepth: 2\nCritical Points: 2"]
- longestIncreasingSubsequence["longestIncreasingSubsequence\nDepth: 2\nCritical Points: 7"]:::target
- memoizedFib["memoizedFib\nDepth: 2\nCritical Points: 2"]:::target
- multiplyMatrices["multiplyMatrices\nDepth: 2\nCritical Points: 2"]
- performSimpleCalculations["performSimpleCalculations\nDepth: 3\nCritical Points: 7"]
- processMatrix["processMatrix\nDepth: 2\nCritical Points: 3"]:::target
- projectA_main["projectA_main\nDepth: 2\nCritical Points: 2"]
- projectB_main["projectB_main\nDepth: 1\nCritical Points: 5"]:::target
- pushBack["pushBack\nDepth: 2\nCritical Points: 2"]
- quickSort["quickSort\nDepth: 3\nCritical Points: 2"]
- removeDuplicates["removeDuplicates\nDepth: 3\nCritical Points: 2"]
- reverseString["reverseString\nDepth: 2\nCritical Points: 3"]:::target
- setErrorMessage["setErrorMessage\nDepth: 2\nCritical Points: 3"]
- testPoints["testPoints\nDepth: 2\nCritical Points: 3"]:::target
- validateMatrix["validateMatrix\nDepth: 3\nCritical Points: 2"]
- calculateCircleArea --> setErrorMessage
- calculateDistance --> setErrorMessage
- createDynamicArray --> setErrorMessage
- createMatrix --> setErrorMessage
- factorial --> factorial
- factorial --> setErrorMessage
- findCentroid --> setErrorMessage
- insertNode --> setErrorMessage
- memoizedFib --> memoizedFib
- multiplyMatrices --> createMatrix
- multiplyMatrices --> setErrorMessage
- processMatrix --> countSetBits
- projectA_main --> createDynamicArray
- projectA_main --> createMatrix
- projectA_main --> getErrorMessage
- projectA_main --> insertNode
- projectA_main --> multiplyMatrices
- projectA_main --> performSimpleCalculations
- projectA_main --> pushBack
- projectA_main --> setErrorMessage
- projectB_main --> countSetBits
- projectB_main --> longestIncreasingSubsequence
- projectB_main --> memoizedFib
- projectB_main --> processMatrix
- projectB_main --> reverseString
- projectB_main --> testPoints
- pushBack --> setErrorMessage
- quickSort --> quickSort
- quickSort --> setErrorMessage
- removeDuplicates --> quickSort
- removeDuplicates --> setErrorMessage
- validateMatrix --> setErrorMessage
- classDef target fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: getErrorMessage
- graph TD
- 0["Block 0:\n %1 = load i8*, i8** @globalErrorMessage, align 8\n %2 = icmp ne i8* %1, null\n br i1 %2, label %3, label %5\n"]:::critical
- 0 -->|true| 3
- 0 -->|false| 5
- 3["Block 3:\n %4 = load i8*, i8** @globalErrorMessage, align 8\n br label %6\n"]
- 3 --> 6
- 5["Block 5:\n br label %6\n"]
- 5 --> 6
- 6["Block 6:\n %7 = phi i8* [ %4, %3 ], [ getelementptr inbo...\n ret i8* %7\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: setErrorMessage
- graph TD
- 1["Block 1:\n %2 = alloca i8*, align 8\n store i8* %0, i8** %2, align 8\n %3 = load i8*, i8** @globalErrorMessage, align 8\n %4 = icmp ne i8* %3, null\n br i1 %4, label %5, label %7\n"]:::critical
- 1 -->|true| 5
- 1 -->|false| 7
- 5["Block 5:\n %6 = load i8*, i8** @globalErrorMessage, align 8\n call void @free(i8* %6) #7\n br label %7\n"]
- 5 --> 7
- 7["Block 7:\n %8 = load i8*, i8** %2, align 8\n %9 = icmp ne i8* %8, null\n br i1 %9, label %10, label %19\n"]:::critical
- 7 -->|true| 10
- 7 -->|false| 19
- 10["Block 10:\n %11 = load i8*, i8** %2, align 8\n %12 = call noalias i8* @strdup(i8* %11) #7\n store i8* %12, i8** @globalErrorMessage, align 8\n %13 = load i8*, i8** @globalErrorMessage, ali...\n %14 = icmp eq i8* %13, null\n br i1 %14, label %15, label %18\n"]
- 10 -->|true| 15
- 10 -->|false| 18
- 15["Block 15:\n %16 = load %struct._IO_FILE*, %struct._IO_FIL...\n %17 = call i32 (%struct._IO_FILE*, i8*, ...) ...\n br label %18\n"]
- 15 --> 18
- 18["Block 18:\n br label %20\n"]
- 18 --> 20
- 19["Block 19:\n store i8* null, i8** @globalErrorMessage, ali...\n br label %20\n"]
- 19 --> 20
- 20["Block 20:\n ret void\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: factorial
- graph TD
- 1["Block 1:\n %2 = alloca i32, align 4\n %3 = alloca i32, align 4\n %4 = alloca i32, align 4\n %5 = alloca i32, align 4\n store i32 %0, i32* %3, align 4\n %6 = load i32, i32* @recursionDepth, align 4\n %7 = add nsw i32 %6, 1\n store i32 %7, i32* @recursionDepth, align 4\n %8 = icmp sgt i32 %7, 1000\n br i1 %8, label %9, label %12\n"]:::critical
- 1 -->|true| 9
- 1 -->|false| 12
- 9["Block 9:\n call void @setErrorMessage(i8* getelementptr ...\n %10 = load i32, i32* @recursionDepth, align 4\n %11 = add nsw i32 %10, -1\n store i32 %11, i32* @recursionDepth, align 4\n store i32 -1, i32* %2, align 4\n br label %53\n"]
- 9 --> 53
- 12["Block 12:\n %13 = load i32, i32* %3, align 4\n %14 = icmp slt i32 %13, 0\n br i1 %14, label %15, label %18\n"]
- 12 -->|true| 15
- 12 -->|false| 18
- 15["Block 15:\n call void @setErrorMessage(i8* getelementptr ...\n %16 = load i32, i32* @recursionDepth, align 4\n %17 = add nsw i32 %16, -1\n store i32 %17, i32* @recursionDepth, align 4\n store i32 -1, i32* %2, align 4\n br label %53\n"]
- 15 --> 53
- 18["Block 18:\n %19 = load i32, i32* %3, align 4\n %20 = icmp sgt i32 %19, 20\n br i1 %20, label %21, label %24\n"]
- 18 -->|true| 21
- 18 -->|false| 24
- 21["Block 21:\n call void @setErrorMessage(i8* getelementptr ...\n %22 = load i32, i32* @recursionDepth, align 4\n %23 = add nsw i32 %22, -1\n store i32 %23, i32* @recursionDepth, align 4\n store i32 -1, i32* %2, align 4\n br label %53\n"]
- 21 --> 53
- 24["Block 24:\n %25 = load i32, i32* %3, align 4\n %26 = icmp sle i32 %25, 1\n br i1 %26, label %27, label %28\n"]
- 24 -->|true| 27
- 24 -->|false| 28
- 27["Block 27:\n store i32 1, i32* %4, align 4\n br label %49\n"]
- 27 --> 49
- 28["Block 28:\n %29 = load i32, i32* %3, align 4\n %30 = sub nsw i32 %29, 1\n %31 = call i32 @factorial(i32 %30)\n store i32 %31, i32* %5, align 4\n %32 = load i32, i32* %5, align 4\n %33 = icmp eq i32 %32, -1\n br i1 %33, label %34, label %37\n"]
- 28 -->|true| 34
- 28 -->|false| 37
- 34["Block 34:\n %35 = load i32, i32* @recursionDepth, align 4\n %36 = add nsw i32 %35, -1\n store i32 %36, i32* @recursionDepth, align 4\n store i32 -1, i32* %2, align 4\n br label %53\n"]
- 34 --> 53
- 37["Block 37:\n %38 = load i32, i32* %5, align 4\n %39 = load i32, i32* %3, align 4\n %40 = sdiv i32 2147483647, %39\n %41 = icmp sgt i32 %38, %40\n br i1 %41, label %42, label %45\n"]
- 37 -->|true| 42
- 37 -->|false| 45
- 42["Block 42:\n call void @setErrorMessage(i8* getelementptr ...\n %43 = load i32, i32* @recursionDepth, align 4\n %44 = add nsw i32 %43, -1\n store i32 %44, i32* @recursionDepth, align 4\n store i32 -1, i32* %2, align 4\n br label %53\n"]
- 42 --> 53
- 45["Block 45:\n %46 = load i32, i32* %3, align 4\n %47 = load i32, i32* %5, align 4\n %48 = mul nsw i32 %46, %47\n store i32 %48, i32* %4, align 4\n br label %49\n"]
- 45 --> 49
- 49["Block 49:\n %50 = load i32, i32* @recursionDepth, align 4\n %51 = add nsw i32 %50, -1\n store i32 %51, i32* @recursionDepth, align 4\n %52 = load i32, i32* %4, align 4\n store i32 %52, i32* %2, align 4\n br label %53\n"]
- 49 --> 53
- 53["Block 53:\n %54 = load i32, i32* %2, align 4\n ret i32 %54\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: createDynamicArray
- graph TD
- 1["Block 1:\n %2 = alloca %struct.DynamicArray*, align 8\n %3 = alloca i32, align 4\n %4 = alloca %struct.DynamicArray*, align 8\n store i32 %0, i32* %3, align 4\n %5 = load i32, i32* %3, align 4\n %6 = icmp sle i32 %5, 0\n br i1 %6, label %7, label %8\n"]:::critical
- 1 -->|true| 7
- 1 -->|false| 8
- 7["Block 7:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %44\n"]
- 7 --> 44
- 8["Block 8:\n %9 = load i32, i32* %3, align 4\n %10 = icmp sgt i32 %9, 1000\n br i1 %10, label %11, label %12\n"]
- 8 -->|true| 11
- 8 -->|false| 12
- 11["Block 11:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %44\n"]
- 11 --> 44
- 12["Block 12:\n %13 = call noalias i8* @malloc(i64 24) #7\n %14 = bitcast i8* %13 to %struct.DynamicArray*\n store %struct.DynamicArray* %14, %struct.Dyna...\n %15 = load %struct.DynamicArray*, %struct.Dyn...\n %16 = icmp ne %struct.DynamicArray* %15, null\n br i1 %16, label %18, label %17\n"]
- 12 -->|true| 18
- 12 -->|false| 17
- 17["Block 17:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %44\n"]
- 17 --> 44
- 18["Block 18:\n %19 = load i32, i32* %3, align 4\n %20 = sext i32 %19 to i64\n %21 = mul i64 4, %20\n %22 = call noalias i8* @malloc(i64 %21) #7\n %23 = bitcast i8* %22 to i32*\n %24 = load %struct.DynamicArray*, %struct.Dyn...\n %25 = getelementptr inbounds %struct.DynamicA...\n store i32* %23, i32** %25, align 8\n %26 = load %struct.DynamicArray*, %struct.Dyn...\n %27 = getelementptr inbounds %struct.DynamicA...\n %28 = load i32*, i32** %27, align 8\n %29 = icmp ne i32* %28, null\n br i1 %29, label %33, label %30\n"]
- 18 -->|true| 33
- 18 -->|false| 30
- 30["Block 30:\n %31 = load %struct.DynamicArray*, %struct.Dyn...\n %32 = bitcast %struct.DynamicArray* %31 to i8*\n call void @free(i8* %32) #7\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %44\n"]
- 30 --> 44
- 33["Block 33:\n %34 = load %struct.DynamicArray*, %struct.Dyn...\n %35 = getelementptr inbounds %struct.DynamicA...\n store i32 0, i32* %35, align 8\n %36 = load i32, i32* %3, align 4\n %37 = load %struct.DynamicArray*, %struct.Dyn...\n %38 = getelementptr inbounds %struct.DynamicA...\n store i32 %36, i32* %38, align 4\n %39 = load %struct.DynamicArray*, %struct.Dyn...\n %40 = getelementptr inbounds %struct.DynamicA...\n store i32 1, i32* %40, align 8\n %41 = load %struct.DynamicArray*, %struct.Dyn...\n %42 = getelementptr inbounds %struct.DynamicA...\n store i32 0, i32* %42, align 4\n %43 = load %struct.DynamicArray*, %struct.Dyn...\n store %struct.DynamicArray* %43, %struct.Dyna...\n br label %44\n"]
- 33 --> 44
- 44["Block 44:\n %45 = load %struct.DynamicArray*, %struct.Dyn...\n ret %struct.DynamicArray* %45\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: pushBack
- graph TD
- 2["Block 2:\n %3 = alloca %struct.DynamicArray*, align 8\n %4 = alloca i32, align 4\n %5 = alloca i32, align 4\n %6 = alloca i32*, align 8\n store %struct.DynamicArray* %0, %struct.Dynam...\n store i32 %1, i32* %4, align 4\n %7 = load %struct.DynamicArray*, %struct.Dyna...\n %8 = icmp ne %struct.DynamicArray* %7, null\n br i1 %8, label %10, label %9\n"]:::critical
- 2 -->|true| 10
- 2 -->|false| 9
- 9["Block 9:\n call void @setErrorMessage(i8* getelementptr ...\n br label %91\n"]
- 9 --> 91
- 10["Block 10:\n %11 = load %struct.DynamicArray*, %struct.Dyn...\n %12 = getelementptr inbounds %struct.DynamicA...\n %13 = load i32, i32* %12, align 8\n %14 = icmp sge i32 %13, 1000\n br i1 %14, label %15, label %16\n"]
- 10 -->|true| 15
- 10 -->|false| 16
- 15["Block 15:\n call void @setErrorMessage(i8* getelementptr ...\n br label %91\n"]
- 15 --> 91
- 16["Block 16:\n %17 = load %struct.DynamicArray*, %struct.Dyn...\n %18 = getelementptr inbounds %struct.DynamicA...\n %19 = load i32, i32* %18, align 8\n %20 = load %struct.DynamicArray*, %struct.Dyn...\n %21 = getelementptr inbounds %struct.DynamicA...\n %22 = load i32, i32* %21, align 4\n %23 = icmp sge i32 %19, %22\n br i1 %23, label %24, label %52\n"]
- 16 -->|true| 24
- 16 -->|false| 52
- 24["Block 24:\n %25 = load %struct.DynamicArray*, %struct.Dyn...\n %26 = getelementptr inbounds %struct.DynamicA...\n %27 = load i32, i32* %26, align 4\n %28 = mul nsw i32 %27, 2\n store i32 %28, i32* %5, align 4\n %29 = load i32, i32* %5, align 4\n %30 = icmp sgt i32 %29, 1000\n br i1 %30, label %31, label %32\n"]
- 24 -->|true| 31
- 24 -->|false| 32
- 31["Block 31:\n store i32 1000, i32* %5, align 4\n br label %32\n"]
- 31 --> 32
- 32["Block 32:\n %33 = load %struct.DynamicArray*, %struct.Dyn...\n %34 = getelementptr inbounds %struct.DynamicA...\n %35 = load i32*, i32** %34, align 8\n %36 = bitcast i32* %35 to i8*\n %37 = load i32, i32* %5, align 4\n %38 = sext i32 %37 to i64\n %39 = mul i64 4, %38\n %40 = call i8* @realloc(i8* %36, i64 %39) #7\n %41 = bitcast i8* %40 to i32*\n store i32* %41, i32** %6, align 8\n %42 = load i32*, i32** %6, align 8\n %43 = icmp ne i32* %42, null\n br i1 %43, label %45, label %44\n"]
- 32 -->|true| 45
- 32 -->|false| 44
- 44["Block 44:\n call void @setErrorMessage(i8* getelementptr ...\n br label %91\n"]
- 44 --> 91
- 45["Block 45:\n %46 = load i32*, i32** %6, align 8\n %47 = load %struct.DynamicArray*, %struct.Dyn...\n %48 = getelementptr inbounds %struct.DynamicA...\n store i32* %46, i32** %48, align 8\n %49 = load i32, i32* %5, align 4\n %50 = load %struct.DynamicArray*, %struct.Dyn...\n %51 = getelementptr inbounds %struct.DynamicA...\n store i32 %49, i32* %51, align 4\n br label %52\n"]
- 45 --> 52
- 52["Block 52:\n %53 = load %struct.DynamicArray*, %struct.Dyn...\n %54 = getelementptr inbounds %struct.DynamicA...\n %55 = load i32, i32* %54, align 8\n %56 = icmp ne i32 %55, 0\n br i1 %56, label %57, label %78\n"]
- 52 -->|true| 57
- 52 -->|false| 78
- 57["Block 57:\n %58 = load %struct.DynamicArray*, %struct.Dyn...\n %59 = getelementptr inbounds %struct.DynamicA...\n %60 = load i32, i32* %59, align 8\n %61 = icmp sgt i32 %60, 0\n br i1 %61, label %62, label %78\n"]
- 57 -->|true| 62
- 57 -->|false| 78
- 62["Block 62:\n %63 = load i32, i32* %4, align 4\n %64 = load %struct.DynamicArray*, %struct.Dyn...\n %65 = getelementptr inbounds %struct.DynamicA...\n %66 = load i32*, i32** %65, align 8\n %67 = load %struct.DynamicArray*, %struct.Dyn...\n %68 = getelementptr inbounds %struct.DynamicA...\n %69 = load i32, i32* %68, align 8\n %70 = sub nsw i32 %69, 1\n %71 = sext i32 %70 to i64\n %72 = getelementptr inbounds i32, i32* %66, i...\n %73 = load i32, i32* %72, align 4\n %74 = icmp slt i32 %63, %73\n br i1 %74, label %75, label %78\n"]
- 62 -->|true| 75
- 62 -->|false| 78
- 75["Block 75:\n %76 = load %struct.DynamicArray*, %struct.Dyn...\n %77 = getelementptr inbounds %struct.DynamicA...\n store i32 0, i32* %77, align 8\n br label %78\n"]
- 75 --> 78
- 78["Block 78:\n %79 = load i32, i32* %4, align 4\n %80 = load %struct.DynamicArray*, %struct.Dyn...\n %81 = getelementptr inbounds %struct.DynamicA...\n %82 = load i32*, i32** %81, align 8\n %83 = load %struct.DynamicArray*, %struct.Dyn...\n %84 = getelementptr inbounds %struct.DynamicA...\n %85 = load i32, i32* %84, align 8\n %86 = add nsw i32 %85, 1\n store i32 %86, i32* %84, align 8\n %87 = sext i32 %85 to i64\n %88 = getelementptr inbounds i32, i32* %82, i...\n store i32 %79, i32* %88, align 4\n %89 = load %struct.DynamicArray*, %struct.Dyn...\n %90 = getelementptr inbounds %struct.DynamicA...\n store i32 1, i32* %90, align 4\n br label %91\n"]
- 78 --> 91
- 91["Block 91:\n ret void\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: quickSort
- graph TD
- 4["Block 4:\n %5 = alloca i32*, align 8\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca i32*, align 8\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n %11 = alloca i32, align 4\n %12 = alloca i32, align 4\n %13 = alloca i32, align 4\n %14 = alloca i32, align 4\n store i32* %0, i32** %5, align 8\n store i32 %1, i32* %6, align 4\n store i32 %2, i32* %7, align 4\n store i32* %3, i32** %8, align 8\n %15 = load i32, i32* @recursionDepth, align 4\n %16 = add nsw i32 %15, 1\n store i32 %16, i32* @recursionDepth, align 4\n %17 = icmp sgt i32 %16, 1000\n br i1 %17, label %18, label %22\n"]:::critical
- 4 -->|true| 18
- 4 -->|false| 22
- 18["Block 18:\n call void @setErrorMessage(i8* getelementptr ...\n %19 = load i32*, i32** %8, align 8\n store i32 1, i32* %19, align 4\n %20 = load i32, i32* @recursionDepth, align 4\n %21 = add nsw i32 %20, -1\n store i32 %21, i32* @recursionDepth, align 4\n br label %247\n"]
- 18 --> 247
- 22["Block 22:\n %23 = load i32*, i32** %5, align 8\n %24 = icmp ne i32* %23, null\n br i1 %24, label %29, label %25\n"]
- 22 -->|true| 29
- 22 -->|false| 25
- 25["Block 25:\n call void @setErrorMessage(i8* getelementptr ...\n %26 = load i32*, i32** %8, align 8\n store i32 1, i32* %26, align 4\n %27 = load i32, i32* @recursionDepth, align 4\n %28 = add nsw i32 %27, -1\n store i32 %28, i32* @recursionDepth, align 4\n br label %247\n"]
- 25 --> 247
- 29["Block 29:\n %30 = load i32, i32* %6, align 4\n %31 = icmp slt i32 %30, 0\n br i1 %31, label %41, label %32\n"]
- 29 -->|true| 41
- 29 -->|false| 32
- 32["Block 32:\n %33 = load i32, i32* %7, align 4\n %34 = icmp slt i32 %33, 0\n br i1 %34, label %41, label %35\n"]
- 32 -->|true| 41
- 32 -->|false| 35
- 35["Block 35:\n %36 = load i32, i32* %6, align 4\n %37 = icmp sge i32 %36, 1000\n br i1 %37, label %41, label %38\n"]
- 35 -->|true| 41
- 35 -->|false| 38
- 38["Block 38:\n %39 = load i32, i32* %7, align 4\n %40 = icmp sge i32 %39, 1000\n br i1 %40, label %41, label %45\n"]
- 38 -->|true| 41
- 38 -->|false| 45
- 41["Block 41:\n call void @setErrorMessage(i8* getelementptr ...\n %42 = load i32*, i32** %8, align 8\n store i32 1, i32* %42, align 4\n %43 = load i32, i32* @recursionDepth, align 4\n %44 = add nsw i32 %43, -1\n store i32 %44, i32* @recursionDepth, align 4\n br label %247\n"]
- 41 --> 247
- 45["Block 45:\n %46 = load i32, i32* %6, align 4\n %47 = load i32, i32* %7, align 4\n %48 = icmp slt i32 %46, %47\n br i1 %48, label %49, label %244\n"]
- 45 -->|true| 49
- 45 -->|false| 244
- 49["Block 49:\n %50 = load i32, i32* %6, align 4\n %51 = load i32, i32* %7, align 4\n %52 = load i32, i32* %6, align 4\n %53 = sub nsw i32 %51, %52\n %54 = sdiv i32 %53, 2\n %55 = add nsw i32 %50, %54\n store i32 %55, i32* %9, align 4\n %56 = load i32*, i32** %5, align 8\n %57 = load i32, i32* %6, align 4\n %58 = sext i32 %57 to i64\n %59 = getelementptr inbounds i32, i32* %56, i...\n %60 = load i32, i32* %59, align 4\n %61 = load i32*, i32** %5, align 8\n %62 = load i32, i32* %9, align 4\n %63 = sext i32 %62 to i64\n %64 = getelementptr inbounds i32, i32* %61, i...\n %65 = load i32, i32* %64, align 4\n %66 = icmp sle i32 %60, %65\n br i1 %66, label %67, label %99\n"]
- 49 -->|true| 67
- 49 -->|false| 99
- 67["Block 67:\n %68 = load i32*, i32** %5, align 8\n %69 = load i32, i32* %9, align 4\n %70 = sext i32 %69 to i64\n %71 = getelementptr inbounds i32, i32* %68, i...\n %72 = load i32, i32* %71, align 4\n %73 = load i32*, i32** %5, align 8\n %74 = load i32, i32* %7, align 4\n %75 = sext i32 %74 to i64\n %76 = getelementptr inbounds i32, i32* %73, i...\n %77 = load i32, i32* %76, align 4\n %78 = icmp sle i32 %72, %77\n br i1 %78, label %79, label %81\n"]
- 67 -->|true| 79
- 67 -->|false| 81
- 79["Block 79:\n %80 = load i32, i32* %9, align 4\n store i32 %80, i32* %10, align 4\n br label %98\n"]
- 79 --> 98
- 81["Block 81:\n %82 = load i32*, i32** %5, align 8\n %83 = load i32, i32* %6, align 4\n %84 = sext i32 %83 to i64\n %85 = getelementptr inbounds i32, i32* %82, i...\n %86 = load i32, i32* %85, align 4\n %87 = load i32*, i32** %5, align 8\n %88 = load i32, i32* %7, align 4\n %89 = sext i32 %88 to i64\n %90 = getelementptr inbounds i32, i32* %87, i...\n %91 = load i32, i32* %90, align 4\n %92 = icmp sle i32 %86, %91\n br i1 %92, label %93, label %95\n"]
- 81 -->|true| 93
- 81 -->|false| 95
- 93["Block 93:\n %94 = load i32, i32* %7, align 4\n store i32 %94, i32* %10, align 4\n br label %97\n"]
- 93 --> 97
- 95["Block 95:\n %96 = load i32, i32* %6, align 4\n store i32 %96, i32* %10, align 4\n br label %97\n"]
- 95 --> 97
- 97["Block 97:\n br label %98\n"]
- 97 --> 98
- 98["Block 98:\n br label %131\n"]
- 98 --> 131
- 99["Block 99:\n %100 = load i32*, i32** %5, align 8\n %101 = load i32, i32* %6, align 4\n %102 = sext i32 %101 to i64\n %103 = getelementptr inbounds i32, i32* %100,...\n %104 = load i32, i32* %103, align 4\n %105 = load i32*, i32** %5, align 8\n %106 = load i32, i32* %7, align 4\n %107 = sext i32 %106 to i64\n %108 = getelementptr inbounds i32, i32* %105,...\n %109 = load i32, i32* %108, align 4\n %110 = icmp sle i32 %104, %109\n br i1 %110, label %111, label %113\n"]
- 99 -->|true| 111
- 99 -->|false| 113
- 111["Block 111:\n %112 = load i32, i32* %6, align 4\n store i32 %112, i32* %10, align 4\n br label %130\n"]
- 111 --> 130
- 113["Block 113:\n %114 = load i32*, i32** %5, align 8\n %115 = load i32, i32* %9, align 4\n %116 = sext i32 %115 to i64\n %117 = getelementptr inbounds i32, i32* %114,...\n %118 = load i32, i32* %117, align 4\n %119 = load i32*, i32** %5, align 8\n %120 = load i32, i32* %7, align 4\n %121 = sext i32 %120 to i64\n %122 = getelementptr inbounds i32, i32* %119,...\n %123 = load i32, i32* %122, align 4\n %124 = icmp sle i32 %118, %123\n br i1 %124, label %125, label %127\n"]
- 113 -->|true| 125
- 113 -->|false| 127
- 125["Block 125:\n %126 = load i32, i32* %7, align 4\n store i32 %126, i32* %10, align 4\n br label %129\n"]
- 125 --> 129
- 127["Block 127:\n %128 = load i32, i32* %9, align 4\n store i32 %128, i32* %10, align 4\n br label %129\n"]
- 127 --> 129
- 129["Block 129:\n br label %130\n"]
- 129 --> 130
- 130["Block 130:\n br label %131\n"]
- 130 --> 131
- 131["Block 131:\n %132 = load i32*, i32** %5, align 8\n %133 = load i32, i32* %7, align 4\n %134 = sext i32 %133 to i64\n %135 = getelementptr inbounds i32, i32* %132,...\n %136 = load i32, i32* %135, align 4\n store i32 %136, i32* %11, align 4\n %137 = load i32*, i32** %5, align 8\n %138 = load i32, i32* %10, align 4\n %139 = sext i32 %138 to i64\n %140 = getelementptr inbounds i32, i32* %137,...\n %141 = load i32, i32* %140, align 4\n %142 = load i32*, i32** %5, align 8\n %143 = load i32, i32* %7, align 4\n %144 = sext i32 %143 to i64\n %145 = getelementptr inbounds i32, i32* %142,...\n store i32 %141, i32* %145, align 4\n %146 = load i32, i32* %11, align 4\n %147 = load i32*, i32** %5, align 8\n %148 = load i32, i32* %10, align 4\n %149 = sext i32 %148 to i64\n %150 = getelementptr inbounds i32, i32* %147,...\n store i32 %146, i32* %150, align 4\n %151 = load i32*, i32** %5, align 8\n %152 = load i32, i32* %7, align 4\n %153 = sext i32 %152 to i64\n %154 = getelementptr inbounds i32, i32* %151,...\n %155 = load i32, i32* %154, align 4\n store i32 %155, i32* %12, align 4\n %156 = load i32, i32* %6, align 4\n %157 = sub nsw i32 %156, 1\n store i32 %157, i32* %13, align 4\n %158 = load i32, i32* %6, align 4\n store i32 %158, i32* %14, align 4\n br label %159\n"]
- 131 --> 159
- 159["Block 159:\n %160 = load i32, i32* %14, align 4\n %161 = load i32, i32* %7, align 4\n %162 = icmp slt i32 %160, %161\n br i1 %162, label %163, label %199\n"]
- 159 -->|true| 163
- 159 -->|false| 199
- 163["Block 163:\n %164 = load i32*, i32** %5, align 8\n %165 = load i32, i32* %14, align 4\n %166 = sext i32 %165 to i64\n %167 = getelementptr inbounds i32, i32* %164,...\n %168 = load i32, i32* %167, align 4\n %169 = load i32, i32* %12, align 4\n %170 = icmp sle i32 %168, %169\n br i1 %170, label %171, label %195\n"]
- 163 -->|true| 171
- 163 -->|false| 195
- 171["Block 171:\n %172 = load i32, i32* %13, align 4\n %173 = add nsw i32 %172, 1\n store i32 %173, i32* %13, align 4\n %174 = load i32*, i32** %5, align 8\n %175 = load i32, i32* %13, align 4\n %176 = sext i32 %175 to i64\n %177 = getelementptr inbounds i32, i32* %174,...\n %178 = load i32, i32* %177, align 4\n store i32 %178, i32* %11, align 4\n %179 = load i32*, i32** %5, align 8\n %180 = load i32, i32* %14, align 4\n %181 = sext i32 %180 to i64\n %182 = getelementptr inbounds i32, i32* %179,...\n %183 = load i32, i32* %182, align 4\n %184 = load i32*, i32** %5, align 8\n %185 = load i32, i32* %13, align 4\n %186 = sext i32 %185 to i64\n %187 = getelementptr inbounds i32, i32* %184,...\n store i32 %183, i32* %187, align 4\n %188 = load i32, i32* %11, align 4\n %189 = load i32*, i32** %5, align 8\n %190 = load i32, i32* %14, align 4\n %191 = sext i32 %190 to i64\n %192 = getelementptr inbounds i32, i32* %189,...\n store i32 %188, i32* %192, align 4\n %193 = load i32, i32* @globalCounter, align 4\n %194 = add nsw i32 %193, 1\n store i32 %194, i32* @globalCounter, align 4\n br label %195\n"]
- 171 --> 195
- 195["Block 195:\n br label %196\n"]
- 195 --> 196
- 196["Block 196:\n %197 = load i32, i32* %14, align 4\n %198 = add nsw i32 %197, 1\n store i32 %198, i32* %14, align 4\n br label %159\n"]
- 196 --> 159
- 199["Block 199:\n %200 = load i32*, i32** %5, align 8\n %201 = load i32, i32* %13, align 4\n %202 = add nsw i32 %201, 1\n %203 = sext i32 %202 to i64\n %204 = getelementptr inbounds i32, i32* %200,...\n %205 = load i32, i32* %204, align 4\n store i32 %205, i32* %11, align 4\n %206 = load i32*, i32** %5, align 8\n %207 = load i32, i32* %7, align 4\n %208 = sext i32 %207 to i64\n %209 = getelementptr inbounds i32, i32* %206,...\n %210 = load i32, i32* %209, align 4\n %211 = load i32*, i32** %5, align 8\n %212 = load i32, i32* %13, align 4\n %213 = add nsw i32 %212, 1\n %214 = sext i32 %213 to i64\n %215 = getelementptr inbounds i32, i32* %211,...\n store i32 %210, i32* %215, align 4\n %216 = load i32, i32* %11, align 4\n %217 = load i32*, i32** %5, align 8\n %218 = load i32, i32* %7, align 4\n %219 = sext i32 %218 to i64\n %220 = getelementptr inbounds i32, i32* %217,...\n store i32 %216, i32* %220, align 4\n %221 = load i32*, i32** %5, align 8\n %222 = load i32, i32* %6, align 4\n %223 = load i32, i32* %13, align 4\n %224 = load i32*, i32** %8, align 8\n call void @quickSort(i32* %221, i32 %222, i32...\n %225 = load i32*, i32** %8, align 8\n %226 = load i32, i32* %225, align 4\n %227 = icmp ne i32 %226, 0\n br i1 %227, label %228, label %231\n"]
- 199 -->|true| 228
- 199 -->|false| 231
- 228["Block 228:\n %229 = load i32, i32* @recursionDepth, align 4\n %230 = add nsw i32 %229, -1\n store i32 %230, i32* @recursionDepth, align 4\n br label %247\n"]
- 228 --> 247
- 231["Block 231:\n %232 = load i32*, i32** %5, align 8\n %233 = load i32, i32* %13, align 4\n %234 = add nsw i32 %233, 2\n %235 = load i32, i32* %7, align 4\n %236 = load i32*, i32** %8, align 8\n call void @quickSort(i32* %232, i32 %234, i32...\n %237 = load i32*, i32** %8, align 8\n %238 = load i32, i32* %237, align 4\n %239 = icmp ne i32 %238, 0\n br i1 %239, label %240, label %243\n"]
- 231 -->|true| 240
- 231 -->|false| 243
- 240["Block 240:\n %241 = load i32, i32* @recursionDepth, align 4\n %242 = add nsw i32 %241, -1\n store i32 %242, i32* @recursionDepth, align 4\n br label %247\n"]
- 240 --> 247
- 243["Block 243:\n br label %244\n"]
- 243 --> 244
- 244["Block 244:\n %245 = load i32, i32* @recursionDepth, align 4\n %246 = add nsw i32 %245, -1\n store i32 %246, i32* @recursionDepth, align 4\n br label %247\n"]
- 244 --> 247
- 247["Block 247:\n ret void\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: createMatrix
- graph TD
- 2["Block 2:\n %3 = alloca %struct.Matrix*, align 8\n %4 = alloca i32, align 4\n %5 = alloca i32, align 4\n %6 = alloca %struct.Matrix*, align 8\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n store i32 %0, i32* %4, align 4\n store i32 %1, i32* %5, align 4\n %9 = load i32, i32* %4, align 4\n %10 = icmp slt i32 %9, 1\n br i1 %10, label %14, label %11\n"]:::critical
- 2 -->|true| 14
- 2 -->|false| 11
- 11["Block 11:\n %12 = load i32, i32* %5, align 4\n %13 = icmp slt i32 %12, 1\n br i1 %13, label %14, label %15\n"]
- 11 -->|true| 14
- 11 -->|false| 15
- 14["Block 14:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %111\n"]
- 14 --> 111
- 15["Block 15:\n %16 = load i32, i32* %4, align 4\n %17 = icmp sgt i32 %16, 100\n br i1 %17, label %21, label %18\n"]
- 15 -->|true| 21
- 15 -->|false| 18
- 18["Block 18:\n %19 = load i32, i32* %5, align 4\n %20 = icmp sgt i32 %19, 100\n br i1 %20, label %21, label %22\n"]
- 18 -->|true| 21
- 18 -->|false| 22
- 21["Block 21:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %111\n"]
- 21 --> 111
- 22["Block 22:\n %23 = call noalias i8* @malloc(i64 32) #7\n %24 = bitcast i8* %23 to %struct.Matrix*\n store %struct.Matrix* %24, %struct.Matrix** %...\n %25 = load %struct.Matrix*, %struct.Matrix** ...\n %26 = icmp ne %struct.Matrix* %25, null\n br i1 %26, label %28, label %27\n"]
- 22 -->|true| 28
- 22 -->|false| 27
- 27["Block 27:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %111\n"]
- 27 --> 111
- 28["Block 28:\n %29 = load i32, i32* %4, align 4\n %30 = load %struct.Matrix*, %struct.Matrix** ...\n %31 = getelementptr inbounds %struct.Matrix, ...\n store i32 %29, i32* %31, align 8\n %32 = load i32, i32* %5, align 4\n %33 = load %struct.Matrix*, %struct.Matrix** ...\n %34 = getelementptr inbounds %struct.Matrix, ...\n store i32 %32, i32* %34, align 4\n %35 = load i32, i32* %4, align 4\n %36 = load i32, i32* %5, align 4\n %37 = icmp eq i32 %35, %36\n %38 = zext i1 %37 to i32\n %39 = load %struct.Matrix*, %struct.Matrix** ...\n %40 = getelementptr inbounds %struct.Matrix, ...\n store i32 %38, i32* %40, align 8\n %41 = load %struct.Matrix*, %struct.Matrix** ...\n %42 = getelementptr inbounds %struct.Matrix, ...\n store double 0.000000e+00, double* %42, align 8\n %43 = load i32, i32* %4, align 4\n %44 = sext i32 %43 to i64\n %45 = mul i64 %44, 8\n %46 = call noalias i8* @malloc(i64 %45) #7\n %47 = bitcast i8* %46 to i32**\n %48 = load %struct.Matrix*, %struct.Matrix** ...\n %49 = getelementptr inbounds %struct.Matrix, ...\n store i32** %47, i32*** %49, align 8\n %50 = load %struct.Matrix*, %struct.Matrix** ...\n %51 = getelementptr inbounds %struct.Matrix, ...\n %52 = load i32**, i32*** %51, align 8\n %53 = icmp ne i32** %52, null\n br i1 %53, label %57, label %54\n"]
- 28 -->|true| 57
- 28 -->|false| 54
- 54["Block 54:\n %55 = load %struct.Matrix*, %struct.Matrix** ...\n %56 = bitcast %struct.Matrix* %55 to i8*\n call void @free(i8* %56) #7\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %111\n"]
- 54 --> 111
- 57["Block 57:\n store i32 0, i32* %7, align 4\n br label %58\n"]
- 57 --> 58
- 58["Block 58:\n %59 = load i32, i32* %7, align 4\n %60 = load i32, i32* %4, align 4\n %61 = icmp slt i32 %59, %60\n br i1 %61, label %62, label %109\n"]
- 58 -->|true| 62
- 58 -->|false| 109
- 62["Block 62:\n %63 = load i32, i32* %5, align 4\n %64 = sext i32 %63 to i64\n %65 = call noalias i8* @calloc(i64 %64, i64 4...\n %66 = bitcast i8* %65 to i32*\n %67 = load %struct.Matrix*, %struct.Matrix** ...\n %68 = getelementptr inbounds %struct.Matrix, ...\n %69 = load i32**, i32*** %68, align 8\n %70 = load i32, i32* %7, align 4\n %71 = sext i32 %70 to i64\n %72 = getelementptr inbounds i32*, i32** %69,...\n store i32* %66, i32** %72, align 8\n %73 = load %struct.Matrix*, %struct.Matrix** ...\n %74 = getelementptr inbounds %struct.Matrix, ...\n %75 = load i32**, i32*** %74, align 8\n %76 = load i32, i32* %7, align 4\n %77 = sext i32 %76 to i64\n %78 = getelementptr inbounds i32*, i32** %75,...\n %79 = load i32*, i32** %78, align 8\n %80 = icmp ne i32* %79, null\n br i1 %80, label %105, label %81\n"]
- 62 -->|true| 105
- 62 -->|false| 81
- 81["Block 81:\n store i32 0, i32* %8, align 4\n br label %82\n"]
- 81 --> 82
- 82["Block 82:\n %83 = load i32, i32* %8, align 4\n %84 = load i32, i32* %7, align 4\n %85 = icmp slt i32 %83, %84\n br i1 %85, label %86, label %98\n"]
- 82 -->|true| 86
- 82 -->|false| 98
- 86["Block 86:\n %87 = load %struct.Matrix*, %struct.Matrix** ...\n %88 = getelementptr inbounds %struct.Matrix, ...\n %89 = load i32**, i32*** %88, align 8\n %90 = load i32, i32* %8, align 4\n %91 = sext i32 %90 to i64\n %92 = getelementptr inbounds i32*, i32** %89,...\n %93 = load i32*, i32** %92, align 8\n %94 = bitcast i32* %93 to i8*\n call void @free(i8* %94) #7\n br label %95\n"]
- 86 --> 95
- 95["Block 95:\n %96 = load i32, i32* %8, align 4\n %97 = add nsw i32 %96, 1\n store i32 %97, i32* %8, align 4\n br label %82\n"]
- 95 --> 82
- 98["Block 98:\n %99 = load %struct.Matrix*, %struct.Matrix** ...\n %100 = getelementptr inbounds %struct.Matrix,...\n %101 = load i32**, i32*** %100, align 8\n %102 = bitcast i32** %101 to i8*\n call void @free(i8* %102) #7\n %103 = load %struct.Matrix*, %struct.Matrix**...\n %104 = bitcast %struct.Matrix* %103 to i8*\n call void @free(i8* %104) #7\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %111\n"]
- 98 --> 111
- 105["Block 105:\n br label %106\n"]
- 105 --> 106
- 106["Block 106:\n %107 = load i32, i32* %7, align 4\n %108 = add nsw i32 %107, 1\n store i32 %108, i32* %7, align 4\n br label %58\n"]
- 106 --> 58
- 109["Block 109:\n %110 = load %struct.Matrix*, %struct.Matrix**...\n store %struct.Matrix* %110, %struct.Matrix** ...\n br label %111\n"]
- 109 --> 111
- 111["Block 111:\n %112 = load %struct.Matrix*, %struct.Matrix**...\n ret %struct.Matrix* %112\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: multiplyMatrices
- graph TD
- 2["Block 2:\n %3 = alloca %struct.Matrix*, align 8\n %4 = alloca %struct.Matrix*, align 8\n %5 = alloca %struct.Matrix*, align 8\n %6 = alloca %struct.Matrix*, align 8\n %7 = alloca i64, align 8\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n %10 = alloca i64, align 8\n %11 = alloca i32, align 4\n %12 = alloca i64, align 8\n %13 = alloca i32, align 4\n store %struct.Matrix* %0, %struct.Matrix** %4...\n store %struct.Matrix* %1, %struct.Matrix** %5...\n %14 = load %struct.Matrix*, %struct.Matrix** ...\n %15 = icmp ne %struct.Matrix* %14, null\n br i1 %15, label %16, label %19\n"]:::critical
- 2 -->|true| 16
- 2 -->|false| 19
- 16["Block 16:\n %17 = load %struct.Matrix*, %struct.Matrix** ...\n %18 = icmp ne %struct.Matrix* %17, null\n br i1 %18, label %20, label %19\n"]
- 16 -->|true| 20
- 16 -->|false| 19
- 19["Block 19:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %209\n"]
- 19 --> 209
- 20["Block 20:\n %21 = load %struct.Matrix*, %struct.Matrix** ...\n %22 = getelementptr inbounds %struct.Matrix, ...\n %23 = load i32**, i32*** %22, align 8\n %24 = icmp ne i32** %23, null\n br i1 %24, label %25, label %30\n"]
- 20 -->|true| 25
- 20 -->|false| 30
- 25["Block 25:\n %26 = load %struct.Matrix*, %struct.Matrix** ...\n %27 = getelementptr inbounds %struct.Matrix, ...\n %28 = load i32**, i32*** %27, align 8\n %29 = icmp ne i32** %28, null\n br i1 %29, label %31, label %30\n"]
- 25 -->|true| 31
- 25 -->|false| 30
- 30["Block 30:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %209\n"]
- 30 --> 209
- 31["Block 31:\n %32 = load %struct.Matrix*, %struct.Matrix** ...\n %33 = getelementptr inbounds %struct.Matrix, ...\n %34 = load i32, i32* %33, align 4\n %35 = load %struct.Matrix*, %struct.Matrix** ...\n %36 = getelementptr inbounds %struct.Matrix, ...\n %37 = load i32, i32* %36, align 8\n %38 = icmp ne i32 %34, %37\n br i1 %38, label %39, label %40\n"]
- 31 -->|true| 39
- 31 -->|false| 40
- 39["Block 39:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %209\n"]
- 39 --> 209
- 40["Block 40:\n %41 = load %struct.Matrix*, %struct.Matrix** ...\n %42 = getelementptr inbounds %struct.Matrix, ...\n %43 = load i32, i32* %42, align 4\n %44 = icmp sgt i32 %43, 100\n br i1 %44, label %50, label %45\n"]
- 40 -->|true| 50
- 40 -->|false| 45
- 45["Block 45:\n %46 = load %struct.Matrix*, %struct.Matrix** ...\n %47 = getelementptr inbounds %struct.Matrix, ...\n %48 = load i32, i32* %47, align 8\n %49 = icmp sgt i32 %48, 100\n br i1 %49, label %50, label %51\n"]
- 45 -->|true| 50
- 45 -->|false| 51
- 50["Block 50:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %209\n"]
- 50 --> 209
- 51["Block 51:\n %52 = load %struct.Matrix*, %struct.Matrix** ...\n %53 = getelementptr inbounds %struct.Matrix, ...\n %54 = load i32, i32* %53, align 8\n %55 = load %struct.Matrix*, %struct.Matrix** ...\n %56 = getelementptr inbounds %struct.Matrix, ...\n %57 = load i32, i32* %56, align 4\n %58 = call %struct.Matrix* @createMatrix(i32 ...\n store %struct.Matrix* %58, %struct.Matrix** %...\n %59 = load %struct.Matrix*, %struct.Matrix** ...\n %60 = icmp ne %struct.Matrix* %59, null\n br i1 %60, label %62, label %61\n"]
- 51 -->|true| 62
- 51 -->|false| 61
- 61["Block 61:\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %209\n"]
- 61 --> 209
- 62["Block 62:\n store i64 0, i64* %7, align 8\n store i32 0, i32* %8, align 4\n br label %63\n"]
- 62 --> 63
- 63["Block 63:\n %64 = load i32, i32* %8, align 4\n %65 = load %struct.Matrix*, %struct.Matrix** ...\n %66 = getelementptr inbounds %struct.Matrix, ...\n %67 = load i32, i32* %66, align 8\n %68 = icmp slt i32 %64, %67\n br i1 %68, label %69, label %197\n"]
- 63 -->|true| 69
- 63 -->|false| 197
- 69["Block 69:\n store i32 0, i32* %9, align 4\n br label %70\n"]
- 69 --> 70
- 70["Block 70:\n %71 = load i32, i32* %9, align 4\n %72 = load %struct.Matrix*, %struct.Matrix** ...\n %73 = getelementptr inbounds %struct.Matrix, ...\n %74 = load i32, i32* %73, align 4\n %75 = icmp slt i32 %71, %74\n br i1 %75, label %76, label %193\n"]
- 70 -->|true| 76
- 70 -->|false| 193
- 76["Block 76:\n store i64 0, i64* %10, align 8\n store i32 0, i32* %11, align 4\n br label %77\n"]
- 76 --> 77
- 77["Block 77:\n %78 = load i32, i32* %11, align 4\n %79 = load %struct.Matrix*, %struct.Matrix** ...\n %80 = getelementptr inbounds %struct.Matrix, ...\n %81 = load i32, i32* %80, align 4\n %82 = icmp slt i32 %78, %81\n br i1 %82, label %83, label %147\n"]
- 77 -->|true| 83
- 77 -->|false| 147
- 83["Block 83:\n %84 = load %struct.Matrix*, %struct.Matrix** ...\n %85 = getelementptr inbounds %struct.Matrix, ...\n %86 = load i32**, i32*** %85, align 8\n %87 = load i32, i32* %8, align 4\n %88 = sext i32 %87 to i64\n %89 = getelementptr inbounds i32*, i32** %86,...\n %90 = load i32*, i32** %89, align 8\n %91 = load i32, i32* %11, align 4\n %92 = sext i32 %91 to i64\n %93 = getelementptr inbounds i32, i32* %90, i...\n %94 = load i32, i32* %93, align 4\n %95 = sext i32 %94 to i64\n %96 = load %struct.Matrix*, %struct.Matrix** ...\n %97 = getelementptr inbounds %struct.Matrix, ...\n %98 = load i32**, i32*** %97, align 8\n %99 = load i32, i32* %11, align 4\n %100 = sext i32 %99 to i64\n %101 = getelementptr inbounds i32*, i32** %98...\n %102 = load i32*, i32** %101, align 8\n %103 = load i32, i32* %9, align 4\n %104 = sext i32 %103 to i64\n %105 = getelementptr inbounds i32, i32* %102,...\n %106 = load i32, i32* %105, align 4\n %107 = sext i32 %106 to i64\n %108 = mul nsw i64 %95, %107\n store i64 %108, i64* %12, align 8\n %109 = load i64, i64* %12, align 8\n %110 = load i64, i64* %10, align 8\n %111 = add nsw i64 %110, %109\n store i64 %111, i64* %10, align 8\n %112 = load i64, i64* %10, align 8\n %113 = icmp sgt i64 %112, 2147483647\n br i1 %113, label %117, label %114\n"]
- 83 -->|true| 117
- 83 -->|false| 114
- 114["Block 114:\n %115 = load i64, i64* %10, align 8\n %116 = icmp slt i64 %115, -2147483648\n br i1 %116, label %117, label %143\n"]
- 114 -->|true| 117
- 114 -->|false| 143
- 117["Block 117:\n call void @setErrorMessage(i8* getelementptr ...\n store i32 0, i32* %13, align 4\n br label %118\n"]
- 117 --> 118
- 118["Block 118:\n %119 = load i32, i32* %13, align 4\n %120 = load %struct.Matrix*, %struct.Matrix**...\n %121 = getelementptr inbounds %struct.Matrix,...\n %122 = load i32, i32* %121, align 8\n %123 = icmp slt i32 %119, %122\n br i1 %123, label %124, label %136\n"]
- 118 -->|true| 124
- 118 -->|false| 136
- 124["Block 124:\n %125 = load %struct.Matrix*, %struct.Matrix**...\n %126 = getelementptr inbounds %struct.Matrix,...\n %127 = load i32**, i32*** %126, align 8\n %128 = load i32, i32* %13, align 4\n %129 = sext i32 %128 to i64\n %130 = getelementptr inbounds i32*, i32** %12...\n %131 = load i32*, i32** %130, align 8\n %132 = bitcast i32* %131 to i8*\n call void @free(i8* %132) #7\n br label %133\n"]
- 124 --> 133
- 133["Block 133:\n %134 = load i32, i32* %13, align 4\n %135 = add nsw i32 %134, 1\n store i32 %135, i32* %13, align 4\n br label %118\n"]
- 133 --> 118
- 136["Block 136:\n %137 = load %struct.Matrix*, %struct.Matrix**...\n %138 = getelementptr inbounds %struct.Matrix,...\n %139 = load i32**, i32*** %138, align 8\n %140 = bitcast i32** %139 to i8*\n call void @free(i8* %140) #7\n %141 = load %struct.Matrix*, %struct.Matrix**...\n %142 = bitcast %struct.Matrix* %141 to i8*\n call void @free(i8* %142) #7\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %209\n"]
- 136 --> 209
- 143["Block 143:\n br label %144\n"]
- 143 --> 144
- 144["Block 144:\n %145 = load i32, i32* %11, align 4\n %146 = add nsw i32 %145, 1\n store i32 %146, i32* %11, align 4\n br label %77\n"]
- 144 --> 77
- 147["Block 147:\n %148 = load i64, i64* %10, align 8\n %149 = trunc i64 %148 to i32\n %150 = load %struct.Matrix*, %struct.Matrix**...\n %151 = getelementptr inbounds %struct.Matrix,...\n %152 = load i32**, i32*** %151, align 8\n %153 = load i32, i32* %8, align 4\n %154 = sext i32 %153 to i64\n %155 = getelementptr inbounds i32*, i32** %15...\n %156 = load i32*, i32** %155, align 8\n %157 = load i32, i32* %9, align 4\n %158 = sext i32 %157 to i64\n %159 = getelementptr inbounds i32, i32* %156,...\n store i32 %149, i32* %159, align 4\n %160 = load %struct.Matrix*, %struct.Matrix**...\n %161 = getelementptr inbounds %struct.Matrix,...\n %162 = load i32**, i32*** %161, align 8\n %163 = load i32, i32* %8, align 4\n %164 = sext i32 %163 to i64\n %165 = getelementptr inbounds i32*, i32** %16...\n %166 = load i32*, i32** %165, align 8\n %167 = load i32, i32* %9, align 4\n %168 = sext i32 %167 to i64\n %169 = getelementptr inbounds i32, i32* %166,...\n %170 = load i32, i32* %169, align 4\n %171 = call i32 @abs(i32 %170) #8\n %172 = sext i32 %171 to i64\n %173 = load i64, i64* %7, align 8\n %174 = icmp sgt i64 %172, %173\n br i1 %174, label %175, label %189\n"]
- 147 -->|true| 175
- 147 -->|false| 189
- 175["Block 175:\n %176 = load %struct.Matrix*, %struct.Matrix**...\n %177 = getelementptr inbounds %struct.Matrix,...\n %178 = load i32**, i32*** %177, align 8\n %179 = load i32, i32* %8, align 4\n %180 = sext i32 %179 to i64\n %181 = getelementptr inbounds i32*, i32** %17...\n %182 = load i32*, i32** %181, align 8\n %183 = load i32, i32* %9, align 4\n %184 = sext i32 %183 to i64\n %185 = getelementptr inbounds i32, i32* %182,...\n %186 = load i32, i32* %185, align 4\n %187 = call i32 @abs(i32 %186) #8\n %188 = sext i32 %187 to i64\n store i64 %188, i64* %7, align 8\n br label %189\n"]
- 175 --> 189
- 189["Block 189:\n br label %190\n"]
- 189 --> 190
- 190["Block 190:\n %191 = load i32, i32* %9, align 4\n %192 = add nsw i32 %191, 1\n store i32 %192, i32* %9, align 4\n br label %70\n"]
- 190 --> 70
- 193["Block 193:\n br label %194\n"]
- 193 --> 194
- 194["Block 194:\n %195 = load i32, i32* %8, align 4\n %196 = add nsw i32 %195, 1\n store i32 %196, i32* %8, align 4\n br label %63\n"]
- 194 --> 63
- 197["Block 197:\n %198 = load %struct.Matrix*, %struct.Matrix**...\n %199 = getelementptr inbounds %struct.Matrix,...\n %200 = load i32, i32* %199, align 8\n %201 = load %struct.Matrix*, %struct.Matrix**...\n %202 = getelementptr inbounds %struct.Matrix,...\n %203 = load i32, i32* %202, align 4\n %204 = icmp eq i32 %200, %203\n %205 = zext i1 %204 to i32\n %206 = load %struct.Matrix*, %struct.Matrix**...\n %207 = getelementptr inbounds %struct.Matrix,...\n store i32 %205, i32* %207, align 8\n %208 = load %struct.Matrix*, %struct.Matrix**...\n store %struct.Matrix* %208, %struct.Matrix** ...\n br label %209\n"]
- 197 --> 209
- 209["Block 209:\n %210 = load %struct.Matrix*, %struct.Matrix**...\n ret %struct.Matrix* %210\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: insertNode
- graph TD
- 2["Block 2:\n %3 = alloca %struct.Node*, align 8\n %4 = alloca %struct.Node*, align 8\n %5 = alloca i32, align 4\n %6 = alloca %struct.Node*, align 8\n %7 = alloca %struct.Node*, align 8\n %8 = alloca %struct.Node*, align 8\n %9 = alloca i32, align 4\n store %struct.Node* %0, %struct.Node** %4, al...\n store i32 %1, i32* %5, align 4\n %10 = call noalias i8* @malloc(i64 32) #7\n %11 = bitcast i8* %10 to %struct.Node*\n store %struct.Node* %11, %struct.Node** %6, a...\n %12 = load %struct.Node*, %struct.Node** %6, ...\n %13 = icmp ne %struct.Node* %12, null\n br i1 %13, label %16, label %14\n"]:::critical
- 2 -->|true| 16
- 2 -->|false| 14
- 14["Block 14:\n call void @setErrorMessage(i8* getelementptr ...\n %15 = load %struct.Node*, %struct.Node** %4, ...\n store %struct.Node* %15, %struct.Node** %3, a...\n br label %92\n"]
- 14 --> 92
- 16["Block 16:\n %17 = load i32, i32* %5, align 4\n %18 = load %struct.Node*, %struct.Node** %6, ...\n %19 = getelementptr inbounds %struct.Node, %s...\n store i32 %17, i32* %19, align 8\n %20 = load %struct.Node*, %struct.Node** %6, ...\n %21 = getelementptr inbounds %struct.Node, %s...\n store %struct.Node* null, %struct.Node** %21,...\n %22 = load %struct.Node*, %struct.Node** %6, ...\n %23 = getelementptr inbounds %struct.Node, %s...\n store %struct.Node* null, %struct.Node** %23,...\n %24 = load %struct.Node*, %struct.Node** %6, ...\n %25 = getelementptr inbounds %struct.Node, %s...\n store i32 0, i32* %25, align 8\n %26 = load %struct.Node*, %struct.Node** %4, ...\n %27 = icmp ne %struct.Node* %26, null\n br i1 %27, label %32, label %28\n"]
- 16 -->|true| 32
- 16 -->|false| 28
- 28["Block 28:\n %29 = load %struct.Node*, %struct.Node** %6, ...\n %30 = getelementptr inbounds %struct.Node, %s...\n store i32 0, i32* %30, align 4\n store i32 0, i32* @insertNode.maxDepth, align 4\n %31 = load %struct.Node*, %struct.Node** %6, ...\n store %struct.Node* %31, %struct.Node** %3, a...\n br label %92\n"]
- 28 --> 92
- 32["Block 32:\n %33 = load %struct.Node*, %struct.Node** %4, ...\n store %struct.Node* %33, %struct.Node** %7, a...\n store %struct.Node* null, %struct.Node** %8, ...\n store i32 0, i32* %9, align 4\n br label %34\n"]
- 32 --> 34
- 34["Block 34:\n %35 = load %struct.Node*, %struct.Node** %7, ...\n %36 = icmp ne %struct.Node* %35, null\n br i1 %36, label %37, label %43\n"]
- 34 -->|true| 37
- 34 -->|false| 43
- 37["Block 37:\n %38 = load %struct.Node*, %struct.Node** %7, ...\n %39 = getelementptr inbounds %struct.Node, %s...\n %40 = load i32, i32* %39, align 8\n %41 = load i32, i32* %5, align 4\n %42 = icmp slt i32 %40, %41\n br label %43\n"]
- 37 --> 43
- 43["Block 43:\n %44 = phi i1 [ false, %34 ], [ %42, %37 ]\n br i1 %44, label %45, label %59\n"]
- 43 -->|true| 45
- 43 -->|false| 59
- 45["Block 45:\n %46 = load %struct.Node*, %struct.Node** %7, ...\n store %struct.Node* %46, %struct.Node** %8, a...\n %47 = load %struct.Node*, %struct.Node** %7, ...\n %48 = getelementptr inbounds %struct.Node, %s...\n %49 = load %struct.Node*, %struct.Node** %48,...\n store %struct.Node* %49, %struct.Node** %7, a...\n %50 = load i32, i32* %9, align 4\n %51 = add nsw i32 %50, 1\n store i32 %51, i32* %9, align 4\n %52 = load i32, i32* %9, align 4\n %53 = icmp sgt i32 %52, 1000\n br i1 %53, label %54, label %58\n"]
- 45 -->|true| 54
- 45 -->|false| 58
- 54["Block 54:\n call void @setErrorMessage(i8* getelementptr ...\n %55 = load %struct.Node*, %struct.Node** %6, ...\n %56 = bitcast %struct.Node* %55 to i8*\n call void @free(i8* %56) #7\n %57 = load %struct.Node*, %struct.Node** %4, ...\n store %struct.Node* %57, %struct.Node** %3, a...\n br label %92\n"]
- 54 --> 92
- 58["Block 58:\n br label %34\n"]
- 58 --> 34
- 59["Block 59:\n %60 = load i32, i32* %9, align 4\n %61 = load i32, i32* @insertNode.maxDepth, al...\n %62 = icmp sgt i32 %60, %61\n br i1 %62, label %63, label %65\n"]
- 59 -->|true| 63
- 59 -->|false| 65
- 63["Block 63:\n %64 = load i32, i32* %9, align 4\n store i32 %64, i32* @insertNode.maxDepth, ali...\n br label %65\n"]
- 63 --> 65
- 65["Block 65:\n %66 = load i32, i32* %9, align 4\n %67 = load %struct.Node*, %struct.Node** %6, ...\n %68 = getelementptr inbounds %struct.Node, %s...\n store i32 %66, i32* %68, align 4\n %69 = load %struct.Node*, %struct.Node** %7, ...\n %70 = load %struct.Node*, %struct.Node** %6, ...\n %71 = getelementptr inbounds %struct.Node, %s...\n store %struct.Node* %69, %struct.Node** %71, ...\n %72 = load %struct.Node*, %struct.Node** %8, ...\n %73 = icmp ne %struct.Node* %72, null\n br i1 %73, label %74, label %81\n"]
- 65 -->|true| 74
- 65 -->|false| 81
- 74["Block 74:\n %75 = load %struct.Node*, %struct.Node** %6, ...\n %76 = load %struct.Node*, %struct.Node** %8, ...\n %77 = getelementptr inbounds %struct.Node, %s...\n store %struct.Node* %75, %struct.Node** %77, ...\n %78 = load %struct.Node*, %struct.Node** %8, ...\n %79 = load %struct.Node*, %struct.Node** %6, ...\n %80 = getelementptr inbounds %struct.Node, %s...\n store %struct.Node* %78, %struct.Node** %80, ...\n br label %83\n"]
- 74 --> 83
- 81["Block 81:\n %82 = load %struct.Node*, %struct.Node** %6, ...\n store %struct.Node* %82, %struct.Node** %3, a...\n br label %92\n"]
- 81 --> 92
- 83["Block 83:\n %84 = load %struct.Node*, %struct.Node** %7, ...\n %85 = icmp ne %struct.Node* %84, null\n br i1 %85, label %86, label %90\n"]
- 83 -->|true| 86
- 83 -->|false| 90
- 86["Block 86:\n %87 = load %struct.Node*, %struct.Node** %6, ...\n %88 = load %struct.Node*, %struct.Node** %7, ...\n %89 = getelementptr inbounds %struct.Node, %s...\n store %struct.Node* %87, %struct.Node** %89, ...\n br label %90\n"]
- 86 --> 90
- 90["Block 90:\n %91 = load %struct.Node*, %struct.Node** %4, ...\n store %struct.Node* %91, %struct.Node** %3, a...\n br label %92\n"]
- 90 --> 92
- 92["Block 92:\n %93 = load %struct.Node*, %struct.Node** %3, ...\n ret %struct.Node* %93\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: performSimpleCalculations
- graph TD
- 0["Block 0:\n %1 = alloca i32, align 4\n store i32 100, i32* %1, align 4\n %2 = load i32, i32* %1, align 4\n %3 = icmp sgt i32 %2, 50\n br i1 %3, label %4, label %9\n"]:::critical
- 0 -->|true| 4
- 0 -->|false| 9
- 4["Block 4:\n %5 = load i32, i32* %1, align 4\n %6 = mul nsw i32 %5, 2\n %7 = load i32, i32* @calculationResult, align 4\n %8 = add nsw i32 %7, %6\n store i32 %8, i32* @calculationResult, align 4\n br label %14\n"]
- 4 --> 14
- 9["Block 9:\n %10 = load i32, i32* %1, align 4\n %11 = sdiv i32 %10, 2\n %12 = load i32, i32* @calculationResult, align 4\n %13 = add nsw i32 %12, %11\n store i32 %13, i32* @calculationResult, align 4\n br label %14\n"]
- 9 --> 14
- 14["Block 14:\n %15 = load i32, i32* %1, align 4\n %16 = srem i32 %15, 3\n %17 = icmp eq i32 %16, 0\n br i1 %17, label %18, label %21\n"]:::critical
- 14 -->|true| 18
- 14 -->|false| 21
- 18["Block 18:\n %19 = load i32, i32* @calculationResult, align 4\n %20 = mul nsw i32 %19, 3\n store i32 %20, i32* @calculationResult, align 4\n br label %24\n"]
- 18 --> 24
- 21["Block 21:\n %22 = load i32, i32* @calculationResult, align 4\n %23 = add nsw i32 %22, 3\n store i32 %23, i32* @calculationResult, align 4\n br label %24\n"]
- 21 --> 24
- 24["Block 24:\n %25 = load i32, i32* @calculationResult, align 4\n %26 = icmp sge i32 %25, 150\n br i1 %26, label %27, label %33\n"]:::critical
- 24 -->|true| 27
- 24 -->|false| 33
- 27["Block 27:\n %28 = load i32, i32* @calculationResult, align 4\n %29 = icmp sle i32 %28, 300\n br i1 %29, label %30, label %33\n"]
- 27 -->|true| 30
- 27 -->|false| 33
- 30["Block 30:\n %31 = load i32, i32* @calculationResult, align 4\n %32 = sub nsw i32 %31, 50\n store i32 %32, i32* @calculationResult, align 4\n br label %36\n"]
- 30 --> 36
- 33["Block 33:\n %34 = load i32, i32* @calculationResult, align 4\n %35 = add nsw i32 %34, 50\n store i32 %35, i32* @calculationResult, align 4\n br label %36\n"]
- 33 --> 36
- 36["Block 36:\n %37 = load i32, i32* @calculationResult, align 4\n %38 = srem i32 %37, 2\n %39 = icmp eq i32 %38, 0\n br i1 %39, label %40, label %43\n"]:::critical
- 36 -->|true| 40
- 36 -->|false| 43
- 40["Block 40:\n %41 = load i32, i32* @calculationResult, align 4\n %42 = sdiv i32 %41, 2\n store i32 %42, i32* @calculationResult, align 4\n br label %46\n"]
- 40 --> 46
- 43["Block 43:\n %44 = load i32, i32* @calculationResult, align 4\n %45 = mul nsw i32 %44, 2\n store i32 %45, i32* @calculationResult, align 4\n br label %46\n"]
- 43 --> 46
- 46["Block 46:\n %47 = load i32, i32* @calculationResult, align 4\n %48 = srem i32 %47, 10\n %49 = icmp slt i32 %48, 5\n br i1 %49, label %50, label %53\n"]:::critical
- 46 -->|true| 50
- 46 -->|false| 53
- 50["Block 50:\n %51 = load i32, i32* @calculationResult, align 4\n %52 = add nsw i32 %51, 5\n store i32 %52, i32* @calculationResult, align 4\n br label %56\n"]
- 50 --> 56
- 53["Block 53:\n %54 = load i32, i32* @calculationResult, align 4\n %55 = sub nsw i32 %54, 5\n store i32 %55, i32* @calculationResult, align 4\n br label %56\n"]
- 53 --> 56
- 56["Block 56:\n %57 = load i32, i32* @calculationResult, align 4\n %58 = icmp sgt i32 %57, 1000\n br i1 %58, label %59, label %60\n"]:::critical
- 56 -->|true| 59
- 56 -->|false| 60
- 59["Block 59:\n store i32 1000, i32* @calculationResult, align 4\n br label %63\n"]
- 59 --> 63
- 60["Block 60:\n %61 = load i32, i32* @calculationResult, align 4\n %62 = add nsw i32 %61, 10\n store i32 %62, i32* @calculationResult, align 4\n br label %63\n"]
- 60 --> 63
- 63["Block 63:\n %64 = load i32, i32* @calculationResult, align 4\n %65 = call i32 (i8*, ...) @printf(i8* getelem...\n ret void\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: projectA_main
- graph TD
- 0["Block 0:\n %1 = alloca i32, align 4\n %2 = alloca %struct.DynamicArray*, align 8\n %3 = alloca i32, align 4\n %4 = alloca %struct.Matrix*, align 8\n %5 = alloca %struct.Matrix*, align 8\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca %struct.Matrix*, align 8\n %9 = alloca i32, align 4\n %10 = alloca %struct.Node*, align 8\n %11 = alloca i32, align 4\n %12 = alloca i32, align 4\n %13 = alloca %struct.Node*, align 8\n %14 = alloca %struct.Node*, align 8\n %15 = alloca i32, align 4\n %16 = alloca %struct.Node*, align 8\n %17 = alloca i32, align 4\n %18 = alloca i32, align 4\n %19 = alloca %struct.Node*, align 8\n %20 = call i64 @time(i64* null) #7\n %21 = trunc i64 %20 to i32\n call void @srand(i32 %21) #7\n %22 = call %struct.DynamicArray* @createDynam...\n store %struct.DynamicArray* %22, %struct.Dyna...\n %23 = load %struct.DynamicArray*, %struct.Dyn...\n %24 = icmp ne %struct.DynamicArray* %23, null\n br i1 %24, label %28, label %25\n"]:::critical
- 0 -->|true| 28
- 0 -->|false| 25
- 25["Block 25:\n %26 = call i8* @getErrorMessage()\n %27 = call i32 (i8*, ...) @printf(i8* getelem...\n store i32 -1, i32* %1, align 4\n br label %322\n"]
- 25 --> 322
- 28["Block 28:\n store i32 0, i32* %3, align 4\n br label %29\n"]
- 28 --> 29
- 29["Block 29:\n %30 = load i32, i32* %3, align 4\n %31 = icmp slt i32 %30, 15\n br i1 %31, label %32, label %45\n"]
- 29 -->|true| 32
- 29 -->|false| 45
- 32["Block 32:\n %33 = load %struct.DynamicArray*, %struct.Dyn...\n %34 = call i32 @rand() #7\n %35 = srem i32 %34, 100\n call void @pushBack(%struct.DynamicArray* %33...\n %36 = load i8*, i8** @globalErrorMessage, ali...\n %37 = icmp ne i8* %36, null\n br i1 %37, label %38, label %41\n"]
- 32 -->|true| 38
- 32 -->|false| 41
- 38["Block 38:\n %39 = call i8* @getErrorMessage()\n %40 = call i32 (i8*, ...) @printf(i8* getelem...\n br label %45\n"]
- 38 --> 45
- 41["Block 41:\n br label %42\n"]
- 41 --> 42
- 42["Block 42:\n %43 = load i32, i32* %3, align 4\n %44 = add nsw i32 %43, 1\n store i32 %44, i32* %3, align 4\n br label %29\n"]
- 42 --> 29
- 45["Block 45:\n %46 = call %struct.Matrix* @createMatrix(i32 ...\n store %struct.Matrix* %46, %struct.Matrix** %...\n %47 = call %struct.Matrix* @createMatrix(i32 ...\n store %struct.Matrix* %47, %struct.Matrix** %...\n %48 = load %struct.Matrix*, %struct.Matrix** ...\n %49 = icmp ne %struct.Matrix* %48, null\n br i1 %49, label %50, label %53\n"]
- 45 -->|true| 50
- 45 -->|false| 53
- 50["Block 50:\n %51 = load %struct.Matrix*, %struct.Matrix** ...\n %52 = icmp ne %struct.Matrix* %51, null\n br i1 %52, label %74, label %53\n"]
- 50 -->|true| 74
- 50 -->|false| 53
- 53["Block 53:\n %54 = call i8* @getErrorMessage()\n %55 = call i32 (i8*, ...) @printf(i8* getelem...\n %56 = load %struct.Matrix*, %struct.Matrix** ...\n %57 = icmp ne %struct.Matrix* %56, null\n br i1 %57, label %58, label %61\n"]
- 53 -->|true| 58
- 53 -->|false| 61
- 58["Block 58:\n %59 = load %struct.Matrix*, %struct.Matrix** ...\n %60 = bitcast %struct.Matrix* %59 to i8*\n call void @free(i8* %60) #7\n br label %61\n"]
- 58 --> 61
- 61["Block 61:\n %62 = load %struct.Matrix*, %struct.Matrix** ...\n %63 = icmp ne %struct.Matrix* %62, null\n br i1 %63, label %64, label %67\n"]
- 61 -->|true| 64
- 61 -->|false| 67
- 64["Block 64:\n %65 = load %struct.Matrix*, %struct.Matrix** ...\n %66 = bitcast %struct.Matrix* %65 to i8*\n call void @free(i8* %66) #7\n br label %67\n"]
- 64 --> 67
- 67["Block 67:\n %68 = load %struct.DynamicArray*, %struct.Dyn...\n %69 = getelementptr inbounds %struct.DynamicA...\n %70 = load i32*, i32** %69, align 8\n %71 = bitcast i32* %70 to i8*\n call void @free(i8* %71) #7\n %72 = load %struct.DynamicArray*, %struct.Dyn...\n %73 = bitcast %struct.DynamicArray* %72 to i8*\n call void @free(i8* %73) #7\n store i32 -1, i32* %1, align 4\n br label %322\n"]
- 67 --> 322
- 74["Block 74:\n store i32 0, i32* %6, align 4\n br label %75\n"]
- 74 --> 75
- 75["Block 75:\n %76 = load i32, i32* %6, align 4\n %77 = icmp slt i32 %76, 3\n br i1 %77, label %78, label %114\n"]
- 75 -->|true| 78
- 75 -->|false| 114
- 78["Block 78:\n store i32 0, i32* %7, align 4\n br label %79\n"]
- 78 --> 79
- 79["Block 79:\n %80 = load i32, i32* %7, align 4\n %81 = icmp slt i32 %80, 3\n br i1 %81, label %82, label %110\n"]
- 79 -->|true| 82
- 79 -->|false| 110
- 82["Block 82:\n %83 = call i32 @rand() #7\n %84 = srem i32 %83, 10\n %85 = load %struct.Matrix*, %struct.Matrix** ...\n %86 = getelementptr inbounds %struct.Matrix, ...\n %87 = load i32**, i32*** %86, align 8\n %88 = load i32, i32* %6, align 4\n %89 = sext i32 %88 to i64\n %90 = getelementptr inbounds i32*, i32** %87,...\n %91 = load i32*, i32** %90, align 8\n %92 = load i32, i32* %7, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds i32, i32* %91, i...\n store i32 %84, i32* %94, align 4\n %95 = call i32 @rand() #7\n %96 = srem i32 %95, 10\n %97 = load %struct.Matrix*, %struct.Matrix** ...\n %98 = getelementptr inbounds %struct.Matrix, ...\n %99 = load i32**, i32*** %98, align 8\n %100 = load i32, i32* %6, align 4\n %101 = sext i32 %100 to i64\n %102 = getelementptr inbounds i32*, i32** %99...\n %103 = load i32*, i32** %102, align 8\n %104 = load i32, i32* %7, align 4\n %105 = sext i32 %104 to i64\n %106 = getelementptr inbounds i32, i32* %103,...\n store i32 %96, i32* %106, align 4\n br label %107\n"]
- 82 --> 107
- 107["Block 107:\n %108 = load i32, i32* %7, align 4\n %109 = add nsw i32 %108, 1\n store i32 %109, i32* %7, align 4\n br label %79\n"]
- 107 --> 79
- 110["Block 110:\n br label %111\n"]
- 110 --> 111
- 111["Block 111:\n %112 = load i32, i32* %6, align 4\n %113 = add nsw i32 %112, 1\n store i32 %113, i32* %6, align 4\n br label %75\n"]
- 111 --> 75
- 114["Block 114:\n %115 = load %struct.Matrix*, %struct.Matrix**...\n %116 = load %struct.Matrix*, %struct.Matrix**...\n %117 = call %struct.Matrix* @multiplyMatrices...\n store %struct.Matrix* %117, %struct.Matrix** ...\n %118 = load %struct.Matrix*, %struct.Matrix**...\n %119 = icmp ne %struct.Matrix* %118, null\n br i1 %119, label %168, label %120\n"]
- 114 -->|true| 168
- 114 -->|false| 120
- 120["Block 120:\n %121 = call i8* @getErrorMessage()\n %122 = call i32 (i8*, ...) @printf(i8* getele...\n store i32 0, i32* %9, align 4\n br label %123\n"]
- 120 --> 123
- 123["Block 123:\n %124 = load i32, i32* %9, align 4\n %125 = load %struct.Matrix*, %struct.Matrix**...\n %126 = getelementptr inbounds %struct.Matrix,...\n %127 = load i32, i32* %126, align 8\n %128 = icmp slt i32 %124, %127\n br i1 %128, label %129, label %149\n"]
- 123 -->|true| 129
- 123 -->|false| 149
- 129["Block 129:\n %130 = load %struct.Matrix*, %struct.Matrix**...\n %131 = getelementptr inbounds %struct.Matrix,...\n %132 = load i32**, i32*** %131, align 8\n %133 = load i32, i32* %9, align 4\n %134 = sext i32 %133 to i64\n %135 = getelementptr inbounds i32*, i32** %13...\n %136 = load i32*, i32** %135, align 8\n %137 = bitcast i32* %136 to i8*\n call void @free(i8* %137) #7\n %138 = load %struct.Matrix*, %struct.Matrix**...\n %139 = getelementptr inbounds %struct.Matrix,...\n %140 = load i32**, i32*** %139, align 8\n %141 = load i32, i32* %9, align 4\n %142 = sext i32 %141 to i64\n %143 = getelementptr inbounds i32*, i32** %14...\n %144 = load i32*, i32** %143, align 8\n %145 = bitcast i32* %144 to i8*\n call void @free(i8* %145) #7\n br label %146\n"]
- 129 --> 146
- 146["Block 146:\n %147 = load i32, i32* %9, align 4\n %148 = add nsw i32 %147, 1\n store i32 %148, i32* %9, align 4\n br label %123\n"]
- 146 --> 123
- 149["Block 149:\n %150 = load %struct.Matrix*, %struct.Matrix**...\n %151 = getelementptr inbounds %struct.Matrix,...\n %152 = load i32**, i32*** %151, align 8\n %153 = bitcast i32** %152 to i8*\n call void @free(i8* %153) #7\n %154 = load %struct.Matrix*, %struct.Matrix**...\n %155 = getelementptr inbounds %struct.Matrix,...\n %156 = load i32**, i32*** %155, align 8\n %157 = bitcast i32** %156 to i8*\n call void @free(i8* %157) #7\n %158 = load %struct.Matrix*, %struct.Matrix**...\n %159 = bitcast %struct.Matrix* %158 to i8*\n call void @free(i8* %159) #7\n %160 = load %struct.Matrix*, %struct.Matrix**...\n %161 = bitcast %struct.Matrix* %160 to i8*\n call void @free(i8* %161) #7\n %162 = load %struct.DynamicArray*, %struct.Dy...\n %163 = getelementptr inbounds %struct.Dynamic...\n %164 = load i32*, i32** %163, align 8\n %165 = bitcast i32* %164 to i8*\n call void @free(i8* %165) #7\n %166 = load %struct.DynamicArray*, %struct.Dy...\n %167 = bitcast %struct.DynamicArray* %166 to i8*\n call void @free(i8* %167) #7\n store i32 -1, i32* %1, align 4\n br label %322\n"]
- 149 --> 322
- 168["Block 168:\n store %struct.Node* null, %struct.Node** %10,...\n store i32 0, i32* %11, align 4\n br label %169\n"]
- 168 --> 169
- 169["Block 169:\n %170 = load i32, i32* %11, align 4\n %171 = icmp slt i32 %170, 5\n br i1 %171, label %172, label %186\n"]
- 169 -->|true| 172
- 169 -->|false| 186
- 172["Block 172:\n %173 = load %struct.Node*, %struct.Node** %10...\n %174 = call i32 @rand() #7\n %175 = srem i32 %174, 50\n %176 = call %struct.Node* @insertNode(%struct...\n store %struct.Node* %176, %struct.Node** %10,...\n %177 = load i8*, i8** @globalErrorMessage, al...\n %178 = icmp ne i8* %177, null\n br i1 %178, label %179, label %182\n"]
- 172 -->|true| 179
- 172 -->|false| 182
- 179["Block 179:\n %180 = call i8* @getErrorMessage()\n %181 = call i32 (i8*, ...) @printf(i8* getele...\n br label %186\n"]
- 179 --> 186
- 182["Block 182:\n br label %183\n"]
- 182 --> 183
- 183["Block 183:\n %184 = load i32, i32* %11, align 4\n %185 = add nsw i32 %184, 1\n store i32 %185, i32* %11, align 4\n br label %169\n"]
- 183 --> 169
- 186["Block 186:\n %187 = load %struct.DynamicArray*, %struct.Dy...\n %188 = getelementptr inbounds %struct.Dynamic...\n %189 = load i32*, i32** %188, align 8\n %190 = bitcast i32* %189 to i8*\n call void @free(i8* %190) #7\n %191 = load %struct.DynamicArray*, %struct.Dy...\n %192 = bitcast %struct.DynamicArray* %191 to i8*\n call void @free(i8* %192) #7\n store i32 0, i32* %12, align 4\n br label %193\n"]
- 186 --> 193
- 193["Block 193:\n %194 = load i32, i32* %12, align 4\n %195 = load %struct.Matrix*, %struct.Matrix**...\n %196 = getelementptr inbounds %struct.Matrix,...\n %197 = load i32, i32* %196, align 8\n %198 = icmp slt i32 %194, %197\n br i1 %198, label %199, label %227\n"]
- 193 -->|true| 199
- 193 -->|false| 227
- 199["Block 199:\n %200 = load %struct.Matrix*, %struct.Matrix**...\n %201 = getelementptr inbounds %struct.Matrix,...\n %202 = load i32**, i32*** %201, align 8\n %203 = load i32, i32* %12, align 4\n %204 = sext i32 %203 to i64\n %205 = getelementptr inbounds i32*, i32** %20...\n %206 = load i32*, i32** %205, align 8\n %207 = bitcast i32* %206 to i8*\n call void @free(i8* %207) #7\n %208 = load %struct.Matrix*, %struct.Matrix**...\n %209 = getelementptr inbounds %struct.Matrix,...\n %210 = load i32**, i32*** %209, align 8\n %211 = load i32, i32* %12, align 4\n %212 = sext i32 %211 to i64\n %213 = getelementptr inbounds i32*, i32** %21...\n %214 = load i32*, i32** %213, align 8\n %215 = bitcast i32* %214 to i8*\n call void @free(i8* %215) #7\n %216 = load %struct.Matrix*, %struct.Matrix**...\n %217 = getelementptr inbounds %struct.Matrix,...\n %218 = load i32**, i32*** %217, align 8\n %219 = load i32, i32* %12, align 4\n %220 = sext i32 %219 to i64\n %221 = getelementptr inbounds i32*, i32** %21...\n %222 = load i32*, i32** %221, align 8\n %223 = bitcast i32* %222 to i8*\n call void @free(i8* %223) #7\n br label %224\n"]
- 199 --> 224
- 224["Block 224:\n %225 = load i32, i32* %12, align 4\n %226 = add nsw i32 %225, 1\n store i32 %226, i32* %12, align 4\n br label %193\n"]
- 224 --> 193
- 227["Block 227:\n %228 = load %struct.Matrix*, %struct.Matrix**...\n %229 = getelementptr inbounds %struct.Matrix,...\n %230 = load i32**, i32*** %229, align 8\n %231 = bitcast i32** %230 to i8*\n call void @free(i8* %231) #7\n %232 = load %struct.Matrix*, %struct.Matrix**...\n %233 = getelementptr inbounds %struct.Matrix,...\n %234 = load i32**, i32*** %233, align 8\n %235 = bitcast i32** %234 to i8*\n call void @free(i8* %235) #7\n %236 = load %struct.Matrix*, %struct.Matrix**...\n %237 = getelementptr inbounds %struct.Matrix,...\n %238 = load i32**, i32*** %237, align 8\n %239 = bitcast i32** %238 to i8*\n call void @free(i8* %239) #7\n %240 = load %struct.Matrix*, %struct.Matrix**...\n %241 = bitcast %struct.Matrix* %240 to i8*\n call void @free(i8* %241) #7\n %242 = load %struct.Matrix*, %struct.Matrix**...\n %243 = bitcast %struct.Matrix* %242 to i8*\n call void @free(i8* %243) #7\n %244 = load %struct.Matrix*, %struct.Matrix**...\n %245 = bitcast %struct.Matrix* %244 to i8*\n call void @free(i8* %245) #7\n %246 = load %struct.Node*, %struct.Node** %10...\n %247 = icmp ne %struct.Node* %246, null\n br i1 %247, label %248, label %316\n"]
- 227 -->|true| 248
- 227 -->|false| 316
- 248["Block 248:\n %249 = load %struct.Node*, %struct.Node** %10...\n store %struct.Node* %249, %struct.Node** %13,...\n %250 = load %struct.Node*, %struct.Node** %10...\n store %struct.Node* %250, %struct.Node** %14,...\n store i32 0, i32* %15, align 4\n br label %251\n"]
- 248 --> 251
- 251["Block 251:\n %252 = load %struct.Node*, %struct.Node** %14...\n %253 = icmp ne %struct.Node* %252, null\n br i1 %253, label %254, label %259\n"]
- 251 -->|true| 254
- 251 -->|false| 259
- 254["Block 254:\n %255 = load %struct.Node*, %struct.Node** %14...\n %256 = getelementptr inbounds %struct.Node, %...\n %257 = load %struct.Node*, %struct.Node** %25...\n %258 = icmp ne %struct.Node* %257, null\n br label %259\n"]
- 254 --> 259
- 259["Block 259:\n %260 = phi i1 [ false, %251 ], [ %258, %254 ]\n br i1 %260, label %261, label %275\n"]
- 259 -->|true| 261
- 259 -->|false| 275
- 261["Block 261:\n %262 = load %struct.Node*, %struct.Node** %13...\n %263 = getelementptr inbounds %struct.Node, %...\n %264 = load %struct.Node*, %struct.Node** %26...\n store %struct.Node* %264, %struct.Node** %13,...\n %265 = load %struct.Node*, %struct.Node** %14...\n %266 = getelementptr inbounds %struct.Node, %...\n %267 = load %struct.Node*, %struct.Node** %26...\n %268 = getelementptr inbounds %struct.Node, %...\n %269 = load %struct.Node*, %struct.Node** %26...\n store %struct.Node* %269, %struct.Node** %14,...\n %270 = load %struct.Node*, %struct.Node** %13...\n %271 = load %struct.Node*, %struct.Node** %14...\n %272 = icmp eq %struct.Node* %270, %271\n br i1 %272, label %273, label %274\n"]
- 261 -->|true| 273
- 261 -->|false| 274
- 273["Block 273:\n store i32 1, i32* %15, align 4\n br label %275\n"]
- 273 --> 275
- 274["Block 274:\n br label %251\n"]
- 274 --> 251
- 275["Block 275:\n %276 = load i32, i32* %15, align 4\n %277 = icmp ne i32 %276, 0\n br i1 %277, label %278, label %304\n"]
- 275 -->|true| 278
- 275 -->|false| 304
- 278["Block 278:\n call void @setErrorMessage(i8* getelementptr ...\n %279 = load %struct.Node*, %struct.Node** %10...\n store %struct.Node* %279, %struct.Node** %16,...\n store i32 1000, i32* %17, align 4\n store i32 0, i32* %18, align 4\n br label %280\n"]
- 278 --> 280
- 280["Block 280:\n %281 = load %struct.Node*, %struct.Node** %16...\n %282 = icmp ne %struct.Node* %281, null\n br i1 %282, label %283, label %287\n"]
- 280 -->|true| 283
- 280 -->|false| 287
- 283["Block 283:\n %284 = load i32, i32* %18, align 4\n %285 = load i32, i32* %17, align 4\n %286 = icmp slt i32 %284, %285\n br label %287\n"]
- 283 --> 287
- 287["Block 287:\n %288 = phi i1 [ false, %280 ], [ %286, %283 ]\n br i1 %288, label %289, label %303\n"]
- 287 -->|true| 289
- 287 -->|false| 303
- 289["Block 289:\n %290 = load %struct.Node*, %struct.Node** %16...\n %291 = getelementptr inbounds %struct.Node, %...\n %292 = load i32, i32* %291, align 8\n %293 = icmp ne i32 %292, 0\n br i1 %293, label %294, label %295\n"]
- 289 -->|true| 294
- 289 -->|false| 295
- 294["Block 294:\n br label %303\n"]
- 294 --> 303
- 295["Block 295:\n %296 = load %struct.Node*, %struct.Node** %16...\n %297 = getelementptr inbounds %struct.Node, %...\n store i32 1, i32* %297, align 8\n %298 = load %struct.Node*, %struct.Node** %16...\n %299 = getelementptr inbounds %struct.Node, %...\n %300 = load %struct.Node*, %struct.Node** %29...\n store %struct.Node* %300, %struct.Node** %16,...\n %301 = load i32, i32* %18, align 4\n %302 = add nsw i32 %301, 1\n store i32 %302, i32* %18, align 4\n br label %280\n"]
- 295 --> 280
- 303["Block 303:\n br label %304\n"]
- 303 --> 304
- 304["Block 304:\n br label %305\n"]
- 304 --> 305
- 305["Block 305:\n %306 = load %struct.Node*, %struct.Node** %10...\n %307 = icmp ne %struct.Node* %306, null\n br i1 %307, label %308, label %315\n"]
- 305 -->|true| 308
- 305 -->|false| 315
- 308["Block 308:\n %309 = load %struct.Node*, %struct.Node** %10...\n store %struct.Node* %309, %struct.Node** %19,...\n %310 = load %struct.Node*, %struct.Node** %10...\n %311 = getelementptr inbounds %struct.Node, %...\n %312 = load %struct.Node*, %struct.Node** %31...\n store %struct.Node* %312, %struct.Node** %10,...\n %313 = load %struct.Node*, %struct.Node** %19...\n %314 = bitcast %struct.Node* %313 to i8*\n call void @free(i8* %314) #7\n br label %305\n"]
- 308 --> 305
- 315["Block 315:\n br label %316\n"]
- 315 --> 316
- 316["Block 316:\n %317 = load i8*, i8** @globalErrorMessage, al...\n %318 = icmp ne i8* %317, null\n br i1 %318, label %319, label %321\n"]
- 316 -->|true| 319
- 316 -->|false| 321
- 319["Block 319:\n %320 = load i8*, i8** @globalErrorMessage, al...\n call void @free(i8* %320) #7\n br label %321\n"]
- 319 --> 321
- 321["Block 321:\n call void @performSimpleCalculations()\n store i32 0, i32* %1, align 4\n br label %322\n"]
- 321 --> 322
- 322["Block 322:\n %323 = load i32, i32* %1, align 4\n ret i32 %323\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: calculateDistance
- graph TD
- 3["Block 3:\n %4 = alloca double, align 8\n %5 = alloca i32*, align 8\n %6 = alloca double, align 8\n %7 = alloca double, align 8\n %8 = alloca double, align 8\n store i32* %2, i32** %5, align 8\n %9 = load i32*, i32** %5, align 8\n store i32 0, i32* %9, align 4\n %10 = getelementptr inbounds %struct.Point, %...\n %11 = load double, double* %10, align 8\n %12 = fcmp ole double %11, 0.000000e+00\n br i1 %12, label %17, label %13\n"]:::critical
- 3 -->|true| 17
- 3 -->|false| 13
- 13["Block 13:\n %14 = getelementptr inbounds %struct.Point, %...\n %15 = load double, double* %14, align 8\n %16 = fcmp ole double %15, 0.000000e+00\n br i1 %16, label %17, label %19\n"]
- 13 -->|true| 17
- 13 -->|false| 19
- 17["Block 17:\n %18 = load i32*, i32** %5, align 8\n store i32 1, i32* %18, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %4, align 8\n br label %101\n"]
- 17 --> 101
- 19["Block 19:\n %20 = getelementptr inbounds %struct.Point, %...\n %21 = load i32, i32* %20, align 8\n %22 = call i32 @abs(i32 %21) #7\n %23 = icmp sgt i32 %22, 1000\n br i1 %23, label %39, label %24\n"]
- 19 -->|true| 39
- 19 -->|false| 24
- 24["Block 24:\n %25 = getelementptr inbounds %struct.Point, %...\n %26 = load i32, i32* %25, align 4\n %27 = call i32 @abs(i32 %26) #7\n %28 = icmp sgt i32 %27, 1000\n br i1 %28, label %39, label %29\n"]
- 24 -->|true| 39
- 24 -->|false| 29
- 29["Block 29:\n %30 = getelementptr inbounds %struct.Point, %...\n %31 = load i32, i32* %30, align 8\n %32 = call i32 @abs(i32 %31) #7\n %33 = icmp sgt i32 %32, 1000\n br i1 %33, label %39, label %34\n"]
- 29 -->|true| 39
- 29 -->|false| 34
- 34["Block 34:\n %35 = getelementptr inbounds %struct.Point, %...\n %36 = load i32, i32* %35, align 4\n %37 = call i32 @abs(i32 %36) #7\n %38 = icmp sgt i32 %37, 1000\n br i1 %38, label %39, label %41\n"]
- 34 -->|true| 39
- 34 -->|false| 41
- 39["Block 39:\n %40 = load i32*, i32** %5, align 8\n store i32 3, i32* %40, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %4, align 8\n br label %101\n"]
- 39 --> 101
- 41["Block 41:\n %42 = getelementptr inbounds %struct.Point, %...\n %43 = load i32, i32* %42, align 8\n %44 = getelementptr inbounds %struct.Point, %...\n %45 = load i32, i32* %44, align 8\n %46 = sub nsw i32 %43, %45\n %47 = sitofp i32 %46 to double\n %48 = getelementptr inbounds %struct.Point, %...\n %49 = load double, double* %48, align 8\n %50 = getelementptr inbounds %struct.Point, %...\n %51 = load double, double* %50, align 8\n %52 = fdiv double %49, %51\n %53 = call double @sqrt(double %52) #8\n %54 = fmul double %47, %53\n store double %54, double* %6, align 8\n %55 = getelementptr inbounds %struct.Point, %...\n %56 = load i32, i32* %55, align 4\n %57 = getelementptr inbounds %struct.Point, %...\n %58 = load i32, i32* %57, align 4\n %59 = sub nsw i32 %56, %58\n %60 = sitofp i32 %59 to double\n %61 = getelementptr inbounds %struct.Point, %...\n %62 = load double, double* %61, align 8\n %63 = getelementptr inbounds %struct.Point, %...\n %64 = load double, double* %63, align 8\n %65 = fdiv double %62, %64\n %66 = call double @sqrt(double %65) #8\n %67 = fmul double %60, %66\n store double %67, double* %7, align 8\n %68 = load double, double* %6, align 8\n %69 = call double @llvm.fabs.f64(double %68)\n %70 = fcmp ogt double %69, 1.000000e+03\n br i1 %70, label %75, label %71\n"]
- 41 -->|true| 75
- 41 -->|false| 71
- 71["Block 71:\n %72 = load double, double* %7, align 8\n %73 = call double @llvm.fabs.f64(double %72)\n %74 = fcmp ogt double %73, 1.000000e+03\n br i1 %74, label %75, label %77\n"]
- 71 -->|true| 75
- 71 -->|false| 77
- 75["Block 75:\n %76 = load i32*, i32** %5, align 8\n store i32 5, i32* %76, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %4, align 8\n br label %101\n"]
- 75 --> 101
- 77["Block 77:\n %78 = load double, double* %6, align 8\n %79 = load double, double* %6, align 8\n %80 = fmul double %78, %79\n %81 = load double, double* %7, align 8\n %82 = load double, double* %7, align 8\n %83 = fmul double %81, %82\n %84 = fadd double %80, %83\n %85 = call double @sqrt(double %84) #8\n store double %85, double* %8, align 8\n %86 = load double, double* %8, align 8\n %87 = fcmp uno double %86, %86\n br i1 %87, label %97, label %88\n"]
- 77 -->|true| 97
- 77 -->|false| 88
- 88["Block 88:\n %89 = load double, double* %8, align 8\n %90 = call double @llvm.fabs.f64(double %89) #9\n %91 = fcmp oeq double %90, 0x7FF0000000000000\n %92 = bitcast double %89 to i64\n %93 = icmp slt i64 %92, 0\n %94 = select i1 %93, i32 -1, i32 1\n %95 = select i1 %91, i32 %94, i32 0\n %96 = icmp ne i32 %95, 0\n br i1 %96, label %97, label %99\n"]
- 88 -->|true| 97
- 88 -->|false| 99
- 97["Block 97:\n %98 = load i32*, i32** %5, align 8\n store i32 8, i32* %98, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %4, align 8\n br label %101\n"]
- 97 --> 101
- 99["Block 99:\n %100 = load double, double* %8, align 8\n store double %100, double* %4, align 8\n br label %101\n"]
- 99 --> 101
- 101["Block 101:\n %102 = load double, double* %4, align 8\n ret double %102\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: calculateCircleArea
- graph TD
- 2["Block 2:\n %3 = alloca double, align 8\n %4 = alloca i32*, align 8\n %5 = alloca double, align 8\n store i32* %1, i32** %4, align 8\n %6 = load i32*, i32** %4, align 8\n store i32 0, i32* %6, align 4\n %7 = getelementptr inbounds %struct.Circle, %...\n %8 = load i32, i32* %7, align 8\n %9 = icmp ne i32 %8, 0\n br i1 %9, label %12, label %10\n"]:::critical
- 2 -->|true| 12
- 2 -->|false| 10
- 10["Block 10:\n %11 = load i32*, i32** %4, align 8\n store i32 1, i32* %11, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %3, align 8\n br label %85\n"]
- 10 --> 85
- 12["Block 12:\n %13 = getelementptr inbounds %struct.Circle, ...\n %14 = load double, double* %13, align 8\n %15 = fcmp ole double %14, 0.000000e+00\n br i1 %15, label %16, label %18\n"]
- 12 -->|true| 16
- 12 -->|false| 18
- 16["Block 16:\n %17 = load i32*, i32** %4, align 8\n store i32 1, i32* %17, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %3, align 8\n br label %85\n"]
- 16 --> 85
- 18["Block 18:\n %19 = getelementptr inbounds %struct.Circle, ...\n %20 = load double, double* %19, align 8\n %21 = fcmp ogt double %20, 1.000000e+03\n br i1 %21, label %22, label %24\n"]
- 18 -->|true| 22
- 18 -->|false| 24
- 22["Block 22:\n %23 = load i32*, i32** %4, align 8\n store i32 3, i32* %23, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %3, align 8\n br label %85\n"]
- 22 --> 85
- 24["Block 24:\n %25 = getelementptr inbounds %struct.Circle, ...\n %26 = getelementptr inbounds %struct.Point, %...\n %27 = load i32, i32* %26, align 8\n %28 = call i32 @abs(i32 %27) #7\n %29 = icmp sgt i32 %28, 1000\n br i1 %29, label %36, label %30\n"]
- 24 -->|true| 36
- 24 -->|false| 30
- 30["Block 30:\n %31 = getelementptr inbounds %struct.Circle, ...\n %32 = getelementptr inbounds %struct.Point, %...\n %33 = load i32, i32* %32, align 4\n %34 = call i32 @abs(i32 %33) #7\n %35 = icmp sgt i32 %34, 1000\n br i1 %35, label %36, label %38\n"]
- 30 -->|true| 36
- 30 -->|false| 38
- 36["Block 36:\n %37 = load i32*, i32** %4, align 8\n store i32 3, i32* %37, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %3, align 8\n br label %85\n"]
- 36 --> 85
- 38["Block 38:\n %39 = getelementptr inbounds %struct.Circle, ...\n %40 = load double, double* %39, align 8\n %41 = fmul double 3.141590e+00, %40\n %42 = getelementptr inbounds %struct.Circle, ...\n %43 = load double, double* %42, align 8\n %44 = fmul double %41, %43\n store double %44, double* %5, align 8\n %45 = load double, double* %5, align 8\n %46 = fcmp uno double %45, %45\n br i1 %46, label %56, label %47\n"]
- 38 -->|true| 56
- 38 -->|false| 47
- 47["Block 47:\n %48 = load double, double* %5, align 8\n %49 = call double @llvm.fabs.f64(double %48) #8\n %50 = fcmp oeq double %49, 0x7FF0000000000000\n %51 = bitcast double %48 to i64\n %52 = icmp slt i64 %51, 0\n %53 = select i1 %52, i32 -1, i32 1\n %54 = select i1 %50, i32 %53, i32 0\n %55 = icmp ne i32 %54, 0\n br i1 %55, label %56, label %58\n"]
- 47 -->|true| 56
- 47 -->|false| 58
- 56["Block 56:\n %57 = load i32*, i32** %4, align 8\n store i32 5, i32* %57, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %3, align 8\n br label %85\n"]
- 56 --> 85
- 58["Block 58:\n %59 = getelementptr inbounds %struct.Circle, ...\n %60 = getelementptr inbounds [256 x i8], [256...\n %61 = call i32 @strcmp(i8* %60, i8* getelemen...\n %62 = icmp eq i32 %61, 0\n br i1 %62, label %63, label %65\n"]
- 58 -->|true| 63
- 58 -->|false| 65
- 63["Block 63:\n %64 = load double, double* %5, align 8\n store double %64, double* %3, align 8\n br label %85\n"]
- 63 --> 85
- 65["Block 65:\n %66 = getelementptr inbounds %struct.Circle, ...\n %67 = getelementptr inbounds [256 x i8], [256...\n %68 = call i32 @strcmp(i8* %67, i8* getelemen...\n %69 = icmp eq i32 %68, 0\n br i1 %69, label %70, label %83\n"]
- 65 -->|true| 70
- 65 -->|false| 83
- 70["Block 70:\n %71 = getelementptr inbounds %struct.Circle, ...\n %72 = getelementptr inbounds %struct.Point, %...\n %73 = load double, double* %72, align 8\n %74 = fcmp ole double %73, 0.000000e+00\n br i1 %74, label %75, label %77\n"]
- 70 -->|true| 75
- 70 -->|false| 77
- 75["Block 75:\n %76 = load i32*, i32** %4, align 8\n store i32 1, i32* %76, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %3, align 8\n br label %85\n"]
- 75 --> 85
- 77["Block 77:\n %78 = load double, double* %5, align 8\n %79 = getelementptr inbounds %struct.Circle, ...\n %80 = getelementptr inbounds %struct.Point, %...\n %81 = load double, double* %80, align 8\n %82 = fmul double %78, %81\n store double %82, double* %3, align 8\n br label %85\n"]
- 77 --> 85
- 83["Block 83:\n %84 = load i32*, i32** %4, align 8\n store i32 1, i32* %84, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store double -1.000000e+00, double* %3, align 8\n br label %85\n"]
- 83 --> 85
- 85["Block 85:\n %86 = load double, double* %3, align 8\n ret double %86\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: validateMatrix
- graph TD
- 1["Block 1:\n %2 = alloca i32, align 4\n %3 = alloca %struct.Matrix*, align 8\n %4 = alloca i32, align 4\n store %struct.Matrix* %0, %struct.Matrix** %3...\n %5 = load %struct.Matrix*, %struct.Matrix** %...\n %6 = icmp ne %struct.Matrix* %5, null\n br i1 %6, label %8, label %7\n"]:::critical
- 1 -->|true| 8
- 1 -->|false| 7
- 7["Block 7:\n call void @setErrorMessage(i8* getelementptr ...\n store i32 7, i32* %2, align 4\n br label %72\n"]
- 7 --> 72
- 8["Block 8:\n %9 = load %struct.Matrix*, %struct.Matrix** %...\n %10 = getelementptr inbounds %struct.Matrix, ...\n %11 = load i32**, i32*** %10, align 8\n %12 = icmp ne i32** %11, null\n br i1 %12, label %14, label %13\n"]
- 8 -->|true| 14
- 8 -->|false| 13
- 13["Block 13:\n call void @setErrorMessage(i8* getelementptr ...\n store i32 7, i32* %2, align 4\n br label %72\n"]
- 13 --> 72
- 14["Block 14:\n %15 = load %struct.Matrix*, %struct.Matrix** ...\n %16 = getelementptr inbounds %struct.Matrix, ...\n %17 = load i32, i32* %16, align 8\n %18 = icmp slt i32 %17, 1\n br i1 %18, label %24, label %19\n"]
- 14 -->|true| 24
- 14 -->|false| 19
- 19["Block 19:\n %20 = load %struct.Matrix*, %struct.Matrix** ...\n %21 = getelementptr inbounds %struct.Matrix, ...\n %22 = load i32, i32* %21, align 4\n %23 = icmp slt i32 %22, 1\n br i1 %23, label %24, label %25\n"]
- 19 -->|true| 24
- 19 -->|false| 25
- 24["Block 24:\n call void @setErrorMessage(i8* getelementptr ...\n store i32 1, i32* %2, align 4\n br label %72\n"]
- 24 --> 72
- 25["Block 25:\n %26 = load %struct.Matrix*, %struct.Matrix** ...\n %27 = getelementptr inbounds %struct.Matrix, ...\n %28 = load i32, i32* %27, align 8\n %29 = icmp sgt i32 %28, 100\n br i1 %29, label %35, label %30\n"]
- 25 -->|true| 35
- 25 -->|false| 30
- 30["Block 30:\n %31 = load %struct.Matrix*, %struct.Matrix** ...\n %32 = getelementptr inbounds %struct.Matrix, ...\n %33 = load i32, i32* %32, align 4\n %34 = icmp sgt i32 %33, 100\n br i1 %34, label %35, label %36\n"]
- 30 -->|true| 35
- 30 -->|false| 36
- 35["Block 35:\n call void @setErrorMessage(i8* getelementptr ...\n store i32 3, i32* %2, align 4\n br label %72\n"]
- 35 --> 72
- 36["Block 36:\n store i32 0, i32* %4, align 4\n br label %37\n"]
- 36 --> 37
- 37["Block 37:\n %38 = load i32, i32* %4, align 4\n %39 = load %struct.Matrix*, %struct.Matrix** ...\n %40 = getelementptr inbounds %struct.Matrix, ...\n %41 = load i32, i32* %40, align 8\n %42 = icmp slt i32 %38, %41\n br i1 %42, label %43, label %57\n"]
- 37 -->|true| 43
- 37 -->|false| 57
- 43["Block 43:\n %44 = load %struct.Matrix*, %struct.Matrix** ...\n %45 = getelementptr inbounds %struct.Matrix, ...\n %46 = load i32**, i32*** %45, align 8\n %47 = load i32, i32* %4, align 4\n %48 = sext i32 %47 to i64\n %49 = getelementptr inbounds i32*, i32** %46,...\n %50 = load i32*, i32** %49, align 8\n %51 = icmp ne i32* %50, null\n br i1 %51, label %53, label %52\n"]
- 43 -->|true| 53
- 43 -->|false| 52
- 52["Block 52:\n call void @setErrorMessage(i8* getelementptr ...\n store i32 7, i32* %2, align 4\n br label %72\n"]
- 52 --> 72
- 53["Block 53:\n br label %54\n"]
- 53 --> 54
- 54["Block 54:\n %55 = load i32, i32* %4, align 4\n %56 = add nsw i32 %55, 1\n store i32 %56, i32* %4, align 4\n br label %37\n"]
- 54 --> 37
- 57["Block 57:\n %58 = load %struct.Matrix*, %struct.Matrix** ...\n %59 = getelementptr inbounds %struct.Matrix, ...\n %60 = load i32, i32* %59, align 8\n %61 = load %struct.Matrix*, %struct.Matrix** ...\n %62 = getelementptr inbounds %struct.Matrix, ...\n %63 = load i32, i32* %62, align 4\n %64 = icmp eq i32 %60, %63\n %65 = zext i1 %64 to i32\n %66 = load %struct.Matrix*, %struct.Matrix** ...\n %67 = getelementptr inbounds %struct.Matrix, ...\n %68 = load i32, i32* %67, align 8\n %69 = icmp ne i32 %65, %68\n br i1 %69, label %70, label %71\n"]
- 57 -->|true| 70
- 57 -->|false| 71
- 70["Block 70:\n call void @setErrorMessage(i8* getelementptr ...\n store i32 1, i32* %2, align 4\n br label %72\n"]
- 70 --> 72
- 71["Block 71:\n store i32 0, i32* %2, align 4\n br label %72\n"]
- 71 --> 72
- 72["Block 72:\n %73 = load i32, i32* %2, align 4\n ret i32 %73\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: removeDuplicates
- graph TD
- 1["Block 1:\n %2 = alloca %struct.DynamicArray*, align 8\n %3 = alloca i32, align 4\n %4 = alloca i32, align 4\n %5 = alloca i32, align 4\n store %struct.DynamicArray* %0, %struct.Dynam...\n %6 = load %struct.DynamicArray*, %struct.Dyna...\n %7 = icmp ne %struct.DynamicArray* %6, null\n br i1 %7, label %8, label %13\n"]:::critical
- 1 -->|true| 8
- 1 -->|false| 13
- 8["Block 8:\n %9 = load %struct.DynamicArray*, %struct.Dyna...\n %10 = getelementptr inbounds %struct.DynamicA...\n %11 = load i32*, i32** %10, align 8\n %12 = icmp ne i32* %11, null\n br i1 %12, label %14, label %13\n"]
- 8 -->|true| 14
- 8 -->|false| 13
- 13["Block 13:\n call void @setErrorMessage(i8* getelementptr ...\n br label %81\n"]
- 13 --> 81
- 14["Block 14:\n %15 = load %struct.DynamicArray*, %struct.Dyn...\n %16 = getelementptr inbounds %struct.DynamicA...\n %17 = load i32, i32* %16, align 8\n %18 = icmp sle i32 %17, 1\n br i1 %18, label %19, label %20\n"]
- 14 -->|true| 19
- 14 -->|false| 20
- 19["Block 19:\n br label %81\n"]
- 19 --> 81
- 20["Block 20:\n store i32 0, i32* %3, align 4\n %21 = load %struct.DynamicArray*, %struct.Dyn...\n %22 = getelementptr inbounds %struct.DynamicA...\n %23 = load i32*, i32** %22, align 8\n %24 = load %struct.DynamicArray*, %struct.Dyn...\n %25 = getelementptr inbounds %struct.DynamicA...\n %26 = load i32, i32* %25, align 8\n %27 = sub nsw i32 %26, 1\n call void @quickSort(i32* %23, i32 0, i32 %27...\n %28 = load i32, i32* %3, align 4\n %29 = icmp ne i32 %28, 0\n br i1 %29, label %30, label %31\n"]
- 20 -->|true| 30
- 20 -->|false| 31
- 30["Block 30:\n br label %81\n"]
- 30 --> 81
- 31["Block 31:\n store i32 1, i32* %4, align 4\n store i32 1, i32* %5, align 4\n br label %32\n"]
- 31 --> 32
- 32["Block 32:\n %33 = load i32, i32* %5, align 4\n %34 = load %struct.DynamicArray*, %struct.Dyn...\n %35 = getelementptr inbounds %struct.DynamicA...\n %36 = load i32, i32* %35, align 8\n %37 = icmp slt i32 %33, %36\n br i1 %37, label %38, label %75\n"]
- 32 -->|true| 38
- 32 -->|false| 75
- 38["Block 38:\n %39 = load %struct.DynamicArray*, %struct.Dyn...\n %40 = getelementptr inbounds %struct.DynamicA...\n %41 = load i32*, i32** %40, align 8\n %42 = load i32, i32* %5, align 4\n %43 = sext i32 %42 to i64\n %44 = getelementptr inbounds i32, i32* %41, i...\n %45 = load i32, i32* %44, align 4\n %46 = load %struct.DynamicArray*, %struct.Dyn...\n %47 = getelementptr inbounds %struct.DynamicA...\n %48 = load i32*, i32** %47, align 8\n %49 = load i32, i32* %5, align 4\n %50 = sub nsw i32 %49, 1\n %51 = sext i32 %50 to i64\n %52 = getelementptr inbounds i32, i32* %48, i...\n %53 = load i32, i32* %52, align 4\n %54 = icmp ne i32 %45, %53\n br i1 %54, label %55, label %71\n"]
- 38 -->|true| 55
- 38 -->|false| 71
- 55["Block 55:\n %56 = load %struct.DynamicArray*, %struct.Dyn...\n %57 = getelementptr inbounds %struct.DynamicA...\n %58 = load i32*, i32** %57, align 8\n %59 = load i32, i32* %5, align 4\n %60 = sext i32 %59 to i64\n %61 = getelementptr inbounds i32, i32* %58, i...\n %62 = load i32, i32* %61, align 4\n %63 = load %struct.DynamicArray*, %struct.Dyn...\n %64 = getelementptr inbounds %struct.DynamicA...\n %65 = load i32*, i32** %64, align 8\n %66 = load i32, i32* %4, align 4\n %67 = sext i32 %66 to i64\n %68 = getelementptr inbounds i32, i32* %65, i...\n store i32 %62, i32* %68, align 4\n %69 = load i32, i32* %4, align 4\n %70 = add nsw i32 %69, 1\n store i32 %70, i32* %4, align 4\n br label %71\n"]
- 55 --> 71
- 71["Block 71:\n br label %72\n"]
- 71 --> 72
- 72["Block 72:\n %73 = load i32, i32* %5, align 4\n %74 = add nsw i32 %73, 1\n store i32 %74, i32* %5, align 4\n br label %32\n"]
- 72 --> 32
- 75["Block 75:\n %76 = load i32, i32* %4, align 4\n %77 = load %struct.DynamicArray*, %struct.Dyn...\n %78 = getelementptr inbounds %struct.DynamicA...\n store i32 %76, i32* %78, align 8\n %79 = load %struct.DynamicArray*, %struct.Dyn...\n %80 = getelementptr inbounds %struct.DynamicA...\n store i32 1, i32* %80, align 8\n br label %81\n"]
- 75 --> 81
- 81["Block 81:\n ret void\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: findCentroid
- graph TD
- 3["Block 3:\n %4 = alloca %struct.Point*, align 8\n %5 = alloca %struct.Point*, align 8\n %6 = alloca i32, align 4\n %7 = alloca i32*, align 8\n %8 = alloca %struct.Point*, align 8\n %9 = alloca double, align 8\n %10 = alloca double, align 8\n %11 = alloca double, align 8\n %12 = alloca i32, align 4\n store %struct.Point* %0, %struct.Point** %5, ...\n store i32 %1, i32* %6, align 4\n store i32* %2, i32** %7, align 8\n %13 = load i32*, i32** %7, align 8\n store i32 0, i32* %13, align 4\n %14 = load %struct.Point*, %struct.Point** %5...\n %15 = icmp ne %struct.Point* %14, null\n br i1 %15, label %16, label %19\n"]:::critical
- 3 -->|true| 16
- 3 -->|false| 19
- 16["Block 16:\n %17 = load i32, i32* %6, align 4\n %18 = icmp sle i32 %17, 0\n br i1 %18, label %19, label %21\n"]
- 16 -->|true| 19
- 16 -->|false| 21
- 19["Block 19:\n %20 = load i32*, i32** %7, align 8\n store i32 1, i32* %20, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Point* null, %struct.Point** %4...\n br label %165\n"]
- 19 --> 165
- 21["Block 21:\n %22 = load i32, i32* %6, align 4\n %23 = icmp sgt i32 %22, 1000\n br i1 %23, label %24, label %26\n"]
- 21 -->|true| 24
- 21 -->|false| 26
- 24["Block 24:\n %25 = load i32*, i32** %7, align 8\n store i32 3, i32* %25, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Point* null, %struct.Point** %4...\n br label %165\n"]
- 24 --> 165
- 26["Block 26:\n %27 = call noalias i8* @malloc(i64 272) #7\n %28 = bitcast i8* %27 to %struct.Point*\n store %struct.Point* %28, %struct.Point** %8,...\n %29 = load %struct.Point*, %struct.Point** %8...\n %30 = icmp ne %struct.Point* %29, null\n br i1 %30, label %33, label %31\n"]
- 26 -->|true| 33
- 26 -->|false| 31
- 31["Block 31:\n %32 = load i32*, i32** %7, align 8\n store i32 2, i32* %32, align 4\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.Point* null, %struct.Point** %4...\n br label %165\n"]
- 31 --> 165
- 33["Block 33:\n store double 0.000000e+00, double* %9, align 8\n store double 0.000000e+00, double* %10, align 8\n store double 0.000000e+00, double* %11, align 8\n store i32 0, i32* %12, align 4\n br label %34\n"]
- 33 --> 34
- 34["Block 34:\n %35 = load i32, i32* %12, align 4\n %36 = load i32, i32* %6, align 4\n %37 = icmp slt i32 %35, %36\n br i1 %37, label %38, label %134\n"]
- 34 -->|true| 38
- 34 -->|false| 134
- 38["Block 38:\n %39 = load %struct.Point*, %struct.Point** %5...\n %40 = load i32, i32* %12, align 4\n %41 = sext i32 %40 to i64\n %42 = getelementptr inbounds %struct.Point, %...\n %43 = getelementptr inbounds %struct.Point, %...\n %44 = load double, double* %43, align 8\n %45 = fcmp ole double %44, 0.000000e+00\n br i1 %45, label %46, label %50\n"]
- 38 -->|true| 46
- 38 -->|false| 50
- 46["Block 46:\n %47 = load i32*, i32** %7, align 8\n store i32 1, i32* %47, align 4\n call void @setErrorMessage(i8* getelementptr ...\n %48 = load %struct.Point*, %struct.Point** %8...\n %49 = bitcast %struct.Point* %48 to i8*\n call void @free(i8* %49) #7\n store %struct.Point* null, %struct.Point** %4...\n br label %165\n"]
- 46 --> 165
- 50["Block 50:\n %51 = load %struct.Point*, %struct.Point** %5...\n %52 = load i32, i32* %12, align 4\n %53 = sext i32 %52 to i64\n %54 = getelementptr inbounds %struct.Point, %...\n %55 = getelementptr inbounds %struct.Point, %...\n %56 = load double, double* %55, align 8\n %57 = load double, double* %9, align 8\n %58 = fadd double %57, %56\n store double %58, double* %9, align 8\n %59 = load %struct.Point*, %struct.Point** %5...\n %60 = load i32, i32* %12, align 4\n %61 = sext i32 %60 to i64\n %62 = getelementptr inbounds %struct.Point, %...\n %63 = getelementptr inbounds %struct.Point, %...\n %64 = load i32, i32* %63, align 8\n %65 = sitofp i32 %64 to double\n %66 = load %struct.Point*, %struct.Point** %5...\n %67 = load i32, i32* %12, align 4\n %68 = sext i32 %67 to i64\n %69 = getelementptr inbounds %struct.Point, %...\n %70 = getelementptr inbounds %struct.Point, %...\n %71 = load double, double* %70, align 8\n %72 = fmul double %65, %71\n %73 = load double, double* %10, align 8\n %74 = fadd double %73, %72\n store double %74, double* %10, align 8\n %75 = load %struct.Point*, %struct.Point** %5...\n %76 = load i32, i32* %12, align 4\n %77 = sext i32 %76 to i64\n %78 = getelementptr inbounds %struct.Point, %...\n %79 = getelementptr inbounds %struct.Point, %...\n %80 = load i32, i32* %79, align 4\n %81 = sitofp i32 %80 to double\n %82 = load %struct.Point*, %struct.Point** %5...\n %83 = load i32, i32* %12, align 4\n %84 = sext i32 %83 to i64\n %85 = getelementptr inbounds %struct.Point, %...\n %86 = getelementptr inbounds %struct.Point, %...\n %87 = load double, double* %86, align 8\n %88 = fmul double %81, %87\n %89 = load double, double* %11, align 8\n %90 = fadd double %89, %88\n store double %90, double* %11, align 8\n %91 = load double, double* %9, align 8\n %92 = fcmp uno double %91, %91\n br i1 %92, label %126, label %93\n"]
- 50 -->|true| 126
- 50 -->|false| 93
- 93["Block 93:\n %94 = load double, double* %10, align 8\n %95 = fcmp uno double %94, %94\n br i1 %95, label %126, label %96\n"]
- 93 -->|true| 126
- 93 -->|false| 96
- 96["Block 96:\n %97 = load double, double* %11, align 8\n %98 = fcmp uno double %97, %97\n br i1 %98, label %126, label %99\n"]
- 96 -->|true| 126
- 96 -->|false| 99
- 99["Block 99:\n %100 = load double, double* %9, align 8\n %101 = call double @llvm.fabs.f64(double %100...\n %102 = fcmp oeq double %101, 0x7FF0000000000000\n %103 = bitcast double %100 to i64\n %104 = icmp slt i64 %103, 0\n %105 = select i1 %104, i32 -1, i32 1\n %106 = select i1 %102, i32 %105, i32 0\n %107 = icmp ne i32 %106, 0\n br i1 %107, label %126, label %108\n"]
- 99 -->|true| 126
- 99 -->|false| 108
- 108["Block 108:\n %109 = load double, double* %10, align 8\n %110 = call double @llvm.fabs.f64(double %109...\n %111 = fcmp oeq double %110, 0x7FF0000000000000\n %112 = bitcast double %109 to i64\n %113 = icmp slt i64 %112, 0\n %114 = select i1 %113, i32 -1, i32 1\n %115 = select i1 %111, i32 %114, i32 0\n %116 = icmp ne i32 %115, 0\n br i1 %116, label %126, label %117\n"]
- 108 -->|true| 126
- 108 -->|false| 117
- 117["Block 117:\n %118 = load double, double* %11, align 8\n %119 = call double @llvm.fabs.f64(double %118...\n %120 = fcmp oeq double %119, 0x7FF0000000000000\n %121 = bitcast double %118 to i64\n %122 = icmp slt i64 %121, 0\n %123 = select i1 %122, i32 -1, i32 1\n %124 = select i1 %120, i32 %123, i32 0\n %125 = icmp ne i32 %124, 0\n br i1 %125, label %126, label %130\n"]
- 117 -->|true| 126
- 117 -->|false| 130
- 126["Block 126:\n %127 = load i32*, i32** %7, align 8\n store i32 5, i32* %127, align 4\n call void @setErrorMessage(i8* getelementptr ...\n %128 = load %struct.Point*, %struct.Point** %...\n %129 = bitcast %struct.Point* %128 to i8*\n call void @free(i8* %129) #7\n store %struct.Point* null, %struct.Point** %4...\n br label %165\n"]
- 126 --> 165
- 130["Block 130:\n br label %131\n"]
- 130 --> 131
- 131["Block 131:\n %132 = load i32, i32* %12, align 4\n %133 = add nsw i32 %132, 1\n store i32 %133, i32* %12, align 4\n br label %34\n"]
- 131 --> 34
- 134["Block 134:\n %135 = load double, double* %9, align 8\n %136 = fcmp oeq double %135, 0.000000e+00\n br i1 %136, label %137, label %141\n"]
- 134 -->|true| 137
- 134 -->|false| 141
- 137["Block 137:\n %138 = load i32*, i32** %7, align 8\n store i32 1, i32* %138, align 4\n call void @setErrorMessage(i8* getelementptr ...\n %139 = load %struct.Point*, %struct.Point** %...\n %140 = bitcast %struct.Point* %139 to i8*\n call void @free(i8* %140) #7\n store %struct.Point* null, %struct.Point** %4...\n br label %165\n"]
- 137 --> 165
- 141["Block 141:\n %142 = load double, double* %10, align 8\n %143 = load double, double* %9, align 8\n %144 = fdiv double %142, %143\n %145 = fptosi double %144 to i32\n %146 = load %struct.Point*, %struct.Point** %...\n %147 = getelementptr inbounds %struct.Point, ...\n store i32 %145, i32* %147, align 8\n %148 = load double, double* %11, align 8\n %149 = load double, double* %9, align 8\n %150 = fdiv double %148, %149\n %151 = fptosi double %150 to i32\n %152 = load %struct.Point*, %struct.Point** %...\n %153 = getelementptr inbounds %struct.Point, ...\n store i32 %151, i32* %153, align 4\n %154 = load double, double* %9, align 8\n %155 = load i32, i32* %6, align 4\n %156 = sitofp i32 %155 to double\n %157 = fdiv double %154, %156\n %158 = load %struct.Point*, %struct.Point** %...\n %159 = getelementptr inbounds %struct.Point, ...\n store double %157, double* %159, align 8\n %160 = load %struct.Point*, %struct.Point** %...\n %161 = getelementptr inbounds %struct.Point, ...\n %162 = getelementptr inbounds [256 x i8], [25...\n %163 = call i8* @strcpy(i8* %162, i8* getelem...\n %164 = load %struct.Point*, %struct.Point** %...\n store %struct.Point* %164, %struct.Point** %4...\n br label %165\n"]
- 141 --> 165
- 165["Block 165:\n %166 = load %struct.Point*, %struct.Point** %...\n ret %struct.Point* %166\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: reverseString
- graph TD
- 1["Block 1:\n %2 = alloca i8*, align 8\n %3 = alloca i32, align 4\n %4 = alloca i32, align 4\n %5 = alloca i8, align 1\n store i8* %0, i8** %2, align 8\n %6 = load i8*, i8** %2, align 8\n %7 = call i64 @strlen(i8* %6) #7\n %8 = trunc i64 %7 to i32\n store i32 %8, i32* %3, align 4\n store i32 0, i32* %4, align 4\n br label %9\n"]:::critical
- 1 --> 9
- 9["Block 9:\n %10 = load i32, i32* %4, align 4\n %11 = load i32, i32* %3, align 4\n %12 = sdiv i32 %11, 2\n %13 = icmp slt i32 %10, %12\n br i1 %13, label %14, label %43\n"]:::critical
- 9 -->|true| 14
- 9 -->|false| 43
- 14["Block 14:\n %15 = load i8*, i8** %2, align 8\n %16 = load i32, i32* %4, align 4\n %17 = sext i32 %16 to i64\n %18 = getelementptr inbounds i8, i8* %15, i64...\n %19 = load i8, i8* %18, align 1\n store i8 %19, i8* %5, align 1\n %20 = load i8*, i8** %2, align 8\n %21 = load i32, i32* %3, align 4\n %22 = sub nsw i32 %21, 1\n %23 = load i32, i32* %4, align 4\n %24 = sub nsw i32 %22, %23\n %25 = sext i32 %24 to i64\n %26 = getelementptr inbounds i8, i8* %20, i64...\n %27 = load i8, i8* %26, align 1\n %28 = load i8*, i8** %2, align 8\n %29 = load i32, i32* %4, align 4\n %30 = sext i32 %29 to i64\n %31 = getelementptr inbounds i8, i8* %28, i64...\n store i8 %27, i8* %31, align 1\n %32 = load i8, i8* %5, align 1\n %33 = load i8*, i8** %2, align 8\n %34 = load i32, i32* %3, align 4\n %35 = sub nsw i32 %34, 1\n %36 = load i32, i32* %4, align 4\n %37 = sub nsw i32 %35, %36\n %38 = sext i32 %37 to i64\n %39 = getelementptr inbounds i8, i8* %33, i64...\n store i8 %32, i8* %39, align 1\n br label %40\n"]
- 14 --> 40
- 40["Block 40:\n %41 = load i32, i32* %4, align 4\n %42 = add nsw i32 %41, 1\n store i32 %42, i32* %4, align 4\n br label %9\n"]
- 40 --> 9
- 43["Block 43:\n ret void\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: longestIncreasingSubsequence
- graph TD
- 2["Block 2:\n %3 = alloca i32*, align 8\n %4 = alloca i32, align 4\n %5 = alloca [100 x i32], align 16\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n store i32* %0, i32** %3, align 8\n store i32 %1, i32* %4, align 4\n store i32 0, i32* %6, align 4\n br label %11\n"]:::critical
- 2 --> 11
- 11["Block 11:\n %12 = load i32, i32* %6, align 4\n %13 = load i32, i32* %4, align 4\n %14 = icmp slt i32 %12, %13\n br i1 %14, label %15, label %22\n"]:::critical
- 11 -->|true| 15
- 11 -->|false| 22
- 15["Block 15:\n %16 = load i32, i32* %6, align 4\n %17 = sext i32 %16 to i64\n %18 = getelementptr inbounds [100 x i32], [10...\n store i32 1, i32* %18, align 4\n br label %19\n"]
- 15 --> 19
- 19["Block 19:\n %20 = load i32, i32* %6, align 4\n %21 = add nsw i32 %20, 1\n store i32 %21, i32* %6, align 4\n br label %11\n"]
- 19 --> 11
- 22["Block 22:\n store i32 1, i32* %7, align 4\n br label %23\n"]:::critical
- 22 --> 23
- 23["Block 23:\n %24 = load i32, i32* %7, align 4\n %25 = load i32, i32* %4, align 4\n %26 = icmp slt i32 %24, %25\n br i1 %26, label %27, label %72\n"]:::critical
- 23 -->|true| 27
- 23 -->|false| 72
- 27["Block 27:\n store i32 0, i32* %8, align 4\n br label %28\n"]
- 27 --> 28
- 28["Block 28:\n %29 = load i32, i32* %8, align 4\n %30 = load i32, i32* %7, align 4\n %31 = icmp slt i32 %29, %30\n br i1 %31, label %32, label %68\n"]
- 28 -->|true| 32
- 28 -->|false| 68
- 32["Block 32:\n %33 = load i32*, i32** %3, align 8\n %34 = load i32, i32* %7, align 4\n %35 = sext i32 %34 to i64\n %36 = getelementptr inbounds i32, i32* %33, i...\n %37 = load i32, i32* %36, align 4\n %38 = load i32*, i32** %3, align 8\n %39 = load i32, i32* %8, align 4\n %40 = sext i32 %39 to i64\n %41 = getelementptr inbounds i32, i32* %38, i...\n %42 = load i32, i32* %41, align 4\n %43 = icmp sgt i32 %37, %42\n br i1 %43, label %44, label %64\n"]
- 32 -->|true| 44
- 32 -->|false| 64
- 44["Block 44:\n %45 = load i32, i32* %7, align 4\n %46 = sext i32 %45 to i64\n %47 = getelementptr inbounds [100 x i32], [10...\n %48 = load i32, i32* %47, align 4\n %49 = load i32, i32* %8, align 4\n %50 = sext i32 %49 to i64\n %51 = getelementptr inbounds [100 x i32], [10...\n %52 = load i32, i32* %51, align 4\n %53 = add nsw i32 %52, 1\n %54 = icmp slt i32 %48, %53\n br i1 %54, label %55, label %64\n"]
- 44 -->|true| 55
- 44 -->|false| 64
- 55["Block 55:\n %56 = load i32, i32* %8, align 4\n %57 = sext i32 %56 to i64\n %58 = getelementptr inbounds [100 x i32], [10...\n %59 = load i32, i32* %58, align 4\n %60 = add nsw i32 %59, 1\n %61 = load i32, i32* %7, align 4\n %62 = sext i32 %61 to i64\n %63 = getelementptr inbounds [100 x i32], [10...\n store i32 %60, i32* %63, align 4\n br label %64\n"]
- 55 --> 64
- 64["Block 64:\n br label %65\n"]
- 64 --> 65
- 65["Block 65:\n %66 = load i32, i32* %8, align 4\n %67 = add nsw i32 %66, 1\n store i32 %67, i32* %8, align 4\n br label %28\n"]
- 65 --> 28
- 68["Block 68:\n br label %69\n"]
- 68 --> 69
- 69["Block 69:\n %70 = load i32, i32* %7, align 4\n %71 = add nsw i32 %70, 1\n store i32 %71, i32* %7, align 4\n br label %23\n"]
- 69 --> 23
- 72["Block 72:\n store i32 0, i32* %9, align 4\n store i32 0, i32* %10, align 4\n br label %73\n"]:::critical
- 72 --> 73
- 73["Block 73:\n %74 = load i32, i32* %10, align 4\n %75 = load i32, i32* %4, align 4\n %76 = icmp slt i32 %74, %75\n br i1 %76, label %77, label %93\n"]:::critical
- 73 -->|true| 77
- 73 -->|false| 93
- 77["Block 77:\n %78 = load i32, i32* %9, align 4\n %79 = load i32, i32* %10, align 4\n %80 = sext i32 %79 to i64\n %81 = getelementptr inbounds [100 x i32], [10...\n %82 = load i32, i32* %81, align 4\n %83 = icmp slt i32 %78, %82\n br i1 %83, label %84, label %89\n"]
- 77 -->|true| 84
- 77 -->|false| 89
- 84["Block 84:\n %85 = load i32, i32* %10, align 4\n %86 = sext i32 %85 to i64\n %87 = getelementptr inbounds [100 x i32], [10...\n %88 = load i32, i32* %87, align 4\n store i32 %88, i32* %9, align 4\n br label %89\n"]
- 84 --> 89
- 89["Block 89:\n br label %90\n"]
- 89 --> 90
- 90["Block 90:\n %91 = load i32, i32* %10, align 4\n %92 = add nsw i32 %91, 1\n store i32 %92, i32* %10, align 4\n br label %73\n"]
- 90 --> 73
- 93["Block 93:\n %94 = load i32, i32* %9, align 4\n ret i32 %94\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: testPoints
- graph TD
- 1["Block 1:\n %2 = alloca i32, align 4\n %3 = alloca i32, align 4\n %4 = alloca i32, align 4\n %5 = alloca i32, align 4\n store i32 %0, i32* %3, align 4\n store i32 0, i32* %4, align 4\n store i32 1, i32* %5, align 4\n br label %6\n"]:::critical
- 1 --> 6
- 6["Block 6:\n %7 = load i32, i32* %5, align 4\n %8 = icmp slt i32 %7, 5\n br i1 %8, label %9, label %19\n"]:::critical
- 6 -->|true| 9
- 6 -->|false| 19
- 9["Block 9:\n %10 = load i32, i32* %4, align 4\n %11 = add nsw i32 %10, 1\n store i32 %11, i32* %4, align 4\n %12 = load i32, i32* %3, align 4\n %13 = icmp sgt i32 %12, 2\n br i1 %13, label %14, label %15\n"]
- 9 -->|true| 14
- 9 -->|false| 15
- 14["Block 14:\n store i32 23, i32* %2, align 4\n br label %21\n"]
- 14 --> 21
- 15["Block 15:\n br label %16\n"]
- 15 --> 16
- 16["Block 16:\n %17 = load i32, i32* %5, align 4\n %18 = add nsw i32 %17, 1\n store i32 %18, i32* %5, align 4\n br label %6\n"]
- 16 --> 6
- 19["Block 19:\n %20 = load i32, i32* %4, align 4\n store i32 %20, i32* %2, align 4\n br label %21\n"]
- 19 --> 21
- 21["Block 21:\n %22 = load i32, i32* %2, align 4\n ret i32 %22\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: countSetBits
- graph TD
- 1["Block 1:\n %2 = alloca i32, align 4\n %3 = alloca i32, align 4\n store i32 %0, i32* %2, align 4\n store i32 0, i32* %3, align 4\n br label %4\n"]:::critical
- 1 --> 4
- 4["Block 4:\n %5 = load i32, i32* %2, align 4\n %6 = icmp ne i32 %5, 0\n br i1 %6, label %7, label %14\n"]:::critical
- 4 -->|true| 7
- 4 -->|false| 14
- 7["Block 7:\n %8 = load i32, i32* %2, align 4\n %9 = and i32 %8, 1\n %10 = load i32, i32* %3, align 4\n %11 = add nsw i32 %10, %9\n store i32 %11, i32* %3, align 4\n %12 = load i32, i32* %2, align 4\n %13 = ashr i32 %12, 1\n store i32 %13, i32* %2, align 4\n br label %4\n"]
- 7 --> 4
- 14["Block 14:\n %15 = load i32, i32* %3, align 4\n ret i32 %15\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: memoizedFib
- graph TD
- 1["Block 1:\n %2 = alloca i32, align 4\n %3 = alloca i32, align 4\n store i32 %0, i32* %3, align 4\n %4 = load i32, i32* %3, align 4\n %5 = sext i32 %4 to i64\n %6 = getelementptr inbounds [100 x i32], [100...\n %7 = load i32, i32* %6, align 4\n %8 = icmp ne i32 %7, -1\n br i1 %8, label %9, label %14\n"]:::critical
- 1 -->|true| 9
- 1 -->|false| 14
- 9["Block 9:\n %10 = load i32, i32* %3, align 4\n %11 = sext i32 %10 to i64\n %12 = getelementptr inbounds [100 x i32], [10...\n %13 = load i32, i32* %12, align 4\n store i32 %13, i32* %2, align 4\n br label %34\n"]
- 9 --> 34
- 14["Block 14:\n %15 = load i32, i32* %3, align 4\n %16 = icmp sle i32 %15, 1\n br i1 %16, label %17, label %19\n"]
- 14 -->|true| 17
- 14 -->|false| 19
- 17["Block 17:\n %18 = load i32, i32* %3, align 4\n store i32 %18, i32* %2, align 4\n br label %34\n"]
- 17 --> 34
- 19["Block 19:\n %20 = load i32, i32* %3, align 4\n %21 = sub nsw i32 %20, 1\n %22 = call i32 @memoizedFib(i32 %21)\n %23 = load i32, i32* %3, align 4\n %24 = sub nsw i32 %23, 2\n %25 = call i32 @memoizedFib(i32 %24)\n %26 = add nsw i32 %22, %25\n %27 = load i32, i32* %3, align 4\n %28 = sext i32 %27 to i64\n %29 = getelementptr inbounds [100 x i32], [10...\n store i32 %26, i32* %29, align 4\n %30 = load i32, i32* %3, align 4\n %31 = sext i32 %30 to i64\n %32 = getelementptr inbounds [100 x i32], [10...\n %33 = load i32, i32* %32, align 4\n store i32 %33, i32* %2, align 4\n br label %34\n"]
- 19 --> 34
- 34["Block 34:\n %35 = load i32, i32* %2, align 4\n ret i32 %35\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: processMatrix
- graph TD
- 2["Block 2:\n %3 = alloca [100 x i32]*, align 8\n %4 = alloca i32, align 4\n %5 = alloca i32, align 4\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n store [100 x i32]* %0, [100 x i32]** %3, align 8\n store i32 %1, i32* %4, align 4\n store i32 0, i32* %5, align 4\n store i32 0, i32* %6, align 4\n br label %8\n"]:::critical
- 2 --> 8
- 8["Block 8:\n %9 = load i32, i32* %6, align 4\n %10 = load i32, i32* %4, align 4\n %11 = icmp slt i32 %9, %10\n br i1 %11, label %12, label %80\n"]:::critical
- 8 -->|true| 12
- 8 -->|false| 80
- 12["Block 12:\n store i32 0, i32* %7, align 4\n br label %13\n"]
- 12 --> 13
- 13["Block 13:\n %14 = load i32, i32* %7, align 4\n %15 = load i32, i32* %4, align 4\n %16 = icmp slt i32 %14, %15\n br i1 %16, label %17, label %76\n"]
- 13 -->|true| 17
- 13 -->|false| 76
- 17["Block 17:\n %18 = load i32, i32* %6, align 4\n %19 = load i32, i32* %7, align 4\n %20 = icmp eq i32 %18, %19\n br i1 %20, label %21, label %55\n"]
- 17 -->|true| 21
- 17 -->|false| 55
- 21["Block 21:\n %22 = load [100 x i32]*, [100 x i32]** %3, al...\n %23 = load i32, i32* %6, align 4\n %24 = sext i32 %23 to i64\n %25 = getelementptr inbounds [100 x i32], [10...\n %26 = load i32, i32* %7, align 4\n %27 = sext i32 %26 to i64\n %28 = getelementptr inbounds [100 x i32], [10...\n %29 = load i32, i32* %28, align 4\n %30 = srem i32 %29, 2\n %31 = icmp eq i32 %30, 0\n br i1 %31, label %32, label %43\n"]
- 21 -->|true| 32
- 21 -->|false| 43
- 32["Block 32:\n %33 = load [100 x i32]*, [100 x i32]** %3, al...\n %34 = load i32, i32* %6, align 4\n %35 = sext i32 %34 to i64\n %36 = getelementptr inbounds [100 x i32], [10...\n %37 = load i32, i32* %7, align 4\n %38 = sext i32 %37 to i64\n %39 = getelementptr inbounds [100 x i32], [10...\n %40 = load i32, i32* %39, align 4\n %41 = load i32, i32* %5, align 4\n %42 = add nsw i32 %41, %40\n store i32 %42, i32* %5, align 4\n br label %54\n"]
- 32 --> 54
- 43["Block 43:\n %44 = load [100 x i32]*, [100 x i32]** %3, al...\n %45 = load i32, i32* %6, align 4\n %46 = sext i32 %45 to i64\n %47 = getelementptr inbounds [100 x i32], [10...\n %48 = load i32, i32* %7, align 4\n %49 = sext i32 %48 to i64\n %50 = getelementptr inbounds [100 x i32], [10...\n %51 = load i32, i32* %50, align 4\n %52 = load i32, i32* %5, align 4\n %53 = sub nsw i32 %52, %51\n store i32 %53, i32* %5, align 4\n br label %54\n"]
- 43 --> 54
- 54["Block 54:\n br label %72\n"]
- 54 --> 72
- 55["Block 55:\n %56 = load i32, i32* %6, align 4\n %57 = load i32, i32* %7, align 4\n %58 = icmp slt i32 %56, %57\n br i1 %58, label %59, label %71\n"]
- 55 -->|true| 59
- 55 -->|false| 71
- 59["Block 59:\n %60 = load [100 x i32]*, [100 x i32]** %3, al...\n %61 = load i32, i32* %6, align 4\n %62 = sext i32 %61 to i64\n %63 = getelementptr inbounds [100 x i32], [10...\n %64 = load i32, i32* %7, align 4\n %65 = sext i32 %64 to i64\n %66 = getelementptr inbounds [100 x i32], [10...\n %67 = load i32, i32* %66, align 4\n %68 = call i32 @countSetBits(i32 %67)\n %69 = load i32, i32* %5, align 4\n %70 = add nsw i32 %69, %68\n store i32 %70, i32* %5, align 4\n br label %71\n"]
- 59 --> 71
- 71["Block 71:\n br label %72\n"]
- 71 --> 72
- 72["Block 72:\n br label %73\n"]
- 72 --> 73
- 73["Block 73:\n %74 = load i32, i32* %7, align 4\n %75 = add nsw i32 %74, 1\n store i32 %75, i32* %7, align 4\n br label %13\n"]
- 73 --> 13
- 76["Block 76:\n br label %77\n"]
- 76 --> 77
- 77["Block 77:\n %78 = load i32, i32* %6, align 4\n %79 = add nsw i32 %78, 1\n store i32 %79, i32* %6, align 4\n br label %8\n"]
- 77 --> 8
- 80["Block 80:\n %81 = load i32, i32* %5, align 4\n ret i32 %81\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- ```mermaid: projectB_main
- graph TD
- 0["Block 0:\n %1 = alloca [14 x i8], align 1\n %2 = alloca [8 x i32], align 16\n %3 = alloca i32, align 4\n %4 = alloca i32, align 4\n %5 = alloca [100 x [100 x i32]], align 16\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n %9 = call i32 @testPoints(i32 5)\n call void @llvm.memset.p0i8.i64(i8* align 16 ...\n %10 = bitcast [14 x i8]* %1 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n %11 = getelementptr inbounds [14 x i8], [14 x...\n call void @reverseString(i8* %11)\n %12 = bitcast [8 x i32]* %2 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n store i32 8, i32* %3, align 4\n %13 = getelementptr inbounds [8 x i32], [8 x ...\n %14 = load i32, i32* %3, align 4\n %15 = call i32 @longestIncreasingSubsequence(...\n store i32 %15, i32* %4, align 4\n %16 = bitcast [100 x [100 x i32]]* %5 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n %17 = getelementptr inbounds [100 x [100 x i3...\n %18 = call i32 @processMatrix([100 x i32]* %1...\n store i32 %18, i32* %6, align 4\n store i32 0, i32* %7, align 4\n br label %19\n"]:::critical
- 0 --> 19
- 19["Block 19:\n %20 = load i32, i32* %7, align 4\n %21 = call i32 @memoizedFib(i32 %20)\n %22 = load i32, i32* %7, align 4\n %23 = add nsw i32 %22, 1\n store i32 %23, i32* %7, align 4\n br label %24\n"]:::critical
- 19 --> 24
- 24["Block 24:\n %25 = load i32, i32* %7, align 4\n %26 = icmp slt i32 %25, 10\n br i1 %26, label %19, label %27\n"]:::critical
- 24 -->|true| 19
- 24 -->|false| 27
- 27["Block 27:\n %28 = load i32, i32* %4, align 4\n %29 = icmp sgt i32 %28, 5\n br i1 %29, label %30, label %40\n"]:::critical
- 27 -->|true| 30
- 27 -->|false| 40
- 30["Block 30:\n %31 = load i32, i32* %6, align 4\n %32 = icmp sgt i32 %31, 0\n br i1 %32, label %33, label %36\n"]
- 30 -->|true| 33
- 30 -->|false| 36
- 33["Block 33:\n %34 = load i32, i32* %4, align 4\n %35 = call i32 @memoizedFib(i32 %34)\n store i32 %35, i32* %8, align 4\n br label %39\n"]
- 33 --> 39
- 36["Block 36:\n %37 = load i32, i32* %6, align 4\n %38 = call i32 @countSetBits(i32 %37)\n store i32 %38, i32* %8, align 4\n br label %39\n"]
- 36 --> 39
- 39["Block 39:\n br label %47\n"]
- 39 --> 47
- 40["Block 40:\n %41 = getelementptr inbounds [14 x i8], [14 x...\n %42 = call i64 @strlen(i8* %41) #7\n %43 = load i32, i32* %6, align 4\n %44 = sext i32 %43 to i64\n %45 = add i64 %42, %44\n %46 = trunc i64 %45 to i32\n store i32 %46, i32* %8, align 4\n br label %47\n"]
- 40 --> 47
- 47["Block 47:\n %48 = load i32, i32* %8, align 4\n ret i32 %48\n"]:::critical
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [INFO][runOnModule] Creating slices for target functions
- [INFO][runOnModule] targetFuncName: countSetBits
- [INFO][createFunctionSlices] Created 2 slices for target function countSetBits
- [DEBUG][createFunctionSlices] Slice 0 of function countSetBits contains blocks: %1
- [DEBUG][createFunctionSlices] Slice 1 of function countSetBits contains blocks: %4, %7, %14
- [INFO][runOnModule] targetFuncName: longestIncreasingSubsequence
- [INFO][createFunctionSlices] Created 4 slices for target function longestIncreasingSubsequence
- [DEBUG][createFunctionSlices] Slice 0 of function longestIncreasingSubsequence contains blocks: %2
- [DEBUG][createFunctionSlices] Slice 1 of function longestIncreasingSubsequence contains blocks: %11, %15, %22, %19
- [DEBUG][createFunctionSlices] Slice 2 of function longestIncreasingSubsequence contains blocks: %23, %27, %72, %28, %32, %68, %44, %64, %69, %55, %65
- [DEBUG][createFunctionSlices] Slice 3 of function longestIncreasingSubsequence contains blocks: %73, %77, %93, %84, %89, %90
- [INFO][runOnModule] targetFuncName: memoizedFib
- [INFO][createFunctionSlices] Created 1 slices for target function memoizedFib
- [DEBUG][createFunctionSlices] Slice 0 of function memoizedFib contains blocks: %1, %9, %14, %34, %17, %19
- [INFO][runOnModule] targetFuncName: processMatrix
- [INFO][createFunctionSlices] Created 2 slices for target function processMatrix
- [DEBUG][createFunctionSlices] Slice 0 of function processMatrix contains blocks: %2
- [DEBUG][createFunctionSlices] Slice 1 of function processMatrix contains blocks: %8, %12, %80, %13, %17, %76, %21, %55, %77, %32, %43, %59, %71, %54, %72, %73
- [INFO][runOnModule] targetFuncName: projectB_main
- [INFO][createFunctionSlices] Created 3 slices for target function projectB_main
- [DEBUG][createFunctionSlices] Slice 0 of function projectB_main contains blocks: %0
- [DEBUG][createFunctionSlices] Slice 1 of function projectB_main contains blocks: %19, %24
- [DEBUG][createFunctionSlices] Slice 2 of function projectB_main contains blocks: %27, %30, %40, %33, %36, %47, %39
- [INFO][runOnModule] targetFuncName: reverseString
- [INFO][createFunctionSlices] Created 2 slices for target function reverseString
- [DEBUG][createFunctionSlices] Slice 0 of function reverseString contains blocks: %1
- [DEBUG][createFunctionSlices] Slice 1 of function reverseString contains blocks: %9, %14, %43, %40
- [INFO][runOnModule] targetFuncName: testPoints
- [INFO][createFunctionSlices] Created 2 slices for target function testPoints
- [DEBUG][createFunctionSlices] Slice 0 of function testPoints contains blocks: %1
- [DEBUG][createFunctionSlices] Slice 1 of function testPoints contains blocks: %6, %9, %19, %14, %15, %21, %16
- [INFO][runOnModule] Creating fusion points for bunker functions
- [INFO][runOnModule] bunkerFuncName: calculateCircleArea
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function calculateCircleArea
- [INFO][runOnModule] bunkerFuncName: calculateDistance
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function calculateDistance
- [INFO][runOnModule] bunkerFuncName: createDynamicArray
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function createDynamicArray
- [INFO][runOnModule] bunkerFuncName: createMatrix
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function createMatrix
- [INFO][runOnModule] bunkerFuncName: factorial
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function factorial
- [INFO][runOnModule] bunkerFuncName: findCentroid
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function findCentroid
- [INFO][runOnModule] bunkerFuncName: getErrorMessage
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function getErrorMessage
- [INFO][runOnModule] bunkerFuncName: insertNode
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function insertNode
- [INFO][runOnModule] bunkerFuncName: multiplyMatrices
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function multiplyMatrices
- [INFO][runOnModule] bunkerFuncName: performSimpleCalculations
- [INFO][countFusionPoints] Counted 7 fusion points for bunker function performSimpleCalculations
- [INFO][runOnModule] bunkerFuncName: projectA_main
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function projectA_main
- [INFO][runOnModule] bunkerFuncName: pushBack
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function pushBack
- [INFO][runOnModule] bunkerFuncName: quickSort
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function quickSort
- [INFO][runOnModule] bunkerFuncName: removeDuplicates
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function removeDuplicates
- [INFO][runOnModule] bunkerFuncName: setErrorMessage
- [INFO][countFusionPoints] Counted 3 fusion points for bunker function setErrorMessage
- [INFO][runOnModule] bunkerFuncName: validateMatrix
- [INFO][countFusionPoints] Counted 2 fusion points for bunker function validateMatrix
- [INFO][matchFunctionsForFusion] Starting function matching process
- [INFO][matchFunctionsForFusion] Matched target longestIncreasingSubsequence (4 slices) with bunker projectA_main (7 fusion points)
- [INFO][matchFunctionsForFusion] Matched target projectB_main (3 slices) with bunker setErrorMessage (3 fusion points)
- [INFO][matchFunctionsForFusion] Matched target countSetBits (2 slices) with bunker removeDuplicates (2 fusion points)
- [INFO][matchFunctionsForFusion] Matched target processMatrix (2 slices) with bunker createMatrix (2 fusion points)
- [INFO][matchFunctionsForFusion] Matched target reverseString (2 slices) with bunker factorial (2 fusion points)
- [INFO][matchFunctionsForFusion] Matched target testPoints (2 slices) with bunker matchFunctionsFo (2 fusion points)
- [INFO][matchFunctionsForFusion] Matched target memoizedFib (1 slices) with bunker Ð’����`û� (2 fusion points)
- [INFO][generateFusionMatchGraph] Generating fusion match visualization
- ```mermaid
- graph LR
- %% Fusion Match Graph
- %% Left side: Target Project, Right side: Bunker Project
- subgraph Target["Target Project"]
- direction TB
- countSetBits["countSetBits\nSliceNum: 2"]:::target
- longestIncreasingSubsequence["longestIncreasingSubsequence\nSliceNum: 4"]:::target
- memoizedFib["memoizedFib\nSliceNum: 1"]:::target
- processMatrix["processMatrix\nSliceNum: 2"]:::target
- projectB_main["projectB_main\nSliceNum: 3"]:::target
- reverseString["reverseString\nSliceNum: 2"]:::target
- testPoints["testPoints\nSliceNum: 2"]:::target
- end
- subgraph Bunker["Bunker Project"]
- direction TB
- calculateCircleArea["calculateCircleArea\nCritical Points: 2"]:::bunker
- calculateDistance["calculateDistance\nCritical Points: 2"]:::bunker
- createDynamicArray["createDynamicArray\nCritical Points: 2"]:::bunker
- createMatrix["createMatrix\nCritical Points: 2"]:::bunker
- factorial["factorial\nCritical Points: 2"]:::bunker
- findCentroid["findCentroid\nCritical Points: 2"]:::bunker
- getErrorMessage["getErrorMessage\nCritical Points: 2"]:::bunker
- insertNode["insertNode\nCritical Points: 2"]:::bunker
- multiplyMatrices["multiplyMatrices\nCritical Points: 2"]:::bunker
- performSimpleCalculations["performSimpleCalculations\nCritical Points: 7"]:::bunker
- projectA_main["projectA_main\nCritical Points: 2"]:::bunker
- pushBack["pushBack\nCritical Points: 2"]:::bunker
- quickSort["quickSort\nCritical Points: 2"]:::bunker
- removeDuplicates["removeDuplicates\nCritical Points: 2"]:::bunker
- setErrorMessage["setErrorMessage\nCritical Points: 3"]:::bunker
- validateMatrix["validateMatrix\nCritical Points: 2"]:::bunker
- end
- %% Fusion Matches
- countSetBits ==>|fusion| quickSort
- longestIncreasingSubsequence ==>|fusion| performSimpleCalculations
- memoizedFib ==>|fusion| projectA_main
- processMatrix ==>|fusion| createDynamicArray
- projectB_main ==>|fusion| setErrorMessage
- reverseString ==>|fusion| createMatrix
- testPoints ==>|fusion| removeDuplicates
- %% Styles
- classDef target fill:#f96,stroke:#333,stroke-width:2px
- classDef bunker fill:#9cf,stroke:#333,stroke-width:2px
- style Target fill:#fff,stroke:#f96,stroke-width:2px
- style Bunker fill:#fff,stroke:#9cf,stroke-width:2px
- ```
- [INFO][generateFusionMatchGraph] Generated visualization with 7 target functions and 16 bunker functions
- [INFO][generateFusionMatchGraph] Total fusion matches: 7
- [INFO][performCodeFusion] Starting code fusion
- [INFO][performCodeFusion] Processing function pair: target=countSetBits, bunker=quickSort
- [INFO][performCodeFusion] adding: %7
- [INFO][performCodeFusion] before push Block ID: %7
- [INFO][performCodeFusion] adding: %255
- [INFO][performCodeFusion] adding: %258
- [INFO][performCodeFusion] adding: %265
- [INFO][performCodeFusion] before push Block ID: %255
- [INFO][performCodeFusion] before push Block ID: %258
- [INFO][performCodeFusion] before push Block ID: %265
- [INFO][performCodeFusion] Listing all instructions after block cloning in function: fused_quickSort
- ```mermaid: fused_quickSort
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %6 = icmp eq i1 %0, true\n br i1 %6, label %7, label %target_skip_0\n"]
- target_cond_0 -->|true| 7
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 7["Block 7:\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n store i32 %5, i32* %8, align 4\n store i32 0, i32* %9, align 4\n br label %target_phi_0\n"]
- 7 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %10 = icmp eq i1 %0, false\n br i1 %10, label %11, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 11
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 11["Block 11:\n %12 = alloca i32*, align 8\n %13 = alloca i32, align 4\n %14 = alloca i32, align 4\n %15 = alloca i32*, align 8\n %16 = alloca i32, align 4\n %17 = alloca i32, align 4\n %18 = alloca i32, align 4\n %19 = alloca i32, align 4\n %20 = alloca i32, align 4\n %21 = alloca i32, align 4\n store i32* %1, i32** %12, align 8\n store i32 %2, i32* %13, align 4\n store i32 %3, i32* %14, align 4\n store i32* %4, i32** %15, align 8\n %22 = load i32, i32* @recursionDepth, align 4\n %23 = add nsw i32 %22, 1\n store i32 %23, i32* @recursionDepth, align 4\n %24 = icmp sgt i32 %23, 1000\n br i1 %24, label %25, label %29\n"]
- 11 -->|true| 25
- 11 -->|false| 29
- 25["Block 25:\n call void @setErrorMessage(i8* getelementptr ...\n %26 = load i32*, i32** %15, align 8\n store i32 1, i32* %26, align 4\n %27 = load i32, i32* @recursionDepth, align 4\n %28 = add nsw i32 %27, -1\n store i32 %28, i32* @recursionDepth, align 4\n br label %268\n"]
- 25 --> 268
- 29["Block 29:\n %30 = load i32*, i32** %12, align 8\n %31 = icmp ne i32* %30, null\n br i1 %31, label %36, label %32\n"]
- 29 -->|true| 36
- 29 -->|false| 32
- 32["Block 32:\n call void @setErrorMessage(i8* getelementptr ...\n %33 = load i32*, i32** %15, align 8\n store i32 1, i32* %33, align 4\n %34 = load i32, i32* @recursionDepth, align 4\n %35 = add nsw i32 %34, -1\n store i32 %35, i32* @recursionDepth, align 4\n br label %268\n"]
- 32 --> 268
- 36["Block 36:\n %37 = load i32, i32* %13, align 4\n %38 = icmp slt i32 %37, 0\n br i1 %38, label %48, label %39\n"]
- 36 -->|true| 48
- 36 -->|false| 39
- 39["Block 39:\n %40 = load i32, i32* %14, align 4\n %41 = icmp slt i32 %40, 0\n br i1 %41, label %48, label %42\n"]
- 39 -->|true| 48
- 39 -->|false| 42
- 42["Block 42:\n %43 = load i32, i32* %13, align 4\n %44 = icmp sge i32 %43, 1000\n br i1 %44, label %48, label %45\n"]
- 42 -->|true| 48
- 42 -->|false| 45
- 45["Block 45:\n %46 = load i32, i32* %14, align 4\n %47 = icmp sge i32 %46, 1000\n br i1 %47, label %48, label %52\n"]
- 45 -->|true| 48
- 45 -->|false| 52
- 48["Block 48:\n call void @setErrorMessage(i8* getelementptr ...\n %49 = load i32*, i32** %15, align 8\n store i32 1, i32* %49, align 4\n %50 = load i32, i32* @recursionDepth, align 4\n %51 = add nsw i32 %50, -1\n store i32 %51, i32* @recursionDepth, align 4\n br label %268\n"]
- 48 --> 268
- 52["Block 52:\n %53 = load i32, i32* %13, align 4\n %54 = load i32, i32* %14, align 4\n %55 = icmp slt i32 %53, %54\n br i1 %55, label %56, label %251\n"]
- 52 -->|true| 56
- 52 -->|false| 251
- 56["Block 56:\n %57 = load i32, i32* %13, align 4\n %58 = load i32, i32* %14, align 4\n %59 = load i32, i32* %13, align 4\n %60 = sub nsw i32 %58, %59\n %61 = sdiv i32 %60, 2\n %62 = add nsw i32 %57, %61\n store i32 %62, i32* %16, align 4\n %63 = load i32*, i32** %12, align 8\n %64 = load i32, i32* %13, align 4\n %65 = sext i32 %64 to i64\n %66 = getelementptr inbounds i32, i32* %63, i...\n %67 = load i32, i32* %66, align 4\n %68 = load i32*, i32** %12, align 8\n %69 = load i32, i32* %16, align 4\n %70 = sext i32 %69 to i64\n %71 = getelementptr inbounds i32, i32* %68, i...\n %72 = load i32, i32* %71, align 4\n %73 = icmp sle i32 %67, %72\n br i1 %73, label %74, label %106\n"]
- 56 -->|true| 74
- 56 -->|false| 106
- 74["Block 74:\n %75 = load i32*, i32** %12, align 8\n %76 = load i32, i32* %16, align 4\n %77 = sext i32 %76 to i64\n %78 = getelementptr inbounds i32, i32* %75, i...\n %79 = load i32, i32* %78, align 4\n %80 = load i32*, i32** %12, align 8\n %81 = load i32, i32* %14, align 4\n %82 = sext i32 %81 to i64\n %83 = getelementptr inbounds i32, i32* %80, i...\n %84 = load i32, i32* %83, align 4\n %85 = icmp sle i32 %79, %84\n br i1 %85, label %86, label %88\n"]
- 74 -->|true| 86
- 74 -->|false| 88
- 86["Block 86:\n %87 = load i32, i32* %16, align 4\n store i32 %87, i32* %17, align 4\n br label %105\n"]
- 86 --> 105
- 88["Block 88:\n %89 = load i32*, i32** %12, align 8\n %90 = load i32, i32* %13, align 4\n %91 = sext i32 %90 to i64\n %92 = getelementptr inbounds i32, i32* %89, i...\n %93 = load i32, i32* %92, align 4\n %94 = load i32*, i32** %12, align 8\n %95 = load i32, i32* %14, align 4\n %96 = sext i32 %95 to i64\n %97 = getelementptr inbounds i32, i32* %94, i...\n %98 = load i32, i32* %97, align 4\n %99 = icmp sle i32 %93, %98\n br i1 %99, label %100, label %102\n"]
- 88 -->|true| 100
- 88 -->|false| 102
- 100["Block 100:\n %101 = load i32, i32* %14, align 4\n store i32 %101, i32* %17, align 4\n br label %104\n"]
- 100 --> 104
- 102["Block 102:\n %103 = load i32, i32* %13, align 4\n store i32 %103, i32* %17, align 4\n br label %104\n"]
- 102 --> 104
- 104["Block 104:\n br label %105\n"]
- 104 --> 105
- 105["Block 105:\n br label %138\n"]
- 105 --> 138
- 106["Block 106:\n %107 = load i32*, i32** %12, align 8\n %108 = load i32, i32* %13, align 4\n %109 = sext i32 %108 to i64\n %110 = getelementptr inbounds i32, i32* %107,...\n %111 = load i32, i32* %110, align 4\n %112 = load i32*, i32** %12, align 8\n %113 = load i32, i32* %14, align 4\n %114 = sext i32 %113 to i64\n %115 = getelementptr inbounds i32, i32* %112,...\n %116 = load i32, i32* %115, align 4\n %117 = icmp sle i32 %111, %116\n br i1 %117, label %118, label %120\n"]
- 106 -->|true| 118
- 106 -->|false| 120
- 118["Block 118:\n %119 = load i32, i32* %13, align 4\n store i32 %119, i32* %17, align 4\n br label %137\n"]
- 118 --> 137
- 120["Block 120:\n %121 = load i32*, i32** %12, align 8\n %122 = load i32, i32* %16, align 4\n %123 = sext i32 %122 to i64\n %124 = getelementptr inbounds i32, i32* %121,...\n %125 = load i32, i32* %124, align 4\n %126 = load i32*, i32** %12, align 8\n %127 = load i32, i32* %14, align 4\n %128 = sext i32 %127 to i64\n %129 = getelementptr inbounds i32, i32* %126,...\n %130 = load i32, i32* %129, align 4\n %131 = icmp sle i32 %125, %130\n br i1 %131, label %132, label %134\n"]
- 120 -->|true| 132
- 120 -->|false| 134
- 132["Block 132:\n %133 = load i32, i32* %14, align 4\n store i32 %133, i32* %17, align 4\n br label %136\n"]
- 132 --> 136
- 134["Block 134:\n %135 = load i32, i32* %16, align 4\n store i32 %135, i32* %17, align 4\n br label %136\n"]
- 134 --> 136
- 136["Block 136:\n br label %137\n"]
- 136 --> 137
- 137["Block 137:\n br label %138\n"]
- 137 --> 138
- 138["Block 138:\n %139 = load i32*, i32** %12, align 8\n %140 = load i32, i32* %14, align 4\n %141 = sext i32 %140 to i64\n %142 = getelementptr inbounds i32, i32* %139,...\n %143 = load i32, i32* %142, align 4\n store i32 %143, i32* %18, align 4\n %144 = load i32*, i32** %12, align 8\n %145 = load i32, i32* %17, align 4\n %146 = sext i32 %145 to i64\n %147 = getelementptr inbounds i32, i32* %144,...\n %148 = load i32, i32* %147, align 4\n %149 = load i32*, i32** %12, align 8\n %150 = load i32, i32* %14, align 4\n %151 = sext i32 %150 to i64\n %152 = getelementptr inbounds i32, i32* %149,...\n store i32 %148, i32* %152, align 4\n %153 = load i32, i32* %18, align 4\n %154 = load i32*, i32** %12, align 8\n %155 = load i32, i32* %17, align 4\n %156 = sext i32 %155 to i64\n %157 = getelementptr inbounds i32, i32* %154,...\n store i32 %153, i32* %157, align 4\n %158 = load i32*, i32** %12, align 8\n %159 = load i32, i32* %14, align 4\n %160 = sext i32 %159 to i64\n %161 = getelementptr inbounds i32, i32* %158,...\n %162 = load i32, i32* %161, align 4\n store i32 %162, i32* %19, align 4\n %163 = load i32, i32* %13, align 4\n %164 = sub nsw i32 %163, 1\n store i32 %164, i32* %20, align 4\n %165 = load i32, i32* %13, align 4\n store i32 %165, i32* %21, align 4\n br label %166\n"]
- 138 --> 166
- 166["Block 166:\n %167 = load i32, i32* %21, align 4\n %168 = load i32, i32* %14, align 4\n %169 = icmp slt i32 %167, %168\n br i1 %169, label %170, label %206\n"]
- 166 -->|true| 170
- 166 -->|false| 206
- 170["Block 170:\n %171 = load i32*, i32** %12, align 8\n %172 = load i32, i32* %21, align 4\n %173 = sext i32 %172 to i64\n %174 = getelementptr inbounds i32, i32* %171,...\n %175 = load i32, i32* %174, align 4\n %176 = load i32, i32* %19, align 4\n %177 = icmp sle i32 %175, %176\n br i1 %177, label %178, label %202\n"]
- 170 -->|true| 178
- 170 -->|false| 202
- 178["Block 178:\n %179 = load i32, i32* %20, align 4\n %180 = add nsw i32 %179, 1\n store i32 %180, i32* %20, align 4\n %181 = load i32*, i32** %12, align 8\n %182 = load i32, i32* %20, align 4\n %183 = sext i32 %182 to i64\n %184 = getelementptr inbounds i32, i32* %181,...\n %185 = load i32, i32* %184, align 4\n store i32 %185, i32* %18, align 4\n %186 = load i32*, i32** %12, align 8\n %187 = load i32, i32* %21, align 4\n %188 = sext i32 %187 to i64\n %189 = getelementptr inbounds i32, i32* %186,...\n %190 = load i32, i32* %189, align 4\n %191 = load i32*, i32** %12, align 8\n %192 = load i32, i32* %20, align 4\n %193 = sext i32 %192 to i64\n %194 = getelementptr inbounds i32, i32* %191,...\n store i32 %190, i32* %194, align 4\n %195 = load i32, i32* %18, align 4\n %196 = load i32*, i32** %12, align 8\n %197 = load i32, i32* %21, align 4\n %198 = sext i32 %197 to i64\n %199 = getelementptr inbounds i32, i32* %196,...\n store i32 %195, i32* %199, align 4\n %200 = load i32, i32* @globalCounter, align 4\n %201 = add nsw i32 %200, 1\n store i32 %201, i32* @globalCounter, align 4\n br label %202\n"]
- 178 --> 202
- 202["Block 202:\n br label %203\n"]
- 202 --> 203
- 203["Block 203:\n %204 = load i32, i32* %21, align 4\n %205 = add nsw i32 %204, 1\n store i32 %205, i32* %21, align 4\n br label %166\n"]
- 203 --> 166
- 206["Block 206:\n %207 = load i32*, i32** %12, align 8\n %208 = load i32, i32* %20, align 4\n %209 = add nsw i32 %208, 1\n %210 = sext i32 %209 to i64\n %211 = getelementptr inbounds i32, i32* %207,...\n %212 = load i32, i32* %211, align 4\n store i32 %212, i32* %18, align 4\n %213 = load i32*, i32** %12, align 8\n %214 = load i32, i32* %14, align 4\n %215 = sext i32 %214 to i64\n %216 = getelementptr inbounds i32, i32* %213,...\n %217 = load i32, i32* %216, align 4\n %218 = load i32*, i32** %12, align 8\n %219 = load i32, i32* %20, align 4\n %220 = add nsw i32 %219, 1\n %221 = sext i32 %220 to i64\n %222 = getelementptr inbounds i32, i32* %218,...\n store i32 %217, i32* %222, align 4\n %223 = load i32, i32* %18, align 4\n %224 = load i32*, i32** %12, align 8\n %225 = load i32, i32* %14, align 4\n %226 = sext i32 %225 to i64\n %227 = getelementptr inbounds i32, i32* %224,...\n store i32 %223, i32* %227, align 4\n %228 = load i32*, i32** %12, align 8\n %229 = load i32, i32* %13, align 4\n %230 = load i32, i32* %20, align 4\n %231 = load i32*, i32** %15, align 8\n call void @quickSort(i32* %228, i32 %229, i32...\n %232 = load i32*, i32** %15, align 8\n %233 = load i32, i32* %232, align 4\n %234 = icmp ne i32 %233, 0\n br i1 %234, label %235, label %238\n"]
- 206 -->|true| 235
- 206 -->|false| 238
- 235["Block 235:\n %236 = load i32, i32* @recursionDepth, align 4\n %237 = add nsw i32 %236, -1\n store i32 %237, i32* @recursionDepth, align 4\n br label %268\n"]
- 235 --> 268
- 238["Block 238:\n %239 = load i32*, i32** %12, align 8\n %240 = load i32, i32* %20, align 4\n %241 = add nsw i32 %240, 2\n %242 = load i32, i32* %14, align 4\n %243 = load i32*, i32** %15, align 8\n call void @quickSort(i32* %239, i32 %241, i32...\n %244 = load i32*, i32** %15, align 8\n %245 = load i32, i32* %244, align 4\n %246 = icmp ne i32 %245, 0\n br i1 %246, label %247, label %250\n"]
- 238 -->|true| 247
- 238 -->|false| 250
- 247["Block 247:\n %248 = load i32, i32* @recursionDepth, align 4\n %249 = add nsw i32 %248, -1\n store i32 %249, i32* @recursionDepth, align 4\n br label %268\n"]
- 247 --> 268
- 250["Block 250:\n br label %251\n"]
- 250 --> 251
- 251["Block 251:\n %252 = load i32, i32* @recursionDepth, align 4\n %253 = add nsw i32 %252, -1\n store i32 %253, i32* @recursionDepth, align 4\n br label %bunker_phi_0\n"]
- 251 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %254 = icmp eq i1 %0, true\n br i1 %254, label %255, label %target_skip_1\n"]
- target_cond_1 -->|true| 255
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 255["Block 255:\n %256 = load i32, i32* %8, align 4\n %257 = icmp ne i32 %256, 0\n br i1 %257, label %258, label %265\n"]
- 255 -->|true| 258
- 255 -->|false| 265
- 258["Block 258:\n %259 = load i32, i32* %8, align 4\n %260 = and i32 %259, 1\n %261 = load i32, i32* %9, align 4\n %262 = add nsw i32 %261, %260\n store i32 %262, i32* %9, align 4\n %263 = load i32, i32* %8, align 4\n %264 = ashr i32 %263, 1\n store i32 %264, i32* %8, align 4\n br label %255\n"]
- 258 --> 255
- 265["Block 265:\n %266 = load i32, i32* %9, align 4\n ret i32 %266\n br label %target_phi_1\n"]
- 265 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %267 = icmp eq i1 %0, false\n br i1 %267, label %268, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 268
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret i32 0\n"]
- 268["Block 268:\n ret void\n br label %bunker_phi_1\n"]
- 268 --> bunker_phi_1
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][performCodeFusion] Processing return values for fused function: fused_quickSort
- [DEBUG][performCodeFusion] Fused function return type: i32
- [DEBUG][performCodeFusion] Non-struct return type detected: i32
- [DEBUG][performCodeFusion] Processing bunker block: %52
- [DEBUG][performCodeFusion] Block %52 - Processing instruction: %53 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %52 - Processing instruction: %54 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %52 - Processing instruction: %55 = icmp slt i32 %53, %54 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %52 - Processing instruction: br i1 %55, label %56, label %251 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %29
- [DEBUG][performCodeFusion] Block %29 - Processing instruction: %30 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %29 - Processing instruction: %31 = icmp ne i32* %30, null (opcode: icmp)
- [DEBUG][performCodeFusion] Block %29 - Processing instruction: br i1 %31, label %36, label %32 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %39
- [DEBUG][performCodeFusion] Block %39 - Processing instruction: %40 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %39 - Processing instruction: %41 = icmp slt i32 %40, 0 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %39 - Processing instruction: br i1 %41, label %48, label %42 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %36
- [DEBUG][performCodeFusion] Block %36 - Processing instruction: %37 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %36 - Processing instruction: %38 = icmp slt i32 %37, 0 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %36 - Processing instruction: br i1 %38, label %48, label %39 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %32
- [DEBUG][performCodeFusion] Block %32 - Processing instruction: call void @setErrorMessage(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %32 - Processing instruction: %33 = load i32*, i32** %15, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %32 - Processing instruction: store i32 1, i32* %33, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %32 - Processing instruction: %34 = load i32, i32* @recursionDepth, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %32 - Processing instruction: %35 = add nsw i32 %34, -1 (opcode: add)
- [DEBUG][performCodeFusion] Block %32 - Processing instruction: store i32 %35, i32* @recursionDepth, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %32 - Processing instruction: br label %268 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %25
- [DEBUG][performCodeFusion] Block %25 - Processing instruction: call void @setErrorMessage(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %25 - Processing instruction: %26 = load i32*, i32** %15, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %25 - Processing instruction: store i32 1, i32* %26, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %25 - Processing instruction: %27 = load i32, i32* @recursionDepth, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %25 - Processing instruction: %28 = add nsw i32 %27, -1 (opcode: add)
- [DEBUG][performCodeFusion] Block %25 - Processing instruction: store i32 %28, i32* @recursionDepth, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %25 - Processing instruction: br label %268 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %11
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %12 = alloca i32*, align 8 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %13 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %14 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %15 = alloca i32*, align 8 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %16 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %17 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %18 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %19 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %20 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %21 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: store i32* %1, i32** %12, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: store i32 %2, i32* %13, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: store i32 %3, i32* %14, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: store i32* %4, i32** %15, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %22 = load i32, i32* @recursionDepth, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %23 = add nsw i32 %22, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: store i32 %23, i32* @recursionDepth, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: %24 = icmp sgt i32 %23, 1000 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %11 - Processing instruction: br i1 %24, label %25, label %29 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %42
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: %43 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: %44 = icmp sge i32 %43, 1000 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: br i1 %44, label %48, label %45 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %45
- [DEBUG][performCodeFusion] Block %45 - Processing instruction: %46 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %45 - Processing instruction: %47 = icmp sge i32 %46, 1000 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %45 - Processing instruction: br i1 %47, label %48, label %52 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %48
- [DEBUG][performCodeFusion] Block %48 - Processing instruction: call void @setErrorMessage(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %48 - Processing instruction: %49 = load i32*, i32** %15, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %48 - Processing instruction: store i32 1, i32* %49, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %48 - Processing instruction: %50 = load i32, i32* @recursionDepth, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %48 - Processing instruction: %51 = add nsw i32 %50, -1 (opcode: add)
- [DEBUG][performCodeFusion] Block %48 - Processing instruction: store i32 %51, i32* @recursionDepth, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %48 - Processing instruction: br label %268 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %118
- [DEBUG][performCodeFusion] Block %118 - Processing instruction: %119 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %118 - Processing instruction: store i32 %119, i32* %17, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %118 - Processing instruction: br label %137 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %120
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %121 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %122 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %123 = sext i32 %122 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %124 = getelementptr inbounds i32, i32* %121, i64 %123 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %125 = load i32, i32* %124, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %126 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %127 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %128 = sext i32 %127 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %129 = getelementptr inbounds i32, i32* %126, i64 %128 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %130 = load i32, i32* %129, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: %131 = icmp sle i32 %125, %130 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %120 - Processing instruction: br i1 %131, label %132, label %134 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %132
- [DEBUG][performCodeFusion] Block %132 - Processing instruction: %133 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %132 - Processing instruction: store i32 %133, i32* %17, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %132 - Processing instruction: br label %136 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %134
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %135 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: store i32 %135, i32* %17, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: br label %136 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %136
- [DEBUG][performCodeFusion] Block %136 - Processing instruction: br label %137 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %137
- [DEBUG][performCodeFusion] Block %137 - Processing instruction: br label %138 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %138
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %139 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %140 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %141 = sext i32 %140 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %142 = getelementptr inbounds i32, i32* %139, i64 %141 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %143 = load i32, i32* %142, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: store i32 %143, i32* %18, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %144 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %145 = load i32, i32* %17, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %146 = sext i32 %145 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %147 = getelementptr inbounds i32, i32* %144, i64 %146 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %148 = load i32, i32* %147, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %149 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %150 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %151 = sext i32 %150 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %152 = getelementptr inbounds i32, i32* %149, i64 %151 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: store i32 %148, i32* %152, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %153 = load i32, i32* %18, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %154 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %155 = load i32, i32* %17, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %156 = sext i32 %155 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %157 = getelementptr inbounds i32, i32* %154, i64 %156 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: store i32 %153, i32* %157, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %158 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %159 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %160 = sext i32 %159 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %161 = getelementptr inbounds i32, i32* %158, i64 %160 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %162 = load i32, i32* %161, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: store i32 %162, i32* %19, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %163 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %164 = sub nsw i32 %163, 1 (opcode: sub)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: store i32 %164, i32* %20, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: %165 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: store i32 %165, i32* %21, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %138 - Processing instruction: br label %166 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %86
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: %87 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: store i32 %87, i32* %17, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: br label %105 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %88
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %89 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %90 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %91 = sext i32 %90 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %92 = getelementptr inbounds i32, i32* %89, i64 %91 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %93 = load i32, i32* %92, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %94 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %95 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %96 = sext i32 %95 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %97 = getelementptr inbounds i32, i32* %94, i64 %96 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %98 = load i32, i32* %97, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %99 = icmp sle i32 %93, %98 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: br i1 %99, label %100, label %102 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %100
- [DEBUG][performCodeFusion] Block %100 - Processing instruction: %101 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %100 - Processing instruction: store i32 %101, i32* %17, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %100 - Processing instruction: br label %104 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %102
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: %103 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: store i32 %103, i32* %17, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: br label %104 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %104
- [DEBUG][performCodeFusion] Block %104 - Processing instruction: br label %105 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %105
- [DEBUG][performCodeFusion] Block %105 - Processing instruction: br label %138 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %106
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %107 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %108 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %109 = sext i32 %108 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %110 = getelementptr inbounds i32, i32* %107, i64 %109 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %111 = load i32, i32* %110, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %112 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %113 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %114 = sext i32 %113 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %115 = getelementptr inbounds i32, i32* %112, i64 %114 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %116 = load i32, i32* %115, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: %117 = icmp sle i32 %111, %116 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %106 - Processing instruction: br i1 %117, label %118, label %120 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %56
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %57 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %58 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %59 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %60 = sub nsw i32 %58, %59 (opcode: sub)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %61 = sdiv i32 %60, 2 (opcode: sdiv)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %62 = add nsw i32 %57, %61 (opcode: add)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: store i32 %62, i32* %16, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %63 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %64 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %65 = sext i32 %64 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %66 = getelementptr inbounds i32, i32* %63, i64 %65 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %67 = load i32, i32* %66, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %68 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %69 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %70 = sext i32 %69 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %71 = getelementptr inbounds i32, i32* %68, i64 %70 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %72 = load i32, i32* %71, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %73 = icmp sle i32 %67, %72 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: br i1 %73, label %74, label %106 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %74
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %75 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %76 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %77 = sext i32 %76 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %78 = getelementptr inbounds i32, i32* %75, i64 %77 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %79 = load i32, i32* %78, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %80 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %81 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %82 = sext i32 %81 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %83 = getelementptr inbounds i32, i32* %80, i64 %82 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %84 = load i32, i32* %83, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %85 = icmp sle i32 %79, %84 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: br i1 %85, label %86, label %88 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %170
- [DEBUG][performCodeFusion] Block %170 - Processing instruction: %171 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %170 - Processing instruction: %172 = load i32, i32* %21, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %170 - Processing instruction: %173 = sext i32 %172 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %170 - Processing instruction: %174 = getelementptr inbounds i32, i32* %171, i64 %173 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %170 - Processing instruction: %175 = load i32, i32* %174, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %170 - Processing instruction: %176 = load i32, i32* %19, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %170 - Processing instruction: %177 = icmp sle i32 %175, %176 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %170 - Processing instruction: br i1 %177, label %178, label %202 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %178
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %179 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %180 = add nsw i32 %179, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: store i32 %180, i32* %20, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %181 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %182 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %183 = sext i32 %182 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %184 = getelementptr inbounds i32, i32* %181, i64 %183 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %185 = load i32, i32* %184, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: store i32 %185, i32* %18, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %186 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %187 = load i32, i32* %21, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %188 = sext i32 %187 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %189 = getelementptr inbounds i32, i32* %186, i64 %188 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %190 = load i32, i32* %189, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %191 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %192 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %193 = sext i32 %192 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %194 = getelementptr inbounds i32, i32* %191, i64 %193 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: store i32 %190, i32* %194, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %195 = load i32, i32* %18, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %196 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %197 = load i32, i32* %21, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %198 = sext i32 %197 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %199 = getelementptr inbounds i32, i32* %196, i64 %198 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: store i32 %195, i32* %199, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %200 = load i32, i32* @globalCounter, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: %201 = add nsw i32 %200, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: store i32 %201, i32* @globalCounter, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %178 - Processing instruction: br label %202 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %202
- [DEBUG][performCodeFusion] Block %202 - Processing instruction: br label %203 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %203
- [DEBUG][performCodeFusion] Block %203 - Processing instruction: %204 = load i32, i32* %21, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %203 - Processing instruction: %205 = add nsw i32 %204, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %203 - Processing instruction: store i32 %205, i32* %21, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %203 - Processing instruction: br label %166 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %206
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %207 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %208 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %209 = add nsw i32 %208, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %210 = sext i32 %209 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %211 = getelementptr inbounds i32, i32* %207, i64 %210 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %212 = load i32, i32* %211, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: store i32 %212, i32* %18, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %213 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %214 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %215 = sext i32 %214 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %216 = getelementptr inbounds i32, i32* %213, i64 %215 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %217 = load i32, i32* %216, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %218 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %219 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %220 = add nsw i32 %219, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %221 = sext i32 %220 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %222 = getelementptr inbounds i32, i32* %218, i64 %221 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: store i32 %217, i32* %222, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %223 = load i32, i32* %18, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %224 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %225 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %226 = sext i32 %225 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %227 = getelementptr inbounds i32, i32* %224, i64 %226 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: store i32 %223, i32* %227, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %228 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %229 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %230 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %231 = load i32*, i32** %15, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: call void @quickSort(i32* %228, i32 %229, i32 %230, i32* %231) (opcode: call)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %232 = load i32*, i32** %15, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %233 = load i32, i32* %232, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: %234 = icmp ne i32 %233, 0 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %206 - Processing instruction: br i1 %234, label %235, label %238 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %235
- [DEBUG][performCodeFusion] Block %235 - Processing instruction: %236 = load i32, i32* @recursionDepth, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %235 - Processing instruction: %237 = add nsw i32 %236, -1 (opcode: add)
- [DEBUG][performCodeFusion] Block %235 - Processing instruction: store i32 %237, i32* @recursionDepth, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %235 - Processing instruction: br label %268 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %238
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: %239 = load i32*, i32** %12, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: %240 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: %241 = add nsw i32 %240, 2 (opcode: add)
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: %242 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: %243 = load i32*, i32** %15, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: call void @quickSort(i32* %239, i32 %241, i32 %242, i32* %243) (opcode: call)
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: %244 = load i32*, i32** %15, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: %245 = load i32, i32* %244, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: %246 = icmp ne i32 %245, 0 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %238 - Processing instruction: br i1 %246, label %247, label %250 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %247
- [DEBUG][performCodeFusion] Block %247 - Processing instruction: %248 = load i32, i32* @recursionDepth, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %247 - Processing instruction: %249 = add nsw i32 %248, -1 (opcode: add)
- [DEBUG][performCodeFusion] Block %247 - Processing instruction: store i32 %249, i32* @recursionDepth, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %247 - Processing instruction: br label %268 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %250
- [DEBUG][performCodeFusion] Block %250 - Processing instruction: br label %251 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %251
- [DEBUG][performCodeFusion] Block %251 - Processing instruction: %252 = load i32, i32* @recursionDepth, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %251 - Processing instruction: %253 = add nsw i32 %252, -1 (opcode: add)
- [DEBUG][performCodeFusion] Block %251 - Processing instruction: store i32 %253, i32* @recursionDepth, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %251 - Processing instruction: br label %bunker_phi_0 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %268
- [DEBUG][performCodeFusion] Block %268 - Processing instruction: ret void (opcode: ret)
- [DEBUG][performCodeFusion] Setting default bunker return value
- [DEBUG][performCodeFusion] Updated bunker return in block %268 with value type i32
- [DEBUG][performCodeFusion] Block %268 - Processing instruction: br label %bunker_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Removing extra instruction after return in block %268: br
- [DEBUG][performCodeFusion] Processing bunker block: %166
- [DEBUG][performCodeFusion] Block %166 - Processing instruction: %167 = load i32, i32* %21, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %166 - Processing instruction: %168 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %166 - Processing instruction: %169 = icmp slt i32 %167, %168 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %166 - Processing instruction: br i1 %169, label %170, label %206 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %7
- [DEBUG][performCodeFusion] Block %7 - Processing instruction: %8 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %7 - Processing instruction: %9 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %7 - Processing instruction: store i32 %5, i32* %8, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %7 - Processing instruction: store i32 0, i32* %9, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %7 - Processing instruction: br label %target_phi_0 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %255
- [DEBUG][performCodeFusion] Block %255 - Processing instruction: %256 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %255 - Processing instruction: %257 = icmp ne i32 %256, 0 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %255 - Processing instruction: br i1 %257, label %258, label %265 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %258
- [DEBUG][performCodeFusion] Block %258 - Processing instruction: %259 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %258 - Processing instruction: %260 = and i32 %259, 1 (opcode: and)
- [DEBUG][performCodeFusion] Block %258 - Processing instruction: %261 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %258 - Processing instruction: %262 = add nsw i32 %261, %260 (opcode: add)
- [DEBUG][performCodeFusion] Block %258 - Processing instruction: store i32 %262, i32* %9, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %258 - Processing instruction: %263 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %258 - Processing instruction: %264 = ashr i32 %263, 1 (opcode: ashr)
- [DEBUG][performCodeFusion] Block %258 - Processing instruction: store i32 %264, i32* %8, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %258 - Processing instruction: br label %255 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %265
- [DEBUG][performCodeFusion] Block %265 - Processing instruction: %266 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %265 - Processing instruction: ret i32 %266 (opcode: ret)
- [DEBUG][performCodeFusion] Updated target return in block %265 with value type i32
- [DEBUG][performCodeFusion] Block %265 - Processing instruction: br label %target_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Removing extra instruction after return in block %265: br
- [INFO][performCodeFusion] Listing all instructions after return repairing in function: fused_quickSort
- ```mermaid: fused_quickSort
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %6 = icmp eq i1 %0, true\n br i1 %6, label %7, label %target_skip_0\n"]
- target_cond_0 -->|true| 7
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 7["Block 7:\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n store i32 %5, i32* %8, align 4\n store i32 0, i32* %9, align 4\n br label %target_phi_0\n"]
- 7 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %10 = icmp eq i1 %0, false\n br i1 %10, label %11, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 11
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 11["Block 11:\n %12 = alloca i32*, align 8\n %13 = alloca i32, align 4\n %14 = alloca i32, align 4\n %15 = alloca i32*, align 8\n %16 = alloca i32, align 4\n %17 = alloca i32, align 4\n %18 = alloca i32, align 4\n %19 = alloca i32, align 4\n %20 = alloca i32, align 4\n %21 = alloca i32, align 4\n store i32* %1, i32** %12, align 8\n store i32 %2, i32* %13, align 4\n store i32 %3, i32* %14, align 4\n store i32* %4, i32** %15, align 8\n %22 = load i32, i32* @recursionDepth, align 4\n %23 = add nsw i32 %22, 1\n store i32 %23, i32* @recursionDepth, align 4\n %24 = icmp sgt i32 %23, 1000\n br i1 %24, label %25, label %29\n"]
- 11 -->|true| 25
- 11 -->|false| 29
- 25["Block 25:\n call void @setErrorMessage(i8* getelementptr ...\n %26 = load i32*, i32** %15, align 8\n store i32 1, i32* %26, align 4\n %27 = load i32, i32* @recursionDepth, align 4\n %28 = add nsw i32 %27, -1\n store i32 %28, i32* @recursionDepth, align 4\n br label %268\n"]
- 25 --> 268
- 29["Block 29:\n %30 = load i32*, i32** %12, align 8\n %31 = icmp ne i32* %30, null\n br i1 %31, label %36, label %32\n"]
- 29 -->|true| 36
- 29 -->|false| 32
- 32["Block 32:\n call void @setErrorMessage(i8* getelementptr ...\n %33 = load i32*, i32** %15, align 8\n store i32 1, i32* %33, align 4\n %34 = load i32, i32* @recursionDepth, align 4\n %35 = add nsw i32 %34, -1\n store i32 %35, i32* @recursionDepth, align 4\n br label %268\n"]
- 32 --> 268
- 36["Block 36:\n %37 = load i32, i32* %13, align 4\n %38 = icmp slt i32 %37, 0\n br i1 %38, label %48, label %39\n"]
- 36 -->|true| 48
- 36 -->|false| 39
- 39["Block 39:\n %40 = load i32, i32* %14, align 4\n %41 = icmp slt i32 %40, 0\n br i1 %41, label %48, label %42\n"]
- 39 -->|true| 48
- 39 -->|false| 42
- 42["Block 42:\n %43 = load i32, i32* %13, align 4\n %44 = icmp sge i32 %43, 1000\n br i1 %44, label %48, label %45\n"]
- 42 -->|true| 48
- 42 -->|false| 45
- 45["Block 45:\n %46 = load i32, i32* %14, align 4\n %47 = icmp sge i32 %46, 1000\n br i1 %47, label %48, label %52\n"]
- 45 -->|true| 48
- 45 -->|false| 52
- 48["Block 48:\n call void @setErrorMessage(i8* getelementptr ...\n %49 = load i32*, i32** %15, align 8\n store i32 1, i32* %49, align 4\n %50 = load i32, i32* @recursionDepth, align 4\n %51 = add nsw i32 %50, -1\n store i32 %51, i32* @recursionDepth, align 4\n br label %268\n"]
- 48 --> 268
- 52["Block 52:\n %53 = load i32, i32* %13, align 4\n %54 = load i32, i32* %14, align 4\n %55 = icmp slt i32 %53, %54\n br i1 %55, label %56, label %251\n"]
- 52 -->|true| 56
- 52 -->|false| 251
- 56["Block 56:\n %57 = load i32, i32* %13, align 4\n %58 = load i32, i32* %14, align 4\n %59 = load i32, i32* %13, align 4\n %60 = sub nsw i32 %58, %59\n %61 = sdiv i32 %60, 2\n %62 = add nsw i32 %57, %61\n store i32 %62, i32* %16, align 4\n %63 = load i32*, i32** %12, align 8\n %64 = load i32, i32* %13, align 4\n %65 = sext i32 %64 to i64\n %66 = getelementptr inbounds i32, i32* %63, i...\n %67 = load i32, i32* %66, align 4\n %68 = load i32*, i32** %12, align 8\n %69 = load i32, i32* %16, align 4\n %70 = sext i32 %69 to i64\n %71 = getelementptr inbounds i32, i32* %68, i...\n %72 = load i32, i32* %71, align 4\n %73 = icmp sle i32 %67, %72\n br i1 %73, label %74, label %106\n"]
- 56 -->|true| 74
- 56 -->|false| 106
- 74["Block 74:\n %75 = load i32*, i32** %12, align 8\n %76 = load i32, i32* %16, align 4\n %77 = sext i32 %76 to i64\n %78 = getelementptr inbounds i32, i32* %75, i...\n %79 = load i32, i32* %78, align 4\n %80 = load i32*, i32** %12, align 8\n %81 = load i32, i32* %14, align 4\n %82 = sext i32 %81 to i64\n %83 = getelementptr inbounds i32, i32* %80, i...\n %84 = load i32, i32* %83, align 4\n %85 = icmp sle i32 %79, %84\n br i1 %85, label %86, label %88\n"]
- 74 -->|true| 86
- 74 -->|false| 88
- 86["Block 86:\n %87 = load i32, i32* %16, align 4\n store i32 %87, i32* %17, align 4\n br label %105\n"]
- 86 --> 105
- 88["Block 88:\n %89 = load i32*, i32** %12, align 8\n %90 = load i32, i32* %13, align 4\n %91 = sext i32 %90 to i64\n %92 = getelementptr inbounds i32, i32* %89, i...\n %93 = load i32, i32* %92, align 4\n %94 = load i32*, i32** %12, align 8\n %95 = load i32, i32* %14, align 4\n %96 = sext i32 %95 to i64\n %97 = getelementptr inbounds i32, i32* %94, i...\n %98 = load i32, i32* %97, align 4\n %99 = icmp sle i32 %93, %98\n br i1 %99, label %100, label %102\n"]
- 88 -->|true| 100
- 88 -->|false| 102
- 100["Block 100:\n %101 = load i32, i32* %14, align 4\n store i32 %101, i32* %17, align 4\n br label %104\n"]
- 100 --> 104
- 102["Block 102:\n %103 = load i32, i32* %13, align 4\n store i32 %103, i32* %17, align 4\n br label %104\n"]
- 102 --> 104
- 104["Block 104:\n br label %105\n"]
- 104 --> 105
- 105["Block 105:\n br label %138\n"]
- 105 --> 138
- 106["Block 106:\n %107 = load i32*, i32** %12, align 8\n %108 = load i32, i32* %13, align 4\n %109 = sext i32 %108 to i64\n %110 = getelementptr inbounds i32, i32* %107,...\n %111 = load i32, i32* %110, align 4\n %112 = load i32*, i32** %12, align 8\n %113 = load i32, i32* %14, align 4\n %114 = sext i32 %113 to i64\n %115 = getelementptr inbounds i32, i32* %112,...\n %116 = load i32, i32* %115, align 4\n %117 = icmp sle i32 %111, %116\n br i1 %117, label %118, label %120\n"]
- 106 -->|true| 118
- 106 -->|false| 120
- 118["Block 118:\n %119 = load i32, i32* %13, align 4\n store i32 %119, i32* %17, align 4\n br label %137\n"]
- 118 --> 137
- 120["Block 120:\n %121 = load i32*, i32** %12, align 8\n %122 = load i32, i32* %16, align 4\n %123 = sext i32 %122 to i64\n %124 = getelementptr inbounds i32, i32* %121,...\n %125 = load i32, i32* %124, align 4\n %126 = load i32*, i32** %12, align 8\n %127 = load i32, i32* %14, align 4\n %128 = sext i32 %127 to i64\n %129 = getelementptr inbounds i32, i32* %126,...\n %130 = load i32, i32* %129, align 4\n %131 = icmp sle i32 %125, %130\n br i1 %131, label %132, label %134\n"]
- 120 -->|true| 132
- 120 -->|false| 134
- 132["Block 132:\n %133 = load i32, i32* %14, align 4\n store i32 %133, i32* %17, align 4\n br label %136\n"]
- 132 --> 136
- 134["Block 134:\n %135 = load i32, i32* %16, align 4\n store i32 %135, i32* %17, align 4\n br label %136\n"]
- 134 --> 136
- 136["Block 136:\n br label %137\n"]
- 136 --> 137
- 137["Block 137:\n br label %138\n"]
- 137 --> 138
- 138["Block 138:\n %139 = load i32*, i32** %12, align 8\n %140 = load i32, i32* %14, align 4\n %141 = sext i32 %140 to i64\n %142 = getelementptr inbounds i32, i32* %139,...\n %143 = load i32, i32* %142, align 4\n store i32 %143, i32* %18, align 4\n %144 = load i32*, i32** %12, align 8\n %145 = load i32, i32* %17, align 4\n %146 = sext i32 %145 to i64\n %147 = getelementptr inbounds i32, i32* %144,...\n %148 = load i32, i32* %147, align 4\n %149 = load i32*, i32** %12, align 8\n %150 = load i32, i32* %14, align 4\n %151 = sext i32 %150 to i64\n %152 = getelementptr inbounds i32, i32* %149,...\n store i32 %148, i32* %152, align 4\n %153 = load i32, i32* %18, align 4\n %154 = load i32*, i32** %12, align 8\n %155 = load i32, i32* %17, align 4\n %156 = sext i32 %155 to i64\n %157 = getelementptr inbounds i32, i32* %154,...\n store i32 %153, i32* %157, align 4\n %158 = load i32*, i32** %12, align 8\n %159 = load i32, i32* %14, align 4\n %160 = sext i32 %159 to i64\n %161 = getelementptr inbounds i32, i32* %158,...\n %162 = load i32, i32* %161, align 4\n store i32 %162, i32* %19, align 4\n %163 = load i32, i32* %13, align 4\n %164 = sub nsw i32 %163, 1\n store i32 %164, i32* %20, align 4\n %165 = load i32, i32* %13, align 4\n store i32 %165, i32* %21, align 4\n br label %166\n"]
- 138 --> 166
- 166["Block 166:\n %167 = load i32, i32* %21, align 4\n %168 = load i32, i32* %14, align 4\n %169 = icmp slt i32 %167, %168\n br i1 %169, label %170, label %206\n"]
- 166 -->|true| 170
- 166 -->|false| 206
- 170["Block 170:\n %171 = load i32*, i32** %12, align 8\n %172 = load i32, i32* %21, align 4\n %173 = sext i32 %172 to i64\n %174 = getelementptr inbounds i32, i32* %171,...\n %175 = load i32, i32* %174, align 4\n %176 = load i32, i32* %19, align 4\n %177 = icmp sle i32 %175, %176\n br i1 %177, label %178, label %202\n"]
- 170 -->|true| 178
- 170 -->|false| 202
- 178["Block 178:\n %179 = load i32, i32* %20, align 4\n %180 = add nsw i32 %179, 1\n store i32 %180, i32* %20, align 4\n %181 = load i32*, i32** %12, align 8\n %182 = load i32, i32* %20, align 4\n %183 = sext i32 %182 to i64\n %184 = getelementptr inbounds i32, i32* %181,...\n %185 = load i32, i32* %184, align 4\n store i32 %185, i32* %18, align 4\n %186 = load i32*, i32** %12, align 8\n %187 = load i32, i32* %21, align 4\n %188 = sext i32 %187 to i64\n %189 = getelementptr inbounds i32, i32* %186,...\n %190 = load i32, i32* %189, align 4\n %191 = load i32*, i32** %12, align 8\n %192 = load i32, i32* %20, align 4\n %193 = sext i32 %192 to i64\n %194 = getelementptr inbounds i32, i32* %191,...\n store i32 %190, i32* %194, align 4\n %195 = load i32, i32* %18, align 4\n %196 = load i32*, i32** %12, align 8\n %197 = load i32, i32* %21, align 4\n %198 = sext i32 %197 to i64\n %199 = getelementptr inbounds i32, i32* %196,...\n store i32 %195, i32* %199, align 4\n %200 = load i32, i32* @globalCounter, align 4\n %201 = add nsw i32 %200, 1\n store i32 %201, i32* @globalCounter, align 4\n br label %202\n"]
- 178 --> 202
- 202["Block 202:\n br label %203\n"]
- 202 --> 203
- 203["Block 203:\n %204 = load i32, i32* %21, align 4\n %205 = add nsw i32 %204, 1\n store i32 %205, i32* %21, align 4\n br label %166\n"]
- 203 --> 166
- 206["Block 206:\n %207 = load i32*, i32** %12, align 8\n %208 = load i32, i32* %20, align 4\n %209 = add nsw i32 %208, 1\n %210 = sext i32 %209 to i64\n %211 = getelementptr inbounds i32, i32* %207,...\n %212 = load i32, i32* %211, align 4\n store i32 %212, i32* %18, align 4\n %213 = load i32*, i32** %12, align 8\n %214 = load i32, i32* %14, align 4\n %215 = sext i32 %214 to i64\n %216 = getelementptr inbounds i32, i32* %213,...\n %217 = load i32, i32* %216, align 4\n %218 = load i32*, i32** %12, align 8\n %219 = load i32, i32* %20, align 4\n %220 = add nsw i32 %219, 1\n %221 = sext i32 %220 to i64\n %222 = getelementptr inbounds i32, i32* %218,...\n store i32 %217, i32* %222, align 4\n %223 = load i32, i32* %18, align 4\n %224 = load i32*, i32** %12, align 8\n %225 = load i32, i32* %14, align 4\n %226 = sext i32 %225 to i64\n %227 = getelementptr inbounds i32, i32* %224,...\n store i32 %223, i32* %227, align 4\n %228 = load i32*, i32** %12, align 8\n %229 = load i32, i32* %13, align 4\n %230 = load i32, i32* %20, align 4\n %231 = load i32*, i32** %15, align 8\n call void @quickSort(i32* %228, i32 %229, i32...\n %232 = load i32*, i32** %15, align 8\n %233 = load i32, i32* %232, align 4\n %234 = icmp ne i32 %233, 0\n br i1 %234, label %235, label %238\n"]
- 206 -->|true| 235
- 206 -->|false| 238
- 235["Block 235:\n %236 = load i32, i32* @recursionDepth, align 4\n %237 = add nsw i32 %236, -1\n store i32 %237, i32* @recursionDepth, align 4\n br label %268\n"]
- 235 --> 268
- 238["Block 238:\n %239 = load i32*, i32** %12, align 8\n %240 = load i32, i32* %20, align 4\n %241 = add nsw i32 %240, 2\n %242 = load i32, i32* %14, align 4\n %243 = load i32*, i32** %15, align 8\n call void @quickSort(i32* %239, i32 %241, i32...\n %244 = load i32*, i32** %15, align 8\n %245 = load i32, i32* %244, align 4\n %246 = icmp ne i32 %245, 0\n br i1 %246, label %247, label %250\n"]
- 238 -->|true| 247
- 238 -->|false| 250
- 247["Block 247:\n %248 = load i32, i32* @recursionDepth, align 4\n %249 = add nsw i32 %248, -1\n store i32 %249, i32* @recursionDepth, align 4\n br label %268\n"]
- 247 --> 268
- 250["Block 250:\n br label %251\n"]
- 250 --> 251
- 251["Block 251:\n %252 = load i32, i32* @recursionDepth, align 4\n %253 = add nsw i32 %252, -1\n store i32 %253, i32* @recursionDepth, align 4\n br label %bunker_phi_0\n"]
- 251 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %254 = icmp eq i1 %0, true\n br i1 %254, label %255, label %target_skip_1\n"]
- target_cond_1 -->|true| 255
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 255["Block 255:\n %256 = load i32, i32* %8, align 4\n %257 = icmp ne i32 %256, 0\n br i1 %257, label %258, label %265\n"]
- 255 -->|true| 258
- 255 -->|false| 265
- 258["Block 258:\n %259 = load i32, i32* %8, align 4\n %260 = and i32 %259, 1\n %261 = load i32, i32* %9, align 4\n %262 = add nsw i32 %261, %260\n store i32 %262, i32* %9, align 4\n %263 = load i32, i32* %8, align 4\n %264 = ashr i32 %263, 1\n store i32 %264, i32* %8, align 4\n br label %255\n"]
- 258 --> 255
- 265["Block 265:\n %266 = load i32, i32* %9, align 4\n ret i32 %266\n"]
- bunker_cond_1["Block bunker_cond_1:\n %267 = icmp eq i1 %0, false\n br i1 %267, label %268, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 268
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret i32 0\n"]
- 268["Block 268:\n ret i32 0\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][updateCallSite] Original call instruction:
- call void @quickSort(i32* %239, i32 %241, i32 %242, i32* %243)
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32*
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] Argument 2: type=i32
- [DEBUG][updateCallSite] Argument 3: type=i32*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] New call instruction:
- %244 = call i32 @fused_quickSort(i1 false, i32* %239, i32 %241, i32 %242, i32* %243, i32 0)
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @quickSort(i32* %239, i32 %241, i32 %242, i32* %243) to %244 = call i32 @fused_quickSort(i1 false, i32* %239, i32 %241, i32 %242, i32* %243, i32 0)
- [DEBUG][updateCallSite] Original call instruction:
- call void @quickSort(i32* %228, i32 %229, i32 %230, i32* %231)
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32*
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] Argument 2: type=i32
- [DEBUG][updateCallSite] Argument 3: type=i32*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] New call instruction:
- %232 = call i32 @fused_quickSort(i1 false, i32* %228, i32 %229, i32 %230, i32* %231, i32 0)
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @quickSort(i32* %228, i32 %229, i32 %230, i32* %231) to %232 = call i32 @fused_quickSort(i1 false, i32* %228, i32 %229, i32 %230, i32* %231, i32 0)
- [DEBUG][updateCallSite] Original call instruction:
- call void @quickSort(i32* %23, i32 0, i32 %27, i32* %3)
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32*
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] Argument 2: type=i32
- [DEBUG][updateCallSite] Argument 3: type=i32*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] New call instruction:
- %28 = call i32 @fused_quickSort(i1 false, i32* %23, i32 0, i32 %27, i32* %3, i32 0)
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @quickSort(i32* %23, i32 0, i32 %27, i32* %3) to %28 = call i32 @fused_quickSort(i1 false, i32* %23, i32 0, i32 %27, i32* %3, i32 0)
- [DEBUG][updateCallSite] Original call instruction:
- call void @quickSort(i32* %232, i32 %234, i32 %235, i32* %236)
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32*
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] Argument 2: type=i32
- [DEBUG][updateCallSite] Argument 3: type=i32*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] New call instruction:
- %237 = call i32 @fused_quickSort(i1 false, i32* %232, i32 %234, i32 %235, i32* %236, i32 0)
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @quickSort(i32* %232, i32 %234, i32 %235, i32* %236) to %237 = call i32 @fused_quickSort(i1 false, i32* %232, i32 %234, i32 %235, i32* %236, i32 0)
- [DEBUG][updateCallSite] Original call instruction:
- call void @quickSort(i32* %221, i32 %222, i32 %223, i32* %224)
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32*
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] Argument 2: type=i32
- [DEBUG][updateCallSite] Argument 3: type=i32*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] New call instruction:
- %225 = call i32 @fused_quickSort(i1 false, i32* %221, i32 %222, i32 %223, i32* %224, i32 0)
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @quickSort(i32* %221, i32 %222, i32 %223, i32* %224) to %225 = call i32 @fused_quickSort(i1 false, i32* %221, i32 %222, i32 %223, i32* %224, i32 0)
- [DEBUG][updateCallSite] Original call instruction:
- %38 = call i32 @countSetBits(i32 %37)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Parameter type: i32*
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] Parameter type: i32*
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %38 = call i32 @fused_quickSort(i1 true, i32* null, i32 0, i32 0, i32* null, i32 %37)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Using direct return value
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %38 = call i32 @countSetBits(i32 %37) to %38 = call i32 @fused_quickSort(i1 true, i32* null, i32 0, i32 0, i32* null, i32 %37)
- [DEBUG][updateCallSite] Original call instruction:
- %68 = call i32 @countSetBits(i32 %67)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Parameter type: i32*
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] Parameter type: i32*
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %68 = call i32 @fused_quickSort(i1 true, i32* null, i32 0, i32 0, i32* null, i32 %67)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Using direct return value
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %68 = call i32 @countSetBits(i32 %67) to %68 = call i32 @fused_quickSort(i1 true, i32* null, i32 0, i32 0, i32* null, i32 %67)
- [INFO][performCodeFusion] Listing all instructions after update calls in function: fused_quickSort
- ```mermaid: fused_quickSort
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %6 = icmp eq i1 %0, true\n br i1 %6, label %7, label %target_skip_0\n"]
- target_cond_0 -->|true| 7
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 7["Block 7:\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n store i32 %5, i32* %8, align 4\n store i32 0, i32* %9, align 4\n br label %target_phi_0\n"]
- 7 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %10 = icmp eq i1 %0, false\n br i1 %10, label %11, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 11
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 11["Block 11:\n %12 = alloca i32*, align 8\n %13 = alloca i32, align 4\n %14 = alloca i32, align 4\n %15 = alloca i32*, align 8\n %16 = alloca i32, align 4\n %17 = alloca i32, align 4\n %18 = alloca i32, align 4\n %19 = alloca i32, align 4\n %20 = alloca i32, align 4\n %21 = alloca i32, align 4\n store i32* %1, i32** %12, align 8\n store i32 %2, i32* %13, align 4\n store i32 %3, i32* %14, align 4\n store i32* %4, i32** %15, align 8\n %22 = load i32, i32* @recursionDepth, align 4\n %23 = add nsw i32 %22, 1\n store i32 %23, i32* @recursionDepth, align 4\n %24 = icmp sgt i32 %23, 1000\n br i1 %24, label %25, label %29\n"]
- 11 -->|true| 25
- 11 -->|false| 29
- 25["Block 25:\n call void @setErrorMessage(i8* getelementptr ...\n %26 = load i32*, i32** %15, align 8\n store i32 1, i32* %26, align 4\n %27 = load i32, i32* @recursionDepth, align 4\n %28 = add nsw i32 %27, -1\n store i32 %28, i32* @recursionDepth, align 4\n br label %270\n"]
- 25 --> 270
- 29["Block 29:\n %30 = load i32*, i32** %12, align 8\n %31 = icmp ne i32* %30, null\n br i1 %31, label %36, label %32\n"]
- 29 -->|true| 36
- 29 -->|false| 32
- 32["Block 32:\n call void @setErrorMessage(i8* getelementptr ...\n %33 = load i32*, i32** %15, align 8\n store i32 1, i32* %33, align 4\n %34 = load i32, i32* @recursionDepth, align 4\n %35 = add nsw i32 %34, -1\n store i32 %35, i32* @recursionDepth, align 4\n br label %270\n"]
- 32 --> 270
- 36["Block 36:\n %37 = load i32, i32* %13, align 4\n %38 = icmp slt i32 %37, 0\n br i1 %38, label %48, label %39\n"]
- 36 -->|true| 48
- 36 -->|false| 39
- 39["Block 39:\n %40 = load i32, i32* %14, align 4\n %41 = icmp slt i32 %40, 0\n br i1 %41, label %48, label %42\n"]
- 39 -->|true| 48
- 39 -->|false| 42
- 42["Block 42:\n %43 = load i32, i32* %13, align 4\n %44 = icmp sge i32 %43, 1000\n br i1 %44, label %48, label %45\n"]
- 42 -->|true| 48
- 42 -->|false| 45
- 45["Block 45:\n %46 = load i32, i32* %14, align 4\n %47 = icmp sge i32 %46, 1000\n br i1 %47, label %48, label %52\n"]
- 45 -->|true| 48
- 45 -->|false| 52
- 48["Block 48:\n call void @setErrorMessage(i8* getelementptr ...\n %49 = load i32*, i32** %15, align 8\n store i32 1, i32* %49, align 4\n %50 = load i32, i32* @recursionDepth, align 4\n %51 = add nsw i32 %50, -1\n store i32 %51, i32* @recursionDepth, align 4\n br label %270\n"]
- 48 --> 270
- 52["Block 52:\n %53 = load i32, i32* %13, align 4\n %54 = load i32, i32* %14, align 4\n %55 = icmp slt i32 %53, %54\n br i1 %55, label %56, label %253\n"]
- 52 -->|true| 56
- 52 -->|false| 253
- 56["Block 56:\n %57 = load i32, i32* %13, align 4\n %58 = load i32, i32* %14, align 4\n %59 = load i32, i32* %13, align 4\n %60 = sub nsw i32 %58, %59\n %61 = sdiv i32 %60, 2\n %62 = add nsw i32 %57, %61\n store i32 %62, i32* %16, align 4\n %63 = load i32*, i32** %12, align 8\n %64 = load i32, i32* %13, align 4\n %65 = sext i32 %64 to i64\n %66 = getelementptr inbounds i32, i32* %63, i...\n %67 = load i32, i32* %66, align 4\n %68 = load i32*, i32** %12, align 8\n %69 = load i32, i32* %16, align 4\n %70 = sext i32 %69 to i64\n %71 = getelementptr inbounds i32, i32* %68, i...\n %72 = load i32, i32* %71, align 4\n %73 = icmp sle i32 %67, %72\n br i1 %73, label %74, label %106\n"]
- 56 -->|true| 74
- 56 -->|false| 106
- 74["Block 74:\n %75 = load i32*, i32** %12, align 8\n %76 = load i32, i32* %16, align 4\n %77 = sext i32 %76 to i64\n %78 = getelementptr inbounds i32, i32* %75, i...\n %79 = load i32, i32* %78, align 4\n %80 = load i32*, i32** %12, align 8\n %81 = load i32, i32* %14, align 4\n %82 = sext i32 %81 to i64\n %83 = getelementptr inbounds i32, i32* %80, i...\n %84 = load i32, i32* %83, align 4\n %85 = icmp sle i32 %79, %84\n br i1 %85, label %86, label %88\n"]
- 74 -->|true| 86
- 74 -->|false| 88
- 86["Block 86:\n %87 = load i32, i32* %16, align 4\n store i32 %87, i32* %17, align 4\n br label %105\n"]
- 86 --> 105
- 88["Block 88:\n %89 = load i32*, i32** %12, align 8\n %90 = load i32, i32* %13, align 4\n %91 = sext i32 %90 to i64\n %92 = getelementptr inbounds i32, i32* %89, i...\n %93 = load i32, i32* %92, align 4\n %94 = load i32*, i32** %12, align 8\n %95 = load i32, i32* %14, align 4\n %96 = sext i32 %95 to i64\n %97 = getelementptr inbounds i32, i32* %94, i...\n %98 = load i32, i32* %97, align 4\n %99 = icmp sle i32 %93, %98\n br i1 %99, label %100, label %102\n"]
- 88 -->|true| 100
- 88 -->|false| 102
- 100["Block 100:\n %101 = load i32, i32* %14, align 4\n store i32 %101, i32* %17, align 4\n br label %104\n"]
- 100 --> 104
- 102["Block 102:\n %103 = load i32, i32* %13, align 4\n store i32 %103, i32* %17, align 4\n br label %104\n"]
- 102 --> 104
- 104["Block 104:\n br label %105\n"]
- 104 --> 105
- 105["Block 105:\n br label %138\n"]
- 105 --> 138
- 106["Block 106:\n %107 = load i32*, i32** %12, align 8\n %108 = load i32, i32* %13, align 4\n %109 = sext i32 %108 to i64\n %110 = getelementptr inbounds i32, i32* %107,...\n %111 = load i32, i32* %110, align 4\n %112 = load i32*, i32** %12, align 8\n %113 = load i32, i32* %14, align 4\n %114 = sext i32 %113 to i64\n %115 = getelementptr inbounds i32, i32* %112,...\n %116 = load i32, i32* %115, align 4\n %117 = icmp sle i32 %111, %116\n br i1 %117, label %118, label %120\n"]
- 106 -->|true| 118
- 106 -->|false| 120
- 118["Block 118:\n %119 = load i32, i32* %13, align 4\n store i32 %119, i32* %17, align 4\n br label %137\n"]
- 118 --> 137
- 120["Block 120:\n %121 = load i32*, i32** %12, align 8\n %122 = load i32, i32* %16, align 4\n %123 = sext i32 %122 to i64\n %124 = getelementptr inbounds i32, i32* %121,...\n %125 = load i32, i32* %124, align 4\n %126 = load i32*, i32** %12, align 8\n %127 = load i32, i32* %14, align 4\n %128 = sext i32 %127 to i64\n %129 = getelementptr inbounds i32, i32* %126,...\n %130 = load i32, i32* %129, align 4\n %131 = icmp sle i32 %125, %130\n br i1 %131, label %132, label %134\n"]
- 120 -->|true| 132
- 120 -->|false| 134
- 132["Block 132:\n %133 = load i32, i32* %14, align 4\n store i32 %133, i32* %17, align 4\n br label %136\n"]
- 132 --> 136
- 134["Block 134:\n %135 = load i32, i32* %16, align 4\n store i32 %135, i32* %17, align 4\n br label %136\n"]
- 134 --> 136
- 136["Block 136:\n br label %137\n"]
- 136 --> 137
- 137["Block 137:\n br label %138\n"]
- 137 --> 138
- 138["Block 138:\n %139 = load i32*, i32** %12, align 8\n %140 = load i32, i32* %14, align 4\n %141 = sext i32 %140 to i64\n %142 = getelementptr inbounds i32, i32* %139,...\n %143 = load i32, i32* %142, align 4\n store i32 %143, i32* %18, align 4\n %144 = load i32*, i32** %12, align 8\n %145 = load i32, i32* %17, align 4\n %146 = sext i32 %145 to i64\n %147 = getelementptr inbounds i32, i32* %144,...\n %148 = load i32, i32* %147, align 4\n %149 = load i32*, i32** %12, align 8\n %150 = load i32, i32* %14, align 4\n %151 = sext i32 %150 to i64\n %152 = getelementptr inbounds i32, i32* %149,...\n store i32 %148, i32* %152, align 4\n %153 = load i32, i32* %18, align 4\n %154 = load i32*, i32** %12, align 8\n %155 = load i32, i32* %17, align 4\n %156 = sext i32 %155 to i64\n %157 = getelementptr inbounds i32, i32* %154,...\n store i32 %153, i32* %157, align 4\n %158 = load i32*, i32** %12, align 8\n %159 = load i32, i32* %14, align 4\n %160 = sext i32 %159 to i64\n %161 = getelementptr inbounds i32, i32* %158,...\n %162 = load i32, i32* %161, align 4\n store i32 %162, i32* %19, align 4\n %163 = load i32, i32* %13, align 4\n %164 = sub nsw i32 %163, 1\n store i32 %164, i32* %20, align 4\n %165 = load i32, i32* %13, align 4\n store i32 %165, i32* %21, align 4\n br label %166\n"]
- 138 --> 166
- 166["Block 166:\n %167 = load i32, i32* %21, align 4\n %168 = load i32, i32* %14, align 4\n %169 = icmp slt i32 %167, %168\n br i1 %169, label %170, label %206\n"]
- 166 -->|true| 170
- 166 -->|false| 206
- 170["Block 170:\n %171 = load i32*, i32** %12, align 8\n %172 = load i32, i32* %21, align 4\n %173 = sext i32 %172 to i64\n %174 = getelementptr inbounds i32, i32* %171,...\n %175 = load i32, i32* %174, align 4\n %176 = load i32, i32* %19, align 4\n %177 = icmp sle i32 %175, %176\n br i1 %177, label %178, label %202\n"]
- 170 -->|true| 178
- 170 -->|false| 202
- 178["Block 178:\n %179 = load i32, i32* %20, align 4\n %180 = add nsw i32 %179, 1\n store i32 %180, i32* %20, align 4\n %181 = load i32*, i32** %12, align 8\n %182 = load i32, i32* %20, align 4\n %183 = sext i32 %182 to i64\n %184 = getelementptr inbounds i32, i32* %181,...\n %185 = load i32, i32* %184, align 4\n store i32 %185, i32* %18, align 4\n %186 = load i32*, i32** %12, align 8\n %187 = load i32, i32* %21, align 4\n %188 = sext i32 %187 to i64\n %189 = getelementptr inbounds i32, i32* %186,...\n %190 = load i32, i32* %189, align 4\n %191 = load i32*, i32** %12, align 8\n %192 = load i32, i32* %20, align 4\n %193 = sext i32 %192 to i64\n %194 = getelementptr inbounds i32, i32* %191,...\n store i32 %190, i32* %194, align 4\n %195 = load i32, i32* %18, align 4\n %196 = load i32*, i32** %12, align 8\n %197 = load i32, i32* %21, align 4\n %198 = sext i32 %197 to i64\n %199 = getelementptr inbounds i32, i32* %196,...\n store i32 %195, i32* %199, align 4\n %200 = load i32, i32* @globalCounter, align 4\n %201 = add nsw i32 %200, 1\n store i32 %201, i32* @globalCounter, align 4\n br label %202\n"]
- 178 --> 202
- 202["Block 202:\n br label %203\n"]
- 202 --> 203
- 203["Block 203:\n %204 = load i32, i32* %21, align 4\n %205 = add nsw i32 %204, 1\n store i32 %205, i32* %21, align 4\n br label %166\n"]
- 203 --> 166
- 206["Block 206:\n %207 = load i32*, i32** %12, align 8\n %208 = load i32, i32* %20, align 4\n %209 = add nsw i32 %208, 1\n %210 = sext i32 %209 to i64\n %211 = getelementptr inbounds i32, i32* %207,...\n %212 = load i32, i32* %211, align 4\n store i32 %212, i32* %18, align 4\n %213 = load i32*, i32** %12, align 8\n %214 = load i32, i32* %14, align 4\n %215 = sext i32 %214 to i64\n %216 = getelementptr inbounds i32, i32* %213,...\n %217 = load i32, i32* %216, align 4\n %218 = load i32*, i32** %12, align 8\n %219 = load i32, i32* %20, align 4\n %220 = add nsw i32 %219, 1\n %221 = sext i32 %220 to i64\n %222 = getelementptr inbounds i32, i32* %218,...\n store i32 %217, i32* %222, align 4\n %223 = load i32, i32* %18, align 4\n %224 = load i32*, i32** %12, align 8\n %225 = load i32, i32* %14, align 4\n %226 = sext i32 %225 to i64\n %227 = getelementptr inbounds i32, i32* %224,...\n store i32 %223, i32* %227, align 4\n %228 = load i32*, i32** %12, align 8\n %229 = load i32, i32* %13, align 4\n %230 = load i32, i32* %20, align 4\n %231 = load i32*, i32** %15, align 8\n %232 = call i32 @fused_quickSort(i1 false, i3...\n %233 = load i32*, i32** %15, align 8\n %234 = load i32, i32* %233, align 4\n %235 = icmp ne i32 %234, 0\n br i1 %235, label %236, label %239\n"]
- 206 -->|true| 236
- 206 -->|false| 239
- 236["Block 236:\n %237 = load i32, i32* @recursionDepth, align 4\n %238 = add nsw i32 %237, -1\n store i32 %238, i32* @recursionDepth, align 4\n br label %270\n"]
- 236 --> 270
- 239["Block 239:\n %240 = load i32*, i32** %12, align 8\n %241 = load i32, i32* %20, align 4\n %242 = add nsw i32 %241, 2\n %243 = load i32, i32* %14, align 4\n %244 = load i32*, i32** %15, align 8\n %245 = call i32 @fused_quickSort(i1 false, i3...\n %246 = load i32*, i32** %15, align 8\n %247 = load i32, i32* %246, align 4\n %248 = icmp ne i32 %247, 0\n br i1 %248, label %249, label %252\n"]
- 239 -->|true| 249
- 239 -->|false| 252
- 249["Block 249:\n %250 = load i32, i32* @recursionDepth, align 4\n %251 = add nsw i32 %250, -1\n store i32 %251, i32* @recursionDepth, align 4\n br label %270\n"]
- 249 --> 270
- 252["Block 252:\n br label %253\n"]
- 252 --> 253
- 253["Block 253:\n %254 = load i32, i32* @recursionDepth, align 4\n %255 = add nsw i32 %254, -1\n store i32 %255, i32* @recursionDepth, align 4\n br label %bunker_phi_0\n"]
- 253 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %256 = icmp eq i1 %0, true\n br i1 %256, label %257, label %target_skip_1\n"]
- target_cond_1 -->|true| 257
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 257["Block 257:\n %258 = load i32, i32* %8, align 4\n %259 = icmp ne i32 %258, 0\n br i1 %259, label %260, label %267\n"]
- 257 -->|true| 260
- 257 -->|false| 267
- 260["Block 260:\n %261 = load i32, i32* %8, align 4\n %262 = and i32 %261, 1\n %263 = load i32, i32* %9, align 4\n %264 = add nsw i32 %263, %262\n store i32 %264, i32* %9, align 4\n %265 = load i32, i32* %8, align 4\n %266 = ashr i32 %265, 1\n store i32 %266, i32* %8, align 4\n br label %257\n"]
- 260 --> 257
- 267["Block 267:\n %268 = load i32, i32* %9, align 4\n ret i32 %268\n"]
- bunker_cond_1["Block bunker_cond_1:\n %269 = icmp eq i1 %0, false\n br i1 %269, label %270, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 270
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret i32 0\n"]
- 270["Block 270:\n ret i32 0\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [INFO][performCodeFusion] Completed function fusion: fused_quickSort
- [INFO][performCodeFusion] Processing function pair: target=longestIncreasingSubsequence, bunker=performSimpleCalculations
- [INFO][performCodeFusion] adding: %4
- [INFO][performCodeFusion] before push Block ID: %4
- [INFO][performCodeFusion] adding: %29
- [INFO][performCodeFusion] adding: %33
- [INFO][performCodeFusion] adding: %37
- [INFO][performCodeFusion] adding: %38
- [INFO][performCodeFusion] before push Block ID: %29
- [INFO][performCodeFusion] before push Block ID: %33
- [INFO][performCodeFusion] before push Block ID: %37
- [INFO][performCodeFusion] before push Block ID: %38
- [INFO][performCodeFusion] adding: %53
- [INFO][performCodeFusion] adding: %57
- [INFO][performCodeFusion] adding: %58
- [INFO][performCodeFusion] adding: %59
- [INFO][performCodeFusion] adding: %63
- [INFO][performCodeFusion] adding: %75
- [INFO][performCodeFusion] adding: %76
- [INFO][performCodeFusion] adding: %87
- [INFO][performCodeFusion] adding: %88
- [INFO][performCodeFusion] adding: %91
- [INFO][performCodeFusion] adding: %100
- [INFO][performCodeFusion] before push Block ID: %53
- [INFO][performCodeFusion] before push Block ID: %57
- [INFO][performCodeFusion] before push Block ID: %58
- [INFO][performCodeFusion] before push Block ID: %59
- [INFO][performCodeFusion] before push Block ID: %63
- [INFO][performCodeFusion] before push Block ID: %75
- [INFO][performCodeFusion] before push Block ID: %76
- [INFO][performCodeFusion] before push Block ID: %87
- [INFO][performCodeFusion] before push Block ID: %88
- [INFO][performCodeFusion] before push Block ID: %91
- [INFO][performCodeFusion] before push Block ID: %100
- [INFO][performCodeFusion] adding: %117
- [INFO][performCodeFusion] adding: %121
- [INFO][performCodeFusion] adding: %128
- [INFO][performCodeFusion] adding: %130
- [INFO][performCodeFusion] adding: %135
- [INFO][performCodeFusion] adding: %136
- [INFO][performCodeFusion] before push Block ID: %117
- [INFO][performCodeFusion] before push Block ID: %121
- [INFO][performCodeFusion] before push Block ID: %128
- [INFO][performCodeFusion] before push Block ID: %130
- [INFO][performCodeFusion] before push Block ID: %135
- [INFO][performCodeFusion] before push Block ID: %136
- [INFO][performCodeFusion] Listing all instructions after block cloning in function: fused_performSimpleCalculations
- ```mermaid: fused_performSimpleCalculations
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %3 = icmp eq i1 %0, true\n br i1 %3, label %4, label %target_skip_0\n"]
- target_cond_0 -->|true| 4
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 4["Block 4:\n %5 = alloca i32*, align 8\n %6 = alloca i32, align 4\n %7 = alloca [100 x i32], align 16\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n %11 = alloca i32, align 4\n %12 = alloca i32, align 4\n store i32* %1, i32** %5, align 8\n store i32 %2, i32* %6, align 4\n store i32 0, i32* %8, align 4\n br label %target_phi_0\n"]
- 4 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %13 = icmp eq i1 %0, false\n br i1 %13, label %14, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 14
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 14["Block 14:\n %15 = alloca i32, align 4\n store i32 100, i32* %15, align 4\n %16 = load i32, i32* %15, align 4\n %17 = icmp sgt i32 %16, 50\n br i1 %17, label %18, label %23\n"]
- 14 -->|true| 18
- 14 -->|false| 23
- 18["Block 18:\n %19 = load i32, i32* %15, align 4\n %20 = mul nsw i32 %19, 2\n %21 = load i32, i32* @calculationResult, align 4\n %22 = add nsw i32 %21, %20\n store i32 %22, i32* @calculationResult, align 4\n br label %42\n"]
- 18 --> 42
- 23["Block 23:\n %24 = load i32, i32* %15, align 4\n %25 = sdiv i32 %24, 2\n %26 = load i32, i32* @calculationResult, align 4\n %27 = add nsw i32 %26, %25\n store i32 %27, i32* @calculationResult, align 4\n br label %bunker_phi_0\n"]
- 23 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %28 = icmp eq i1 %0, true\n br i1 %28, label %29, label %target_skip_1\n"]
- target_cond_1 -->|true| 29
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 29["Block 29:\n %30 = load i32, i32* %8, align 4\n %31 = load i32, i32* %6, align 4\n %32 = icmp slt i32 %30, %31\n br i1 %32, label %33, label %37\n"]
- 29 -->|true| 33
- 29 -->|false| 37
- 33["Block 33:\n %34 = load i32, i32* %8, align 4\n %35 = sext i32 %34 to i64\n %36 = getelementptr inbounds [100 x i32], [10...\n store i32 1, i32* %36, align 4\n br label %38\n"]
- 33 --> 38
- 37["Block 37:\n store i32 1, i32* %9, align 4\n br label %53\n"]
- 37 --> 53
- 38["Block 38:\n %39 = load i32, i32* %8, align 4\n %40 = add nsw i32 %39, 1\n store i32 %40, i32* %8, align 4\n br label %target_phi_1\n"]
- 38 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %41 = icmp eq i1 %0, false\n br i1 %41, label %42, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 42
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n br label %target_cond_2\n"]
- bunker_phi_1 --> target_cond_2
- 42["Block 42:\n %43 = load i32, i32* %15, align 4\n %44 = srem i32 %43, 3\n %45 = icmp eq i32 %44, 0\n br i1 %45, label %46, label %49\n"]
- 42 -->|true| 46
- 42 -->|false| 49
- 46["Block 46:\n %47 = load i32, i32* @calculationResult, align 4\n %48 = mul nsw i32 %47, 3\n store i32 %48, i32* @calculationResult, align 4\n br label %104\n"]
- 46 --> 104
- 49["Block 49:\n %50 = load i32, i32* @calculationResult, align 4\n %51 = add nsw i32 %50, 3\n store i32 %51, i32* @calculationResult, align 4\n br label %bunker_phi_1\n"]
- 49 --> bunker_phi_1
- target_cond_2["Block target_cond_2:\n %52 = icmp eq i1 %0, true\n br i1 %52, label %53, label %target_skip_2\n"]
- target_cond_2 -->|true| 53
- target_cond_2 -->|false| target_skip_2
- target_skip_2["Block target_skip_2:\n br label %target_phi_2\n"]
- target_skip_2 --> target_phi_2
- target_phi_2["Block target_phi_2:\n br label %bunker_cond_2\n"]
- target_phi_2 --> bunker_cond_2
- 53["Block 53:\n %54 = load i32, i32* %9, align 4\n %55 = load i32, i32* %6, align 4\n %56 = icmp slt i32 %54, %55\n br i1 %56, label %57, label %58\n"]
- 53 -->|true| 57
- 53 -->|false| 58
- 57["Block 57:\n store i32 0, i32* %10, align 4\n br label %59\n"]
- 57 --> 59
- 58["Block 58:\n store i32 0, i32* %11, align 4\n store i32 0, i32* %12, align 4\n br label %117\n"]
- 58 --> 117
- 59["Block 59:\n %60 = load i32, i32* %10, align 4\n %61 = load i32, i32* %9, align 4\n %62 = icmp slt i32 %60, %61\n br i1 %62, label %63, label %75\n"]
- 59 -->|true| 63
- 59 -->|false| 75
- 63["Block 63:\n %64 = load i32*, i32** %5, align 8\n %65 = load i32, i32* %9, align 4\n %66 = sext i32 %65 to i64\n %67 = getelementptr inbounds i32, i32* %64, i...\n %68 = load i32, i32* %67, align 4\n %69 = load i32*, i32** %5, align 8\n %70 = load i32, i32* %10, align 4\n %71 = sext i32 %70 to i64\n %72 = getelementptr inbounds i32, i32* %69, i...\n %73 = load i32, i32* %72, align 4\n %74 = icmp sgt i32 %68, %73\n br i1 %74, label %76, label %87\n"]
- 63 -->|true| 76
- 63 -->|false| 87
- 75["Block 75:\n br label %88\n"]
- 75 --> 88
- 76["Block 76:\n %77 = load i32, i32* %9, align 4\n %78 = sext i32 %77 to i64\n %79 = getelementptr inbounds [100 x i32], [10...\n %80 = load i32, i32* %79, align 4\n %81 = load i32, i32* %10, align 4\n %82 = sext i32 %81 to i64\n %83 = getelementptr inbounds [100 x i32], [10...\n %84 = load i32, i32* %83, align 4\n %85 = add nsw i32 %84, 1\n %86 = icmp slt i32 %80, %85\n br i1 %86, label %91, label %87\n"]
- 76 -->|true| 91
- 76 -->|false| 87
- 87["Block 87:\n br label %100\n"]
- 87 --> 100
- 88["Block 88:\n %89 = load i32, i32* %9, align 4\n %90 = add nsw i32 %89, 1\n store i32 %90, i32* %9, align 4\n br label %53\n"]
- 88 --> 53
- 91["Block 91:\n %92 = load i32, i32* %10, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds [100 x i32], [10...\n %95 = load i32, i32* %94, align 4\n %96 = add nsw i32 %95, 1\n %97 = load i32, i32* %9, align 4\n %98 = sext i32 %97 to i64\n %99 = getelementptr inbounds [100 x i32], [10...\n store i32 %96, i32* %99, align 4\n br label %87\n"]
- 91 --> 87
- 100["Block 100:\n %101 = load i32, i32* %10, align 4\n %102 = add nsw i32 %101, 1\n store i32 %102, i32* %10, align 4\n br label %target_phi_2\n"]
- 100 --> target_phi_2
- bunker_cond_2["Block bunker_cond_2:\n %103 = icmp eq i1 %0, false\n br i1 %103, label %104, label %bunker_skip_2\n"]
- bunker_cond_2 -->|true| 104
- bunker_cond_2 -->|false| bunker_skip_2
- bunker_skip_2["Block bunker_skip_2:\n br label %bunker_phi_2\n"]
- bunker_skip_2 --> bunker_phi_2
- bunker_phi_2["Block bunker_phi_2:\n br label %target_cond_3\n"]
- bunker_phi_2 --> target_cond_3
- 104["Block 104:\n %105 = load i32, i32* @calculationResult, ali...\n %106 = icmp sge i32 %105, 150\n br i1 %106, label %107, label %113\n"]
- 104 -->|true| 107
- 104 -->|false| 113
- 107["Block 107:\n %108 = load i32, i32* @calculationResult, ali...\n %109 = icmp sle i32 %108, 300\n br i1 %109, label %110, label %113\n"]
- 107 -->|true| 110
- 107 -->|false| 113
- 110["Block 110:\n %111 = load i32, i32* @calculationResult, ali...\n %112 = sub nsw i32 %111, 50\n store i32 %112, i32* @calculationResult, align 4\n br label %140\n"]
- 110 --> 140
- 113["Block 113:\n %114 = load i32, i32* @calculationResult, ali...\n %115 = add nsw i32 %114, 50\n store i32 %115, i32* @calculationResult, align 4\n br label %bunker_phi_2\n"]
- 113 --> bunker_phi_2
- target_cond_3["Block target_cond_3:\n %116 = icmp eq i1 %0, true\n br i1 %116, label %117, label %target_skip_3\n"]
- target_cond_3 -->|true| 117
- target_cond_3 -->|false| target_skip_3
- target_skip_3["Block target_skip_3:\n br label %target_phi_3\n"]
- target_skip_3 --> target_phi_3
- target_phi_3["Block target_phi_3:\n br label %bunker_cond_3\n"]
- target_phi_3 --> bunker_cond_3
- 117["Block 117:\n %118 = load i32, i32* %12, align 4\n %119 = load i32, i32* %6, align 4\n %120 = icmp slt i32 %118, %119\n br i1 %120, label %121, label %128\n"]
- 117 -->|true| 121
- 117 -->|false| 128
- 121["Block 121:\n %122 = load i32, i32* %11, align 4\n %123 = load i32, i32* %12, align 4\n %124 = sext i32 %123 to i64\n %125 = getelementptr inbounds [100 x i32], [1...\n %126 = load i32, i32* %125, align 4\n %127 = icmp slt i32 %122, %126\n br i1 %127, label %130, label %135\n"]
- 121 -->|true| 130
- 121 -->|false| 135
- 128["Block 128:\n %129 = load i32, i32* %11, align 4\n ret i32 %94\n"]
- 130["Block 130:\n %131 = load i32, i32* %12, align 4\n %132 = sext i32 %131 to i64\n %133 = getelementptr inbounds [100 x i32], [1...\n %134 = load i32, i32* %133, align 4\n store i32 %134, i32* %11, align 4\n br label %135\n"]
- 130 --> 135
- 135["Block 135:\n br label %136\n"]
- 135 --> 136
- 136["Block 136:\n %137 = load i32, i32* %12, align 4\n %138 = add nsw i32 %137, 1\n store i32 %138, i32* %12, align 4\n br label %target_phi_3\n"]
- 136 --> target_phi_3
- bunker_cond_3["Block bunker_cond_3:\n %139 = icmp eq i1 %0, false\n br i1 %139, label %140, label %bunker_skip_3\n"]
- bunker_cond_3 -->|true| 140
- bunker_cond_3 -->|false| bunker_skip_3
- bunker_skip_3["Block bunker_skip_3:\n br label %bunker_phi_3\n"]
- bunker_skip_3 --> bunker_phi_3
- bunker_phi_3["Block bunker_phi_3:\n ret i32 0\n"]
- 140["Block 140:\n %141 = load i32, i32* @calculationResult, ali...\n %142 = srem i32 %141, 2\n %143 = icmp eq i32 %142, 0\n br i1 %143, label %144, label %147\n"]
- 140 -->|true| 144
- 140 -->|false| 147
- 144["Block 144:\n %145 = load i32, i32* @calculationResult, ali...\n %146 = sdiv i32 %145, 2\n store i32 %146, i32* @calculationResult, align 4\n br label %150\n"]
- 144 --> 150
- 147["Block 147:\n %148 = load i32, i32* @calculationResult, ali...\n %149 = mul nsw i32 %148, 2\n store i32 %149, i32* @calculationResult, align 4\n br label %150\n"]
- 147 --> 150
- 150["Block 150:\n %151 = load i32, i32* @calculationResult, ali...\n %152 = srem i32 %151, 10\n %153 = icmp slt i32 %152, 5\n br i1 %153, label %154, label %157\n"]
- 150 -->|true| 154
- 150 -->|false| 157
- 154["Block 154:\n %155 = load i32, i32* @calculationResult, ali...\n %156 = add nsw i32 %155, 5\n store i32 %156, i32* @calculationResult, align 4\n br label %160\n"]
- 154 --> 160
- 157["Block 157:\n %158 = load i32, i32* @calculationResult, ali...\n %159 = sub nsw i32 %158, 5\n store i32 %159, i32* @calculationResult, align 4\n br label %160\n"]
- 157 --> 160
- 160["Block 160:\n %161 = load i32, i32* @calculationResult, ali...\n %162 = icmp sgt i32 %161, 1000\n br i1 %162, label %163, label %164\n"]
- 160 -->|true| 163
- 160 -->|false| 164
- 163["Block 163:\n store i32 1000, i32* @calculationResult, align 4\n br label %167\n"]
- 163 --> 167
- 164["Block 164:\n %165 = load i32, i32* @calculationResult, ali...\n %166 = add nsw i32 %165, 10\n store i32 %166, i32* @calculationResult, align 4\n br label %167\n"]
- 164 --> 167
- 167["Block 167:\n %168 = load i32, i32* @calculationResult, ali...\n %169 = call i32 (i8*, ...) @printf(i8* getele...\n ret void\n br label %bunker_phi_3\n"]
- 167 --> bunker_phi_3
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][performCodeFusion] Processing return values for fused function: fused_performSimpleCalculations
- [DEBUG][performCodeFusion] Fused function return type: i32
- [DEBUG][performCodeFusion] Non-struct return type detected: i32
- [DEBUG][performCodeFusion] Processing bunker block: %49
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %50 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %51 = add nsw i32 %50, 3 (opcode: add)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: store i32 %51, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: br label %bunker_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %42
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: %43 = load i32, i32* %15, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: %44 = srem i32 %43, 3 (opcode: srem)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: %45 = icmp eq i32 %44, 0 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: br i1 %45, label %46, label %49 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %107
- [DEBUG][performCodeFusion] Block %107 - Processing instruction: %108 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %107 - Processing instruction: %109 = icmp sle i32 %108, 300 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %107 - Processing instruction: br i1 %109, label %110, label %113 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %18
- [DEBUG][performCodeFusion] Block %18 - Processing instruction: %19 = load i32, i32* %15, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %18 - Processing instruction: %20 = mul nsw i32 %19, 2 (opcode: mul)
- [DEBUG][performCodeFusion] Block %18 - Processing instruction: %21 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %18 - Processing instruction: %22 = add nsw i32 %21, %20 (opcode: add)
- [DEBUG][performCodeFusion] Block %18 - Processing instruction: store i32 %22, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %18 - Processing instruction: br label %42 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %104
- [DEBUG][performCodeFusion] Block %104 - Processing instruction: %105 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %104 - Processing instruction: %106 = icmp sge i32 %105, 150 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %104 - Processing instruction: br i1 %106, label %107, label %113 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %110
- [DEBUG][performCodeFusion] Block %110 - Processing instruction: %111 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %110 - Processing instruction: %112 = sub nsw i32 %111, 50 (opcode: sub)
- [DEBUG][performCodeFusion] Block %110 - Processing instruction: store i32 %112, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %110 - Processing instruction: br label %140 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %144
- [DEBUG][performCodeFusion] Block %144 - Processing instruction: %145 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %144 - Processing instruction: %146 = sdiv i32 %145, 2 (opcode: sdiv)
- [DEBUG][performCodeFusion] Block %144 - Processing instruction: store i32 %146, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %144 - Processing instruction: br label %150 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %140
- [DEBUG][performCodeFusion] Block %140 - Processing instruction: %141 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %140 - Processing instruction: %142 = srem i32 %141, 2 (opcode: srem)
- [DEBUG][performCodeFusion] Block %140 - Processing instruction: %143 = icmp eq i32 %142, 0 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %140 - Processing instruction: br i1 %143, label %144, label %147 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %147
- [DEBUG][performCodeFusion] Block %147 - Processing instruction: %148 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %147 - Processing instruction: %149 = mul nsw i32 %148, 2 (opcode: mul)
- [DEBUG][performCodeFusion] Block %147 - Processing instruction: store i32 %149, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %147 - Processing instruction: br label %150 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %150
- [DEBUG][performCodeFusion] Block %150 - Processing instruction: %151 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %150 - Processing instruction: %152 = srem i32 %151, 10 (opcode: srem)
- [DEBUG][performCodeFusion] Block %150 - Processing instruction: %153 = icmp slt i32 %152, 5 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %150 - Processing instruction: br i1 %153, label %154, label %157 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %154
- [DEBUG][performCodeFusion] Block %154 - Processing instruction: %155 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %154 - Processing instruction: %156 = add nsw i32 %155, 5 (opcode: add)
- [DEBUG][performCodeFusion] Block %154 - Processing instruction: store i32 %156, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %154 - Processing instruction: br label %160 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %167
- [DEBUG][performCodeFusion] Block %167 - Processing instruction: %168 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %167 - Processing instruction: %169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.27, i64 0, i64 0), i32 %168) (opcode: call)
- [DEBUG][performCodeFusion] Block %167 - Processing instruction: ret void (opcode: ret)
- [DEBUG][performCodeFusion] Setting default bunker return value
- [DEBUG][performCodeFusion] Updated bunker return in block %167 with value type i32
- [DEBUG][performCodeFusion] Block %167 - Processing instruction: br label %bunker_phi_3 (opcode: br)
- [DEBUG][performCodeFusion] Removing extra instruction after return in block %167: br
- [DEBUG][performCodeFusion] Processing bunker block: %157
- [DEBUG][performCodeFusion] Block %157 - Processing instruction: %158 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %157 - Processing instruction: %159 = sub nsw i32 %158, 5 (opcode: sub)
- [DEBUG][performCodeFusion] Block %157 - Processing instruction: store i32 %159, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %157 - Processing instruction: br label %160 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %160
- [DEBUG][performCodeFusion] Block %160 - Processing instruction: %161 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %160 - Processing instruction: %162 = icmp sgt i32 %161, 1000 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %160 - Processing instruction: br i1 %162, label %163, label %164 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %163
- [DEBUG][performCodeFusion] Block %163 - Processing instruction: store i32 1000, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %163 - Processing instruction: br label %167 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %164
- [DEBUG][performCodeFusion] Block %164 - Processing instruction: %165 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %164 - Processing instruction: %166 = add nsw i32 %165, 10 (opcode: add)
- [DEBUG][performCodeFusion] Block %164 - Processing instruction: store i32 %166, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %164 - Processing instruction: br label %167 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %46
- [DEBUG][performCodeFusion] Block %46 - Processing instruction: %47 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %46 - Processing instruction: %48 = mul nsw i32 %47, 3 (opcode: mul)
- [DEBUG][performCodeFusion] Block %46 - Processing instruction: store i32 %48, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %46 - Processing instruction: br label %104 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %23
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: %24 = load i32, i32* %15, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: %25 = sdiv i32 %24, 2 (opcode: sdiv)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: %26 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: %27 = add nsw i32 %26, %25 (opcode: add)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: store i32 %27, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: br label %bunker_phi_0 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %14
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %15 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: store i32 100, i32* %15, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %16 = load i32, i32* %15, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %17 = icmp sgt i32 %16, 50 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: br i1 %17, label %18, label %23 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %113
- [DEBUG][performCodeFusion] Block %113 - Processing instruction: %114 = load i32, i32* @calculationResult, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %113 - Processing instruction: %115 = add nsw i32 %114, 50 (opcode: add)
- [DEBUG][performCodeFusion] Block %113 - Processing instruction: store i32 %115, i32* @calculationResult, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %113 - Processing instruction: br label %bunker_phi_2 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %57
- [DEBUG][performCodeFusion] Block %57 - Processing instruction: store i32 0, i32* %10, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %57 - Processing instruction: br label %59 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %58
- [DEBUG][performCodeFusion] Block %58 - Processing instruction: store i32 0, i32* %11, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %58 - Processing instruction: store i32 0, i32* %12, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %58 - Processing instruction: br label %117 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %59
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: %60 = load i32, i32* %10, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: %61 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: %62 = icmp slt i32 %60, %61 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: br i1 %62, label %63, label %75 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %63
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %64 = load i32*, i32** %5, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %65 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %66 = sext i32 %65 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %67 = getelementptr inbounds i32, i32* %64, i64 %66 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %68 = load i32, i32* %67, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %69 = load i32*, i32** %5, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %70 = load i32, i32* %10, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %71 = sext i32 %70 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %72 = getelementptr inbounds i32, i32* %69, i64 %71 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %73 = load i32, i32* %72, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: %74 = icmp sgt i32 %68, %73 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %63 - Processing instruction: br i1 %74, label %76, label %87 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %117
- [DEBUG][performCodeFusion] Block %117 - Processing instruction: %118 = load i32, i32* %12, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %117 - Processing instruction: %119 = load i32, i32* %6, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %117 - Processing instruction: %120 = icmp slt i32 %118, %119 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %117 - Processing instruction: br i1 %120, label %121, label %128 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %121
- [DEBUG][performCodeFusion] Block %121 - Processing instruction: %122 = load i32, i32* %11, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %121 - Processing instruction: %123 = load i32, i32* %12, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %121 - Processing instruction: %124 = sext i32 %123 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %121 - Processing instruction: %125 = getelementptr inbounds [100 x i32], [100 x i32]* %7, i64 0, i64 %124 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %121 - Processing instruction: %126 = load i32, i32* %125, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %121 - Processing instruction: %127 = icmp slt i32 %122, %126 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %121 - Processing instruction: br i1 %127, label %130, label %135 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %128
- [DEBUG][performCodeFusion] Block %128 - Processing instruction: %129 = load i32, i32* %11, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %128 - Processing instruction: ret i32 %94 (opcode: ret)
- [DEBUG][performCodeFusion] Updated target return in block %128 with value type i32
- [DEBUG][performCodeFusion] Processing target block: %130
- [DEBUG][performCodeFusion] Block %130 - Processing instruction: %131 = load i32, i32* %12, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %130 - Processing instruction: %132 = sext i32 %131 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %130 - Processing instruction: %133 = getelementptr inbounds [100 x i32], [100 x i32]* %7, i64 0, i64 %132 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %130 - Processing instruction: %134 = load i32, i32* %133, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %130 - Processing instruction: store i32 %134, i32* %11, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %130 - Processing instruction: br label %135 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %75
- [DEBUG][performCodeFusion] Block %75 - Processing instruction: br label %88 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %76
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %77 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %78 = sext i32 %77 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %79 = getelementptr inbounds [100 x i32], [100 x i32]* %7, i64 0, i64 %78 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %80 = load i32, i32* %79, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %81 = load i32, i32* %10, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %82 = sext i32 %81 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %83 = getelementptr inbounds [100 x i32], [100 x i32]* %7, i64 0, i64 %82 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %84 = load i32, i32* %83, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %85 = add nsw i32 %84, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: %86 = icmp slt i32 %80, %85 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: br i1 %86, label %91, label %87 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %135
- [DEBUG][performCodeFusion] Block %135 - Processing instruction: br label %136 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %136
- [DEBUG][performCodeFusion] Block %136 - Processing instruction: %137 = load i32, i32* %12, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %136 - Processing instruction: %138 = add nsw i32 %137, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %136 - Processing instruction: store i32 %138, i32* %12, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %136 - Processing instruction: br label %target_phi_3 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %87
- [DEBUG][performCodeFusion] Block %87 - Processing instruction: br label %100 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %88
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %89 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: %90 = add nsw i32 %89, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: store i32 %90, i32* %9, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %88 - Processing instruction: br label %53 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %100
- [DEBUG][performCodeFusion] Block %100 - Processing instruction: %101 = load i32, i32* %10, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %100 - Processing instruction: %102 = add nsw i32 %101, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %100 - Processing instruction: store i32 %102, i32* %10, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %100 - Processing instruction: br label %target_phi_2 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %53
- [DEBUG][performCodeFusion] Block %53 - Processing instruction: %54 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %53 - Processing instruction: %55 = load i32, i32* %6, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %53 - Processing instruction: %56 = icmp slt i32 %54, %55 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %53 - Processing instruction: br i1 %56, label %57, label %58 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %91
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: %92 = load i32, i32* %10, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: %93 = sext i32 %92 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: %94 = getelementptr inbounds [100 x i32], [100 x i32]* %7, i64 0, i64 %93 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: %95 = load i32, i32* %94, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: %96 = add nsw i32 %95, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: %97 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: %98 = sext i32 %97 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: %99 = getelementptr inbounds [100 x i32], [100 x i32]* %7, i64 0, i64 %98 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: store i32 %96, i32* %99, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %91 - Processing instruction: br label %87 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %33
- [DEBUG][performCodeFusion] Block %33 - Processing instruction: %34 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %33 - Processing instruction: %35 = sext i32 %34 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %33 - Processing instruction: %36 = getelementptr inbounds [100 x i32], [100 x i32]* %7, i64 0, i64 %35 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %33 - Processing instruction: store i32 1, i32* %36, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %33 - Processing instruction: br label %38 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %29
- [DEBUG][performCodeFusion] Block %29 - Processing instruction: %30 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %29 - Processing instruction: %31 = load i32, i32* %6, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %29 - Processing instruction: %32 = icmp slt i32 %30, %31 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %29 - Processing instruction: br i1 %32, label %33, label %37 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %37
- [DEBUG][performCodeFusion] Block %37 - Processing instruction: store i32 1, i32* %9, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %37 - Processing instruction: br label %53 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %38
- [DEBUG][performCodeFusion] Block %38 - Processing instruction: %39 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %38 - Processing instruction: %40 = add nsw i32 %39, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %38 - Processing instruction: store i32 %40, i32* %8, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %38 - Processing instruction: br label %target_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %4
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %5 = alloca i32*, align 8 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %6 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %7 = alloca [100 x i32], align 16 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %8 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %9 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %10 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %11 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %12 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: store i32* %1, i32** %5, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: store i32 %2, i32* %6, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: store i32 0, i32* %8, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: br label %target_phi_0 (opcode: br)
- [INFO][performCodeFusion] Listing all instructions after return repairing in function: fused_performSimpleCalculations
- ```mermaid: fused_performSimpleCalculations
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %3 = icmp eq i1 %0, true\n br i1 %3, label %4, label %target_skip_0\n"]
- target_cond_0 -->|true| 4
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 4["Block 4:\n %5 = alloca i32*, align 8\n %6 = alloca i32, align 4\n %7 = alloca [100 x i32], align 16\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n %11 = alloca i32, align 4\n %12 = alloca i32, align 4\n store i32* %1, i32** %5, align 8\n store i32 %2, i32* %6, align 4\n store i32 0, i32* %8, align 4\n br label %target_phi_0\n"]
- 4 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %13 = icmp eq i1 %0, false\n br i1 %13, label %14, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 14
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 14["Block 14:\n %15 = alloca i32, align 4\n store i32 100, i32* %15, align 4\n %16 = load i32, i32* %15, align 4\n %17 = icmp sgt i32 %16, 50\n br i1 %17, label %18, label %23\n"]
- 14 -->|true| 18
- 14 -->|false| 23
- 18["Block 18:\n %19 = load i32, i32* %15, align 4\n %20 = mul nsw i32 %19, 2\n %21 = load i32, i32* @calculationResult, align 4\n %22 = add nsw i32 %21, %20\n store i32 %22, i32* @calculationResult, align 4\n br label %42\n"]
- 18 --> 42
- 23["Block 23:\n %24 = load i32, i32* %15, align 4\n %25 = sdiv i32 %24, 2\n %26 = load i32, i32* @calculationResult, align 4\n %27 = add nsw i32 %26, %25\n store i32 %27, i32* @calculationResult, align 4\n br label %bunker_phi_0\n"]
- 23 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %28 = icmp eq i1 %0, true\n br i1 %28, label %29, label %target_skip_1\n"]
- target_cond_1 -->|true| 29
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 29["Block 29:\n %30 = load i32, i32* %8, align 4\n %31 = load i32, i32* %6, align 4\n %32 = icmp slt i32 %30, %31\n br i1 %32, label %33, label %37\n"]
- 29 -->|true| 33
- 29 -->|false| 37
- 33["Block 33:\n %34 = load i32, i32* %8, align 4\n %35 = sext i32 %34 to i64\n %36 = getelementptr inbounds [100 x i32], [10...\n store i32 1, i32* %36, align 4\n br label %38\n"]
- 33 --> 38
- 37["Block 37:\n store i32 1, i32* %9, align 4\n br label %53\n"]
- 37 --> 53
- 38["Block 38:\n %39 = load i32, i32* %8, align 4\n %40 = add nsw i32 %39, 1\n store i32 %40, i32* %8, align 4\n br label %target_phi_1\n"]
- 38 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %41 = icmp eq i1 %0, false\n br i1 %41, label %42, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 42
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n br label %target_cond_2\n"]
- bunker_phi_1 --> target_cond_2
- 42["Block 42:\n %43 = load i32, i32* %15, align 4\n %44 = srem i32 %43, 3\n %45 = icmp eq i32 %44, 0\n br i1 %45, label %46, label %49\n"]
- 42 -->|true| 46
- 42 -->|false| 49
- 46["Block 46:\n %47 = load i32, i32* @calculationResult, align 4\n %48 = mul nsw i32 %47, 3\n store i32 %48, i32* @calculationResult, align 4\n br label %104\n"]
- 46 --> 104
- 49["Block 49:\n %50 = load i32, i32* @calculationResult, align 4\n %51 = add nsw i32 %50, 3\n store i32 %51, i32* @calculationResult, align 4\n br label %bunker_phi_1\n"]
- 49 --> bunker_phi_1
- target_cond_2["Block target_cond_2:\n %52 = icmp eq i1 %0, true\n br i1 %52, label %53, label %target_skip_2\n"]
- target_cond_2 -->|true| 53
- target_cond_2 -->|false| target_skip_2
- target_skip_2["Block target_skip_2:\n br label %target_phi_2\n"]
- target_skip_2 --> target_phi_2
- target_phi_2["Block target_phi_2:\n br label %bunker_cond_2\n"]
- target_phi_2 --> bunker_cond_2
- 53["Block 53:\n %54 = load i32, i32* %9, align 4\n %55 = load i32, i32* %6, align 4\n %56 = icmp slt i32 %54, %55\n br i1 %56, label %57, label %58\n"]
- 53 -->|true| 57
- 53 -->|false| 58
- 57["Block 57:\n store i32 0, i32* %10, align 4\n br label %59\n"]
- 57 --> 59
- 58["Block 58:\n store i32 0, i32* %11, align 4\n store i32 0, i32* %12, align 4\n br label %117\n"]
- 58 --> 117
- 59["Block 59:\n %60 = load i32, i32* %10, align 4\n %61 = load i32, i32* %9, align 4\n %62 = icmp slt i32 %60, %61\n br i1 %62, label %63, label %75\n"]
- 59 -->|true| 63
- 59 -->|false| 75
- 63["Block 63:\n %64 = load i32*, i32** %5, align 8\n %65 = load i32, i32* %9, align 4\n %66 = sext i32 %65 to i64\n %67 = getelementptr inbounds i32, i32* %64, i...\n %68 = load i32, i32* %67, align 4\n %69 = load i32*, i32** %5, align 8\n %70 = load i32, i32* %10, align 4\n %71 = sext i32 %70 to i64\n %72 = getelementptr inbounds i32, i32* %69, i...\n %73 = load i32, i32* %72, align 4\n %74 = icmp sgt i32 %68, %73\n br i1 %74, label %76, label %87\n"]
- 63 -->|true| 76
- 63 -->|false| 87
- 75["Block 75:\n br label %88\n"]
- 75 --> 88
- 76["Block 76:\n %77 = load i32, i32* %9, align 4\n %78 = sext i32 %77 to i64\n %79 = getelementptr inbounds [100 x i32], [10...\n %80 = load i32, i32* %79, align 4\n %81 = load i32, i32* %10, align 4\n %82 = sext i32 %81 to i64\n %83 = getelementptr inbounds [100 x i32], [10...\n %84 = load i32, i32* %83, align 4\n %85 = add nsw i32 %84, 1\n %86 = icmp slt i32 %80, %85\n br i1 %86, label %91, label %87\n"]
- 76 -->|true| 91
- 76 -->|false| 87
- 87["Block 87:\n br label %100\n"]
- 87 --> 100
- 88["Block 88:\n %89 = load i32, i32* %9, align 4\n %90 = add nsw i32 %89, 1\n store i32 %90, i32* %9, align 4\n br label %53\n"]
- 88 --> 53
- 91["Block 91:\n %92 = load i32, i32* %10, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds [100 x i32], [10...\n %95 = load i32, i32* %94, align 4\n %96 = add nsw i32 %95, 1\n %97 = load i32, i32* %9, align 4\n %98 = sext i32 %97 to i64\n %99 = getelementptr inbounds [100 x i32], [10...\n store i32 %96, i32* %99, align 4\n br label %87\n"]
- 91 --> 87
- 100["Block 100:\n %101 = load i32, i32* %10, align 4\n %102 = add nsw i32 %101, 1\n store i32 %102, i32* %10, align 4\n br label %target_phi_2\n"]
- 100 --> target_phi_2
- bunker_cond_2["Block bunker_cond_2:\n %103 = icmp eq i1 %0, false\n br i1 %103, label %104, label %bunker_skip_2\n"]
- bunker_cond_2 -->|true| 104
- bunker_cond_2 -->|false| bunker_skip_2
- bunker_skip_2["Block bunker_skip_2:\n br label %bunker_phi_2\n"]
- bunker_skip_2 --> bunker_phi_2
- bunker_phi_2["Block bunker_phi_2:\n br label %target_cond_3\n"]
- bunker_phi_2 --> target_cond_3
- 104["Block 104:\n %105 = load i32, i32* @calculationResult, ali...\n %106 = icmp sge i32 %105, 150\n br i1 %106, label %107, label %113\n"]
- 104 -->|true| 107
- 104 -->|false| 113
- 107["Block 107:\n %108 = load i32, i32* @calculationResult, ali...\n %109 = icmp sle i32 %108, 300\n br i1 %109, label %110, label %113\n"]
- 107 -->|true| 110
- 107 -->|false| 113
- 110["Block 110:\n %111 = load i32, i32* @calculationResult, ali...\n %112 = sub nsw i32 %111, 50\n store i32 %112, i32* @calculationResult, align 4\n br label %140\n"]
- 110 --> 140
- 113["Block 113:\n %114 = load i32, i32* @calculationResult, ali...\n %115 = add nsw i32 %114, 50\n store i32 %115, i32* @calculationResult, align 4\n br label %bunker_phi_2\n"]
- 113 --> bunker_phi_2
- target_cond_3["Block target_cond_3:\n %116 = icmp eq i1 %0, true\n br i1 %116, label %117, label %target_skip_3\n"]
- target_cond_3 -->|true| 117
- target_cond_3 -->|false| target_skip_3
- target_skip_3["Block target_skip_3:\n br label %target_phi_3\n"]
- target_skip_3 --> target_phi_3
- target_phi_3["Block target_phi_3:\n br label %bunker_cond_3\n"]
- target_phi_3 --> bunker_cond_3
- 117["Block 117:\n %118 = load i32, i32* %12, align 4\n %119 = load i32, i32* %6, align 4\n %120 = icmp slt i32 %118, %119\n br i1 %120, label %121, label %128\n"]
- 117 -->|true| 121
- 117 -->|false| 128
- 121["Block 121:\n %122 = load i32, i32* %11, align 4\n %123 = load i32, i32* %12, align 4\n %124 = sext i32 %123 to i64\n %125 = getelementptr inbounds [100 x i32], [1...\n %126 = load i32, i32* %125, align 4\n %127 = icmp slt i32 %122, %126\n br i1 %127, label %130, label %135\n"]
- 121 -->|true| 130
- 121 -->|false| 135
- 128["Block 128:\n %129 = load i32, i32* %11, align 4\n ret i32 %94\n"]
- 130["Block 130:\n %131 = load i32, i32* %12, align 4\n %132 = sext i32 %131 to i64\n %133 = getelementptr inbounds [100 x i32], [1...\n %134 = load i32, i32* %133, align 4\n store i32 %134, i32* %11, align 4\n br label %135\n"]
- 130 --> 135
- 135["Block 135:\n br label %136\n"]
- 135 --> 136
- 136["Block 136:\n %137 = load i32, i32* %12, align 4\n %138 = add nsw i32 %137, 1\n store i32 %138, i32* %12, align 4\n br label %target_phi_3\n"]
- 136 --> target_phi_3
- bunker_cond_3["Block bunker_cond_3:\n %139 = icmp eq i1 %0, false\n br i1 %139, label %140, label %bunker_skip_3\n"]
- bunker_cond_3 -->|true| 140
- bunker_cond_3 -->|false| bunker_skip_3
- bunker_skip_3["Block bunker_skip_3:\n br label %bunker_phi_3\n"]
- bunker_skip_3 --> bunker_phi_3
- bunker_phi_3["Block bunker_phi_3:\n ret i32 0\n"]
- 140["Block 140:\n %141 = load i32, i32* @calculationResult, ali...\n %142 = srem i32 %141, 2\n %143 = icmp eq i32 %142, 0\n br i1 %143, label %144, label %147\n"]
- 140 -->|true| 144
- 140 -->|false| 147
- 144["Block 144:\n %145 = load i32, i32* @calculationResult, ali...\n %146 = sdiv i32 %145, 2\n store i32 %146, i32* @calculationResult, align 4\n br label %150\n"]
- 144 --> 150
- 147["Block 147:\n %148 = load i32, i32* @calculationResult, ali...\n %149 = mul nsw i32 %148, 2\n store i32 %149, i32* @calculationResult, align 4\n br label %150\n"]
- 147 --> 150
- 150["Block 150:\n %151 = load i32, i32* @calculationResult, ali...\n %152 = srem i32 %151, 10\n %153 = icmp slt i32 %152, 5\n br i1 %153, label %154, label %157\n"]
- 150 -->|true| 154
- 150 -->|false| 157
- 154["Block 154:\n %155 = load i32, i32* @calculationResult, ali...\n %156 = add nsw i32 %155, 5\n store i32 %156, i32* @calculationResult, align 4\n br label %160\n"]
- 154 --> 160
- 157["Block 157:\n %158 = load i32, i32* @calculationResult, ali...\n %159 = sub nsw i32 %158, 5\n store i32 %159, i32* @calculationResult, align 4\n br label %160\n"]
- 157 --> 160
- 160["Block 160:\n %161 = load i32, i32* @calculationResult, ali...\n %162 = icmp sgt i32 %161, 1000\n br i1 %162, label %163, label %164\n"]
- 160 -->|true| 163
- 160 -->|false| 164
- 163["Block 163:\n store i32 1000, i32* @calculationResult, align 4\n br label %167\n"]
- 163 --> 167
- 164["Block 164:\n %165 = load i32, i32* @calculationResult, ali...\n %166 = add nsw i32 %165, 10\n store i32 %166, i32* @calculationResult, align 4\n br label %167\n"]
- 164 --> 167
- 167["Block 167:\n %168 = load i32, i32* @calculationResult, ali...\n %169 = call i32 (i8*, ...) @printf(i8* getele...\n ret i32 0\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][updateCallSite] Original call instruction:
- call void @performSimpleCalculations()
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: i32*
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] New call instruction:
- %322 = call i32 @fused_performSimpleCalculations(i1 false, i32* null, i32 0)
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @performSimpleCalculations() to %322 = call i32 @fused_performSimpleCalculations(i1 false, i32* null, i32 0)
- [DEBUG][updateCallSite] Original call instruction:
- %15 = call i32 @longestIncreasingSubsequence(i32* %13, i32 %14)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32*
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %15 = call i32 @fused_performSimpleCalculations(i1 true, i32* %13, i32 %14)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Using direct return value
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %15 = call i32 @longestIncreasingSubsequence(i32* %13, i32 %14) to %15 = call i32 @fused_performSimpleCalculations(i1 true, i32* %13, i32 %14)
- [INFO][performCodeFusion] Listing all instructions after update calls in function: fused_performSimpleCalculations
- ```mermaid: fused_performSimpleCalculations
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %3 = icmp eq i1 %0, true\n br i1 %3, label %4, label %target_skip_0\n"]
- target_cond_0 -->|true| 4
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 4["Block 4:\n %5 = alloca i32*, align 8\n %6 = alloca i32, align 4\n %7 = alloca [100 x i32], align 16\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n %11 = alloca i32, align 4\n %12 = alloca i32, align 4\n store i32* %1, i32** %5, align 8\n store i32 %2, i32* %6, align 4\n store i32 0, i32* %8, align 4\n br label %target_phi_0\n"]
- 4 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %13 = icmp eq i1 %0, false\n br i1 %13, label %14, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 14
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 14["Block 14:\n %15 = alloca i32, align 4\n store i32 100, i32* %15, align 4\n %16 = load i32, i32* %15, align 4\n %17 = icmp sgt i32 %16, 50\n br i1 %17, label %18, label %23\n"]
- 14 -->|true| 18
- 14 -->|false| 23
- 18["Block 18:\n %19 = load i32, i32* %15, align 4\n %20 = mul nsw i32 %19, 2\n %21 = load i32, i32* @calculationResult, align 4\n %22 = add nsw i32 %21, %20\n store i32 %22, i32* @calculationResult, align 4\n br label %42\n"]
- 18 --> 42
- 23["Block 23:\n %24 = load i32, i32* %15, align 4\n %25 = sdiv i32 %24, 2\n %26 = load i32, i32* @calculationResult, align 4\n %27 = add nsw i32 %26, %25\n store i32 %27, i32* @calculationResult, align 4\n br label %bunker_phi_0\n"]
- 23 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %28 = icmp eq i1 %0, true\n br i1 %28, label %29, label %target_skip_1\n"]
- target_cond_1 -->|true| 29
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 29["Block 29:\n %30 = load i32, i32* %8, align 4\n %31 = load i32, i32* %6, align 4\n %32 = icmp slt i32 %30, %31\n br i1 %32, label %33, label %37\n"]
- 29 -->|true| 33
- 29 -->|false| 37
- 33["Block 33:\n %34 = load i32, i32* %8, align 4\n %35 = sext i32 %34 to i64\n %36 = getelementptr inbounds [100 x i32], [10...\n store i32 1, i32* %36, align 4\n br label %38\n"]
- 33 --> 38
- 37["Block 37:\n store i32 1, i32* %9, align 4\n br label %53\n"]
- 37 --> 53
- 38["Block 38:\n %39 = load i32, i32* %8, align 4\n %40 = add nsw i32 %39, 1\n store i32 %40, i32* %8, align 4\n br label %target_phi_1\n"]
- 38 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %41 = icmp eq i1 %0, false\n br i1 %41, label %42, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 42
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n br label %target_cond_2\n"]
- bunker_phi_1 --> target_cond_2
- 42["Block 42:\n %43 = load i32, i32* %15, align 4\n %44 = srem i32 %43, 3\n %45 = icmp eq i32 %44, 0\n br i1 %45, label %46, label %49\n"]
- 42 -->|true| 46
- 42 -->|false| 49
- 46["Block 46:\n %47 = load i32, i32* @calculationResult, align 4\n %48 = mul nsw i32 %47, 3\n store i32 %48, i32* @calculationResult, align 4\n br label %104\n"]
- 46 --> 104
- 49["Block 49:\n %50 = load i32, i32* @calculationResult, align 4\n %51 = add nsw i32 %50, 3\n store i32 %51, i32* @calculationResult, align 4\n br label %bunker_phi_1\n"]
- 49 --> bunker_phi_1
- target_cond_2["Block target_cond_2:\n %52 = icmp eq i1 %0, true\n br i1 %52, label %53, label %target_skip_2\n"]
- target_cond_2 -->|true| 53
- target_cond_2 -->|false| target_skip_2
- target_skip_2["Block target_skip_2:\n br label %target_phi_2\n"]
- target_skip_2 --> target_phi_2
- target_phi_2["Block target_phi_2:\n br label %bunker_cond_2\n"]
- target_phi_2 --> bunker_cond_2
- 53["Block 53:\n %54 = load i32, i32* %9, align 4\n %55 = load i32, i32* %6, align 4\n %56 = icmp slt i32 %54, %55\n br i1 %56, label %57, label %58\n"]
- 53 -->|true| 57
- 53 -->|false| 58
- 57["Block 57:\n store i32 0, i32* %10, align 4\n br label %59\n"]
- 57 --> 59
- 58["Block 58:\n store i32 0, i32* %11, align 4\n store i32 0, i32* %12, align 4\n br label %117\n"]
- 58 --> 117
- 59["Block 59:\n %60 = load i32, i32* %10, align 4\n %61 = load i32, i32* %9, align 4\n %62 = icmp slt i32 %60, %61\n br i1 %62, label %63, label %75\n"]
- 59 -->|true| 63
- 59 -->|false| 75
- 63["Block 63:\n %64 = load i32*, i32** %5, align 8\n %65 = load i32, i32* %9, align 4\n %66 = sext i32 %65 to i64\n %67 = getelementptr inbounds i32, i32* %64, i...\n %68 = load i32, i32* %67, align 4\n %69 = load i32*, i32** %5, align 8\n %70 = load i32, i32* %10, align 4\n %71 = sext i32 %70 to i64\n %72 = getelementptr inbounds i32, i32* %69, i...\n %73 = load i32, i32* %72, align 4\n %74 = icmp sgt i32 %68, %73\n br i1 %74, label %76, label %87\n"]
- 63 -->|true| 76
- 63 -->|false| 87
- 75["Block 75:\n br label %88\n"]
- 75 --> 88
- 76["Block 76:\n %77 = load i32, i32* %9, align 4\n %78 = sext i32 %77 to i64\n %79 = getelementptr inbounds [100 x i32], [10...\n %80 = load i32, i32* %79, align 4\n %81 = load i32, i32* %10, align 4\n %82 = sext i32 %81 to i64\n %83 = getelementptr inbounds [100 x i32], [10...\n %84 = load i32, i32* %83, align 4\n %85 = add nsw i32 %84, 1\n %86 = icmp slt i32 %80, %85\n br i1 %86, label %91, label %87\n"]
- 76 -->|true| 91
- 76 -->|false| 87
- 87["Block 87:\n br label %100\n"]
- 87 --> 100
- 88["Block 88:\n %89 = load i32, i32* %9, align 4\n %90 = add nsw i32 %89, 1\n store i32 %90, i32* %9, align 4\n br label %53\n"]
- 88 --> 53
- 91["Block 91:\n %92 = load i32, i32* %10, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds [100 x i32], [10...\n %95 = load i32, i32* %94, align 4\n %96 = add nsw i32 %95, 1\n %97 = load i32, i32* %9, align 4\n %98 = sext i32 %97 to i64\n %99 = getelementptr inbounds [100 x i32], [10...\n store i32 %96, i32* %99, align 4\n br label %87\n"]
- 91 --> 87
- 100["Block 100:\n %101 = load i32, i32* %10, align 4\n %102 = add nsw i32 %101, 1\n store i32 %102, i32* %10, align 4\n br label %target_phi_2\n"]
- 100 --> target_phi_2
- bunker_cond_2["Block bunker_cond_2:\n %103 = icmp eq i1 %0, false\n br i1 %103, label %104, label %bunker_skip_2\n"]
- bunker_cond_2 -->|true| 104
- bunker_cond_2 -->|false| bunker_skip_2
- bunker_skip_2["Block bunker_skip_2:\n br label %bunker_phi_2\n"]
- bunker_skip_2 --> bunker_phi_2
- bunker_phi_2["Block bunker_phi_2:\n br label %target_cond_3\n"]
- bunker_phi_2 --> target_cond_3
- 104["Block 104:\n %105 = load i32, i32* @calculationResult, ali...\n %106 = icmp sge i32 %105, 150\n br i1 %106, label %107, label %113\n"]
- 104 -->|true| 107
- 104 -->|false| 113
- 107["Block 107:\n %108 = load i32, i32* @calculationResult, ali...\n %109 = icmp sle i32 %108, 300\n br i1 %109, label %110, label %113\n"]
- 107 -->|true| 110
- 107 -->|false| 113
- 110["Block 110:\n %111 = load i32, i32* @calculationResult, ali...\n %112 = sub nsw i32 %111, 50\n store i32 %112, i32* @calculationResult, align 4\n br label %140\n"]
- 110 --> 140
- 113["Block 113:\n %114 = load i32, i32* @calculationResult, ali...\n %115 = add nsw i32 %114, 50\n store i32 %115, i32* @calculationResult, align 4\n br label %bunker_phi_2\n"]
- 113 --> bunker_phi_2
- target_cond_3["Block target_cond_3:\n %116 = icmp eq i1 %0, true\n br i1 %116, label %117, label %target_skip_3\n"]
- target_cond_3 -->|true| 117
- target_cond_3 -->|false| target_skip_3
- target_skip_3["Block target_skip_3:\n br label %target_phi_3\n"]
- target_skip_3 --> target_phi_3
- target_phi_3["Block target_phi_3:\n br label %bunker_cond_3\n"]
- target_phi_3 --> bunker_cond_3
- 117["Block 117:\n %118 = load i32, i32* %12, align 4\n %119 = load i32, i32* %6, align 4\n %120 = icmp slt i32 %118, %119\n br i1 %120, label %121, label %128\n"]
- 117 -->|true| 121
- 117 -->|false| 128
- 121["Block 121:\n %122 = load i32, i32* %11, align 4\n %123 = load i32, i32* %12, align 4\n %124 = sext i32 %123 to i64\n %125 = getelementptr inbounds [100 x i32], [1...\n %126 = load i32, i32* %125, align 4\n %127 = icmp slt i32 %122, %126\n br i1 %127, label %130, label %135\n"]
- 121 -->|true| 130
- 121 -->|false| 135
- 128["Block 128:\n %129 = load i32, i32* %11, align 4\n ret i32 <badref>\n"]
- 130["Block 130:\n %131 = load i32, i32* %12, align 4\n %132 = sext i32 %131 to i64\n %133 = getelementptr inbounds [100 x i32], [1...\n %134 = load i32, i32* %133, align 4\n store i32 %134, i32* %11, align 4\n br label %135\n"]
- 130 --> 135
- 135["Block 135:\n br label %136\n"]
- 135 --> 136
- 136["Block 136:\n %137 = load i32, i32* %12, align 4\n %138 = add nsw i32 %137, 1\n store i32 %138, i32* %12, align 4\n br label %target_phi_3\n"]
- 136 --> target_phi_3
- bunker_cond_3["Block bunker_cond_3:\n %139 = icmp eq i1 %0, false\n br i1 %139, label %140, label %bunker_skip_3\n"]
- bunker_cond_3 -->|true| 140
- bunker_cond_3 -->|false| bunker_skip_3
- bunker_skip_3["Block bunker_skip_3:\n br label %bunker_phi_3\n"]
- bunker_skip_3 --> bunker_phi_3
- bunker_phi_3["Block bunker_phi_3:\n ret i32 0\n"]
- 140["Block 140:\n %141 = load i32, i32* @calculationResult, ali...\n %142 = srem i32 %141, 2\n %143 = icmp eq i32 %142, 0\n br i1 %143, label %144, label %147\n"]
- 140 -->|true| 144
- 140 -->|false| 147
- 144["Block 144:\n %145 = load i32, i32* @calculationResult, ali...\n %146 = sdiv i32 %145, 2\n store i32 %146, i32* @calculationResult, align 4\n br label %150\n"]
- 144 --> 150
- 147["Block 147:\n %148 = load i32, i32* @calculationResult, ali...\n %149 = mul nsw i32 %148, 2\n store i32 %149, i32* @calculationResult, align 4\n br label %150\n"]
- 147 --> 150
- 150["Block 150:\n %151 = load i32, i32* @calculationResult, ali...\n %152 = srem i32 %151, 10\n %153 = icmp slt i32 %152, 5\n br i1 %153, label %154, label %157\n"]
- 150 -->|true| 154
- 150 -->|false| 157
- 154["Block 154:\n %155 = load i32, i32* @calculationResult, ali...\n %156 = add nsw i32 %155, 5\n store i32 %156, i32* @calculationResult, align 4\n br label %160\n"]
- 154 --> 160
- 157["Block 157:\n %158 = load i32, i32* @calculationResult, ali...\n %159 = sub nsw i32 %158, 5\n store i32 %159, i32* @calculationResult, align 4\n br label %160\n"]
- 157 --> 160
- 160["Block 160:\n %161 = load i32, i32* @calculationResult, ali...\n %162 = icmp sgt i32 %161, 1000\n br i1 %162, label %163, label %164\n"]
- 160 -->|true| 163
- 160 -->|false| 164
- 163["Block 163:\n store i32 1000, i32* @calculationResult, align 4\n br label %167\n"]
- 163 --> 167
- 164["Block 164:\n %165 = load i32, i32* @calculationResult, ali...\n %166 = add nsw i32 %165, 10\n store i32 %166, i32* @calculationResult, align 4\n br label %167\n"]
- 164 --> 167
- 167["Block 167:\n %168 = load i32, i32* @calculationResult, ali...\n %169 = call i32 (i8*, ...) @printf(i8* getele...\n ret i32 0\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [INFO][performCodeFusion] Completed function fusion: fused_performSimpleCalculations
- [INFO][performCodeFusion] Processing function pair: target=memoizedFib, bunker=projectA_main
- [INFO][performCodeFusion] adding: %3
- [INFO][performCodeFusion] adding: %11
- [INFO][performCodeFusion] adding: %16
- [INFO][performCodeFusion] adding: %19
- [INFO][performCodeFusion] adding: %21
- [INFO][performCodeFusion] adding: %23
- [INFO][performCodeFusion] before push Block ID: %3
- [INFO][performCodeFusion] before push Block ID: %11
- [INFO][performCodeFusion] before push Block ID: %16
- [INFO][performCodeFusion] before push Block ID: %19
- [INFO][performCodeFusion] before push Block ID: %21
- [INFO][performCodeFusion] before push Block ID: %23
- [DEBUG][performCodeFusion] Processing PHI incoming block %251 in block %298
- [DEBUG][performCodeFusion] Processing PHI incoming block %254 in block %298
- [DEBUG][performCodeFusion] Processing PHI incoming block %280 in block %326
- [DEBUG][performCodeFusion] Processing PHI incoming block %283 in block %326
- [INFO][performCodeFusion] Listing all instructions after block cloning in function: fused_projectA_main
- ```mermaid: fused_projectA_main
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %2 = icmp eq i1 %0, true\n br i1 %2, label %3, label %target_skip_0\n"]
- target_cond_0 -->|true| 3
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 3["Block 3:\n %4 = alloca i32, align 4\n %5 = alloca i32, align 4\n store i32 %1, i32* %5, align 4\n %6 = load i32, i32* %5, align 4\n %7 = sext i32 %6 to i64\n %8 = getelementptr inbounds [100 x i32], [100...\n %9 = load i32, i32* %8, align 4\n %10 = icmp ne i32 %9, -1\n br i1 %10, label %11, label %16\n"]
- 3 -->|true| 11
- 3 -->|false| 16
- 11["Block 11:\n %12 = load i32, i32* %5, align 4\n %13 = sext i32 %12 to i64\n %14 = getelementptr inbounds [100 x i32], [10...\n %15 = load i32, i32* %14, align 4\n store i32 %15, i32* %4, align 4\n br label %19\n"]
- 11 --> 19
- 16["Block 16:\n %17 = load i32, i32* %5, align 4\n %18 = icmp sle i32 %17, 1\n br i1 %18, label %21, label %23\n"]
- 16 -->|true| 21
- 16 -->|false| 23
- 19["Block 19:\n %20 = load i32, i32* %4, align 4\n ret i32 %35\n"]
- 21["Block 21:\n %22 = load i32, i32* %5, align 4\n store i32 %22, i32* %4, align 4\n br label %19\n"]
- 21 --> 19
- 23["Block 23:\n %24 = load i32, i32* %5, align 4\n %25 = sub nsw i32 %24, 1\n %26 = call i32 @memoizedFib(i32 %25)\n %27 = load i32, i32* %5, align 4\n %28 = sub nsw i32 %27, 2\n %29 = call i32 @memoizedFib(i32 %28)\n %30 = add nsw i32 %26, %29\n %31 = load i32, i32* %5, align 4\n %32 = sext i32 %31 to i64\n %33 = getelementptr inbounds [100 x i32], [10...\n store i32 %30, i32* %33, align 4\n %34 = load i32, i32* %5, align 4\n %35 = sext i32 %34 to i64\n %36 = getelementptr inbounds [100 x i32], [10...\n %37 = load i32, i32* %36, align 4\n store i32 %37, i32* %4, align 4\n br label %target_phi_0\n"]
- 23 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %38 = icmp eq i1 %0, false\n br i1 %38, label %39, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 39
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n ret %fused_return_projectA_main_memoizedFib z...\n"]
- 39["Block 39:\n %40 = alloca i32, align 4\n %41 = alloca %struct.DynamicArray*, align 8\n %42 = alloca i32, align 4\n %43 = alloca %struct.Matrix*, align 8\n %44 = alloca %struct.Matrix*, align 8\n %45 = alloca i32, align 4\n %46 = alloca i32, align 4\n %47 = alloca %struct.Matrix*, align 8\n %48 = alloca i32, align 4\n %49 = alloca %struct.Node*, align 8\n %50 = alloca i32, align 4\n %51 = alloca i32, align 4\n %52 = alloca %struct.Node*, align 8\n %53 = alloca %struct.Node*, align 8\n %54 = alloca i32, align 4\n %55 = alloca %struct.Node*, align 8\n %56 = alloca i32, align 4\n %57 = alloca i32, align 4\n %58 = alloca %struct.Node*, align 8\n %59 = call i64 @time(i64* null) #7\n %60 = trunc i64 %59 to i32\n call void @srand(i32 %60) #7\n %61 = call %struct.DynamicArray* @createDynam...\n store %struct.DynamicArray* %61, %struct.Dyna...\n %62 = load %struct.DynamicArray*, %struct.Dyn...\n %63 = icmp ne %struct.DynamicArray* %62, null\n br i1 %63, label %67, label %64\n"]
- 39 -->|true| 67
- 39 -->|false| 64
- 64["Block 64:\n %65 = call i8* @getErrorMessage()\n %66 = call i32 (i8*, ...) @printf(i8* getelem...\n store i32 -1, i32* %40, align 4\n br label %362\n"]
- 64 --> 362
- 67["Block 67:\n store i32 0, i32* %42, align 4\n br label %68\n"]
- 67 --> 68
- 68["Block 68:\n %69 = load i32, i32* %42, align 4\n %70 = icmp slt i32 %69, 15\n br i1 %70, label %71, label %84\n"]
- 68 -->|true| 71
- 68 -->|false| 84
- 71["Block 71:\n %72 = load %struct.DynamicArray*, %struct.Dyn...\n %73 = call i32 @rand() #7\n %74 = srem i32 %73, 100\n call void @pushBack(%struct.DynamicArray* %72...\n %75 = load i8*, i8** @globalErrorMessage, ali...\n %76 = icmp ne i8* %75, null\n br i1 %76, label %77, label %80\n"]
- 71 -->|true| 77
- 71 -->|false| 80
- 77["Block 77:\n %78 = call i8* @getErrorMessage()\n %79 = call i32 (i8*, ...) @printf(i8* getelem...\n br label %84\n"]
- 77 --> 84
- 80["Block 80:\n br label %81\n"]
- 80 --> 81
- 81["Block 81:\n %82 = load i32, i32* %42, align 4\n %83 = add nsw i32 %82, 1\n store i32 %83, i32* %42, align 4\n br label %68\n"]
- 81 --> 68
- 84["Block 84:\n %85 = call %struct.Matrix* @createMatrix(i32 ...\n store %struct.Matrix* %85, %struct.Matrix** %...\n %86 = call %struct.Matrix* @createMatrix(i32 ...\n store %struct.Matrix* %86, %struct.Matrix** %...\n %87 = load %struct.Matrix*, %struct.Matrix** ...\n %88 = icmp ne %struct.Matrix* %87, null\n br i1 %88, label %89, label %92\n"]
- 84 -->|true| 89
- 84 -->|false| 92
- 89["Block 89:\n %90 = load %struct.Matrix*, %struct.Matrix** ...\n %91 = icmp ne %struct.Matrix* %90, null\n br i1 %91, label %113, label %92\n"]
- 89 -->|true| 113
- 89 -->|false| 92
- 92["Block 92:\n %93 = call i8* @getErrorMessage()\n %94 = call i32 (i8*, ...) @printf(i8* getelem...\n %95 = load %struct.Matrix*, %struct.Matrix** ...\n %96 = icmp ne %struct.Matrix* %95, null\n br i1 %96, label %97, label %100\n"]
- 92 -->|true| 97
- 92 -->|false| 100
- 97["Block 97:\n %98 = load %struct.Matrix*, %struct.Matrix** ...\n %99 = bitcast %struct.Matrix* %98 to i8*\n call void @free(i8* %99) #7\n br label %100\n"]
- 97 --> 100
- 100["Block 100:\n %101 = load %struct.Matrix*, %struct.Matrix**...\n %102 = icmp ne %struct.Matrix* %101, null\n br i1 %102, label %103, label %106\n"]
- 100 -->|true| 103
- 100 -->|false| 106
- 103["Block 103:\n %104 = load %struct.Matrix*, %struct.Matrix**...\n %105 = bitcast %struct.Matrix* %104 to i8*\n call void @free(i8* %105) #7\n br label %106\n"]
- 103 --> 106
- 106["Block 106:\n %107 = load %struct.DynamicArray*, %struct.Dy...\n %108 = getelementptr inbounds %struct.Dynamic...\n %109 = load i32*, i32** %108, align 8\n %110 = bitcast i32* %109 to i8*\n call void @free(i8* %110) #7\n %111 = load %struct.DynamicArray*, %struct.Dy...\n %112 = bitcast %struct.DynamicArray* %111 to i8*\n call void @free(i8* %112) #7\n store i32 -1, i32* %40, align 4\n br label %362\n"]
- 106 --> 362
- 113["Block 113:\n store i32 0, i32* %45, align 4\n br label %114\n"]
- 113 --> 114
- 114["Block 114:\n %115 = load i32, i32* %45, align 4\n %116 = icmp slt i32 %115, 3\n br i1 %116, label %117, label %153\n"]
- 114 -->|true| 117
- 114 -->|false| 153
- 117["Block 117:\n store i32 0, i32* %46, align 4\n br label %118\n"]
- 117 --> 118
- 118["Block 118:\n %119 = load i32, i32* %46, align 4\n %120 = icmp slt i32 %119, 3\n br i1 %120, label %121, label %149\n"]
- 118 -->|true| 121
- 118 -->|false| 149
- 121["Block 121:\n %122 = call i32 @rand() #7\n %123 = srem i32 %122, 10\n %124 = load %struct.Matrix*, %struct.Matrix**...\n %125 = getelementptr inbounds %struct.Matrix,...\n %126 = load i32**, i32*** %125, align 8\n %127 = load i32, i32* %45, align 4\n %128 = sext i32 %127 to i64\n %129 = getelementptr inbounds i32*, i32** %12...\n %130 = load i32*, i32** %129, align 8\n %131 = load i32, i32* %46, align 4\n %132 = sext i32 %131 to i64\n %133 = getelementptr inbounds i32, i32* %130,...\n store i32 %123, i32* %133, align 4\n %134 = call i32 @rand() #7\n %135 = srem i32 %134, 10\n %136 = load %struct.Matrix*, %struct.Matrix**...\n %137 = getelementptr inbounds %struct.Matrix,...\n %138 = load i32**, i32*** %137, align 8\n %139 = load i32, i32* %45, align 4\n %140 = sext i32 %139 to i64\n %141 = getelementptr inbounds i32*, i32** %13...\n %142 = load i32*, i32** %141, align 8\n %143 = load i32, i32* %46, align 4\n %144 = sext i32 %143 to i64\n %145 = getelementptr inbounds i32, i32* %142,...\n store i32 %135, i32* %145, align 4\n br label %146\n"]
- 121 --> 146
- 146["Block 146:\n %147 = load i32, i32* %46, align 4\n %148 = add nsw i32 %147, 1\n store i32 %148, i32* %46, align 4\n br label %118\n"]
- 146 --> 118
- 149["Block 149:\n br label %150\n"]
- 149 --> 150
- 150["Block 150:\n %151 = load i32, i32* %45, align 4\n %152 = add nsw i32 %151, 1\n store i32 %152, i32* %45, align 4\n br label %114\n"]
- 150 --> 114
- 153["Block 153:\n %154 = load %struct.Matrix*, %struct.Matrix**...\n %155 = load %struct.Matrix*, %struct.Matrix**...\n %156 = call %struct.Matrix* @multiplyMatrices...\n store %struct.Matrix* %156, %struct.Matrix** ...\n %157 = load %struct.Matrix*, %struct.Matrix**...\n %158 = icmp ne %struct.Matrix* %157, null\n br i1 %158, label %207, label %159\n"]
- 153 -->|true| 207
- 153 -->|false| 159
- 159["Block 159:\n %160 = call i8* @getErrorMessage()\n %161 = call i32 (i8*, ...) @printf(i8* getele...\n store i32 0, i32* %48, align 4\n br label %162\n"]
- 159 --> 162
- 162["Block 162:\n %163 = load i32, i32* %48, align 4\n %164 = load %struct.Matrix*, %struct.Matrix**...\n %165 = getelementptr inbounds %struct.Matrix,...\n %166 = load i32, i32* %165, align 8\n %167 = icmp slt i32 %163, %166\n br i1 %167, label %168, label %188\n"]
- 162 -->|true| 168
- 162 -->|false| 188
- 168["Block 168:\n %169 = load %struct.Matrix*, %struct.Matrix**...\n %170 = getelementptr inbounds %struct.Matrix,...\n %171 = load i32**, i32*** %170, align 8\n %172 = load i32, i32* %48, align 4\n %173 = sext i32 %172 to i64\n %174 = getelementptr inbounds i32*, i32** %17...\n %175 = load i32*, i32** %174, align 8\n %176 = bitcast i32* %175 to i8*\n call void @free(i8* %176) #7\n %177 = load %struct.Matrix*, %struct.Matrix**...\n %178 = getelementptr inbounds %struct.Matrix,...\n %179 = load i32**, i32*** %178, align 8\n %180 = load i32, i32* %48, align 4\n %181 = sext i32 %180 to i64\n %182 = getelementptr inbounds i32*, i32** %17...\n %183 = load i32*, i32** %182, align 8\n %184 = bitcast i32* %183 to i8*\n call void @free(i8* %184) #7\n br label %185\n"]
- 168 --> 185
- 185["Block 185:\n %186 = load i32, i32* %48, align 4\n %187 = add nsw i32 %186, 1\n store i32 %187, i32* %48, align 4\n br label %162\n"]
- 185 --> 162
- 188["Block 188:\n %189 = load %struct.Matrix*, %struct.Matrix**...\n %190 = getelementptr inbounds %struct.Matrix,...\n %191 = load i32**, i32*** %190, align 8\n %192 = bitcast i32** %191 to i8*\n call void @free(i8* %192) #7\n %193 = load %struct.Matrix*, %struct.Matrix**...\n %194 = getelementptr inbounds %struct.Matrix,...\n %195 = load i32**, i32*** %194, align 8\n %196 = bitcast i32** %195 to i8*\n call void @free(i8* %196) #7\n %197 = load %struct.Matrix*, %struct.Matrix**...\n %198 = bitcast %struct.Matrix* %197 to i8*\n call void @free(i8* %198) #7\n %199 = load %struct.Matrix*, %struct.Matrix**...\n %200 = bitcast %struct.Matrix* %199 to i8*\n call void @free(i8* %200) #7\n %201 = load %struct.DynamicArray*, %struct.Dy...\n %202 = getelementptr inbounds %struct.Dynamic...\n %203 = load i32*, i32** %202, align 8\n %204 = bitcast i32* %203 to i8*\n call void @free(i8* %204) #7\n %205 = load %struct.DynamicArray*, %struct.Dy...\n %206 = bitcast %struct.DynamicArray* %205 to i8*\n call void @free(i8* %206) #7\n store i32 -1, i32* %40, align 4\n br label %362\n"]
- 188 --> 362
- 207["Block 207:\n store %struct.Node* null, %struct.Node** %49,...\n store i32 0, i32* %50, align 4\n br label %208\n"]
- 207 --> 208
- 208["Block 208:\n %209 = load i32, i32* %50, align 4\n %210 = icmp slt i32 %209, 5\n br i1 %210, label %211, label %225\n"]
- 208 -->|true| 211
- 208 -->|false| 225
- 211["Block 211:\n %212 = load %struct.Node*, %struct.Node** %49...\n %213 = call i32 @rand() #7\n %214 = srem i32 %213, 50\n %215 = call %struct.Node* @insertNode(%struct...\n store %struct.Node* %215, %struct.Node** %49,...\n %216 = load i8*, i8** @globalErrorMessage, al...\n %217 = icmp ne i8* %216, null\n br i1 %217, label %218, label %221\n"]
- 211 -->|true| 218
- 211 -->|false| 221
- 218["Block 218:\n %219 = call i8* @getErrorMessage()\n %220 = call i32 (i8*, ...) @printf(i8* getele...\n br label %225\n"]
- 218 --> 225
- 221["Block 221:\n br label %222\n"]
- 221 --> 222
- 222["Block 222:\n %223 = load i32, i32* %50, align 4\n %224 = add nsw i32 %223, 1\n store i32 %224, i32* %50, align 4\n br label %208\n"]
- 222 --> 208
- 225["Block 225:\n %226 = load %struct.DynamicArray*, %struct.Dy...\n %227 = getelementptr inbounds %struct.Dynamic...\n %228 = load i32*, i32** %227, align 8\n %229 = bitcast i32* %228 to i8*\n call void @free(i8* %229) #7\n %230 = load %struct.DynamicArray*, %struct.Dy...\n %231 = bitcast %struct.DynamicArray* %230 to i8*\n call void @free(i8* %231) #7\n store i32 0, i32* %51, align 4\n br label %232\n"]
- 225 --> 232
- 232["Block 232:\n %233 = load i32, i32* %51, align 4\n %234 = load %struct.Matrix*, %struct.Matrix**...\n %235 = getelementptr inbounds %struct.Matrix,...\n %236 = load i32, i32* %235, align 8\n %237 = icmp slt i32 %233, %236\n br i1 %237, label %238, label %266\n"]
- 232 -->|true| 238
- 232 -->|false| 266
- 238["Block 238:\n %239 = load %struct.Matrix*, %struct.Matrix**...\n %240 = getelementptr inbounds %struct.Matrix,...\n %241 = load i32**, i32*** %240, align 8\n %242 = load i32, i32* %51, align 4\n %243 = sext i32 %242 to i64\n %244 = getelementptr inbounds i32*, i32** %24...\n %245 = load i32*, i32** %244, align 8\n %246 = bitcast i32* %245 to i8*\n call void @free(i8* %246) #7\n %247 = load %struct.Matrix*, %struct.Matrix**...\n %248 = getelementptr inbounds %struct.Matrix,...\n %249 = load i32**, i32*** %248, align 8\n %250 = load i32, i32* %51, align 4\n %251 = sext i32 %250 to i64\n %252 = getelementptr inbounds i32*, i32** %24...\n %253 = load i32*, i32** %252, align 8\n %254 = bitcast i32* %253 to i8*\n call void @free(i8* %254) #7\n %255 = load %struct.Matrix*, %struct.Matrix**...\n %256 = getelementptr inbounds %struct.Matrix,...\n %257 = load i32**, i32*** %256, align 8\n %258 = load i32, i32* %51, align 4\n %259 = sext i32 %258 to i64\n %260 = getelementptr inbounds i32*, i32** %25...\n %261 = load i32*, i32** %260, align 8\n %262 = bitcast i32* %261 to i8*\n call void @free(i8* %262) #7\n br label %263\n"]
- 238 --> 263
- 263["Block 263:\n %264 = load i32, i32* %51, align 4\n %265 = add nsw i32 %264, 1\n store i32 %265, i32* %51, align 4\n br label %232\n"]
- 263 --> 232
- 266["Block 266:\n %267 = load %struct.Matrix*, %struct.Matrix**...\n %268 = getelementptr inbounds %struct.Matrix,...\n %269 = load i32**, i32*** %268, align 8\n %270 = bitcast i32** %269 to i8*\n call void @free(i8* %270) #7\n %271 = load %struct.Matrix*, %struct.Matrix**...\n %272 = getelementptr inbounds %struct.Matrix,...\n %273 = load i32**, i32*** %272, align 8\n %274 = bitcast i32** %273 to i8*\n call void @free(i8* %274) #7\n %275 = load %struct.Matrix*, %struct.Matrix**...\n %276 = getelementptr inbounds %struct.Matrix,...\n %277 = load i32**, i32*** %276, align 8\n %278 = bitcast i32** %277 to i8*\n call void @free(i8* %278) #7\n %279 = load %struct.Matrix*, %struct.Matrix**...\n %280 = bitcast %struct.Matrix* %279 to i8*\n call void @free(i8* %280) #7\n %281 = load %struct.Matrix*, %struct.Matrix**...\n %282 = bitcast %struct.Matrix* %281 to i8*\n call void @free(i8* %282) #7\n %283 = load %struct.Matrix*, %struct.Matrix**...\n %284 = bitcast %struct.Matrix* %283 to i8*\n call void @free(i8* %284) #7\n %285 = load %struct.Node*, %struct.Node** %49...\n %286 = icmp ne %struct.Node* %285, null\n br i1 %286, label %287, label %355\n"]
- 266 -->|true| 287
- 266 -->|false| 355
- 287["Block 287:\n %288 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %288, %struct.Node** %52,...\n %289 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %289, %struct.Node** %53,...\n store i32 0, i32* %54, align 4\n br label %290\n"]
- 287 --> 290
- 290["Block 290:\n %291 = load %struct.Node*, %struct.Node** %53...\n %292 = icmp ne %struct.Node* %291, null\n br i1 %292, label %293, label %298\n"]
- 290 -->|true| 293
- 290 -->|false| 298
- 293["Block 293:\n %294 = load %struct.Node*, %struct.Node** %53...\n %295 = getelementptr inbounds %struct.Node, %...\n %296 = load %struct.Node*, %struct.Node** %29...\n %297 = icmp ne %struct.Node* %296, null\n br label %298\n"]
- 293 --> 298
- 298["Block 298:\n %299 = phi i1 [ false, %290 ], [ %297, %293 ]\n br i1 %299, label %300, label %314\n"]
- 298 -->|true| 300
- 298 -->|false| 314
- 300["Block 300:\n %301 = load %struct.Node*, %struct.Node** %52...\n %302 = getelementptr inbounds %struct.Node, %...\n %303 = load %struct.Node*, %struct.Node** %30...\n store %struct.Node* %303, %struct.Node** %52,...\n %304 = load %struct.Node*, %struct.Node** %53...\n %305 = getelementptr inbounds %struct.Node, %...\n %306 = load %struct.Node*, %struct.Node** %30...\n %307 = getelementptr inbounds %struct.Node, %...\n %308 = load %struct.Node*, %struct.Node** %30...\n store %struct.Node* %308, %struct.Node** %53,...\n %309 = load %struct.Node*, %struct.Node** %52...\n %310 = load %struct.Node*, %struct.Node** %53...\n %311 = icmp eq %struct.Node* %309, %310\n br i1 %311, label %312, label %313\n"]
- 300 -->|true| 312
- 300 -->|false| 313
- 312["Block 312:\n store i32 1, i32* %54, align 4\n br label %314\n"]
- 312 --> 314
- 313["Block 313:\n br label %290\n"]
- 313 --> 290
- 314["Block 314:\n %315 = load i32, i32* %54, align 4\n %316 = icmp ne i32 %315, 0\n br i1 %316, label %317, label %343\n"]
- 314 -->|true| 317
- 314 -->|false| 343
- 317["Block 317:\n call void @setErrorMessage(i8* getelementptr ...\n %318 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %318, %struct.Node** %55,...\n store i32 1000, i32* %56, align 4\n store i32 0, i32* %57, align 4\n br label %319\n"]
- 317 --> 319
- 319["Block 319:\n %320 = load %struct.Node*, %struct.Node** %55...\n %321 = icmp ne %struct.Node* %320, null\n br i1 %321, label %322, label %326\n"]
- 319 -->|true| 322
- 319 -->|false| 326
- 322["Block 322:\n %323 = load i32, i32* %57, align 4\n %324 = load i32, i32* %56, align 4\n %325 = icmp slt i32 %323, %324\n br label %326\n"]
- 322 --> 326
- 326["Block 326:\n %327 = phi i1 [ false, %319 ], [ %325, %322 ]\n br i1 %327, label %328, label %342\n"]
- 326 -->|true| 328
- 326 -->|false| 342
- 328["Block 328:\n %329 = load %struct.Node*, %struct.Node** %55...\n %330 = getelementptr inbounds %struct.Node, %...\n %331 = load i32, i32* %330, align 8\n %332 = icmp ne i32 %331, 0\n br i1 %332, label %333, label %334\n"]
- 328 -->|true| 333
- 328 -->|false| 334
- 333["Block 333:\n br label %342\n"]
- 333 --> 342
- 334["Block 334:\n %335 = load %struct.Node*, %struct.Node** %55...\n %336 = getelementptr inbounds %struct.Node, %...\n store i32 1, i32* %336, align 8\n %337 = load %struct.Node*, %struct.Node** %55...\n %338 = getelementptr inbounds %struct.Node, %...\n %339 = load %struct.Node*, %struct.Node** %33...\n store %struct.Node* %339, %struct.Node** %55,...\n %340 = load i32, i32* %57, align 4\n %341 = add nsw i32 %340, 1\n store i32 %341, i32* %57, align 4\n br label %319\n"]
- 334 --> 319
- 342["Block 342:\n br label %343\n"]
- 342 --> 343
- 343["Block 343:\n br label %344\n"]
- 343 --> 344
- 344["Block 344:\n %345 = load %struct.Node*, %struct.Node** %49...\n %346 = icmp ne %struct.Node* %345, null\n br i1 %346, label %347, label %354\n"]
- 344 -->|true| 347
- 344 -->|false| 354
- 347["Block 347:\n %348 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %348, %struct.Node** %58,...\n %349 = load %struct.Node*, %struct.Node** %49...\n %350 = getelementptr inbounds %struct.Node, %...\n %351 = load %struct.Node*, %struct.Node** %35...\n store %struct.Node* %351, %struct.Node** %49,...\n %352 = load %struct.Node*, %struct.Node** %58...\n %353 = bitcast %struct.Node* %352 to i8*\n call void @free(i8* %353) #7\n br label %344\n"]
- 347 --> 344
- 354["Block 354:\n br label %355\n"]
- 354 --> 355
- 355["Block 355:\n %356 = load i8*, i8** @globalErrorMessage, al...\n %357 = icmp ne i8* %356, null\n br i1 %357, label %358, label %360\n"]
- 355 -->|true| 358
- 355 -->|false| 360
- 358["Block 358:\n %359 = load i8*, i8** @globalErrorMessage, al...\n call void @free(i8* %359) #7\n br label %360\n"]
- 358 --> 360
- 360["Block 360:\n %361 = call i32 @fused_performSimpleCalculati...\n store i32 0, i32* %40, align 4\n br label %362\n"]
- 360 --> 362
- 362["Block 362:\n %363 = load i32, i32* %40, align 4\n ret i32 %363\n br label %bunker_phi_0\n"]
- 362 --> bunker_phi_0
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][performCodeFusion] Processing return values for fused function: fused_projectA_main
- [DEBUG][performCodeFusion] Fused function return type: fused_return_projectA_main_memoizedFib
- [DEBUG][performCodeFusion] Processing struct return type with 2 elements
- [DEBUG][performCodeFusion] Setting default target return value
- [DEBUG][performCodeFusion] Created struct return for bunker block: %362 with types: target=i32, bunker=i32
- [DEBUG][performCodeFusion] Removing extra instruction after return in block %362: br
- [DEBUG][performCodeFusion] Created struct return for target block: %19 with types: target=i32, bunker=i32
- [INFO][performCodeFusion] Listing all instructions after return repairing in function: fused_projectA_main
- ```mermaid: fused_projectA_main
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %2 = icmp eq i1 %0, true\n br i1 %2, label %3, label %target_skip_0\n"]
- target_cond_0 -->|true| 3
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 3["Block 3:\n %4 = alloca i32, align 4\n %5 = alloca i32, align 4\n store i32 %1, i32* %5, align 4\n %6 = load i32, i32* %5, align 4\n %7 = sext i32 %6 to i64\n %8 = getelementptr inbounds [100 x i32], [100...\n %9 = load i32, i32* %8, align 4\n %10 = icmp ne i32 %9, -1\n br i1 %10, label %11, label %16\n"]
- 3 -->|true| 11
- 3 -->|false| 16
- 11["Block 11:\n %12 = load i32, i32* %5, align 4\n %13 = sext i32 %12 to i64\n %14 = getelementptr inbounds [100 x i32], [10...\n %15 = load i32, i32* %14, align 4\n store i32 %15, i32* %4, align 4\n br label %19\n"]
- 11 --> 19
- 16["Block 16:\n %17 = load i32, i32* %5, align 4\n %18 = icmp sle i32 %17, 1\n br i1 %18, label %21, label %23\n"]
- 16 -->|true| 21
- 16 -->|false| 23
- 19["Block 19:\n %20 = load i32, i32* %4, align 4\n %struct.target = insertvalue %fused_return_pr...\n %struct.bunker1 = insertvalue %fused_return_p...\n ret %fused_return_projectA_main_memoizedFib %...\n"]
- 21["Block 21:\n %22 = load i32, i32* %5, align 4\n store i32 %22, i32* %4, align 4\n br label %19\n"]
- 21 --> 19
- 23["Block 23:\n %24 = load i32, i32* %5, align 4\n %25 = sub nsw i32 %24, 1\n %26 = call i32 @memoizedFib(i32 %25)\n %27 = load i32, i32* %5, align 4\n %28 = sub nsw i32 %27, 2\n %29 = call i32 @memoizedFib(i32 %28)\n %30 = add nsw i32 %26, %29\n %31 = load i32, i32* %5, align 4\n %32 = sext i32 %31 to i64\n %33 = getelementptr inbounds [100 x i32], [10...\n store i32 %30, i32* %33, align 4\n %34 = load i32, i32* %5, align 4\n %35 = sext i32 %34 to i64\n %36 = getelementptr inbounds [100 x i32], [10...\n %37 = load i32, i32* %36, align 4\n store i32 %37, i32* %4, align 4\n br label %target_phi_0\n"]
- 23 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %38 = icmp eq i1 %0, false\n br i1 %38, label %39, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 39
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n ret %fused_return_projectA_main_memoizedFib z...\n"]
- 39["Block 39:\n %40 = alloca i32, align 4\n %41 = alloca %struct.DynamicArray*, align 8\n %42 = alloca i32, align 4\n %43 = alloca %struct.Matrix*, align 8\n %44 = alloca %struct.Matrix*, align 8\n %45 = alloca i32, align 4\n %46 = alloca i32, align 4\n %47 = alloca %struct.Matrix*, align 8\n %48 = alloca i32, align 4\n %49 = alloca %struct.Node*, align 8\n %50 = alloca i32, align 4\n %51 = alloca i32, align 4\n %52 = alloca %struct.Node*, align 8\n %53 = alloca %struct.Node*, align 8\n %54 = alloca i32, align 4\n %55 = alloca %struct.Node*, align 8\n %56 = alloca i32, align 4\n %57 = alloca i32, align 4\n %58 = alloca %struct.Node*, align 8\n %59 = call i64 @time(i64* null) #7\n %60 = trunc i64 %59 to i32\n call void @srand(i32 %60) #7\n %61 = call %struct.DynamicArray* @createDynam...\n store %struct.DynamicArray* %61, %struct.Dyna...\n %62 = load %struct.DynamicArray*, %struct.Dyn...\n %63 = icmp ne %struct.DynamicArray* %62, null\n br i1 %63, label %67, label %64\n"]
- 39 -->|true| 67
- 39 -->|false| 64
- 64["Block 64:\n %65 = call i8* @getErrorMessage()\n %66 = call i32 (i8*, ...) @printf(i8* getelem...\n store i32 -1, i32* %40, align 4\n br label %362\n"]
- 64 --> 362
- 67["Block 67:\n store i32 0, i32* %42, align 4\n br label %68\n"]
- 67 --> 68
- 68["Block 68:\n %69 = load i32, i32* %42, align 4\n %70 = icmp slt i32 %69, 15\n br i1 %70, label %71, label %84\n"]
- 68 -->|true| 71
- 68 -->|false| 84
- 71["Block 71:\n %72 = load %struct.DynamicArray*, %struct.Dyn...\n %73 = call i32 @rand() #7\n %74 = srem i32 %73, 100\n call void @pushBack(%struct.DynamicArray* %72...\n %75 = load i8*, i8** @globalErrorMessage, ali...\n %76 = icmp ne i8* %75, null\n br i1 %76, label %77, label %80\n"]
- 71 -->|true| 77
- 71 -->|false| 80
- 77["Block 77:\n %78 = call i8* @getErrorMessage()\n %79 = call i32 (i8*, ...) @printf(i8* getelem...\n br label %84\n"]
- 77 --> 84
- 80["Block 80:\n br label %81\n"]
- 80 --> 81
- 81["Block 81:\n %82 = load i32, i32* %42, align 4\n %83 = add nsw i32 %82, 1\n store i32 %83, i32* %42, align 4\n br label %68\n"]
- 81 --> 68
- 84["Block 84:\n %85 = call %struct.Matrix* @createMatrix(i32 ...\n store %struct.Matrix* %85, %struct.Matrix** %...\n %86 = call %struct.Matrix* @createMatrix(i32 ...\n store %struct.Matrix* %86, %struct.Matrix** %...\n %87 = load %struct.Matrix*, %struct.Matrix** ...\n %88 = icmp ne %struct.Matrix* %87, null\n br i1 %88, label %89, label %92\n"]
- 84 -->|true| 89
- 84 -->|false| 92
- 89["Block 89:\n %90 = load %struct.Matrix*, %struct.Matrix** ...\n %91 = icmp ne %struct.Matrix* %90, null\n br i1 %91, label %113, label %92\n"]
- 89 -->|true| 113
- 89 -->|false| 92
- 92["Block 92:\n %93 = call i8* @getErrorMessage()\n %94 = call i32 (i8*, ...) @printf(i8* getelem...\n %95 = load %struct.Matrix*, %struct.Matrix** ...\n %96 = icmp ne %struct.Matrix* %95, null\n br i1 %96, label %97, label %100\n"]
- 92 -->|true| 97
- 92 -->|false| 100
- 97["Block 97:\n %98 = load %struct.Matrix*, %struct.Matrix** ...\n %99 = bitcast %struct.Matrix* %98 to i8*\n call void @free(i8* %99) #7\n br label %100\n"]
- 97 --> 100
- 100["Block 100:\n %101 = load %struct.Matrix*, %struct.Matrix**...\n %102 = icmp ne %struct.Matrix* %101, null\n br i1 %102, label %103, label %106\n"]
- 100 -->|true| 103
- 100 -->|false| 106
- 103["Block 103:\n %104 = load %struct.Matrix*, %struct.Matrix**...\n %105 = bitcast %struct.Matrix* %104 to i8*\n call void @free(i8* %105) #7\n br label %106\n"]
- 103 --> 106
- 106["Block 106:\n %107 = load %struct.DynamicArray*, %struct.Dy...\n %108 = getelementptr inbounds %struct.Dynamic...\n %109 = load i32*, i32** %108, align 8\n %110 = bitcast i32* %109 to i8*\n call void @free(i8* %110) #7\n %111 = load %struct.DynamicArray*, %struct.Dy...\n %112 = bitcast %struct.DynamicArray* %111 to i8*\n call void @free(i8* %112) #7\n store i32 -1, i32* %40, align 4\n br label %362\n"]
- 106 --> 362
- 113["Block 113:\n store i32 0, i32* %45, align 4\n br label %114\n"]
- 113 --> 114
- 114["Block 114:\n %115 = load i32, i32* %45, align 4\n %116 = icmp slt i32 %115, 3\n br i1 %116, label %117, label %153\n"]
- 114 -->|true| 117
- 114 -->|false| 153
- 117["Block 117:\n store i32 0, i32* %46, align 4\n br label %118\n"]
- 117 --> 118
- 118["Block 118:\n %119 = load i32, i32* %46, align 4\n %120 = icmp slt i32 %119, 3\n br i1 %120, label %121, label %149\n"]
- 118 -->|true| 121
- 118 -->|false| 149
- 121["Block 121:\n %122 = call i32 @rand() #7\n %123 = srem i32 %122, 10\n %124 = load %struct.Matrix*, %struct.Matrix**...\n %125 = getelementptr inbounds %struct.Matrix,...\n %126 = load i32**, i32*** %125, align 8\n %127 = load i32, i32* %45, align 4\n %128 = sext i32 %127 to i64\n %129 = getelementptr inbounds i32*, i32** %12...\n %130 = load i32*, i32** %129, align 8\n %131 = load i32, i32* %46, align 4\n %132 = sext i32 %131 to i64\n %133 = getelementptr inbounds i32, i32* %130,...\n store i32 %123, i32* %133, align 4\n %134 = call i32 @rand() #7\n %135 = srem i32 %134, 10\n %136 = load %struct.Matrix*, %struct.Matrix**...\n %137 = getelementptr inbounds %struct.Matrix,...\n %138 = load i32**, i32*** %137, align 8\n %139 = load i32, i32* %45, align 4\n %140 = sext i32 %139 to i64\n %141 = getelementptr inbounds i32*, i32** %13...\n %142 = load i32*, i32** %141, align 8\n %143 = load i32, i32* %46, align 4\n %144 = sext i32 %143 to i64\n %145 = getelementptr inbounds i32, i32* %142,...\n store i32 %135, i32* %145, align 4\n br label %146\n"]
- 121 --> 146
- 146["Block 146:\n %147 = load i32, i32* %46, align 4\n %148 = add nsw i32 %147, 1\n store i32 %148, i32* %46, align 4\n br label %118\n"]
- 146 --> 118
- 149["Block 149:\n br label %150\n"]
- 149 --> 150
- 150["Block 150:\n %151 = load i32, i32* %45, align 4\n %152 = add nsw i32 %151, 1\n store i32 %152, i32* %45, align 4\n br label %114\n"]
- 150 --> 114
- 153["Block 153:\n %154 = load %struct.Matrix*, %struct.Matrix**...\n %155 = load %struct.Matrix*, %struct.Matrix**...\n %156 = call %struct.Matrix* @multiplyMatrices...\n store %struct.Matrix* %156, %struct.Matrix** ...\n %157 = load %struct.Matrix*, %struct.Matrix**...\n %158 = icmp ne %struct.Matrix* %157, null\n br i1 %158, label %207, label %159\n"]
- 153 -->|true| 207
- 153 -->|false| 159
- 159["Block 159:\n %160 = call i8* @getErrorMessage()\n %161 = call i32 (i8*, ...) @printf(i8* getele...\n store i32 0, i32* %48, align 4\n br label %162\n"]
- 159 --> 162
- 162["Block 162:\n %163 = load i32, i32* %48, align 4\n %164 = load %struct.Matrix*, %struct.Matrix**...\n %165 = getelementptr inbounds %struct.Matrix,...\n %166 = load i32, i32* %165, align 8\n %167 = icmp slt i32 %163, %166\n br i1 %167, label %168, label %188\n"]
- 162 -->|true| 168
- 162 -->|false| 188
- 168["Block 168:\n %169 = load %struct.Matrix*, %struct.Matrix**...\n %170 = getelementptr inbounds %struct.Matrix,...\n %171 = load i32**, i32*** %170, align 8\n %172 = load i32, i32* %48, align 4\n %173 = sext i32 %172 to i64\n %174 = getelementptr inbounds i32*, i32** %17...\n %175 = load i32*, i32** %174, align 8\n %176 = bitcast i32* %175 to i8*\n call void @free(i8* %176) #7\n %177 = load %struct.Matrix*, %struct.Matrix**...\n %178 = getelementptr inbounds %struct.Matrix,...\n %179 = load i32**, i32*** %178, align 8\n %180 = load i32, i32* %48, align 4\n %181 = sext i32 %180 to i64\n %182 = getelementptr inbounds i32*, i32** %17...\n %183 = load i32*, i32** %182, align 8\n %184 = bitcast i32* %183 to i8*\n call void @free(i8* %184) #7\n br label %185\n"]
- 168 --> 185
- 185["Block 185:\n %186 = load i32, i32* %48, align 4\n %187 = add nsw i32 %186, 1\n store i32 %187, i32* %48, align 4\n br label %162\n"]
- 185 --> 162
- 188["Block 188:\n %189 = load %struct.Matrix*, %struct.Matrix**...\n %190 = getelementptr inbounds %struct.Matrix,...\n %191 = load i32**, i32*** %190, align 8\n %192 = bitcast i32** %191 to i8*\n call void @free(i8* %192) #7\n %193 = load %struct.Matrix*, %struct.Matrix**...\n %194 = getelementptr inbounds %struct.Matrix,...\n %195 = load i32**, i32*** %194, align 8\n %196 = bitcast i32** %195 to i8*\n call void @free(i8* %196) #7\n %197 = load %struct.Matrix*, %struct.Matrix**...\n %198 = bitcast %struct.Matrix* %197 to i8*\n call void @free(i8* %198) #7\n %199 = load %struct.Matrix*, %struct.Matrix**...\n %200 = bitcast %struct.Matrix* %199 to i8*\n call void @free(i8* %200) #7\n %201 = load %struct.DynamicArray*, %struct.Dy...\n %202 = getelementptr inbounds %struct.Dynamic...\n %203 = load i32*, i32** %202, align 8\n %204 = bitcast i32* %203 to i8*\n call void @free(i8* %204) #7\n %205 = load %struct.DynamicArray*, %struct.Dy...\n %206 = bitcast %struct.DynamicArray* %205 to i8*\n call void @free(i8* %206) #7\n store i32 -1, i32* %40, align 4\n br label %362\n"]
- 188 --> 362
- 207["Block 207:\n store %struct.Node* null, %struct.Node** %49,...\n store i32 0, i32* %50, align 4\n br label %208\n"]
- 207 --> 208
- 208["Block 208:\n %209 = load i32, i32* %50, align 4\n %210 = icmp slt i32 %209, 5\n br i1 %210, label %211, label %225\n"]
- 208 -->|true| 211
- 208 -->|false| 225
- 211["Block 211:\n %212 = load %struct.Node*, %struct.Node** %49...\n %213 = call i32 @rand() #7\n %214 = srem i32 %213, 50\n %215 = call %struct.Node* @insertNode(%struct...\n store %struct.Node* %215, %struct.Node** %49,...\n %216 = load i8*, i8** @globalErrorMessage, al...\n %217 = icmp ne i8* %216, null\n br i1 %217, label %218, label %221\n"]
- 211 -->|true| 218
- 211 -->|false| 221
- 218["Block 218:\n %219 = call i8* @getErrorMessage()\n %220 = call i32 (i8*, ...) @printf(i8* getele...\n br label %225\n"]
- 218 --> 225
- 221["Block 221:\n br label %222\n"]
- 221 --> 222
- 222["Block 222:\n %223 = load i32, i32* %50, align 4\n %224 = add nsw i32 %223, 1\n store i32 %224, i32* %50, align 4\n br label %208\n"]
- 222 --> 208
- 225["Block 225:\n %226 = load %struct.DynamicArray*, %struct.Dy...\n %227 = getelementptr inbounds %struct.Dynamic...\n %228 = load i32*, i32** %227, align 8\n %229 = bitcast i32* %228 to i8*\n call void @free(i8* %229) #7\n %230 = load %struct.DynamicArray*, %struct.Dy...\n %231 = bitcast %struct.DynamicArray* %230 to i8*\n call void @free(i8* %231) #7\n store i32 0, i32* %51, align 4\n br label %232\n"]
- 225 --> 232
- 232["Block 232:\n %233 = load i32, i32* %51, align 4\n %234 = load %struct.Matrix*, %struct.Matrix**...\n %235 = getelementptr inbounds %struct.Matrix,...\n %236 = load i32, i32* %235, align 8\n %237 = icmp slt i32 %233, %236\n br i1 %237, label %238, label %266\n"]
- 232 -->|true| 238
- 232 -->|false| 266
- 238["Block 238:\n %239 = load %struct.Matrix*, %struct.Matrix**...\n %240 = getelementptr inbounds %struct.Matrix,...\n %241 = load i32**, i32*** %240, align 8\n %242 = load i32, i32* %51, align 4\n %243 = sext i32 %242 to i64\n %244 = getelementptr inbounds i32*, i32** %24...\n %245 = load i32*, i32** %244, align 8\n %246 = bitcast i32* %245 to i8*\n call void @free(i8* %246) #7\n %247 = load %struct.Matrix*, %struct.Matrix**...\n %248 = getelementptr inbounds %struct.Matrix,...\n %249 = load i32**, i32*** %248, align 8\n %250 = load i32, i32* %51, align 4\n %251 = sext i32 %250 to i64\n %252 = getelementptr inbounds i32*, i32** %24...\n %253 = load i32*, i32** %252, align 8\n %254 = bitcast i32* %253 to i8*\n call void @free(i8* %254) #7\n %255 = load %struct.Matrix*, %struct.Matrix**...\n %256 = getelementptr inbounds %struct.Matrix,...\n %257 = load i32**, i32*** %256, align 8\n %258 = load i32, i32* %51, align 4\n %259 = sext i32 %258 to i64\n %260 = getelementptr inbounds i32*, i32** %25...\n %261 = load i32*, i32** %260, align 8\n %262 = bitcast i32* %261 to i8*\n call void @free(i8* %262) #7\n br label %263\n"]
- 238 --> 263
- 263["Block 263:\n %264 = load i32, i32* %51, align 4\n %265 = add nsw i32 %264, 1\n store i32 %265, i32* %51, align 4\n br label %232\n"]
- 263 --> 232
- 266["Block 266:\n %267 = load %struct.Matrix*, %struct.Matrix**...\n %268 = getelementptr inbounds %struct.Matrix,...\n %269 = load i32**, i32*** %268, align 8\n %270 = bitcast i32** %269 to i8*\n call void @free(i8* %270) #7\n %271 = load %struct.Matrix*, %struct.Matrix**...\n %272 = getelementptr inbounds %struct.Matrix,...\n %273 = load i32**, i32*** %272, align 8\n %274 = bitcast i32** %273 to i8*\n call void @free(i8* %274) #7\n %275 = load %struct.Matrix*, %struct.Matrix**...\n %276 = getelementptr inbounds %struct.Matrix,...\n %277 = load i32**, i32*** %276, align 8\n %278 = bitcast i32** %277 to i8*\n call void @free(i8* %278) #7\n %279 = load %struct.Matrix*, %struct.Matrix**...\n %280 = bitcast %struct.Matrix* %279 to i8*\n call void @free(i8* %280) #7\n %281 = load %struct.Matrix*, %struct.Matrix**...\n %282 = bitcast %struct.Matrix* %281 to i8*\n call void @free(i8* %282) #7\n %283 = load %struct.Matrix*, %struct.Matrix**...\n %284 = bitcast %struct.Matrix* %283 to i8*\n call void @free(i8* %284) #7\n %285 = load %struct.Node*, %struct.Node** %49...\n %286 = icmp ne %struct.Node* %285, null\n br i1 %286, label %287, label %355\n"]
- 266 -->|true| 287
- 266 -->|false| 355
- 287["Block 287:\n %288 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %288, %struct.Node** %52,...\n %289 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %289, %struct.Node** %53,...\n store i32 0, i32* %54, align 4\n br label %290\n"]
- 287 --> 290
- 290["Block 290:\n %291 = load %struct.Node*, %struct.Node** %53...\n %292 = icmp ne %struct.Node* %291, null\n br i1 %292, label %293, label %298\n"]
- 290 -->|true| 293
- 290 -->|false| 298
- 293["Block 293:\n %294 = load %struct.Node*, %struct.Node** %53...\n %295 = getelementptr inbounds %struct.Node, %...\n %296 = load %struct.Node*, %struct.Node** %29...\n %297 = icmp ne %struct.Node* %296, null\n br label %298\n"]
- 293 --> 298
- 298["Block 298:\n %299 = phi i1 [ false, %290 ], [ %297, %293 ]\n br i1 %299, label %300, label %314\n"]
- 298 -->|true| 300
- 298 -->|false| 314
- 300["Block 300:\n %301 = load %struct.Node*, %struct.Node** %52...\n %302 = getelementptr inbounds %struct.Node, %...\n %303 = load %struct.Node*, %struct.Node** %30...\n store %struct.Node* %303, %struct.Node** %52,...\n %304 = load %struct.Node*, %struct.Node** %53...\n %305 = getelementptr inbounds %struct.Node, %...\n %306 = load %struct.Node*, %struct.Node** %30...\n %307 = getelementptr inbounds %struct.Node, %...\n %308 = load %struct.Node*, %struct.Node** %30...\n store %struct.Node* %308, %struct.Node** %53,...\n %309 = load %struct.Node*, %struct.Node** %52...\n %310 = load %struct.Node*, %struct.Node** %53...\n %311 = icmp eq %struct.Node* %309, %310\n br i1 %311, label %312, label %313\n"]
- 300 -->|true| 312
- 300 -->|false| 313
- 312["Block 312:\n store i32 1, i32* %54, align 4\n br label %314\n"]
- 312 --> 314
- 313["Block 313:\n br label %290\n"]
- 313 --> 290
- 314["Block 314:\n %315 = load i32, i32* %54, align 4\n %316 = icmp ne i32 %315, 0\n br i1 %316, label %317, label %343\n"]
- 314 -->|true| 317
- 314 -->|false| 343
- 317["Block 317:\n call void @setErrorMessage(i8* getelementptr ...\n %318 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %318, %struct.Node** %55,...\n store i32 1000, i32* %56, align 4\n store i32 0, i32* %57, align 4\n br label %319\n"]
- 317 --> 319
- 319["Block 319:\n %320 = load %struct.Node*, %struct.Node** %55...\n %321 = icmp ne %struct.Node* %320, null\n br i1 %321, label %322, label %326\n"]
- 319 -->|true| 322
- 319 -->|false| 326
- 322["Block 322:\n %323 = load i32, i32* %57, align 4\n %324 = load i32, i32* %56, align 4\n %325 = icmp slt i32 %323, %324\n br label %326\n"]
- 322 --> 326
- 326["Block 326:\n %327 = phi i1 [ false, %319 ], [ %325, %322 ]\n br i1 %327, label %328, label %342\n"]
- 326 -->|true| 328
- 326 -->|false| 342
- 328["Block 328:\n %329 = load %struct.Node*, %struct.Node** %55...\n %330 = getelementptr inbounds %struct.Node, %...\n %331 = load i32, i32* %330, align 8\n %332 = icmp ne i32 %331, 0\n br i1 %332, label %333, label %334\n"]
- 328 -->|true| 333
- 328 -->|false| 334
- 333["Block 333:\n br label %342\n"]
- 333 --> 342
- 334["Block 334:\n %335 = load %struct.Node*, %struct.Node** %55...\n %336 = getelementptr inbounds %struct.Node, %...\n store i32 1, i32* %336, align 8\n %337 = load %struct.Node*, %struct.Node** %55...\n %338 = getelementptr inbounds %struct.Node, %...\n %339 = load %struct.Node*, %struct.Node** %33...\n store %struct.Node* %339, %struct.Node** %55,...\n %340 = load i32, i32* %57, align 4\n %341 = add nsw i32 %340, 1\n store i32 %341, i32* %57, align 4\n br label %319\n"]
- 334 --> 319
- 342["Block 342:\n br label %343\n"]
- 342 --> 343
- 343["Block 343:\n br label %344\n"]
- 343 --> 344
- 344["Block 344:\n %345 = load %struct.Node*, %struct.Node** %49...\n %346 = icmp ne %struct.Node* %345, null\n br i1 %346, label %347, label %354\n"]
- 344 -->|true| 347
- 344 -->|false| 354
- 347["Block 347:\n %348 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %348, %struct.Node** %58,...\n %349 = load %struct.Node*, %struct.Node** %49...\n %350 = getelementptr inbounds %struct.Node, %...\n %351 = load %struct.Node*, %struct.Node** %35...\n store %struct.Node* %351, %struct.Node** %49,...\n %352 = load %struct.Node*, %struct.Node** %58...\n %353 = bitcast %struct.Node* %352 to i8*\n call void @free(i8* %353) #7\n br label %344\n"]
- 347 --> 344
- 354["Block 354:\n br label %355\n"]
- 354 --> 355
- 355["Block 355:\n %356 = load i8*, i8** @globalErrorMessage, al...\n %357 = icmp ne i8* %356, null\n br i1 %357, label %358, label %360\n"]
- 355 -->|true| 358
- 355 -->|false| 360
- 358["Block 358:\n %359 = load i8*, i8** @globalErrorMessage, al...\n call void @free(i8* %359) #7\n br label %360\n"]
- 358 --> 360
- 360["Block 360:\n %361 = call i32 @fused_performSimpleCalculati...\n store i32 0, i32* %40, align 4\n br label %362\n"]
- 360 --> 362
- 362["Block 362:\n %363 = load i32, i32* %40, align 4\n %struct.bunker = insertvalue %fused_return_pr...\n ret %fused_return_projectA_main_memoizedFib %...\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][updateCallSite] Original call instruction:
- %29 = call i32 @memoizedFib(i32 %28)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %29 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %28)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Extracting value from struct return type
- [DEBUG][updateCallSite] Extracted value type: i32
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %29 = call i32 @memoizedFib(i32 %28) to %29 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %28)
- [DEBUG][updateCallSite] Original call instruction:
- %26 = call i32 @memoizedFib(i32 %25)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %26 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %25)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Extracting value from struct return type
- [DEBUG][updateCallSite] Extracted value type: i32
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %26 = call i32 @memoizedFib(i32 %25) to %26 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %25)
- [DEBUG][updateCallSite] Original call instruction:
- %35 = call i32 @memoizedFib(i32 %34)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %35 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %34)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Extracting value from struct return type
- [DEBUG][updateCallSite] Extracted value type: i32
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %35 = call i32 @memoizedFib(i32 %34) to %35 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %34)
- [DEBUG][updateCallSite] Original call instruction:
- %21 = call i32 @memoizedFib(i32 %20)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %21 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %20)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Extracting value from struct return type
- [DEBUG][updateCallSite] Extracted value type: i32
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %21 = call i32 @memoizedFib(i32 %20) to %21 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %20)
- [DEBUG][updateCallSite] Original call instruction:
- %25 = call i32 @memoizedFib(i32 %24)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %25 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %24)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Extracting value from struct return type
- [DEBUG][updateCallSite] Extracted value type: i32
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %25 = call i32 @memoizedFib(i32 %24) to %25 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %24)
- [DEBUG][updateCallSite] Original call instruction:
- %22 = call i32 @memoizedFib(i32 %21)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %22 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %21)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Extracting value from struct return type
- [DEBUG][updateCallSite] Extracted value type: i32
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %22 = call i32 @memoizedFib(i32 %21) to %22 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %21)
- [INFO][performCodeFusion] Listing all instructions after update calls in function: fused_projectA_main
- ```mermaid: fused_projectA_main
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %2 = icmp eq i1 %0, true\n br i1 %2, label %3, label %target_skip_0\n"]
- target_cond_0 -->|true| 3
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 3["Block 3:\n %4 = alloca i32, align 4\n %5 = alloca i32, align 4\n store i32 %1, i32* %5, align 4\n %6 = load i32, i32* %5, align 4\n %7 = sext i32 %6 to i64\n %8 = getelementptr inbounds [100 x i32], [100...\n %9 = load i32, i32* %8, align 4\n %10 = icmp ne i32 %9, -1\n br i1 %10, label %11, label %16\n"]
- 3 -->|true| 11
- 3 -->|false| 16
- 11["Block 11:\n %12 = load i32, i32* %5, align 4\n %13 = sext i32 %12 to i64\n %14 = getelementptr inbounds [100 x i32], [10...\n %15 = load i32, i32* %14, align 4\n store i32 %15, i32* %4, align 4\n br label %19\n"]
- 11 --> 19
- 16["Block 16:\n %17 = load i32, i32* %5, align 4\n %18 = icmp sle i32 %17, 1\n br i1 %18, label %21, label %23\n"]
- 16 -->|true| 21
- 16 -->|false| 23
- 19["Block 19:\n %20 = load i32, i32* %4, align 4\n %struct.target = insertvalue %fused_return_pr...\n %struct.bunker1 = insertvalue %fused_return_p...\n ret %fused_return_projectA_main_memoizedFib %...\n"]
- 21["Block 21:\n %22 = load i32, i32* %5, align 4\n store i32 %22, i32* %4, align 4\n br label %19\n"]
- 21 --> 19
- 23["Block 23:\n %24 = load i32, i32* %5, align 4\n %25 = sub nsw i32 %24, 1\n %26 = call %fused_return_projectA_main_memoiz...\n %extracted_target_return2 = extractvalue %fus...\n %27 = load i32, i32* %5, align 4\n %28 = sub nsw i32 %27, 2\n %29 = call %fused_return_projectA_main_memoiz...\n %extracted_target_return = extractvalue %fuse...\n %30 = add nsw i32 %extracted_target_return2, ...\n %31 = load i32, i32* %5, align 4\n %32 = sext i32 %31 to i64\n %33 = getelementptr inbounds [100 x i32], [10...\n store i32 %30, i32* %33, align 4\n %34 = load i32, i32* %5, align 4\n %35 = sext i32 %34 to i64\n %36 = getelementptr inbounds [100 x i32], [10...\n %37 = load i32, i32* %36, align 4\n store i32 %37, i32* %4, align 4\n br label %target_phi_0\n"]
- 23 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %38 = icmp eq i1 %0, false\n br i1 %38, label %39, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 39
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n ret %fused_return_projectA_main_memoizedFib z...\n"]
- 39["Block 39:\n %40 = alloca i32, align 4\n %41 = alloca %struct.DynamicArray*, align 8\n %42 = alloca i32, align 4\n %43 = alloca %struct.Matrix*, align 8\n %44 = alloca %struct.Matrix*, align 8\n %45 = alloca i32, align 4\n %46 = alloca i32, align 4\n %47 = alloca %struct.Matrix*, align 8\n %48 = alloca i32, align 4\n %49 = alloca %struct.Node*, align 8\n %50 = alloca i32, align 4\n %51 = alloca i32, align 4\n %52 = alloca %struct.Node*, align 8\n %53 = alloca %struct.Node*, align 8\n %54 = alloca i32, align 4\n %55 = alloca %struct.Node*, align 8\n %56 = alloca i32, align 4\n %57 = alloca i32, align 4\n %58 = alloca %struct.Node*, align 8\n %59 = call i64 @time(i64* null) #7\n %60 = trunc i64 %59 to i32\n call void @srand(i32 %60) #7\n %61 = call %struct.DynamicArray* @createDynam...\n store %struct.DynamicArray* %61, %struct.Dyna...\n %62 = load %struct.DynamicArray*, %struct.Dyn...\n %63 = icmp ne %struct.DynamicArray* %62, null\n br i1 %63, label %67, label %64\n"]
- 39 -->|true| 67
- 39 -->|false| 64
- 64["Block 64:\n %65 = call i8* @getErrorMessage()\n %66 = call i32 (i8*, ...) @printf(i8* getelem...\n store i32 -1, i32* %40, align 4\n br label %362\n"]
- 64 --> 362
- 67["Block 67:\n store i32 0, i32* %42, align 4\n br label %68\n"]
- 67 --> 68
- 68["Block 68:\n %69 = load i32, i32* %42, align 4\n %70 = icmp slt i32 %69, 15\n br i1 %70, label %71, label %84\n"]
- 68 -->|true| 71
- 68 -->|false| 84
- 71["Block 71:\n %72 = load %struct.DynamicArray*, %struct.Dyn...\n %73 = call i32 @rand() #7\n %74 = srem i32 %73, 100\n call void @pushBack(%struct.DynamicArray* %72...\n %75 = load i8*, i8** @globalErrorMessage, ali...\n %76 = icmp ne i8* %75, null\n br i1 %76, label %77, label %80\n"]
- 71 -->|true| 77
- 71 -->|false| 80
- 77["Block 77:\n %78 = call i8* @getErrorMessage()\n %79 = call i32 (i8*, ...) @printf(i8* getelem...\n br label %84\n"]
- 77 --> 84
- 80["Block 80:\n br label %81\n"]
- 80 --> 81
- 81["Block 81:\n %82 = load i32, i32* %42, align 4\n %83 = add nsw i32 %82, 1\n store i32 %83, i32* %42, align 4\n br label %68\n"]
- 81 --> 68
- 84["Block 84:\n %85 = call %struct.Matrix* @createMatrix(i32 ...\n store %struct.Matrix* %85, %struct.Matrix** %...\n %86 = call %struct.Matrix* @createMatrix(i32 ...\n store %struct.Matrix* %86, %struct.Matrix** %...\n %87 = load %struct.Matrix*, %struct.Matrix** ...\n %88 = icmp ne %struct.Matrix* %87, null\n br i1 %88, label %89, label %92\n"]
- 84 -->|true| 89
- 84 -->|false| 92
- 89["Block 89:\n %90 = load %struct.Matrix*, %struct.Matrix** ...\n %91 = icmp ne %struct.Matrix* %90, null\n br i1 %91, label %113, label %92\n"]
- 89 -->|true| 113
- 89 -->|false| 92
- 92["Block 92:\n %93 = call i8* @getErrorMessage()\n %94 = call i32 (i8*, ...) @printf(i8* getelem...\n %95 = load %struct.Matrix*, %struct.Matrix** ...\n %96 = icmp ne %struct.Matrix* %95, null\n br i1 %96, label %97, label %100\n"]
- 92 -->|true| 97
- 92 -->|false| 100
- 97["Block 97:\n %98 = load %struct.Matrix*, %struct.Matrix** ...\n %99 = bitcast %struct.Matrix* %98 to i8*\n call void @free(i8* %99) #7\n br label %100\n"]
- 97 --> 100
- 100["Block 100:\n %101 = load %struct.Matrix*, %struct.Matrix**...\n %102 = icmp ne %struct.Matrix* %101, null\n br i1 %102, label %103, label %106\n"]
- 100 -->|true| 103
- 100 -->|false| 106
- 103["Block 103:\n %104 = load %struct.Matrix*, %struct.Matrix**...\n %105 = bitcast %struct.Matrix* %104 to i8*\n call void @free(i8* %105) #7\n br label %106\n"]
- 103 --> 106
- 106["Block 106:\n %107 = load %struct.DynamicArray*, %struct.Dy...\n %108 = getelementptr inbounds %struct.Dynamic...\n %109 = load i32*, i32** %108, align 8\n %110 = bitcast i32* %109 to i8*\n call void @free(i8* %110) #7\n %111 = load %struct.DynamicArray*, %struct.Dy...\n %112 = bitcast %struct.DynamicArray* %111 to i8*\n call void @free(i8* %112) #7\n store i32 -1, i32* %40, align 4\n br label %362\n"]
- 106 --> 362
- 113["Block 113:\n store i32 0, i32* %45, align 4\n br label %114\n"]
- 113 --> 114
- 114["Block 114:\n %115 = load i32, i32* %45, align 4\n %116 = icmp slt i32 %115, 3\n br i1 %116, label %117, label %153\n"]
- 114 -->|true| 117
- 114 -->|false| 153
- 117["Block 117:\n store i32 0, i32* %46, align 4\n br label %118\n"]
- 117 --> 118
- 118["Block 118:\n %119 = load i32, i32* %46, align 4\n %120 = icmp slt i32 %119, 3\n br i1 %120, label %121, label %149\n"]
- 118 -->|true| 121
- 118 -->|false| 149
- 121["Block 121:\n %122 = call i32 @rand() #7\n %123 = srem i32 %122, 10\n %124 = load %struct.Matrix*, %struct.Matrix**...\n %125 = getelementptr inbounds %struct.Matrix,...\n %126 = load i32**, i32*** %125, align 8\n %127 = load i32, i32* %45, align 4\n %128 = sext i32 %127 to i64\n %129 = getelementptr inbounds i32*, i32** %12...\n %130 = load i32*, i32** %129, align 8\n %131 = load i32, i32* %46, align 4\n %132 = sext i32 %131 to i64\n %133 = getelementptr inbounds i32, i32* %130,...\n store i32 %123, i32* %133, align 4\n %134 = call i32 @rand() #7\n %135 = srem i32 %134, 10\n %136 = load %struct.Matrix*, %struct.Matrix**...\n %137 = getelementptr inbounds %struct.Matrix,...\n %138 = load i32**, i32*** %137, align 8\n %139 = load i32, i32* %45, align 4\n %140 = sext i32 %139 to i64\n %141 = getelementptr inbounds i32*, i32** %13...\n %142 = load i32*, i32** %141, align 8\n %143 = load i32, i32* %46, align 4\n %144 = sext i32 %143 to i64\n %145 = getelementptr inbounds i32, i32* %142,...\n store i32 %135, i32* %145, align 4\n br label %146\n"]
- 121 --> 146
- 146["Block 146:\n %147 = load i32, i32* %46, align 4\n %148 = add nsw i32 %147, 1\n store i32 %148, i32* %46, align 4\n br label %118\n"]
- 146 --> 118
- 149["Block 149:\n br label %150\n"]
- 149 --> 150
- 150["Block 150:\n %151 = load i32, i32* %45, align 4\n %152 = add nsw i32 %151, 1\n store i32 %152, i32* %45, align 4\n br label %114\n"]
- 150 --> 114
- 153["Block 153:\n %154 = load %struct.Matrix*, %struct.Matrix**...\n %155 = load %struct.Matrix*, %struct.Matrix**...\n %156 = call %struct.Matrix* @multiplyMatrices...\n store %struct.Matrix* %156, %struct.Matrix** ...\n %157 = load %struct.Matrix*, %struct.Matrix**...\n %158 = icmp ne %struct.Matrix* %157, null\n br i1 %158, label %207, label %159\n"]
- 153 -->|true| 207
- 153 -->|false| 159
- 159["Block 159:\n %160 = call i8* @getErrorMessage()\n %161 = call i32 (i8*, ...) @printf(i8* getele...\n store i32 0, i32* %48, align 4\n br label %162\n"]
- 159 --> 162
- 162["Block 162:\n %163 = load i32, i32* %48, align 4\n %164 = load %struct.Matrix*, %struct.Matrix**...\n %165 = getelementptr inbounds %struct.Matrix,...\n %166 = load i32, i32* %165, align 8\n %167 = icmp slt i32 %163, %166\n br i1 %167, label %168, label %188\n"]
- 162 -->|true| 168
- 162 -->|false| 188
- 168["Block 168:\n %169 = load %struct.Matrix*, %struct.Matrix**...\n %170 = getelementptr inbounds %struct.Matrix,...\n %171 = load i32**, i32*** %170, align 8\n %172 = load i32, i32* %48, align 4\n %173 = sext i32 %172 to i64\n %174 = getelementptr inbounds i32*, i32** %17...\n %175 = load i32*, i32** %174, align 8\n %176 = bitcast i32* %175 to i8*\n call void @free(i8* %176) #7\n %177 = load %struct.Matrix*, %struct.Matrix**...\n %178 = getelementptr inbounds %struct.Matrix,...\n %179 = load i32**, i32*** %178, align 8\n %180 = load i32, i32* %48, align 4\n %181 = sext i32 %180 to i64\n %182 = getelementptr inbounds i32*, i32** %17...\n %183 = load i32*, i32** %182, align 8\n %184 = bitcast i32* %183 to i8*\n call void @free(i8* %184) #7\n br label %185\n"]
- 168 --> 185
- 185["Block 185:\n %186 = load i32, i32* %48, align 4\n %187 = add nsw i32 %186, 1\n store i32 %187, i32* %48, align 4\n br label %162\n"]
- 185 --> 162
- 188["Block 188:\n %189 = load %struct.Matrix*, %struct.Matrix**...\n %190 = getelementptr inbounds %struct.Matrix,...\n %191 = load i32**, i32*** %190, align 8\n %192 = bitcast i32** %191 to i8*\n call void @free(i8* %192) #7\n %193 = load %struct.Matrix*, %struct.Matrix**...\n %194 = getelementptr inbounds %struct.Matrix,...\n %195 = load i32**, i32*** %194, align 8\n %196 = bitcast i32** %195 to i8*\n call void @free(i8* %196) #7\n %197 = load %struct.Matrix*, %struct.Matrix**...\n %198 = bitcast %struct.Matrix* %197 to i8*\n call void @free(i8* %198) #7\n %199 = load %struct.Matrix*, %struct.Matrix**...\n %200 = bitcast %struct.Matrix* %199 to i8*\n call void @free(i8* %200) #7\n %201 = load %struct.DynamicArray*, %struct.Dy...\n %202 = getelementptr inbounds %struct.Dynamic...\n %203 = load i32*, i32** %202, align 8\n %204 = bitcast i32* %203 to i8*\n call void @free(i8* %204) #7\n %205 = load %struct.DynamicArray*, %struct.Dy...\n %206 = bitcast %struct.DynamicArray* %205 to i8*\n call void @free(i8* %206) #7\n store i32 -1, i32* %40, align 4\n br label %362\n"]
- 188 --> 362
- 207["Block 207:\n store %struct.Node* null, %struct.Node** %49,...\n store i32 0, i32* %50, align 4\n br label %208\n"]
- 207 --> 208
- 208["Block 208:\n %209 = load i32, i32* %50, align 4\n %210 = icmp slt i32 %209, 5\n br i1 %210, label %211, label %225\n"]
- 208 -->|true| 211
- 208 -->|false| 225
- 211["Block 211:\n %212 = load %struct.Node*, %struct.Node** %49...\n %213 = call i32 @rand() #7\n %214 = srem i32 %213, 50\n %215 = call %struct.Node* @insertNode(%struct...\n store %struct.Node* %215, %struct.Node** %49,...\n %216 = load i8*, i8** @globalErrorMessage, al...\n %217 = icmp ne i8* %216, null\n br i1 %217, label %218, label %221\n"]
- 211 -->|true| 218
- 211 -->|false| 221
- 218["Block 218:\n %219 = call i8* @getErrorMessage()\n %220 = call i32 (i8*, ...) @printf(i8* getele...\n br label %225\n"]
- 218 --> 225
- 221["Block 221:\n br label %222\n"]
- 221 --> 222
- 222["Block 222:\n %223 = load i32, i32* %50, align 4\n %224 = add nsw i32 %223, 1\n store i32 %224, i32* %50, align 4\n br label %208\n"]
- 222 --> 208
- 225["Block 225:\n %226 = load %struct.DynamicArray*, %struct.Dy...\n %227 = getelementptr inbounds %struct.Dynamic...\n %228 = load i32*, i32** %227, align 8\n %229 = bitcast i32* %228 to i8*\n call void @free(i8* %229) #7\n %230 = load %struct.DynamicArray*, %struct.Dy...\n %231 = bitcast %struct.DynamicArray* %230 to i8*\n call void @free(i8* %231) #7\n store i32 0, i32* %51, align 4\n br label %232\n"]
- 225 --> 232
- 232["Block 232:\n %233 = load i32, i32* %51, align 4\n %234 = load %struct.Matrix*, %struct.Matrix**...\n %235 = getelementptr inbounds %struct.Matrix,...\n %236 = load i32, i32* %235, align 8\n %237 = icmp slt i32 %233, %236\n br i1 %237, label %238, label %266\n"]
- 232 -->|true| 238
- 232 -->|false| 266
- 238["Block 238:\n %239 = load %struct.Matrix*, %struct.Matrix**...\n %240 = getelementptr inbounds %struct.Matrix,...\n %241 = load i32**, i32*** %240, align 8\n %242 = load i32, i32* %51, align 4\n %243 = sext i32 %242 to i64\n %244 = getelementptr inbounds i32*, i32** %24...\n %245 = load i32*, i32** %244, align 8\n %246 = bitcast i32* %245 to i8*\n call void @free(i8* %246) #7\n %247 = load %struct.Matrix*, %struct.Matrix**...\n %248 = getelementptr inbounds %struct.Matrix,...\n %249 = load i32**, i32*** %248, align 8\n %250 = load i32, i32* %51, align 4\n %251 = sext i32 %250 to i64\n %252 = getelementptr inbounds i32*, i32** %24...\n %253 = load i32*, i32** %252, align 8\n %254 = bitcast i32* %253 to i8*\n call void @free(i8* %254) #7\n %255 = load %struct.Matrix*, %struct.Matrix**...\n %256 = getelementptr inbounds %struct.Matrix,...\n %257 = load i32**, i32*** %256, align 8\n %258 = load i32, i32* %51, align 4\n %259 = sext i32 %258 to i64\n %260 = getelementptr inbounds i32*, i32** %25...\n %261 = load i32*, i32** %260, align 8\n %262 = bitcast i32* %261 to i8*\n call void @free(i8* %262) #7\n br label %263\n"]
- 238 --> 263
- 263["Block 263:\n %264 = load i32, i32* %51, align 4\n %265 = add nsw i32 %264, 1\n store i32 %265, i32* %51, align 4\n br label %232\n"]
- 263 --> 232
- 266["Block 266:\n %267 = load %struct.Matrix*, %struct.Matrix**...\n %268 = getelementptr inbounds %struct.Matrix,...\n %269 = load i32**, i32*** %268, align 8\n %270 = bitcast i32** %269 to i8*\n call void @free(i8* %270) #7\n %271 = load %struct.Matrix*, %struct.Matrix**...\n %272 = getelementptr inbounds %struct.Matrix,...\n %273 = load i32**, i32*** %272, align 8\n %274 = bitcast i32** %273 to i8*\n call void @free(i8* %274) #7\n %275 = load %struct.Matrix*, %struct.Matrix**...\n %276 = getelementptr inbounds %struct.Matrix,...\n %277 = load i32**, i32*** %276, align 8\n %278 = bitcast i32** %277 to i8*\n call void @free(i8* %278) #7\n %279 = load %struct.Matrix*, %struct.Matrix**...\n %280 = bitcast %struct.Matrix* %279 to i8*\n call void @free(i8* %280) #7\n %281 = load %struct.Matrix*, %struct.Matrix**...\n %282 = bitcast %struct.Matrix* %281 to i8*\n call void @free(i8* %282) #7\n %283 = load %struct.Matrix*, %struct.Matrix**...\n %284 = bitcast %struct.Matrix* %283 to i8*\n call void @free(i8* %284) #7\n %285 = load %struct.Node*, %struct.Node** %49...\n %286 = icmp ne %struct.Node* %285, null\n br i1 %286, label %287, label %355\n"]
- 266 -->|true| 287
- 266 -->|false| 355
- 287["Block 287:\n %288 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %288, %struct.Node** %52,...\n %289 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %289, %struct.Node** %53,...\n store i32 0, i32* %54, align 4\n br label %290\n"]
- 287 --> 290
- 290["Block 290:\n %291 = load %struct.Node*, %struct.Node** %53...\n %292 = icmp ne %struct.Node* %291, null\n br i1 %292, label %293, label %298\n"]
- 290 -->|true| 293
- 290 -->|false| 298
- 293["Block 293:\n %294 = load %struct.Node*, %struct.Node** %53...\n %295 = getelementptr inbounds %struct.Node, %...\n %296 = load %struct.Node*, %struct.Node** %29...\n %297 = icmp ne %struct.Node* %296, null\n br label %298\n"]
- 293 --> 298
- 298["Block 298:\n %299 = phi i1 [ false, %290 ], [ %297, %293 ]\n br i1 %299, label %300, label %314\n"]
- 298 -->|true| 300
- 298 -->|false| 314
- 300["Block 300:\n %301 = load %struct.Node*, %struct.Node** %52...\n %302 = getelementptr inbounds %struct.Node, %...\n %303 = load %struct.Node*, %struct.Node** %30...\n store %struct.Node* %303, %struct.Node** %52,...\n %304 = load %struct.Node*, %struct.Node** %53...\n %305 = getelementptr inbounds %struct.Node, %...\n %306 = load %struct.Node*, %struct.Node** %30...\n %307 = getelementptr inbounds %struct.Node, %...\n %308 = load %struct.Node*, %struct.Node** %30...\n store %struct.Node* %308, %struct.Node** %53,...\n %309 = load %struct.Node*, %struct.Node** %52...\n %310 = load %struct.Node*, %struct.Node** %53...\n %311 = icmp eq %struct.Node* %309, %310\n br i1 %311, label %312, label %313\n"]
- 300 -->|true| 312
- 300 -->|false| 313
- 312["Block 312:\n store i32 1, i32* %54, align 4\n br label %314\n"]
- 312 --> 314
- 313["Block 313:\n br label %290\n"]
- 313 --> 290
- 314["Block 314:\n %315 = load i32, i32* %54, align 4\n %316 = icmp ne i32 %315, 0\n br i1 %316, label %317, label %343\n"]
- 314 -->|true| 317
- 314 -->|false| 343
- 317["Block 317:\n call void @setErrorMessage(i8* getelementptr ...\n %318 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %318, %struct.Node** %55,...\n store i32 1000, i32* %56, align 4\n store i32 0, i32* %57, align 4\n br label %319\n"]
- 317 --> 319
- 319["Block 319:\n %320 = load %struct.Node*, %struct.Node** %55...\n %321 = icmp ne %struct.Node* %320, null\n br i1 %321, label %322, label %326\n"]
- 319 -->|true| 322
- 319 -->|false| 326
- 322["Block 322:\n %323 = load i32, i32* %57, align 4\n %324 = load i32, i32* %56, align 4\n %325 = icmp slt i32 %323, %324\n br label %326\n"]
- 322 --> 326
- 326["Block 326:\n %327 = phi i1 [ false, %319 ], [ %325, %322 ]\n br i1 %327, label %328, label %342\n"]
- 326 -->|true| 328
- 326 -->|false| 342
- 328["Block 328:\n %329 = load %struct.Node*, %struct.Node** %55...\n %330 = getelementptr inbounds %struct.Node, %...\n %331 = load i32, i32* %330, align 8\n %332 = icmp ne i32 %331, 0\n br i1 %332, label %333, label %334\n"]
- 328 -->|true| 333
- 328 -->|false| 334
- 333["Block 333:\n br label %342\n"]
- 333 --> 342
- 334["Block 334:\n %335 = load %struct.Node*, %struct.Node** %55...\n %336 = getelementptr inbounds %struct.Node, %...\n store i32 1, i32* %336, align 8\n %337 = load %struct.Node*, %struct.Node** %55...\n %338 = getelementptr inbounds %struct.Node, %...\n %339 = load %struct.Node*, %struct.Node** %33...\n store %struct.Node* %339, %struct.Node** %55,...\n %340 = load i32, i32* %57, align 4\n %341 = add nsw i32 %340, 1\n store i32 %341, i32* %57, align 4\n br label %319\n"]
- 334 --> 319
- 342["Block 342:\n br label %343\n"]
- 342 --> 343
- 343["Block 343:\n br label %344\n"]
- 343 --> 344
- 344["Block 344:\n %345 = load %struct.Node*, %struct.Node** %49...\n %346 = icmp ne %struct.Node* %345, null\n br i1 %346, label %347, label %354\n"]
- 344 -->|true| 347
- 344 -->|false| 354
- 347["Block 347:\n %348 = load %struct.Node*, %struct.Node** %49...\n store %struct.Node* %348, %struct.Node** %58,...\n %349 = load %struct.Node*, %struct.Node** %49...\n %350 = getelementptr inbounds %struct.Node, %...\n %351 = load %struct.Node*, %struct.Node** %35...\n store %struct.Node* %351, %struct.Node** %49,...\n %352 = load %struct.Node*, %struct.Node** %58...\n %353 = bitcast %struct.Node* %352 to i8*\n call void @free(i8* %353) #7\n br label %344\n"]
- 347 --> 344
- 354["Block 354:\n br label %355\n"]
- 354 --> 355
- 355["Block 355:\n %356 = load i8*, i8** @globalErrorMessage, al...\n %357 = icmp ne i8* %356, null\n br i1 %357, label %358, label %360\n"]
- 355 -->|true| 358
- 355 -->|false| 360
- 358["Block 358:\n %359 = load i8*, i8** @globalErrorMessage, al...\n call void @free(i8* %359) #7\n br label %360\n"]
- 358 --> 360
- 360["Block 360:\n %361 = call i32 @fused_performSimpleCalculati...\n store i32 0, i32* %40, align 4\n br label %362\n"]
- 360 --> 362
- 362["Block 362:\n %363 = load i32, i32* %40, align 4\n %struct.bunker = insertvalue %fused_return_pr...\n ret %fused_return_projectA_main_memoizedFib %...\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [INFO][performCodeFusion] Completed function fusion: fused_projectA_main
- [INFO][performCodeFusion] Processing function pair: target=processMatrix, bunker=createDynamicArray
- [INFO][performCodeFusion] adding: %5
- [INFO][performCodeFusion] before push Block ID: %5
- [INFO][performCodeFusion] adding: %56
- [INFO][performCodeFusion] adding: %60
- [INFO][performCodeFusion] adding: %61
- [INFO][performCodeFusion] adding: %63
- [INFO][performCodeFusion] adding: %67
- [INFO][performCodeFusion] adding: %71
- [INFO][performCodeFusion] adding: %72
- [INFO][performCodeFusion] adding: %83
- [INFO][performCodeFusion] adding: %87
- [INFO][performCodeFusion] adding: %90
- [INFO][performCodeFusion] adding: %101
- [INFO][performCodeFusion] adding: %112
- [INFO][performCodeFusion] adding: %124
- [INFO][performCodeFusion] adding: %125
- [INFO][performCodeFusion] adding: %126
- [INFO][performCodeFusion] adding: %127
- [INFO][performCodeFusion] before push Block ID: %56
- [INFO][performCodeFusion] before push Block ID: %60
- [INFO][performCodeFusion] before push Block ID: %61
- [INFO][performCodeFusion] before push Block ID: %63
- [INFO][performCodeFusion] before push Block ID: %67
- [INFO][performCodeFusion] before push Block ID: %71
- [INFO][performCodeFusion] before push Block ID: %72
- [INFO][performCodeFusion] before push Block ID: %83
- [INFO][performCodeFusion] before push Block ID: %87
- [INFO][performCodeFusion] before push Block ID: %90
- [INFO][performCodeFusion] before push Block ID: %101
- [INFO][performCodeFusion] before push Block ID: %112
- [INFO][performCodeFusion] before push Block ID: %124
- [INFO][performCodeFusion] before push Block ID: %125
- [INFO][performCodeFusion] before push Block ID: %126
- [INFO][performCodeFusion] before push Block ID: %127
- [INFO][performCodeFusion] Listing all instructions after block cloning in function: fused_createDynamicArray
- ```mermaid: fused_createDynamicArray
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %4 = icmp eq i1 %0, true\n br i1 %4, label %5, label %target_skip_0\n"]
- target_cond_0 -->|true| 5
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 5["Block 5:\n %6 = alloca [100 x i32]*, align 8\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n store [100 x i32]* %2, [100 x i32]** %6, align 8\n store i32 %3, i32* %7, align 4\n store i32 0, i32* %8, align 4\n store i32 0, i32* %9, align 4\n br label %target_phi_0\n"]
- 5 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %11 = icmp eq i1 %0, false\n br i1 %11, label %12, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 12
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 12["Block 12:\n %13 = alloca %struct.DynamicArray*, align 8\n %14 = alloca i32, align 4\n %15 = alloca %struct.DynamicArray*, align 8\n store i32 %1, i32* %14, align 4\n %16 = load i32, i32* %14, align 4\n %17 = icmp sle i32 %16, 0\n br i1 %17, label %18, label %19\n"]
- 12 -->|true| 18
- 12 -->|false| 19
- 18["Block 18:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 18 --> 131
- 19["Block 19:\n %20 = load i32, i32* %14, align 4\n %21 = icmp sgt i32 %20, 1000\n br i1 %21, label %22, label %23\n"]
- 19 -->|true| 22
- 19 -->|false| 23
- 22["Block 22:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 22 --> 131
- 23["Block 23:\n %24 = call noalias i8* @malloc(i64 24) #7\n %25 = bitcast i8* %24 to %struct.DynamicArray*\n store %struct.DynamicArray* %25, %struct.Dyna...\n %26 = load %struct.DynamicArray*, %struct.Dyn...\n %27 = icmp ne %struct.DynamicArray* %26, null\n br i1 %27, label %29, label %28\n"]
- 23 -->|true| 29
- 23 -->|false| 28
- 28["Block 28:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 28 --> 131
- 29["Block 29:\n %30 = load i32, i32* %14, align 4\n %31 = sext i32 %30 to i64\n %32 = mul i64 4, %31\n %33 = call noalias i8* @malloc(i64 %32) #7\n %34 = bitcast i8* %33 to i32*\n %35 = load %struct.DynamicArray*, %struct.Dyn...\n %36 = getelementptr inbounds %struct.DynamicA...\n store i32* %34, i32** %36, align 8\n %37 = load %struct.DynamicArray*, %struct.Dyn...\n %38 = getelementptr inbounds %struct.DynamicA...\n %39 = load i32*, i32** %38, align 8\n %40 = icmp ne i32* %39, null\n br i1 %40, label %44, label %41\n"]
- 29 -->|true| 44
- 29 -->|false| 41
- 41["Block 41:\n %42 = load %struct.DynamicArray*, %struct.Dyn...\n %43 = bitcast %struct.DynamicArray* %42 to i8*\n call void @free(i8* %43) #7\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 41 --> 131
- 44["Block 44:\n %45 = load %struct.DynamicArray*, %struct.Dyn...\n %46 = getelementptr inbounds %struct.DynamicA...\n store i32 0, i32* %46, align 8\n %47 = load i32, i32* %14, align 4\n %48 = load %struct.DynamicArray*, %struct.Dyn...\n %49 = getelementptr inbounds %struct.DynamicA...\n store i32 %47, i32* %49, align 4\n %50 = load %struct.DynamicArray*, %struct.Dyn...\n %51 = getelementptr inbounds %struct.DynamicA...\n store i32 1, i32* %51, align 8\n %52 = load %struct.DynamicArray*, %struct.Dyn...\n %53 = getelementptr inbounds %struct.DynamicA...\n store i32 0, i32* %53, align 4\n %54 = load %struct.DynamicArray*, %struct.Dyn...\n store %struct.DynamicArray* %54, %struct.Dyna...\n br label %bunker_phi_0\n"]
- 44 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %55 = icmp eq i1 %0, true\n br i1 %55, label %56, label %target_skip_1\n"]
- target_cond_1 -->|true| 56
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 56["Block 56:\n %57 = load i32, i32* %9, align 4\n %58 = load i32, i32* %7, align 4\n %59 = icmp slt i32 %57, %58\n br i1 %59, label %60, label %61\n"]
- 56 -->|true| 60
- 56 -->|false| 61
- 60["Block 60:\n store i32 0, i32* %10, align 4\n br label %63\n"]
- 60 --> 63
- 61["Block 61:\n %62 = load i32, i32* %8, align 4\n ret i32 %81\n"]
- 63["Block 63:\n %64 = load i32, i32* %10, align 4\n %65 = load i32, i32* %7, align 4\n %66 = icmp slt i32 %64, %65\n br i1 %66, label %67, label %71\n"]
- 63 -->|true| 67
- 63 -->|false| 71
- 67["Block 67:\n %68 = load i32, i32* %9, align 4\n %69 = load i32, i32* %10, align 4\n %70 = icmp eq i32 %68, %69\n br i1 %70, label %72, label %83\n"]
- 67 -->|true| 72
- 67 -->|false| 83
- 71["Block 71:\n br label %87\n"]
- 71 --> 87
- 72["Block 72:\n %73 = load [100 x i32]*, [100 x i32]** %6, al...\n %74 = load i32, i32* %9, align 4\n %75 = sext i32 %74 to i64\n %76 = getelementptr inbounds [100 x i32], [10...\n %77 = load i32, i32* %10, align 4\n %78 = sext i32 %77 to i64\n %79 = getelementptr inbounds [100 x i32], [10...\n %80 = load i32, i32* %79, align 4\n %81 = srem i32 %80, 2\n %82 = icmp eq i32 %81, 0\n br i1 %82, label %90, label %101\n"]
- 72 -->|true| 90
- 72 -->|false| 101
- 83["Block 83:\n %84 = load i32, i32* %9, align 4\n %85 = load i32, i32* %10, align 4\n %86 = icmp slt i32 %84, %85\n br i1 %86, label %112, label %124\n"]
- 83 -->|true| 112
- 83 -->|false| 124
- 87["Block 87:\n %88 = load i32, i32* %9, align 4\n %89 = add nsw i32 %88, 1\n store i32 %89, i32* %9, align 4\n br label %56\n"]
- 87 --> 56
- 90["Block 90:\n %91 = load [100 x i32]*, [100 x i32]** %6, al...\n %92 = load i32, i32* %9, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds [100 x i32], [10...\n %95 = load i32, i32* %10, align 4\n %96 = sext i32 %95 to i64\n %97 = getelementptr inbounds [100 x i32], [10...\n %98 = load i32, i32* %97, align 4\n %99 = load i32, i32* %8, align 4\n %100 = add nsw i32 %99, %98\n store i32 %100, i32* %8, align 4\n br label %125\n"]
- 90 --> 125
- 101["Block 101:\n %102 = load [100 x i32]*, [100 x i32]** %6, a...\n %103 = load i32, i32* %9, align 4\n %104 = sext i32 %103 to i64\n %105 = getelementptr inbounds [100 x i32], [1...\n %106 = load i32, i32* %10, align 4\n %107 = sext i32 %106 to i64\n %108 = getelementptr inbounds [100 x i32], [1...\n %109 = load i32, i32* %108, align 4\n %110 = load i32, i32* %8, align 4\n %111 = sub nsw i32 %110, %109\n store i32 %111, i32* %8, align 4\n br label %125\n"]
- 101 --> 125
- 112["Block 112:\n %113 = load [100 x i32]*, [100 x i32]** %6, a...\n %114 = load i32, i32* %9, align 4\n %115 = sext i32 %114 to i64\n %116 = getelementptr inbounds [100 x i32], [1...\n %117 = load i32, i32* %10, align 4\n %118 = sext i32 %117 to i64\n %119 = getelementptr inbounds [100 x i32], [1...\n %120 = load i32, i32* %119, align 4\n %121 = call i32 @fused_quickSort(i1 true, i32...\n %122 = load i32, i32* %8, align 4\n %123 = add nsw i32 %122, %121\n store i32 %123, i32* %8, align 4\n br label %124\n"]
- 112 --> 124
- 124["Block 124:\n br label %126\n"]
- 124 --> 126
- 125["Block 125:\n br label %126\n"]
- 125 --> 126
- 126["Block 126:\n br label %127\n"]
- 126 --> 127
- 127["Block 127:\n %128 = load i32, i32* %10, align 4\n %129 = add nsw i32 %128, 1\n store i32 %129, i32* %10, align 4\n br label %target_phi_1\n"]
- 127 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %130 = icmp eq i1 %0, false\n br i1 %130, label %131, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 131
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret %fused_return_createDynamicArray_processM...\n"]
- 131["Block 131:\n %132 = load %struct.DynamicArray*, %struct.Dy...\n ret %struct.DynamicArray* %132\n br label %bunker_phi_1\n"]
- 131 --> bunker_phi_1
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][performCodeFusion] Processing return values for fused function: fused_createDynamicArray
- [DEBUG][performCodeFusion] Fused function return type: fused_return_createDynamicArray_processMatrix
- [DEBUG][performCodeFusion] Processing struct return type with 2 elements
- [DEBUG][performCodeFusion] Setting default target return value
- [DEBUG][performCodeFusion] Created struct return for bunker block: %131 with types: target=i32, bunker=struct.DynamicArray*
- [DEBUG][performCodeFusion] Removing extra instruction after return in block %131: br
- [DEBUG][performCodeFusion] Created struct return for target block: %61 with types: target=i32, bunker=struct.DynamicArray*
- [INFO][performCodeFusion] Listing all instructions after return repairing in function: fused_createDynamicArray
- ```mermaid: fused_createDynamicArray
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %4 = icmp eq i1 %0, true\n br i1 %4, label %5, label %target_skip_0\n"]
- target_cond_0 -->|true| 5
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 5["Block 5:\n %6 = alloca [100 x i32]*, align 8\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n store [100 x i32]* %2, [100 x i32]** %6, align 8\n store i32 %3, i32* %7, align 4\n store i32 0, i32* %8, align 4\n store i32 0, i32* %9, align 4\n br label %target_phi_0\n"]
- 5 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %11 = icmp eq i1 %0, false\n br i1 %11, label %12, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 12
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 12["Block 12:\n %13 = alloca %struct.DynamicArray*, align 8\n %14 = alloca i32, align 4\n %15 = alloca %struct.DynamicArray*, align 8\n store i32 %1, i32* %14, align 4\n %16 = load i32, i32* %14, align 4\n %17 = icmp sle i32 %16, 0\n br i1 %17, label %18, label %19\n"]
- 12 -->|true| 18
- 12 -->|false| 19
- 18["Block 18:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 18 --> 131
- 19["Block 19:\n %20 = load i32, i32* %14, align 4\n %21 = icmp sgt i32 %20, 1000\n br i1 %21, label %22, label %23\n"]
- 19 -->|true| 22
- 19 -->|false| 23
- 22["Block 22:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 22 --> 131
- 23["Block 23:\n %24 = call noalias i8* @malloc(i64 24) #7\n %25 = bitcast i8* %24 to %struct.DynamicArray*\n store %struct.DynamicArray* %25, %struct.Dyna...\n %26 = load %struct.DynamicArray*, %struct.Dyn...\n %27 = icmp ne %struct.DynamicArray* %26, null\n br i1 %27, label %29, label %28\n"]
- 23 -->|true| 29
- 23 -->|false| 28
- 28["Block 28:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 28 --> 131
- 29["Block 29:\n %30 = load i32, i32* %14, align 4\n %31 = sext i32 %30 to i64\n %32 = mul i64 4, %31\n %33 = call noalias i8* @malloc(i64 %32) #7\n %34 = bitcast i8* %33 to i32*\n %35 = load %struct.DynamicArray*, %struct.Dyn...\n %36 = getelementptr inbounds %struct.DynamicA...\n store i32* %34, i32** %36, align 8\n %37 = load %struct.DynamicArray*, %struct.Dyn...\n %38 = getelementptr inbounds %struct.DynamicA...\n %39 = load i32*, i32** %38, align 8\n %40 = icmp ne i32* %39, null\n br i1 %40, label %44, label %41\n"]
- 29 -->|true| 44
- 29 -->|false| 41
- 41["Block 41:\n %42 = load %struct.DynamicArray*, %struct.Dyn...\n %43 = bitcast %struct.DynamicArray* %42 to i8*\n call void @free(i8* %43) #7\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 41 --> 131
- 44["Block 44:\n %45 = load %struct.DynamicArray*, %struct.Dyn...\n %46 = getelementptr inbounds %struct.DynamicA...\n store i32 0, i32* %46, align 8\n %47 = load i32, i32* %14, align 4\n %48 = load %struct.DynamicArray*, %struct.Dyn...\n %49 = getelementptr inbounds %struct.DynamicA...\n store i32 %47, i32* %49, align 4\n %50 = load %struct.DynamicArray*, %struct.Dyn...\n %51 = getelementptr inbounds %struct.DynamicA...\n store i32 1, i32* %51, align 8\n %52 = load %struct.DynamicArray*, %struct.Dyn...\n %53 = getelementptr inbounds %struct.DynamicA...\n store i32 0, i32* %53, align 4\n %54 = load %struct.DynamicArray*, %struct.Dyn...\n store %struct.DynamicArray* %54, %struct.Dyna...\n br label %bunker_phi_0\n"]
- 44 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %55 = icmp eq i1 %0, true\n br i1 %55, label %56, label %target_skip_1\n"]
- target_cond_1 -->|true| 56
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 56["Block 56:\n %57 = load i32, i32* %9, align 4\n %58 = load i32, i32* %7, align 4\n %59 = icmp slt i32 %57, %58\n br i1 %59, label %60, label %61\n"]
- 56 -->|true| 60
- 56 -->|false| 61
- 60["Block 60:\n store i32 0, i32* %10, align 4\n br label %63\n"]
- 60 --> 63
- 61["Block 61:\n %62 = load i32, i32* %8, align 4\n %struct.target = insertvalue %fused_return_cr...\n %struct.bunker1 = insertvalue %fused_return_c...\n ret %fused_return_createDynamicArray_processM...\n"]
- 63["Block 63:\n %64 = load i32, i32* %10, align 4\n %65 = load i32, i32* %7, align 4\n %66 = icmp slt i32 %64, %65\n br i1 %66, label %67, label %71\n"]
- 63 -->|true| 67
- 63 -->|false| 71
- 67["Block 67:\n %68 = load i32, i32* %9, align 4\n %69 = load i32, i32* %10, align 4\n %70 = icmp eq i32 %68, %69\n br i1 %70, label %72, label %83\n"]
- 67 -->|true| 72
- 67 -->|false| 83
- 71["Block 71:\n br label %87\n"]
- 71 --> 87
- 72["Block 72:\n %73 = load [100 x i32]*, [100 x i32]** %6, al...\n %74 = load i32, i32* %9, align 4\n %75 = sext i32 %74 to i64\n %76 = getelementptr inbounds [100 x i32], [10...\n %77 = load i32, i32* %10, align 4\n %78 = sext i32 %77 to i64\n %79 = getelementptr inbounds [100 x i32], [10...\n %80 = load i32, i32* %79, align 4\n %81 = srem i32 %80, 2\n %82 = icmp eq i32 %81, 0\n br i1 %82, label %90, label %101\n"]
- 72 -->|true| 90
- 72 -->|false| 101
- 83["Block 83:\n %84 = load i32, i32* %9, align 4\n %85 = load i32, i32* %10, align 4\n %86 = icmp slt i32 %84, %85\n br i1 %86, label %112, label %124\n"]
- 83 -->|true| 112
- 83 -->|false| 124
- 87["Block 87:\n %88 = load i32, i32* %9, align 4\n %89 = add nsw i32 %88, 1\n store i32 %89, i32* %9, align 4\n br label %56\n"]
- 87 --> 56
- 90["Block 90:\n %91 = load [100 x i32]*, [100 x i32]** %6, al...\n %92 = load i32, i32* %9, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds [100 x i32], [10...\n %95 = load i32, i32* %10, align 4\n %96 = sext i32 %95 to i64\n %97 = getelementptr inbounds [100 x i32], [10...\n %98 = load i32, i32* %97, align 4\n %99 = load i32, i32* %8, align 4\n %100 = add nsw i32 %99, %98\n store i32 %100, i32* %8, align 4\n br label %125\n"]
- 90 --> 125
- 101["Block 101:\n %102 = load [100 x i32]*, [100 x i32]** %6, a...\n %103 = load i32, i32* %9, align 4\n %104 = sext i32 %103 to i64\n %105 = getelementptr inbounds [100 x i32], [1...\n %106 = load i32, i32* %10, align 4\n %107 = sext i32 %106 to i64\n %108 = getelementptr inbounds [100 x i32], [1...\n %109 = load i32, i32* %108, align 4\n %110 = load i32, i32* %8, align 4\n %111 = sub nsw i32 %110, %109\n store i32 %111, i32* %8, align 4\n br label %125\n"]
- 101 --> 125
- 112["Block 112:\n %113 = load [100 x i32]*, [100 x i32]** %6, a...\n %114 = load i32, i32* %9, align 4\n %115 = sext i32 %114 to i64\n %116 = getelementptr inbounds [100 x i32], [1...\n %117 = load i32, i32* %10, align 4\n %118 = sext i32 %117 to i64\n %119 = getelementptr inbounds [100 x i32], [1...\n %120 = load i32, i32* %119, align 4\n %121 = call i32 @fused_quickSort(i1 true, i32...\n %122 = load i32, i32* %8, align 4\n %123 = add nsw i32 %122, %121\n store i32 %123, i32* %8, align 4\n br label %124\n"]
- 112 --> 124
- 124["Block 124:\n br label %126\n"]
- 124 --> 126
- 125["Block 125:\n br label %126\n"]
- 125 --> 126
- 126["Block 126:\n br label %127\n"]
- 126 --> 127
- 127["Block 127:\n %128 = load i32, i32* %10, align 4\n %129 = add nsw i32 %128, 1\n store i32 %129, i32* %10, align 4\n br label %target_phi_1\n"]
- 127 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %130 = icmp eq i1 %0, false\n br i1 %130, label %131, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 131
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret %fused_return_createDynamicArray_processM...\n"]
- 131["Block 131:\n %132 = load %struct.DynamicArray*, %struct.Dy...\n %struct.bunker = insertvalue %fused_return_cr...\n ret %fused_return_createDynamicArray_processM...\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][updateCallSite] Original call instruction:
- %61 = call %struct.DynamicArray* @createDynamicArray(i32 10)
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: array of i32*
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] New call instruction:
- %61 = call %fused_return_createDynamicArray_processMatrix @fused_createDynamicArray(i1 false, i32 10, [100 x i32]* null, i32 0)
- [DEBUG][updateCallSite] Processing non-void return value of type: struct.DynamicArray*
- [DEBUG][updateCallSite] Extracting value from struct return type
- [DEBUG][updateCallSite] Extracted value type: struct.DynamicArray*
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %61 = call %struct.DynamicArray* @createDynamicArray(i32 10) to %61 = call %fused_return_createDynamicArray_processMatrix @fused_createDynamicArray(i1 false, i32 10, [100 x i32]* null, i32 0)
- [DEBUG][updateCallSite] Original call instruction:
- %18 = call i32 @processMatrix([100 x i32]* %17, i32 3)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=array of i32*
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %18 = call %fused_return_createDynamicArray_processMatrix @fused_createDynamicArray(i1 true, i32 0, [100 x i32]* %17, i32 3)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Extracting value from struct return type
- [DEBUG][updateCallSite] Extracted value type: i32
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %18 = call i32 @processMatrix([100 x i32]* %17, i32 3) to %18 = call %fused_return_createDynamicArray_processMatrix @fused_createDynamicArray(i1 true, i32 0, [100 x i32]* %17, i32 3)
- [INFO][performCodeFusion] Listing all instructions after update calls in function: fused_createDynamicArray
- ```mermaid: fused_createDynamicArray
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %4 = icmp eq i1 %0, true\n br i1 %4, label %5, label %target_skip_0\n"]
- target_cond_0 -->|true| 5
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 5["Block 5:\n %6 = alloca [100 x i32]*, align 8\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n store [100 x i32]* %2, [100 x i32]** %6, align 8\n store i32 %3, i32* %7, align 4\n store i32 0, i32* %8, align 4\n store i32 0, i32* %9, align 4\n br label %target_phi_0\n"]
- 5 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %11 = icmp eq i1 %0, false\n br i1 %11, label %12, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 12
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 12["Block 12:\n %13 = alloca %struct.DynamicArray*, align 8\n %14 = alloca i32, align 4\n %15 = alloca %struct.DynamicArray*, align 8\n store i32 %1, i32* %14, align 4\n %16 = load i32, i32* %14, align 4\n %17 = icmp sle i32 %16, 0\n br i1 %17, label %18, label %19\n"]
- 12 -->|true| 18
- 12 -->|false| 19
- 18["Block 18:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 18 --> 131
- 19["Block 19:\n %20 = load i32, i32* %14, align 4\n %21 = icmp sgt i32 %20, 1000\n br i1 %21, label %22, label %23\n"]
- 19 -->|true| 22
- 19 -->|false| 23
- 22["Block 22:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 22 --> 131
- 23["Block 23:\n %24 = call noalias i8* @malloc(i64 24) #7\n %25 = bitcast i8* %24 to %struct.DynamicArray*\n store %struct.DynamicArray* %25, %struct.Dyna...\n %26 = load %struct.DynamicArray*, %struct.Dyn...\n %27 = icmp ne %struct.DynamicArray* %26, null\n br i1 %27, label %29, label %28\n"]
- 23 -->|true| 29
- 23 -->|false| 28
- 28["Block 28:\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 28 --> 131
- 29["Block 29:\n %30 = load i32, i32* %14, align 4\n %31 = sext i32 %30 to i64\n %32 = mul i64 4, %31\n %33 = call noalias i8* @malloc(i64 %32) #7\n %34 = bitcast i8* %33 to i32*\n %35 = load %struct.DynamicArray*, %struct.Dyn...\n %36 = getelementptr inbounds %struct.DynamicA...\n store i32* %34, i32** %36, align 8\n %37 = load %struct.DynamicArray*, %struct.Dyn...\n %38 = getelementptr inbounds %struct.DynamicA...\n %39 = load i32*, i32** %38, align 8\n %40 = icmp ne i32* %39, null\n br i1 %40, label %44, label %41\n"]
- 29 -->|true| 44
- 29 -->|false| 41
- 41["Block 41:\n %42 = load %struct.DynamicArray*, %struct.Dyn...\n %43 = bitcast %struct.DynamicArray* %42 to i8*\n call void @free(i8* %43) #7\n call void @setErrorMessage(i8* getelementptr ...\n store %struct.DynamicArray* null, %struct.Dyn...\n br label %131\n"]
- 41 --> 131
- 44["Block 44:\n %45 = load %struct.DynamicArray*, %struct.Dyn...\n %46 = getelementptr inbounds %struct.DynamicA...\n store i32 0, i32* %46, align 8\n %47 = load i32, i32* %14, align 4\n %48 = load %struct.DynamicArray*, %struct.Dyn...\n %49 = getelementptr inbounds %struct.DynamicA...\n store i32 %47, i32* %49, align 4\n %50 = load %struct.DynamicArray*, %struct.Dyn...\n %51 = getelementptr inbounds %struct.DynamicA...\n store i32 1, i32* %51, align 8\n %52 = load %struct.DynamicArray*, %struct.Dyn...\n %53 = getelementptr inbounds %struct.DynamicA...\n store i32 0, i32* %53, align 4\n %54 = load %struct.DynamicArray*, %struct.Dyn...\n store %struct.DynamicArray* %54, %struct.Dyna...\n br label %bunker_phi_0\n"]
- 44 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %55 = icmp eq i1 %0, true\n br i1 %55, label %56, label %target_skip_1\n"]
- target_cond_1 -->|true| 56
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 56["Block 56:\n %57 = load i32, i32* %9, align 4\n %58 = load i32, i32* %7, align 4\n %59 = icmp slt i32 %57, %58\n br i1 %59, label %60, label %61\n"]
- 56 -->|true| 60
- 56 -->|false| 61
- 60["Block 60:\n store i32 0, i32* %10, align 4\n br label %63\n"]
- 60 --> 63
- 61["Block 61:\n %62 = load i32, i32* %8, align 4\n %struct.target = insertvalue %fused_return_cr...\n %struct.bunker1 = insertvalue %fused_return_c...\n ret %fused_return_createDynamicArray_processM...\n"]
- 63["Block 63:\n %64 = load i32, i32* %10, align 4\n %65 = load i32, i32* %7, align 4\n %66 = icmp slt i32 %64, %65\n br i1 %66, label %67, label %71\n"]
- 63 -->|true| 67
- 63 -->|false| 71
- 67["Block 67:\n %68 = load i32, i32* %9, align 4\n %69 = load i32, i32* %10, align 4\n %70 = icmp eq i32 %68, %69\n br i1 %70, label %72, label %83\n"]
- 67 -->|true| 72
- 67 -->|false| 83
- 71["Block 71:\n br label %87\n"]
- 71 --> 87
- 72["Block 72:\n %73 = load [100 x i32]*, [100 x i32]** %6, al...\n %74 = load i32, i32* %9, align 4\n %75 = sext i32 %74 to i64\n %76 = getelementptr inbounds [100 x i32], [10...\n %77 = load i32, i32* %10, align 4\n %78 = sext i32 %77 to i64\n %79 = getelementptr inbounds [100 x i32], [10...\n %80 = load i32, i32* %79, align 4\n %81 = srem i32 %80, 2\n %82 = icmp eq i32 %81, 0\n br i1 %82, label %90, label %101\n"]
- 72 -->|true| 90
- 72 -->|false| 101
- 83["Block 83:\n %84 = load i32, i32* %9, align 4\n %85 = load i32, i32* %10, align 4\n %86 = icmp slt i32 %84, %85\n br i1 %86, label %112, label %124\n"]
- 83 -->|true| 112
- 83 -->|false| 124
- 87["Block 87:\n %88 = load i32, i32* %9, align 4\n %89 = add nsw i32 %88, 1\n store i32 %89, i32* %9, align 4\n br label %56\n"]
- 87 --> 56
- 90["Block 90:\n %91 = load [100 x i32]*, [100 x i32]** %6, al...\n %92 = load i32, i32* %9, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds [100 x i32], [10...\n %95 = load i32, i32* %10, align 4\n %96 = sext i32 %95 to i64\n %97 = getelementptr inbounds [100 x i32], [10...\n %98 = load i32, i32* %97, align 4\n %99 = load i32, i32* %8, align 4\n %100 = add nsw i32 %99, %98\n store i32 %100, i32* %8, align 4\n br label %125\n"]
- 90 --> 125
- 101["Block 101:\n %102 = load [100 x i32]*, [100 x i32]** %6, a...\n %103 = load i32, i32* %9, align 4\n %104 = sext i32 %103 to i64\n %105 = getelementptr inbounds [100 x i32], [1...\n %106 = load i32, i32* %10, align 4\n %107 = sext i32 %106 to i64\n %108 = getelementptr inbounds [100 x i32], [1...\n %109 = load i32, i32* %108, align 4\n %110 = load i32, i32* %8, align 4\n %111 = sub nsw i32 %110, %109\n store i32 %111, i32* %8, align 4\n br label %125\n"]
- 101 --> 125
- 112["Block 112:\n %113 = load [100 x i32]*, [100 x i32]** %6, a...\n %114 = load i32, i32* %9, align 4\n %115 = sext i32 %114 to i64\n %116 = getelementptr inbounds [100 x i32], [1...\n %117 = load i32, i32* %10, align 4\n %118 = sext i32 %117 to i64\n %119 = getelementptr inbounds [100 x i32], [1...\n %120 = load i32, i32* %119, align 4\n %121 = call i32 @fused_quickSort(i1 true, i32...\n %122 = load i32, i32* %8, align 4\n %123 = add nsw i32 %122, %121\n store i32 %123, i32* %8, align 4\n br label %124\n"]
- 112 --> 124
- 124["Block 124:\n br label %126\n"]
- 124 --> 126
- 125["Block 125:\n br label %126\n"]
- 125 --> 126
- 126["Block 126:\n br label %127\n"]
- 126 --> 127
- 127["Block 127:\n %128 = load i32, i32* %10, align 4\n %129 = add nsw i32 %128, 1\n store i32 %129, i32* %10, align 4\n br label %target_phi_1\n"]
- 127 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %130 = icmp eq i1 %0, false\n br i1 %130, label %131, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 131
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret %fused_return_createDynamicArray_processM...\n"]
- 131["Block 131:\n %132 = load %struct.DynamicArray*, %struct.Dy...\n %struct.bunker = insertvalue %fused_return_cr...\n ret %fused_return_createDynamicArray_processM...\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [INFO][performCodeFusion] Completed function fusion: fused_createDynamicArray
- [INFO][performCodeFusion] Processing function pair: target=projectB_main, bunker=setErrorMessage
- [INFO][performCodeFusion] adding: %3
- [INFO][performCodeFusion] before push Block ID: %3
- [INFO][performCodeFusion] adding: %30
- [INFO][performCodeFusion] adding: %35
- [INFO][performCodeFusion] before push Block ID: %30
- [INFO][performCodeFusion] before push Block ID: %35
- [INFO][performCodeFusion] adding: %53
- [INFO][performCodeFusion] adding: %56
- [INFO][performCodeFusion] adding: %59
- [INFO][performCodeFusion] adding: %66
- [INFO][performCodeFusion] adding: %69
- [INFO][performCodeFusion] adding: %72
- [INFO][performCodeFusion] adding: %74
- [INFO][performCodeFusion] before push Block ID: %53
- [INFO][performCodeFusion] before push Block ID: %56
- [INFO][performCodeFusion] before push Block ID: %59
- [INFO][performCodeFusion] before push Block ID: %66
- [INFO][performCodeFusion] before push Block ID: %69
- [INFO][performCodeFusion] before push Block ID: %72
- [INFO][performCodeFusion] before push Block ID: %74
- [INFO][performCodeFusion] Listing all instructions after block cloning in function: fused_setErrorMessage
- ```mermaid: fused_setErrorMessage
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %2 = icmp eq i1 %0, true\n br i1 %2, label %3, label %target_skip_0\n"]
- target_cond_0 -->|true| 3
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 3["Block 3:\n %4 = alloca [14 x i8], align 1\n %5 = alloca [8 x i32], align 16\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca [100 x [100 x i32]], align 16\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n %11 = alloca i32, align 4\n %12 = call i32 @testPoints(i32 5)\n call void @llvm.memset.p0i8.i64(i8* align 16 ...\n %13 = bitcast [14 x i8]* %4 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n %14 = getelementptr inbounds [14 x i8], [14 x...\n call void @reverseString(i8* %14)\n %15 = bitcast [8 x i32]* %5 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n store i32 8, i32* %6, align 4\n %16 = getelementptr inbounds [8 x i32], [8 x ...\n %17 = load i32, i32* %6, align 4\n %18 = call i32 @fused_performSimpleCalculatio...\n store i32 %18, i32* %7, align 4\n %19 = bitcast [100 x [100 x i32]]* %8 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n %20 = getelementptr inbounds [100 x [100 x i3...\n %21 = call %fused_return_createDynamicArray_p...\n %extracted_target_return2target_ = extractval...\n store i32 %extracted_target_return2target_, i...\n store i32 0, i32* %10, align 4\n br label %target_phi_0\n"]
- 3 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %22 = icmp eq i1 %0, false\n br i1 %22, label %23, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 23
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 23["Block 23:\n %24 = alloca i8*, align 8\n store i8* %1, i8** %24, align 8\n %25 = load i8*, i8** @globalErrorMessage, ali...\n %26 = icmp ne i8* %25, null\n br i1 %26, label %27, label %39\n"]
- 23 -->|true| 27
- 23 -->|false| 39
- 27["Block 27:\n %28 = load i8*, i8** @globalErrorMessage, ali...\n call void @free(i8* %28) #7\n br label %bunker_phi_0\n"]
- 27 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %29 = icmp eq i1 %0, true\n br i1 %29, label %30, label %target_skip_1\n"]
- target_cond_1 -->|true| 30
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 30["Block 30:\n %31 = load i32, i32* %10, align 4\n %32 = call %fused_return_projectA_main_memoiz...\n %extracted_target_return1target_ = extractval...\n %33 = load i32, i32* %10, align 4\n %34 = add nsw i32 %33, 1\n store i32 %34, i32* %10, align 4\n br label %35\n"]
- 30 --> 35
- 35["Block 35:\n %36 = load i32, i32* %10, align 4\n %37 = icmp slt i32 %36, 10\n br label %target_phi_1\n"]
- 35 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %38 = icmp eq i1 %0, false\n br i1 %38, label %39, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 39
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n br label %target_cond_2\n"]
- bunker_phi_1 --> target_cond_2
- 39["Block 39:\n %40 = load i8*, i8** %24, align 8\n %41 = icmp ne i8* %40, null\n br i1 %41, label %42, label %51\n"]
- 39 -->|true| 42
- 39 -->|false| 51
- 42["Block 42:\n %43 = load i8*, i8** %24, align 8\n %44 = call noalias i8* @strdup(i8* %43) #7\n store i8* %44, i8** @globalErrorMessage, align 8\n %45 = load i8*, i8** @globalErrorMessage, ali...\n %46 = icmp eq i8* %45, null\n br i1 %46, label %47, label %50\n"]
- 42 -->|true| 47
- 42 -->|false| 50
- 47["Block 47:\n %48 = load %struct._IO_FILE*, %struct._IO_FIL...\n %49 = call i32 (%struct._IO_FILE*, i8*, ...) ...\n br label %50\n"]
- 47 --> 50
- 50["Block 50:\n br label %76\n"]
- 50 --> 76
- 51["Block 51:\n store i8* null, i8** @globalErrorMessage, ali...\n br label %bunker_phi_1\n"]
- 51 --> bunker_phi_1
- target_cond_2["Block target_cond_2:\n %52 = icmp eq i1 %0, true\n br i1 %52, label %53, label %target_skip_2\n"]
- target_cond_2 -->|true| 53
- target_cond_2 -->|false| target_skip_2
- target_skip_2["Block target_skip_2:\n br label %target_phi_2\n"]
- target_skip_2 --> target_phi_2
- target_phi_2["Block target_phi_2:\n br label %bunker_cond_2\n"]
- target_phi_2 --> bunker_cond_2
- 53["Block 53:\n %54 = load i32, i32* %7, align 4\n %55 = icmp sgt i32 %54, 5\n br i1 %55, label %56, label %59\n"]
- 53 -->|true| 56
- 53 -->|false| 59
- 56["Block 56:\n %57 = load i32, i32* %9, align 4\n %58 = icmp sgt i32 %57, 0\n br i1 %58, label %66, label %69\n"]
- 56 -->|true| 66
- 56 -->|false| 69
- 59["Block 59:\n %60 = getelementptr inbounds [14 x i8], [14 x...\n %61 = call i64 @strlen(i8* %60) #8\n %62 = load i32, i32* %9, align 4\n %63 = sext i32 %62 to i64\n %64 = add i64 %61, %63\n %65 = trunc i64 %64 to i32\n store i32 %65, i32* %11, align 4\n br label %72\n"]
- 59 --> 72
- 66["Block 66:\n %67 = load i32, i32* %7, align 4\n %68 = call %fused_return_projectA_main_memoiz...\n %extracted_target_returntarget_ = extractvalu...\n store i32 %extracted_target_returntarget_, i3...\n br label %74\n"]
- 66 --> 74
- 69["Block 69:\n %70 = load i32, i32* %9, align 4\n %71 = call i32 @fused_quickSort(i1 true, i32*...\n store i32 %71, i32* %11, align 4\n br label %74\n"]
- 69 --> 74
- 72["Block 72:\n %73 = load i32, i32* %11, align 4\n ret i32 %48\n"]
- 74["Block 74:\n br label %target_phi_2\n"]
- 74 --> target_phi_2
- bunker_cond_2["Block bunker_cond_2:\n %75 = icmp eq i1 %0, false\n br i1 %75, label %76, label %bunker_skip_2\n"]
- bunker_cond_2 -->|true| 76
- bunker_cond_2 -->|false| bunker_skip_2
- bunker_skip_2["Block bunker_skip_2:\n br label %bunker_phi_2\n"]
- bunker_skip_2 --> bunker_phi_2
- bunker_phi_2["Block bunker_phi_2:\n ret i32 0\n"]
- 76["Block 76:\n ret void\n br label %bunker_phi_2\n"]
- 76 --> bunker_phi_2
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][performCodeFusion] Processing return values for fused function: fused_setErrorMessage
- [DEBUG][performCodeFusion] Fused function return type: i32
- [DEBUG][performCodeFusion] Non-struct return type detected: i32
- [DEBUG][performCodeFusion] Processing bunker block: %42
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: %43 = load i8*, i8** %24, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: %44 = call noalias i8* @strdup(i8* %43) #7 (opcode: call)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: store i8* %44, i8** @globalErrorMessage, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: %45 = load i8*, i8** @globalErrorMessage, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: %46 = icmp eq i8* %45, null (opcode: icmp)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: br i1 %46, label %47, label %50 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %39
- [DEBUG][performCodeFusion] Block %39 - Processing instruction: %40 = load i8*, i8** %24, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %39 - Processing instruction: %41 = icmp ne i8* %40, null (opcode: icmp)
- [DEBUG][performCodeFusion] Block %39 - Processing instruction: br i1 %41, label %42, label %51 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %47
- [DEBUG][performCodeFusion] Block %47 - Processing instruction: %48 = load %struct._IO_FILE*, %struct._IO_FILE** @stderr, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %47 - Processing instruction: %49 = call i32 (%struct._IO_FILE*, i8*, ...) @fprintf(%struct._IO_FILE* %48, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %47 - Processing instruction: br label %50 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %50
- [DEBUG][performCodeFusion] Block %50 - Processing instruction: br label %76 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %51
- [DEBUG][performCodeFusion] Block %51 - Processing instruction: store i8* null, i8** @globalErrorMessage, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %51 - Processing instruction: br label %bunker_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %27
- [DEBUG][performCodeFusion] Block %27 - Processing instruction: %28 = load i8*, i8** @globalErrorMessage, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %27 - Processing instruction: call void @free(i8* %28) #7 (opcode: call)
- [DEBUG][performCodeFusion] Block %27 - Processing instruction: br label %bunker_phi_0 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %23
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: %24 = alloca i8*, align 8 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: store i8* %1, i8** %24, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: %25 = load i8*, i8** @globalErrorMessage, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: %26 = icmp ne i8* %25, null (opcode: icmp)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: br i1 %26, label %27, label %39 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %76
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: ret void (opcode: ret)
- [DEBUG][performCodeFusion] Setting default bunker return value
- [DEBUG][performCodeFusion] Updated bunker return in block %76 with value type i32
- [DEBUG][performCodeFusion] Block %76 - Processing instruction: br label %bunker_phi_2 (opcode: br)
- [DEBUG][performCodeFusion] Removing extra instruction after return in block %76: br
- [DEBUG][performCodeFusion] Processing target block: %35
- [DEBUG][performCodeFusion] Block %35 - Processing instruction: %36 = load i32, i32* %10, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %35 - Processing instruction: %37 = icmp slt i32 %36, 10 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %35 - Processing instruction: br label %target_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %53
- [DEBUG][performCodeFusion] Block %53 - Processing instruction: %54 = load i32, i32* %7, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %53 - Processing instruction: %55 = icmp sgt i32 %54, 5 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %53 - Processing instruction: br i1 %55, label %56, label %59 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %56
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %57 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: %58 = icmp sgt i32 %57, 0 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %56 - Processing instruction: br i1 %58, label %66, label %69 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %59
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: %60 = getelementptr inbounds [14 x i8], [14 x i8]* %4, i64 0, i64 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: %61 = call i64 @strlen(i8* %60) #8 (opcode: call)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: %62 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: %63 = sext i32 %62 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: %64 = add i64 %61, %63 (opcode: add)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: %65 = trunc i64 %64 to i32 (opcode: trunc)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: store i32 %65, i32* %11, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %59 - Processing instruction: br label %72 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %69
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: %70 = load i32, i32* %9, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: %71 = call i32 @fused_quickSort(i1 true, i32* null, i32 0, i32 0, i32* null, i32 %70) (opcode: call)
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: store i32 %71, i32* %11, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: br label %74 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %72
- [DEBUG][performCodeFusion] Block %72 - Processing instruction: %73 = load i32, i32* %11, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %72 - Processing instruction: ret i32 %48 (opcode: ret)
- [DEBUG][performCodeFusion] Updated target return in block %72 with value type i32
- [DEBUG][performCodeFusion] Processing target block: %74
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: br label %target_phi_2 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %3
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %4 = alloca [14 x i8], align 1 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %5 = alloca [8 x i32], align 16 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %6 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %7 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %8 = alloca [100 x [100 x i32]], align 16 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %9 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %10 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %11 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %12 = call i32 @testPoints(i32 5) (opcode: call)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: call void @llvm.memset.p0i8.i64(i8* align 16 bitcast ([100 x i32]* @cache to i8*), i8 -1, i64 400, i1 false) (opcode: call)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %13 = bitcast [14 x i8]* %4 to i8* (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 %13, i8* align 1 getelementptr inbounds ([14 x i8], [14 x i8]* @__const.projectB_main.str, i32 0, i32 0), i64 14, i1 false) (opcode: call)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %14 = getelementptr inbounds [14 x i8], [14 x i8]* %4, i64 0, i64 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: call void @reverseString(i8* %14) (opcode: call)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %15 = bitcast [8 x i32]* %5 to i8* (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 16 %15, i8* align 16 bitcast ([8 x i32]* @__const.projectB_main.arr to i8*), i64 32, i1 false) (opcode: call)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: store i32 8, i32* %6, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %16 = getelementptr inbounds [8 x i32], [8 x i32]* %5, i64 0, i64 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %17 = load i32, i32* %6, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %18 = call i32 @fused_performSimpleCalculations(i1 true, i32* %16, i32 %17) (opcode: call)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: store i32 %18, i32* %7, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %19 = bitcast [100 x [100 x i32]]* %8 to i8* (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 16 %19, i8* align 16 bitcast (<{ <{ i32, i32, i32, [97 x i32] }>, <{ i32, i32, i32, [97 x i32] }>, <{ i32, i32, i32, [97 x i32] }>, [97 x <{ i32, i32, i32, [97 x i32] }>] }>* @__const.projectB_main.matrix to i8*), i64 40000, i1 false) (opcode: call)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %20 = getelementptr inbounds [100 x [100 x i32]], [100 x [100 x i32]]* %8, i64 0, i64 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %21 = call %fused_return_createDynamicArray_processMatrix @fused_createDynamicArray(i1 true, i32 0, [100 x i32]* %20, i32 3) (opcode: call)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: %extracted_target_return2target_ = extractvalue %fused_return_createDynamicArray_processMatrix %21, 0 (opcode: extractvalue)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: store i32 %extracted_target_return2target_, i32* %9, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: store i32 0, i32* %10, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %3 - Processing instruction: br label %target_phi_0 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %66
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %67 = load i32, i32* %7, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %68 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %67) (opcode: call)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %extracted_target_returntarget_ = extractvalue %fused_return_projectA_main_memoizedFib %68, 0 (opcode: extractvalue)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: store i32 %extracted_target_returntarget_, i32* %11, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: br label %74 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %30
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %31 = load i32, i32* %10, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %32 = call %fused_return_projectA_main_memoizedFib @fused_projectA_main(i1 true, i32 %31) (opcode: call)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %extracted_target_return1target_ = extractvalue %fused_return_projectA_main_memoizedFib %32, 0 (opcode: extractvalue)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %33 = load i32, i32* %10, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %34 = add nsw i32 %33, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: store i32 %34, i32* %10, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: br label %35 (opcode: br)
- [INFO][performCodeFusion] Listing all instructions after return repairing in function: fused_setErrorMessage
- ```mermaid: fused_setErrorMessage
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %2 = icmp eq i1 %0, true\n br i1 %2, label %3, label %target_skip_0\n"]
- target_cond_0 -->|true| 3
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 3["Block 3:\n %4 = alloca [14 x i8], align 1\n %5 = alloca [8 x i32], align 16\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca [100 x [100 x i32]], align 16\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n %11 = alloca i32, align 4\n %12 = call i32 @testPoints(i32 5)\n call void @llvm.memset.p0i8.i64(i8* align 16 ...\n %13 = bitcast [14 x i8]* %4 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n %14 = getelementptr inbounds [14 x i8], [14 x...\n call void @reverseString(i8* %14)\n %15 = bitcast [8 x i32]* %5 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n store i32 8, i32* %6, align 4\n %16 = getelementptr inbounds [8 x i32], [8 x ...\n %17 = load i32, i32* %6, align 4\n %18 = call i32 @fused_performSimpleCalculatio...\n store i32 %18, i32* %7, align 4\n %19 = bitcast [100 x [100 x i32]]* %8 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n %20 = getelementptr inbounds [100 x [100 x i3...\n %21 = call %fused_return_createDynamicArray_p...\n %extracted_target_return2target_ = extractval...\n store i32 %extracted_target_return2target_, i...\n store i32 0, i32* %10, align 4\n br label %target_phi_0\n"]
- 3 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %22 = icmp eq i1 %0, false\n br i1 %22, label %23, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 23
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 23["Block 23:\n %24 = alloca i8*, align 8\n store i8* %1, i8** %24, align 8\n %25 = load i8*, i8** @globalErrorMessage, ali...\n %26 = icmp ne i8* %25, null\n br i1 %26, label %27, label %39\n"]
- 23 -->|true| 27
- 23 -->|false| 39
- 27["Block 27:\n %28 = load i8*, i8** @globalErrorMessage, ali...\n call void @free(i8* %28) #7\n br label %bunker_phi_0\n"]
- 27 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %29 = icmp eq i1 %0, true\n br i1 %29, label %30, label %target_skip_1\n"]
- target_cond_1 -->|true| 30
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 30["Block 30:\n %31 = load i32, i32* %10, align 4\n %32 = call %fused_return_projectA_main_memoiz...\n %extracted_target_return1target_ = extractval...\n %33 = load i32, i32* %10, align 4\n %34 = add nsw i32 %33, 1\n store i32 %34, i32* %10, align 4\n br label %35\n"]
- 30 --> 35
- 35["Block 35:\n %36 = load i32, i32* %10, align 4\n %37 = icmp slt i32 %36, 10\n br label %target_phi_1\n"]
- 35 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %38 = icmp eq i1 %0, false\n br i1 %38, label %39, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 39
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n br label %target_cond_2\n"]
- bunker_phi_1 --> target_cond_2
- 39["Block 39:\n %40 = load i8*, i8** %24, align 8\n %41 = icmp ne i8* %40, null\n br i1 %41, label %42, label %51\n"]
- 39 -->|true| 42
- 39 -->|false| 51
- 42["Block 42:\n %43 = load i8*, i8** %24, align 8\n %44 = call noalias i8* @strdup(i8* %43) #7\n store i8* %44, i8** @globalErrorMessage, align 8\n %45 = load i8*, i8** @globalErrorMessage, ali...\n %46 = icmp eq i8* %45, null\n br i1 %46, label %47, label %50\n"]
- 42 -->|true| 47
- 42 -->|false| 50
- 47["Block 47:\n %48 = load %struct._IO_FILE*, %struct._IO_FIL...\n %49 = call i32 (%struct._IO_FILE*, i8*, ...) ...\n br label %50\n"]
- 47 --> 50
- 50["Block 50:\n br label %76\n"]
- 50 --> 76
- 51["Block 51:\n store i8* null, i8** @globalErrorMessage, ali...\n br label %bunker_phi_1\n"]
- 51 --> bunker_phi_1
- target_cond_2["Block target_cond_2:\n %52 = icmp eq i1 %0, true\n br i1 %52, label %53, label %target_skip_2\n"]
- target_cond_2 -->|true| 53
- target_cond_2 -->|false| target_skip_2
- target_skip_2["Block target_skip_2:\n br label %target_phi_2\n"]
- target_skip_2 --> target_phi_2
- target_phi_2["Block target_phi_2:\n br label %bunker_cond_2\n"]
- target_phi_2 --> bunker_cond_2
- 53["Block 53:\n %54 = load i32, i32* %7, align 4\n %55 = icmp sgt i32 %54, 5\n br i1 %55, label %56, label %59\n"]
- 53 -->|true| 56
- 53 -->|false| 59
- 56["Block 56:\n %57 = load i32, i32* %9, align 4\n %58 = icmp sgt i32 %57, 0\n br i1 %58, label %66, label %69\n"]
- 56 -->|true| 66
- 56 -->|false| 69
- 59["Block 59:\n %60 = getelementptr inbounds [14 x i8], [14 x...\n %61 = call i64 @strlen(i8* %60) #8\n %62 = load i32, i32* %9, align 4\n %63 = sext i32 %62 to i64\n %64 = add i64 %61, %63\n %65 = trunc i64 %64 to i32\n store i32 %65, i32* %11, align 4\n br label %72\n"]
- 59 --> 72
- 66["Block 66:\n %67 = load i32, i32* %7, align 4\n %68 = call %fused_return_projectA_main_memoiz...\n %extracted_target_returntarget_ = extractvalu...\n store i32 %extracted_target_returntarget_, i3...\n br label %74\n"]
- 66 --> 74
- 69["Block 69:\n %70 = load i32, i32* %9, align 4\n %71 = call i32 @fused_quickSort(i1 true, i32*...\n store i32 %71, i32* %11, align 4\n br label %74\n"]
- 69 --> 74
- 72["Block 72:\n %73 = load i32, i32* %11, align 4\n ret i32 %48\n"]
- 74["Block 74:\n br label %target_phi_2\n"]
- 74 --> target_phi_2
- bunker_cond_2["Block bunker_cond_2:\n %75 = icmp eq i1 %0, false\n br i1 %75, label %76, label %bunker_skip_2\n"]
- bunker_cond_2 -->|true| 76
- bunker_cond_2 -->|false| bunker_skip_2
- bunker_skip_2["Block bunker_skip_2:\n br label %bunker_phi_2\n"]
- bunker_skip_2 --> bunker_phi_2
- bunker_phi_2["Block bunker_phi_2:\n ret i32 0\n"]
- 76["Block 76:\n ret i32 0\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %44 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0)) to %44 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %29 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0)) to %29 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %23 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0)) to %23 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.7, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %19 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0)) to %19 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.31, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %318 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.31, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.31, i64 0, i64 0)) to %318 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.31, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %49 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0)) to %49 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %33 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0)) to %33 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.14, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %26 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0)) to %26 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.13, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.55, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %139 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.55, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.55, i64 0, i64 0)) to %139 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.55, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.54, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %128 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.54, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.54, i64 0, i64 0)) to %128 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.54, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.53, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %48 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.53, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.53, i64 0, i64 0)) to %48 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.53, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.52, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %33 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.52, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.52, i64 0, i64 0)) to %33 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.52, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.51, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %26 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.51, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.51, i64 0, i64 0)) to %26 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.51, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.50, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %21 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.50, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.50, i64 0, i64 0)) to %21 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.50, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.49, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %14 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.49, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.49, i64 0, i64 0)) to %14 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.49, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.48, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %71 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.48, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.48, i64 0, i64 0)) to %71 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.48, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.47, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %53 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.47, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.47, i64 0, i64 0)) to %53 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.47, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.46, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %36 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.46, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.46, i64 0, i64 0)) to %36 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.46, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %25 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0)) to %25 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.45, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %14 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.45, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.45, i64 0, i64 0)) to %14 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.45, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %8 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0)) to %8 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.44, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %85 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.44, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.44, i64 0, i64 0)) to %85 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.44, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.43, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %77 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.43, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.43, i64 0, i64 0)) to %77 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.43, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.40, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %58 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.40, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.40, i64 0, i64 0)) to %58 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.40, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.39, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %38 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.39, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.39, i64 0, i64 0)) to %38 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.39, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.38, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %24 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.38, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.38, i64 0, i64 0)) to %24 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.38, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %18 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0)) to %18 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.36, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %12 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.36, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.36, i64 0, i64 0)) to %12 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.36, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.35, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %99 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.35, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.35, i64 0, i64 0)) to %99 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.35, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %77 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0)) to %77 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.33, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %41 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.33, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.33, i64 0, i64 0)) to %41 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.33, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.32, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %19 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.32, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.32, i64 0, i64 0)) to %19 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.32, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.26, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %55 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.26, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.26, i64 0, i64 0)) to %55 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.26, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.25, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %15 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.25, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.25, i64 0, i64 0)) to %15 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.25, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.24, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %118 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.24, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.24, i64 0, i64 0)) to %118 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.24, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %51 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0)) to %51 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.23, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %40 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.23, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.23, i64 0, i64 0)) to %40 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.23, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %31 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0)) to %31 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %20 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0)) to %20 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.21, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.20, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %105 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.20, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.20, i64 0, i64 0)) to %105 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.20, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %57 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0)) to %57 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %28 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0)) to %28 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %22 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0)) to %22 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %15 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0)) to %15 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %45 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0)) to %45 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %16 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0)) to %16 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %10 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0)) to %10 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %43 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0)) to %43 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %22 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0)) to %22 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %16 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0)) to %16 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
- [DEBUG][updateCallSite] Original call instruction:
- call void @setErrorMessage(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] New call instruction:
- %10 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @setErrorMessage(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0)) to %10 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
- [INFO][performCodeFusion] Listing all instructions after update calls in function: fused_setErrorMessage
- ```mermaid: fused_setErrorMessage
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %2 = icmp eq i1 %0, true\n br i1 %2, label %3, label %target_skip_0\n"]
- target_cond_0 -->|true| 3
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 3["Block 3:\n %4 = alloca [14 x i8], align 1\n %5 = alloca [8 x i32], align 16\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca [100 x [100 x i32]], align 16\n %9 = alloca i32, align 4\n %10 = alloca i32, align 4\n %11 = alloca i32, align 4\n %12 = call i32 @testPoints(i32 5)\n call void @llvm.memset.p0i8.i64(i8* align 16 ...\n %13 = bitcast [14 x i8]* %4 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n %14 = getelementptr inbounds [14 x i8], [14 x...\n call void @reverseString(i8* %14)\n %15 = bitcast [8 x i32]* %5 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n store i32 8, i32* %6, align 4\n %16 = getelementptr inbounds [8 x i32], [8 x ...\n %17 = load i32, i32* %6, align 4\n %18 = call i32 @fused_performSimpleCalculatio...\n store i32 %18, i32* %7, align 4\n %19 = bitcast [100 x [100 x i32]]* %8 to i8*\n call void @llvm.memcpy.p0i8.p0i8.i64(i8* alig...\n %20 = getelementptr inbounds [100 x [100 x i3...\n %21 = call %fused_return_createDynamicArray_p...\n %extracted_target_return2target_ = extractval...\n store i32 %extracted_target_return2target_, i...\n store i32 0, i32* %10, align 4\n br label %target_phi_0\n"]
- 3 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %22 = icmp eq i1 %0, false\n br i1 %22, label %23, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 23
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 23["Block 23:\n %24 = alloca i8*, align 8\n store i8* %1, i8** %24, align 8\n %25 = load i8*, i8** @globalErrorMessage, ali...\n %26 = icmp ne i8* %25, null\n br i1 %26, label %27, label %39\n"]
- 23 -->|true| 27
- 23 -->|false| 39
- 27["Block 27:\n %28 = load i8*, i8** @globalErrorMessage, ali...\n call void @free(i8* %28) #7\n br label %bunker_phi_0\n"]
- 27 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %29 = icmp eq i1 %0, true\n br i1 %29, label %30, label %target_skip_1\n"]
- target_cond_1 -->|true| 30
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 30["Block 30:\n %31 = load i32, i32* %10, align 4\n %32 = call %fused_return_projectA_main_memoiz...\n %extracted_target_return1target_ = extractval...\n %33 = load i32, i32* %10, align 4\n %34 = add nsw i32 %33, 1\n store i32 %34, i32* %10, align 4\n br label %35\n"]
- 30 --> 35
- 35["Block 35:\n %36 = load i32, i32* %10, align 4\n %37 = icmp slt i32 %36, 10\n br label %target_phi_1\n"]
- 35 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %38 = icmp eq i1 %0, false\n br i1 %38, label %39, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 39
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n br label %target_cond_2\n"]
- bunker_phi_1 --> target_cond_2
- 39["Block 39:\n %40 = load i8*, i8** %24, align 8\n %41 = icmp ne i8* %40, null\n br i1 %41, label %42, label %51\n"]
- 39 -->|true| 42
- 39 -->|false| 51
- 42["Block 42:\n %43 = load i8*, i8** %24, align 8\n %44 = call noalias i8* @strdup(i8* %43) #7\n store i8* %44, i8** @globalErrorMessage, align 8\n %45 = load i8*, i8** @globalErrorMessage, ali...\n %46 = icmp eq i8* %45, null\n br i1 %46, label %47, label %50\n"]
- 42 -->|true| 47
- 42 -->|false| 50
- 47["Block 47:\n %48 = load %struct._IO_FILE*, %struct._IO_FIL...\n %49 = call i32 (%struct._IO_FILE*, i8*, ...) ...\n br label %50\n"]
- 47 --> 50
- 50["Block 50:\n br label %76\n"]
- 50 --> 76
- 51["Block 51:\n store i8* null, i8** @globalErrorMessage, ali...\n br label %bunker_phi_1\n"]
- 51 --> bunker_phi_1
- target_cond_2["Block target_cond_2:\n %52 = icmp eq i1 %0, true\n br i1 %52, label %53, label %target_skip_2\n"]
- target_cond_2 -->|true| 53
- target_cond_2 -->|false| target_skip_2
- target_skip_2["Block target_skip_2:\n br label %target_phi_2\n"]
- target_skip_2 --> target_phi_2
- target_phi_2["Block target_phi_2:\n br label %bunker_cond_2\n"]
- target_phi_2 --> bunker_cond_2
- 53["Block 53:\n %54 = load i32, i32* %7, align 4\n %55 = icmp sgt i32 %54, 5\n br i1 %55, label %56, label %59\n"]
- 53 -->|true| 56
- 53 -->|false| 59
- 56["Block 56:\n %57 = load i32, i32* %9, align 4\n %58 = icmp sgt i32 %57, 0\n br i1 %58, label %66, label %69\n"]
- 56 -->|true| 66
- 56 -->|false| 69
- 59["Block 59:\n %60 = getelementptr inbounds [14 x i8], [14 x...\n %61 = call i64 @strlen(i8* %60) #8\n %62 = load i32, i32* %9, align 4\n %63 = sext i32 %62 to i64\n %64 = add i64 %61, %63\n %65 = trunc i64 %64 to i32\n store i32 %65, i32* %11, align 4\n br label %72\n"]
- 59 --> 72
- 66["Block 66:\n %67 = load i32, i32* %7, align 4\n %68 = call %fused_return_projectA_main_memoiz...\n %extracted_target_returntarget_ = extractvalu...\n store i32 %extracted_target_returntarget_, i3...\n br label %74\n"]
- 66 --> 74
- 69["Block 69:\n %70 = load i32, i32* %9, align 4\n %71 = call i32 @fused_quickSort(i1 true, i32*...\n store i32 %71, i32* %11, align 4\n br label %74\n"]
- 69 --> 74
- 72["Block 72:\n %73 = load i32, i32* %11, align 4\n ret i32 <badref>\n"]
- 74["Block 74:\n br label %target_phi_2\n"]
- 74 --> target_phi_2
- bunker_cond_2["Block bunker_cond_2:\n %75 = icmp eq i1 %0, false\n br i1 %75, label %76, label %bunker_skip_2\n"]
- bunker_cond_2 -->|true| 76
- bunker_cond_2 -->|false| bunker_skip_2
- bunker_skip_2["Block bunker_skip_2:\n br label %bunker_phi_2\n"]
- bunker_skip_2 --> bunker_phi_2
- bunker_phi_2["Block bunker_phi_2:\n ret i32 0\n"]
- 76["Block 76:\n ret i32 0\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [INFO][performCodeFusion] Completed function fusion: fused_setErrorMessage
- [INFO][performCodeFusion] Processing function pair: target=reverseString, bunker=createMatrix
- [INFO][performCodeFusion] adding: %5
- [INFO][performCodeFusion] before push Block ID: %5
- [INFO][performCodeFusion] adding: %129
- [INFO][performCodeFusion] adding: %134
- [INFO][performCodeFusion] adding: %160
- [INFO][performCodeFusion] adding: %161
- [INFO][performCodeFusion] before push Block ID: %129
- [INFO][performCodeFusion] before push Block ID: %134
- [INFO][performCodeFusion] before push Block ID: %160
- [INFO][performCodeFusion] before push Block ID: %161
- [INFO][performCodeFusion] Listing all instructions after block cloning in function: fused_createMatrix
- ```mermaid: fused_createMatrix
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %4 = icmp eq i1 %0, true\n br i1 %4, label %5, label %target_skip_0\n"]
- target_cond_0 -->|true| 5
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 5["Block 5:\n %6 = alloca i8*, align 8\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n %9 = alloca i8, align 1\n store i8* %3, i8** %6, align 8\n %10 = load i8*, i8** %6, align 8\n %11 = call i64 @strlen(i8* %10) #7\n %12 = trunc i64 %11 to i32\n store i32 %12, i32* %7, align 4\n store i32 0, i32* %8, align 4\n br label %target_phi_0\n"]
- 5 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %13 = icmp eq i1 %0, false\n br i1 %13, label %14, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 14
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 14["Block 14:\n %15 = alloca %struct.Matrix*, align 8\n %16 = alloca i32, align 4\n %17 = alloca i32, align 4\n %18 = alloca %struct.Matrix*, align 8\n %19 = alloca i32, align 4\n %20 = alloca i32, align 4\n store i32 %1, i32* %16, align 4\n store i32 %2, i32* %17, align 4\n %21 = load i32, i32* %16, align 4\n %22 = icmp slt i32 %21, 1\n br i1 %22, label %26, label %23\n"]
- 14 -->|true| 26
- 14 -->|false| 23
- 23["Block 23:\n %24 = load i32, i32* %17, align 4\n %25 = icmp slt i32 %24, 1\n br i1 %25, label %26, label %28\n"]
- 23 -->|true| 26
- 23 -->|false| 28
- 26["Block 26:\n %27 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 26 --> 165
- 28["Block 28:\n %29 = load i32, i32* %16, align 4\n %30 = icmp sgt i32 %29, 100\n br i1 %30, label %34, label %31\n"]
- 28 -->|true| 34
- 28 -->|false| 31
- 31["Block 31:\n %32 = load i32, i32* %17, align 4\n %33 = icmp sgt i32 %32, 100\n br i1 %33, label %34, label %36\n"]
- 31 -->|true| 34
- 31 -->|false| 36
- 34["Block 34:\n %35 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 34 --> 165
- 36["Block 36:\n %37 = call noalias i8* @malloc(i64 32) #8\n %38 = bitcast i8* %37 to %struct.Matrix*\n store %struct.Matrix* %38, %struct.Matrix** %...\n %39 = load %struct.Matrix*, %struct.Matrix** ...\n %40 = icmp ne %struct.Matrix* %39, null\n br i1 %40, label %43, label %41\n"]
- 36 -->|true| 43
- 36 -->|false| 41
- 41["Block 41:\n %42 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 41 --> 165
- 43["Block 43:\n %44 = load i32, i32* %16, align 4\n %45 = load %struct.Matrix*, %struct.Matrix** ...\n %46 = getelementptr inbounds %struct.Matrix, ...\n store i32 %44, i32* %46, align 8\n %47 = load i32, i32* %17, align 4\n %48 = load %struct.Matrix*, %struct.Matrix** ...\n %49 = getelementptr inbounds %struct.Matrix, ...\n store i32 %47, i32* %49, align 4\n %50 = load i32, i32* %16, align 4\n %51 = load i32, i32* %17, align 4\n %52 = icmp eq i32 %50, %51\n %53 = zext i1 %52 to i32\n %54 = load %struct.Matrix*, %struct.Matrix** ...\n %55 = getelementptr inbounds %struct.Matrix, ...\n store i32 %53, i32* %55, align 8\n %56 = load %struct.Matrix*, %struct.Matrix** ...\n %57 = getelementptr inbounds %struct.Matrix, ...\n store double 0.000000e+00, double* %57, align 8\n %58 = load i32, i32* %16, align 4\n %59 = sext i32 %58 to i64\n %60 = mul i64 %59, 8\n %61 = call noalias i8* @malloc(i64 %60) #8\n %62 = bitcast i8* %61 to i32**\n %63 = load %struct.Matrix*, %struct.Matrix** ...\n %64 = getelementptr inbounds %struct.Matrix, ...\n store i32** %62, i32*** %64, align 8\n %65 = load %struct.Matrix*, %struct.Matrix** ...\n %66 = getelementptr inbounds %struct.Matrix, ...\n %67 = load i32**, i32*** %66, align 8\n %68 = icmp ne i32** %67, null\n br i1 %68, label %73, label %69\n"]
- 43 -->|true| 73
- 43 -->|false| 69
- 69["Block 69:\n %70 = load %struct.Matrix*, %struct.Matrix** ...\n %71 = bitcast %struct.Matrix* %70 to i8*\n call void @free(i8* %71) #8\n %72 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 69 --> 165
- 73["Block 73:\n store i32 0, i32* %19, align 4\n br label %74\n"]
- 73 --> 74
- 74["Block 74:\n %75 = load i32, i32* %19, align 4\n %76 = load i32, i32* %16, align 4\n %77 = icmp slt i32 %75, %76\n br i1 %77, label %78, label %126\n"]
- 74 -->|true| 78
- 74 -->|false| 126
- 78["Block 78:\n %79 = load i32, i32* %17, align 4\n %80 = sext i32 %79 to i64\n %81 = call noalias i8* @calloc(i64 %80, i64 4...\n %82 = bitcast i8* %81 to i32*\n %83 = load %struct.Matrix*, %struct.Matrix** ...\n %84 = getelementptr inbounds %struct.Matrix, ...\n %85 = load i32**, i32*** %84, align 8\n %86 = load i32, i32* %19, align 4\n %87 = sext i32 %86 to i64\n %88 = getelementptr inbounds i32*, i32** %85,...\n store i32* %82, i32** %88, align 8\n %89 = load %struct.Matrix*, %struct.Matrix** ...\n %90 = getelementptr inbounds %struct.Matrix, ...\n %91 = load i32**, i32*** %90, align 8\n %92 = load i32, i32* %19, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds i32*, i32** %91,...\n %95 = load i32*, i32** %94, align 8\n %96 = icmp ne i32* %95, null\n br i1 %96, label %122, label %97\n"]
- 78 -->|true| 122
- 78 -->|false| 97
- 97["Block 97:\n store i32 0, i32* %20, align 4\n br label %98\n"]
- 97 --> 98
- 98["Block 98:\n %99 = load i32, i32* %20, align 4\n %100 = load i32, i32* %19, align 4\n %101 = icmp slt i32 %99, %100\n br i1 %101, label %102, label %114\n"]
- 98 -->|true| 102
- 98 -->|false| 114
- 102["Block 102:\n %103 = load %struct.Matrix*, %struct.Matrix**...\n %104 = getelementptr inbounds %struct.Matrix,...\n %105 = load i32**, i32*** %104, align 8\n %106 = load i32, i32* %20, align 4\n %107 = sext i32 %106 to i64\n %108 = getelementptr inbounds i32*, i32** %10...\n %109 = load i32*, i32** %108, align 8\n %110 = bitcast i32* %109 to i8*\n call void @free(i8* %110) #8\n br label %111\n"]
- 102 --> 111
- 111["Block 111:\n %112 = load i32, i32* %20, align 4\n %113 = add nsw i32 %112, 1\n store i32 %113, i32* %20, align 4\n br label %98\n"]
- 111 --> 98
- 114["Block 114:\n %115 = load %struct.Matrix*, %struct.Matrix**...\n %116 = getelementptr inbounds %struct.Matrix,...\n %117 = load i32**, i32*** %116, align 8\n %118 = bitcast i32** %117 to i8*\n call void @free(i8* %118) #8\n %119 = load %struct.Matrix*, %struct.Matrix**...\n %120 = bitcast %struct.Matrix* %119 to i8*\n call void @free(i8* %120) #8\n %121 = call i32 @fused_setErrorMessage(i1 fal...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 114 --> 165
- 122["Block 122:\n br label %123\n"]
- 122 --> 123
- 123["Block 123:\n %124 = load i32, i32* %19, align 4\n %125 = add nsw i32 %124, 1\n store i32 %125, i32* %19, align 4\n br label %74\n"]
- 123 --> 74
- 126["Block 126:\n %127 = load %struct.Matrix*, %struct.Matrix**...\n store %struct.Matrix* %127, %struct.Matrix** ...\n br label %bunker_phi_0\n"]
- 126 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %128 = icmp eq i1 %0, true\n br i1 %128, label %129, label %target_skip_1\n"]
- target_cond_1 -->|true| 129
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 129["Block 129:\n %130 = load i32, i32* %8, align 4\n %131 = load i32, i32* %7, align 4\n %132 = sdiv i32 %131, 2\n %133 = icmp slt i32 %130, %132\n br i1 %133, label %134, label %160\n"]
- 129 -->|true| 134
- 129 -->|false| 160
- 134["Block 134:\n %135 = load i8*, i8** %6, align 8\n %136 = load i32, i32* %8, align 4\n %137 = sext i32 %136 to i64\n %138 = getelementptr inbounds i8, i8* %135, i...\n %139 = load i8, i8* %138, align 1\n store i8 %139, i8* %9, align 1\n %140 = load i8*, i8** %6, align 8\n %141 = load i32, i32* %7, align 4\n %142 = sub nsw i32 %141, 1\n %143 = load i32, i32* %8, align 4\n %144 = sub nsw i32 %142, %143\n %145 = sext i32 %144 to i64\n %146 = getelementptr inbounds i8, i8* %140, i...\n %147 = load i8, i8* %146, align 1\n %148 = load i8*, i8** %6, align 8\n %149 = load i32, i32* %8, align 4\n %150 = sext i32 %149 to i64\n %151 = getelementptr inbounds i8, i8* %148, i...\n store i8 %147, i8* %151, align 1\n %152 = load i8, i8* %9, align 1\n %153 = load i8*, i8** %6, align 8\n %154 = load i32, i32* %7, align 4\n %155 = sub nsw i32 %154, 1\n %156 = load i32, i32* %8, align 4\n %157 = sub nsw i32 %155, %156\n %158 = sext i32 %157 to i64\n %159 = getelementptr inbounds i8, i8* %153, i...\n store i8 %152, i8* %159, align 1\n br label %161\n"]
- 134 --> 161
- 160["Block 160:\n ret void\n"]
- 161["Block 161:\n %162 = load i32, i32* %8, align 4\n %163 = add nsw i32 %162, 1\n store i32 %163, i32* %8, align 4\n br label %target_phi_1\n"]
- 161 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %164 = icmp eq i1 %0, false\n br i1 %164, label %165, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 165
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret %struct.Matrix* null\n"]
- 165["Block 165:\n %166 = load %struct.Matrix*, %struct.Matrix**...\n ret %struct.Matrix* %166\n br label %bunker_phi_1\n"]
- 165 --> bunker_phi_1
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][performCodeFusion] Processing return values for fused function: fused_createMatrix
- [DEBUG][performCodeFusion] Fused function return type: struct.Matrix*
- [DEBUG][performCodeFusion] Non-struct return type detected: struct.Matrix*
- [DEBUG][performCodeFusion] Processing bunker block: %74
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %75 = load i32, i32* %19, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %76 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: %77 = icmp slt i32 %75, %76 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %74 - Processing instruction: br i1 %77, label %78, label %126 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %14
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %15 = alloca %struct.Matrix*, align 8 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %16 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %17 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %18 = alloca %struct.Matrix*, align 8 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %19 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %20 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: store i32 %1, i32* %16, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: store i32 %2, i32* %17, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %21 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: %22 = icmp slt i32 %21, 1 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %14 - Processing instruction: br i1 %22, label %26, label %23 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %97
- [DEBUG][performCodeFusion] Block %97 - Processing instruction: store i32 0, i32* %20, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %97 - Processing instruction: br label %98 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %73
- [DEBUG][performCodeFusion] Block %73 - Processing instruction: store i32 0, i32* %19, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %73 - Processing instruction: br label %74 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %28
- [DEBUG][performCodeFusion] Block %28 - Processing instruction: %29 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %28 - Processing instruction: %30 = icmp sgt i32 %29, 100 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %28 - Processing instruction: br i1 %30, label %34, label %31 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %122
- [DEBUG][performCodeFusion] Block %122 - Processing instruction: br label %123 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %123
- [DEBUG][performCodeFusion] Block %123 - Processing instruction: %124 = load i32, i32* %19, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %123 - Processing instruction: %125 = add nsw i32 %124, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %123 - Processing instruction: store i32 %125, i32* %19, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %123 - Processing instruction: br label %74 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %126
- [DEBUG][performCodeFusion] Block %126 - Processing instruction: %127 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %126 - Processing instruction: store %struct.Matrix* %127, %struct.Matrix** %15, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %126 - Processing instruction: br label %bunker_phi_0 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %43
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %44 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %45 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %46 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %45, i32 0, i32 1 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: store i32 %44, i32* %46, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %47 = load i32, i32* %17, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %48 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %49 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %48, i32 0, i32 2 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: store i32 %47, i32* %49, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %50 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %51 = load i32, i32* %17, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %52 = icmp eq i32 %50, %51 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %53 = zext i1 %52 to i32 (opcode: zext)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %54 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %55 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %54, i32 0, i32 3 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: store i32 %53, i32* %55, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %56 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %57 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %56, i32 0, i32 4 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: store double 0.000000e+00, double* %57, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %58 = load i32, i32* %16, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %59 = sext i32 %58 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %60 = mul i64 %59, 8 (opcode: mul)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %61 = call noalias i8* @malloc(i64 %60) #8 (opcode: call)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %62 = bitcast i8* %61 to i32** (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %63 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %64 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %63, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: store i32** %62, i32*** %64, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %65 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %66 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %65, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %67 = load i32**, i32*** %66, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %68 = icmp ne i32** %67, null (opcode: icmp)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: br i1 %68, label %73, label %69 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %41
- [DEBUG][performCodeFusion] Block %41 - Processing instruction: %42 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.18, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %41 - Processing instruction: store %struct.Matrix* null, %struct.Matrix** %15, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %41 - Processing instruction: br label %165 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %36
- [DEBUG][performCodeFusion] Block %36 - Processing instruction: %37 = call noalias i8* @malloc(i64 32) #8 (opcode: call)
- [DEBUG][performCodeFusion] Block %36 - Processing instruction: %38 = bitcast i8* %37 to %struct.Matrix* (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %36 - Processing instruction: store %struct.Matrix* %38, %struct.Matrix** %18, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %36 - Processing instruction: %39 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %36 - Processing instruction: %40 = icmp ne %struct.Matrix* %39, null (opcode: icmp)
- [DEBUG][performCodeFusion] Block %36 - Processing instruction: br i1 %40, label %43, label %41 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %34
- [DEBUG][performCodeFusion] Block %34 - Processing instruction: %35 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %34 - Processing instruction: store %struct.Matrix* null, %struct.Matrix** %15, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %34 - Processing instruction: br label %165 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %69
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: %70 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: %71 = bitcast %struct.Matrix* %70 to i8* (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: call void @free(i8* %71) #8 (opcode: call)
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: %72 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: store %struct.Matrix* null, %struct.Matrix** %15, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %69 - Processing instruction: br label %165 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %31
- [DEBUG][performCodeFusion] Block %31 - Processing instruction: %32 = load i32, i32* %17, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %31 - Processing instruction: %33 = icmp sgt i32 %32, 100 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %31 - Processing instruction: br i1 %33, label %34, label %36 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %26
- [DEBUG][performCodeFusion] Block %26 - Processing instruction: %27 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %26 - Processing instruction: store %struct.Matrix* null, %struct.Matrix** %15, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %26 - Processing instruction: br label %165 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %78
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %79 = load i32, i32* %17, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %80 = sext i32 %79 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %81 = call noalias i8* @calloc(i64 %80, i64 4) #8 (opcode: call)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %82 = bitcast i8* %81 to i32* (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %83 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %84 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %83, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %85 = load i32**, i32*** %84, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %86 = load i32, i32* %19, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %87 = sext i32 %86 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %88 = getelementptr inbounds i32*, i32** %85, i64 %87 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: store i32* %82, i32** %88, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %89 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %90 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %89, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %91 = load i32**, i32*** %90, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %92 = load i32, i32* %19, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %93 = sext i32 %92 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %94 = getelementptr inbounds i32*, i32** %91, i64 %93 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %95 = load i32*, i32** %94, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: %96 = icmp ne i32* %95, null (opcode: icmp)
- [DEBUG][performCodeFusion] Block %78 - Processing instruction: br i1 %96, label %122, label %97 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %102
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: %103 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: %104 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %103, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: %105 = load i32**, i32*** %104, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: %106 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: %107 = sext i32 %106 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: %108 = getelementptr inbounds i32*, i32** %105, i64 %107 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: %109 = load i32*, i32** %108, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: %110 = bitcast i32* %109 to i8* (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: call void @free(i8* %110) #8 (opcode: call)
- [DEBUG][performCodeFusion] Block %102 - Processing instruction: br label %111 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %98
- [DEBUG][performCodeFusion] Block %98 - Processing instruction: %99 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %98 - Processing instruction: %100 = load i32, i32* %19, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %98 - Processing instruction: %101 = icmp slt i32 %99, %100 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %98 - Processing instruction: br i1 %101, label %102, label %114 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %111
- [DEBUG][performCodeFusion] Block %111 - Processing instruction: %112 = load i32, i32* %20, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %111 - Processing instruction: %113 = add nsw i32 %112, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %111 - Processing instruction: store i32 %113, i32* %20, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %111 - Processing instruction: br label %98 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %114
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: %115 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: %116 = getelementptr inbounds %struct.Matrix, %struct.Matrix* %115, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: %117 = load i32**, i32*** %116, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: %118 = bitcast i32** %117 to i8* (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: call void @free(i8* %118) #8 (opcode: call)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: %119 = load %struct.Matrix*, %struct.Matrix** %18, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: %120 = bitcast %struct.Matrix* %119 to i8* (opcode: bitcast)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: call void @free(i8* %120) #8 (opcode: call)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: %121 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.20, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: store %struct.Matrix* null, %struct.Matrix** %15, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %114 - Processing instruction: br label %165 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %23
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: %24 = load i32, i32* %17, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: %25 = icmp slt i32 %24, 1 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %23 - Processing instruction: br i1 %25, label %26, label %28 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %165
- [DEBUG][performCodeFusion] Block %165 - Processing instruction: %166 = load %struct.Matrix*, %struct.Matrix** %15, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %165 - Processing instruction: ret %struct.Matrix* %166 (opcode: ret)
- [DEBUG][performCodeFusion] Updated bunker return in block %165 with value type struct.Matrix*
- [DEBUG][performCodeFusion] Block %165 - Processing instruction: br label %bunker_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Removing extra instruction after return in block %165: br
- [DEBUG][performCodeFusion] Processing target block: %5
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: %6 = alloca i8*, align 8 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: %7 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: %8 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: %9 = alloca i8, align 1 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: store i8* %3, i8** %6, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: %10 = load i8*, i8** %6, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: %11 = call i64 @strlen(i8* %10) #7 (opcode: call)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: %12 = trunc i64 %11 to i32 (opcode: trunc)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: store i32 %12, i32* %7, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: store i32 0, i32* %8, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %5 - Processing instruction: br label %target_phi_0 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %160
- [DEBUG][performCodeFusion] Block %160 - Processing instruction: ret void (opcode: ret)
- [DEBUG][performCodeFusion] Setting default target return value
- [DEBUG][performCodeFusion] Updated target return in block %160 with value type struct.Matrix*
- [DEBUG][performCodeFusion] Processing target block: %161
- [DEBUG][performCodeFusion] Block %161 - Processing instruction: %162 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %161 - Processing instruction: %163 = add nsw i32 %162, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %161 - Processing instruction: store i32 %163, i32* %8, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %161 - Processing instruction: br label %target_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %129
- [DEBUG][performCodeFusion] Block %129 - Processing instruction: %130 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %129 - Processing instruction: %131 = load i32, i32* %7, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %129 - Processing instruction: %132 = sdiv i32 %131, 2 (opcode: sdiv)
- [DEBUG][performCodeFusion] Block %129 - Processing instruction: %133 = icmp slt i32 %130, %132 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %129 - Processing instruction: br i1 %133, label %134, label %160 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %134
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %135 = load i8*, i8** %6, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %136 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %137 = sext i32 %136 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %138 = getelementptr inbounds i8, i8* %135, i64 %137 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %139 = load i8, i8* %138, align 1 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: store i8 %139, i8* %9, align 1 (opcode: store)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %140 = load i8*, i8** %6, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %141 = load i32, i32* %7, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %142 = sub nsw i32 %141, 1 (opcode: sub)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %143 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %144 = sub nsw i32 %142, %143 (opcode: sub)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %145 = sext i32 %144 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %146 = getelementptr inbounds i8, i8* %140, i64 %145 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %147 = load i8, i8* %146, align 1 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %148 = load i8*, i8** %6, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %149 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %150 = sext i32 %149 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %151 = getelementptr inbounds i8, i8* %148, i64 %150 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: store i8 %147, i8* %151, align 1 (opcode: store)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %152 = load i8, i8* %9, align 1 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %153 = load i8*, i8** %6, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %154 = load i32, i32* %7, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %155 = sub nsw i32 %154, 1 (opcode: sub)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %156 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %157 = sub nsw i32 %155, %156 (opcode: sub)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %158 = sext i32 %157 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: %159 = getelementptr inbounds i8, i8* %153, i64 %158 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: store i8 %152, i8* %159, align 1 (opcode: store)
- [DEBUG][performCodeFusion] Block %134 - Processing instruction: br label %161 (opcode: br)
- [INFO][performCodeFusion] Listing all instructions after return repairing in function: fused_createMatrix
- ```mermaid: fused_createMatrix
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %4 = icmp eq i1 %0, true\n br i1 %4, label %5, label %target_skip_0\n"]
- target_cond_0 -->|true| 5
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 5["Block 5:\n %6 = alloca i8*, align 8\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n %9 = alloca i8, align 1\n store i8* %3, i8** %6, align 8\n %10 = load i8*, i8** %6, align 8\n %11 = call i64 @strlen(i8* %10) #7\n %12 = trunc i64 %11 to i32\n store i32 %12, i32* %7, align 4\n store i32 0, i32* %8, align 4\n br label %target_phi_0\n"]
- 5 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %13 = icmp eq i1 %0, false\n br i1 %13, label %14, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 14
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 14["Block 14:\n %15 = alloca %struct.Matrix*, align 8\n %16 = alloca i32, align 4\n %17 = alloca i32, align 4\n %18 = alloca %struct.Matrix*, align 8\n %19 = alloca i32, align 4\n %20 = alloca i32, align 4\n store i32 %1, i32* %16, align 4\n store i32 %2, i32* %17, align 4\n %21 = load i32, i32* %16, align 4\n %22 = icmp slt i32 %21, 1\n br i1 %22, label %26, label %23\n"]
- 14 -->|true| 26
- 14 -->|false| 23
- 23["Block 23:\n %24 = load i32, i32* %17, align 4\n %25 = icmp slt i32 %24, 1\n br i1 %25, label %26, label %28\n"]
- 23 -->|true| 26
- 23 -->|false| 28
- 26["Block 26:\n %27 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 26 --> 165
- 28["Block 28:\n %29 = load i32, i32* %16, align 4\n %30 = icmp sgt i32 %29, 100\n br i1 %30, label %34, label %31\n"]
- 28 -->|true| 34
- 28 -->|false| 31
- 31["Block 31:\n %32 = load i32, i32* %17, align 4\n %33 = icmp sgt i32 %32, 100\n br i1 %33, label %34, label %36\n"]
- 31 -->|true| 34
- 31 -->|false| 36
- 34["Block 34:\n %35 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 34 --> 165
- 36["Block 36:\n %37 = call noalias i8* @malloc(i64 32) #8\n %38 = bitcast i8* %37 to %struct.Matrix*\n store %struct.Matrix* %38, %struct.Matrix** %...\n %39 = load %struct.Matrix*, %struct.Matrix** ...\n %40 = icmp ne %struct.Matrix* %39, null\n br i1 %40, label %43, label %41\n"]
- 36 -->|true| 43
- 36 -->|false| 41
- 41["Block 41:\n %42 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 41 --> 165
- 43["Block 43:\n %44 = load i32, i32* %16, align 4\n %45 = load %struct.Matrix*, %struct.Matrix** ...\n %46 = getelementptr inbounds %struct.Matrix, ...\n store i32 %44, i32* %46, align 8\n %47 = load i32, i32* %17, align 4\n %48 = load %struct.Matrix*, %struct.Matrix** ...\n %49 = getelementptr inbounds %struct.Matrix, ...\n store i32 %47, i32* %49, align 4\n %50 = load i32, i32* %16, align 4\n %51 = load i32, i32* %17, align 4\n %52 = icmp eq i32 %50, %51\n %53 = zext i1 %52 to i32\n %54 = load %struct.Matrix*, %struct.Matrix** ...\n %55 = getelementptr inbounds %struct.Matrix, ...\n store i32 %53, i32* %55, align 8\n %56 = load %struct.Matrix*, %struct.Matrix** ...\n %57 = getelementptr inbounds %struct.Matrix, ...\n store double 0.000000e+00, double* %57, align 8\n %58 = load i32, i32* %16, align 4\n %59 = sext i32 %58 to i64\n %60 = mul i64 %59, 8\n %61 = call noalias i8* @malloc(i64 %60) #8\n %62 = bitcast i8* %61 to i32**\n %63 = load %struct.Matrix*, %struct.Matrix** ...\n %64 = getelementptr inbounds %struct.Matrix, ...\n store i32** %62, i32*** %64, align 8\n %65 = load %struct.Matrix*, %struct.Matrix** ...\n %66 = getelementptr inbounds %struct.Matrix, ...\n %67 = load i32**, i32*** %66, align 8\n %68 = icmp ne i32** %67, null\n br i1 %68, label %73, label %69\n"]
- 43 -->|true| 73
- 43 -->|false| 69
- 69["Block 69:\n %70 = load %struct.Matrix*, %struct.Matrix** ...\n %71 = bitcast %struct.Matrix* %70 to i8*\n call void @free(i8* %71) #8\n %72 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 69 --> 165
- 73["Block 73:\n store i32 0, i32* %19, align 4\n br label %74\n"]
- 73 --> 74
- 74["Block 74:\n %75 = load i32, i32* %19, align 4\n %76 = load i32, i32* %16, align 4\n %77 = icmp slt i32 %75, %76\n br i1 %77, label %78, label %126\n"]
- 74 -->|true| 78
- 74 -->|false| 126
- 78["Block 78:\n %79 = load i32, i32* %17, align 4\n %80 = sext i32 %79 to i64\n %81 = call noalias i8* @calloc(i64 %80, i64 4...\n %82 = bitcast i8* %81 to i32*\n %83 = load %struct.Matrix*, %struct.Matrix** ...\n %84 = getelementptr inbounds %struct.Matrix, ...\n %85 = load i32**, i32*** %84, align 8\n %86 = load i32, i32* %19, align 4\n %87 = sext i32 %86 to i64\n %88 = getelementptr inbounds i32*, i32** %85,...\n store i32* %82, i32** %88, align 8\n %89 = load %struct.Matrix*, %struct.Matrix** ...\n %90 = getelementptr inbounds %struct.Matrix, ...\n %91 = load i32**, i32*** %90, align 8\n %92 = load i32, i32* %19, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds i32*, i32** %91,...\n %95 = load i32*, i32** %94, align 8\n %96 = icmp ne i32* %95, null\n br i1 %96, label %122, label %97\n"]
- 78 -->|true| 122
- 78 -->|false| 97
- 97["Block 97:\n store i32 0, i32* %20, align 4\n br label %98\n"]
- 97 --> 98
- 98["Block 98:\n %99 = load i32, i32* %20, align 4\n %100 = load i32, i32* %19, align 4\n %101 = icmp slt i32 %99, %100\n br i1 %101, label %102, label %114\n"]
- 98 -->|true| 102
- 98 -->|false| 114
- 102["Block 102:\n %103 = load %struct.Matrix*, %struct.Matrix**...\n %104 = getelementptr inbounds %struct.Matrix,...\n %105 = load i32**, i32*** %104, align 8\n %106 = load i32, i32* %20, align 4\n %107 = sext i32 %106 to i64\n %108 = getelementptr inbounds i32*, i32** %10...\n %109 = load i32*, i32** %108, align 8\n %110 = bitcast i32* %109 to i8*\n call void @free(i8* %110) #8\n br label %111\n"]
- 102 --> 111
- 111["Block 111:\n %112 = load i32, i32* %20, align 4\n %113 = add nsw i32 %112, 1\n store i32 %113, i32* %20, align 4\n br label %98\n"]
- 111 --> 98
- 114["Block 114:\n %115 = load %struct.Matrix*, %struct.Matrix**...\n %116 = getelementptr inbounds %struct.Matrix,...\n %117 = load i32**, i32*** %116, align 8\n %118 = bitcast i32** %117 to i8*\n call void @free(i8* %118) #8\n %119 = load %struct.Matrix*, %struct.Matrix**...\n %120 = bitcast %struct.Matrix* %119 to i8*\n call void @free(i8* %120) #8\n %121 = call i32 @fused_setErrorMessage(i1 fal...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 114 --> 165
- 122["Block 122:\n br label %123\n"]
- 122 --> 123
- 123["Block 123:\n %124 = load i32, i32* %19, align 4\n %125 = add nsw i32 %124, 1\n store i32 %125, i32* %19, align 4\n br label %74\n"]
- 123 --> 74
- 126["Block 126:\n %127 = load %struct.Matrix*, %struct.Matrix**...\n store %struct.Matrix* %127, %struct.Matrix** ...\n br label %bunker_phi_0\n"]
- 126 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %128 = icmp eq i1 %0, true\n br i1 %128, label %129, label %target_skip_1\n"]
- target_cond_1 -->|true| 129
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 129["Block 129:\n %130 = load i32, i32* %8, align 4\n %131 = load i32, i32* %7, align 4\n %132 = sdiv i32 %131, 2\n %133 = icmp slt i32 %130, %132\n br i1 %133, label %134, label %160\n"]
- 129 -->|true| 134
- 129 -->|false| 160
- 134["Block 134:\n %135 = load i8*, i8** %6, align 8\n %136 = load i32, i32* %8, align 4\n %137 = sext i32 %136 to i64\n %138 = getelementptr inbounds i8, i8* %135, i...\n %139 = load i8, i8* %138, align 1\n store i8 %139, i8* %9, align 1\n %140 = load i8*, i8** %6, align 8\n %141 = load i32, i32* %7, align 4\n %142 = sub nsw i32 %141, 1\n %143 = load i32, i32* %8, align 4\n %144 = sub nsw i32 %142, %143\n %145 = sext i32 %144 to i64\n %146 = getelementptr inbounds i8, i8* %140, i...\n %147 = load i8, i8* %146, align 1\n %148 = load i8*, i8** %6, align 8\n %149 = load i32, i32* %8, align 4\n %150 = sext i32 %149 to i64\n %151 = getelementptr inbounds i8, i8* %148, i...\n store i8 %147, i8* %151, align 1\n %152 = load i8, i8* %9, align 1\n %153 = load i8*, i8** %6, align 8\n %154 = load i32, i32* %7, align 4\n %155 = sub nsw i32 %154, 1\n %156 = load i32, i32* %8, align 4\n %157 = sub nsw i32 %155, %156\n %158 = sext i32 %157 to i64\n %159 = getelementptr inbounds i8, i8* %153, i...\n store i8 %152, i8* %159, align 1\n br label %161\n"]
- 134 --> 161
- 160["Block 160:\n ret %struct.Matrix* null\n"]
- 161["Block 161:\n %162 = load i32, i32* %8, align 4\n %163 = add nsw i32 %162, 1\n store i32 %163, i32* %8, align 4\n br label %target_phi_1\n"]
- 161 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %164 = icmp eq i1 %0, false\n br i1 %164, label %165, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 165
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret %struct.Matrix* null\n"]
- 165["Block 165:\n %166 = load %struct.Matrix*, %struct.Matrix**...\n ret %struct.Matrix* %166\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][updateCallSite] Original call instruction:
- %86 = call %struct.Matrix* @createMatrix(i32 3, i32 3)
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: i8*
- [DEBUG][updateCallSite] New call instruction:
- %86 = call %struct.Matrix* @fused_createMatrix(i1 false, i32 3, i32 3, i8* null)
- [DEBUG][updateCallSite] Processing non-void return value of type: struct.Matrix*
- [DEBUG][updateCallSite] Using direct return value
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %86 = call %struct.Matrix* @createMatrix(i32 3, i32 3) to %86 = call %struct.Matrix* @fused_createMatrix(i1 false, i32 3, i32 3, i8* null)
- [DEBUG][updateCallSite] Original call instruction:
- %85 = call %struct.Matrix* @createMatrix(i32 3, i32 3)
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: i8*
- [DEBUG][updateCallSite] New call instruction:
- %85 = call %struct.Matrix* @fused_createMatrix(i1 false, i32 3, i32 3, i8* null)
- [DEBUG][updateCallSite] Processing non-void return value of type: struct.Matrix*
- [DEBUG][updateCallSite] Using direct return value
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %85 = call %struct.Matrix* @createMatrix(i32 3, i32 3) to %85 = call %struct.Matrix* @fused_createMatrix(i1 false, i32 3, i32 3, i8* null)
- [DEBUG][updateCallSite] Original call instruction:
- %62 = call %struct.Matrix* @createMatrix(i32 %58, i32 %61)
- [DEBUG][updateCallSite] Adding bunker control parameter
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] Argument 1: type=i32
- [DEBUG][updateCallSite] Adding default target parameters:
- [DEBUG][updateCallSite] Parameter type: i8*
- [DEBUG][updateCallSite] New call instruction:
- %62 = call %struct.Matrix* @fused_createMatrix(i1 false, i32 %58, i32 %61, i8* null)
- [DEBUG][updateCallSite] Processing non-void return value of type: struct.Matrix*
- [DEBUG][updateCallSite] Using direct return value
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %62 = call %struct.Matrix* @createMatrix(i32 %58, i32 %61) to %62 = call %struct.Matrix* @fused_createMatrix(i1 false, i32 %58, i32 %61, i8* null)
- [DEBUG][updateCallSite] Original call instruction:
- call void @reverseString(i8* %14)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] Parameter type: i32
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i8*
- [DEBUG][updateCallSite] New call instruction:
- %15 = call %struct.Matrix* @fused_createMatrix(i1 true, i32 0, i32 0, i8* %14)
- [DEBUG][updateCallSite] Void return type, no value processing needed
- [INFO][updateCallSite] Successfully updated call site from call void @reverseString(i8* %14) to %15 = call %struct.Matrix* @fused_createMatrix(i1 true, i32 0, i32 0, i8* %14)
- [INFO][performCodeFusion] Listing all instructions after update calls in function: fused_createMatrix
- ```mermaid: fused_createMatrix
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %4 = icmp eq i1 %0, true\n br i1 %4, label %5, label %target_skip_0\n"]
- target_cond_0 -->|true| 5
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 5["Block 5:\n %6 = alloca i8*, align 8\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n %9 = alloca i8, align 1\n store i8* %3, i8** %6, align 8\n %10 = load i8*, i8** %6, align 8\n %11 = call i64 @strlen(i8* %10) #7\n %12 = trunc i64 %11 to i32\n store i32 %12, i32* %7, align 4\n store i32 0, i32* %8, align 4\n br label %target_phi_0\n"]
- 5 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %13 = icmp eq i1 %0, false\n br i1 %13, label %14, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 14
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 14["Block 14:\n %15 = alloca %struct.Matrix*, align 8\n %16 = alloca i32, align 4\n %17 = alloca i32, align 4\n %18 = alloca %struct.Matrix*, align 8\n %19 = alloca i32, align 4\n %20 = alloca i32, align 4\n store i32 %1, i32* %16, align 4\n store i32 %2, i32* %17, align 4\n %21 = load i32, i32* %16, align 4\n %22 = icmp slt i32 %21, 1\n br i1 %22, label %26, label %23\n"]
- 14 -->|true| 26
- 14 -->|false| 23
- 23["Block 23:\n %24 = load i32, i32* %17, align 4\n %25 = icmp slt i32 %24, 1\n br i1 %25, label %26, label %28\n"]
- 23 -->|true| 26
- 23 -->|false| 28
- 26["Block 26:\n %27 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 26 --> 165
- 28["Block 28:\n %29 = load i32, i32* %16, align 4\n %30 = icmp sgt i32 %29, 100\n br i1 %30, label %34, label %31\n"]
- 28 -->|true| 34
- 28 -->|false| 31
- 31["Block 31:\n %32 = load i32, i32* %17, align 4\n %33 = icmp sgt i32 %32, 100\n br i1 %33, label %34, label %36\n"]
- 31 -->|true| 34
- 31 -->|false| 36
- 34["Block 34:\n %35 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 34 --> 165
- 36["Block 36:\n %37 = call noalias i8* @malloc(i64 32) #8\n %38 = bitcast i8* %37 to %struct.Matrix*\n store %struct.Matrix* %38, %struct.Matrix** %...\n %39 = load %struct.Matrix*, %struct.Matrix** ...\n %40 = icmp ne %struct.Matrix* %39, null\n br i1 %40, label %43, label %41\n"]
- 36 -->|true| 43
- 36 -->|false| 41
- 41["Block 41:\n %42 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 41 --> 165
- 43["Block 43:\n %44 = load i32, i32* %16, align 4\n %45 = load %struct.Matrix*, %struct.Matrix** ...\n %46 = getelementptr inbounds %struct.Matrix, ...\n store i32 %44, i32* %46, align 8\n %47 = load i32, i32* %17, align 4\n %48 = load %struct.Matrix*, %struct.Matrix** ...\n %49 = getelementptr inbounds %struct.Matrix, ...\n store i32 %47, i32* %49, align 4\n %50 = load i32, i32* %16, align 4\n %51 = load i32, i32* %17, align 4\n %52 = icmp eq i32 %50, %51\n %53 = zext i1 %52 to i32\n %54 = load %struct.Matrix*, %struct.Matrix** ...\n %55 = getelementptr inbounds %struct.Matrix, ...\n store i32 %53, i32* %55, align 8\n %56 = load %struct.Matrix*, %struct.Matrix** ...\n %57 = getelementptr inbounds %struct.Matrix, ...\n store double 0.000000e+00, double* %57, align 8\n %58 = load i32, i32* %16, align 4\n %59 = sext i32 %58 to i64\n %60 = mul i64 %59, 8\n %61 = call noalias i8* @malloc(i64 %60) #8\n %62 = bitcast i8* %61 to i32**\n %63 = load %struct.Matrix*, %struct.Matrix** ...\n %64 = getelementptr inbounds %struct.Matrix, ...\n store i32** %62, i32*** %64, align 8\n %65 = load %struct.Matrix*, %struct.Matrix** ...\n %66 = getelementptr inbounds %struct.Matrix, ...\n %67 = load i32**, i32*** %66, align 8\n %68 = icmp ne i32** %67, null\n br i1 %68, label %73, label %69\n"]
- 43 -->|true| 73
- 43 -->|false| 69
- 69["Block 69:\n %70 = load %struct.Matrix*, %struct.Matrix** ...\n %71 = bitcast %struct.Matrix* %70 to i8*\n call void @free(i8* %71) #8\n %72 = call i32 @fused_setErrorMessage(i1 fals...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 69 --> 165
- 73["Block 73:\n store i32 0, i32* %19, align 4\n br label %74\n"]
- 73 --> 74
- 74["Block 74:\n %75 = load i32, i32* %19, align 4\n %76 = load i32, i32* %16, align 4\n %77 = icmp slt i32 %75, %76\n br i1 %77, label %78, label %126\n"]
- 74 -->|true| 78
- 74 -->|false| 126
- 78["Block 78:\n %79 = load i32, i32* %17, align 4\n %80 = sext i32 %79 to i64\n %81 = call noalias i8* @calloc(i64 %80, i64 4...\n %82 = bitcast i8* %81 to i32*\n %83 = load %struct.Matrix*, %struct.Matrix** ...\n %84 = getelementptr inbounds %struct.Matrix, ...\n %85 = load i32**, i32*** %84, align 8\n %86 = load i32, i32* %19, align 4\n %87 = sext i32 %86 to i64\n %88 = getelementptr inbounds i32*, i32** %85,...\n store i32* %82, i32** %88, align 8\n %89 = load %struct.Matrix*, %struct.Matrix** ...\n %90 = getelementptr inbounds %struct.Matrix, ...\n %91 = load i32**, i32*** %90, align 8\n %92 = load i32, i32* %19, align 4\n %93 = sext i32 %92 to i64\n %94 = getelementptr inbounds i32*, i32** %91,...\n %95 = load i32*, i32** %94, align 8\n %96 = icmp ne i32* %95, null\n br i1 %96, label %122, label %97\n"]
- 78 -->|true| 122
- 78 -->|false| 97
- 97["Block 97:\n store i32 0, i32* %20, align 4\n br label %98\n"]
- 97 --> 98
- 98["Block 98:\n %99 = load i32, i32* %20, align 4\n %100 = load i32, i32* %19, align 4\n %101 = icmp slt i32 %99, %100\n br i1 %101, label %102, label %114\n"]
- 98 -->|true| 102
- 98 -->|false| 114
- 102["Block 102:\n %103 = load %struct.Matrix*, %struct.Matrix**...\n %104 = getelementptr inbounds %struct.Matrix,...\n %105 = load i32**, i32*** %104, align 8\n %106 = load i32, i32* %20, align 4\n %107 = sext i32 %106 to i64\n %108 = getelementptr inbounds i32*, i32** %10...\n %109 = load i32*, i32** %108, align 8\n %110 = bitcast i32* %109 to i8*\n call void @free(i8* %110) #8\n br label %111\n"]
- 102 --> 111
- 111["Block 111:\n %112 = load i32, i32* %20, align 4\n %113 = add nsw i32 %112, 1\n store i32 %113, i32* %20, align 4\n br label %98\n"]
- 111 --> 98
- 114["Block 114:\n %115 = load %struct.Matrix*, %struct.Matrix**...\n %116 = getelementptr inbounds %struct.Matrix,...\n %117 = load i32**, i32*** %116, align 8\n %118 = bitcast i32** %117 to i8*\n call void @free(i8* %118) #8\n %119 = load %struct.Matrix*, %struct.Matrix**...\n %120 = bitcast %struct.Matrix* %119 to i8*\n call void @free(i8* %120) #8\n %121 = call i32 @fused_setErrorMessage(i1 fal...\n store %struct.Matrix* null, %struct.Matrix** ...\n br label %165\n"]
- 114 --> 165
- 122["Block 122:\n br label %123\n"]
- 122 --> 123
- 123["Block 123:\n %124 = load i32, i32* %19, align 4\n %125 = add nsw i32 %124, 1\n store i32 %125, i32* %19, align 4\n br label %74\n"]
- 123 --> 74
- 126["Block 126:\n %127 = load %struct.Matrix*, %struct.Matrix**...\n store %struct.Matrix* %127, %struct.Matrix** ...\n br label %bunker_phi_0\n"]
- 126 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %128 = icmp eq i1 %0, true\n br i1 %128, label %129, label %target_skip_1\n"]
- target_cond_1 -->|true| 129
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 129["Block 129:\n %130 = load i32, i32* %8, align 4\n %131 = load i32, i32* %7, align 4\n %132 = sdiv i32 %131, 2\n %133 = icmp slt i32 %130, %132\n br i1 %133, label %134, label %160\n"]
- 129 -->|true| 134
- 129 -->|false| 160
- 134["Block 134:\n %135 = load i8*, i8** %6, align 8\n %136 = load i32, i32* %8, align 4\n %137 = sext i32 %136 to i64\n %138 = getelementptr inbounds i8, i8* %135, i...\n %139 = load i8, i8* %138, align 1\n store i8 %139, i8* %9, align 1\n %140 = load i8*, i8** %6, align 8\n %141 = load i32, i32* %7, align 4\n %142 = sub nsw i32 %141, 1\n %143 = load i32, i32* %8, align 4\n %144 = sub nsw i32 %142, %143\n %145 = sext i32 %144 to i64\n %146 = getelementptr inbounds i8, i8* %140, i...\n %147 = load i8, i8* %146, align 1\n %148 = load i8*, i8** %6, align 8\n %149 = load i32, i32* %8, align 4\n %150 = sext i32 %149 to i64\n %151 = getelementptr inbounds i8, i8* %148, i...\n store i8 %147, i8* %151, align 1\n %152 = load i8, i8* %9, align 1\n %153 = load i8*, i8** %6, align 8\n %154 = load i32, i32* %7, align 4\n %155 = sub nsw i32 %154, 1\n %156 = load i32, i32* %8, align 4\n %157 = sub nsw i32 %155, %156\n %158 = sext i32 %157 to i64\n %159 = getelementptr inbounds i8, i8* %153, i...\n store i8 %152, i8* %159, align 1\n br label %161\n"]
- 134 --> 161
- 160["Block 160:\n ret %struct.Matrix* null\n"]
- 161["Block 161:\n %162 = load i32, i32* %8, align 4\n %163 = add nsw i32 %162, 1\n store i32 %163, i32* %8, align 4\n br label %target_phi_1\n"]
- 161 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %164 = icmp eq i1 %0, false\n br i1 %164, label %165, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 165
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret %struct.Matrix* null\n"]
- 165["Block 165:\n %166 = load %struct.Matrix*, %struct.Matrix**...\n ret %struct.Matrix* %166\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [INFO][performCodeFusion] Completed function fusion: fused_createMatrix
- [INFO][performCodeFusion] Processing function pair: target=testPoints, bunker=removeDuplicates
- [INFO][performCodeFusion] adding: %4
- [INFO][performCodeFusion] before push Block ID: %4
- [INFO][performCodeFusion] adding: %93
- [INFO][performCodeFusion] adding: %96
- [INFO][performCodeFusion] adding: %101
- [INFO][performCodeFusion] adding: %103
- [INFO][performCodeFusion] adding: %104
- [INFO][performCodeFusion] adding: %105
- [INFO][performCodeFusion] adding: %107
- [INFO][performCodeFusion] before push Block ID: %93
- [INFO][performCodeFusion] before push Block ID: %96
- [INFO][performCodeFusion] before push Block ID: %101
- [INFO][performCodeFusion] before push Block ID: %103
- [INFO][performCodeFusion] before push Block ID: %104
- [INFO][performCodeFusion] before push Block ID: %105
- [INFO][performCodeFusion] before push Block ID: %107
- [INFO][performCodeFusion] Listing all instructions after block cloning in function: fused_removeDuplicates
- ```mermaid: fused_removeDuplicates
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %3 = icmp eq i1 %0, true\n br i1 %3, label %4, label %target_skip_0\n"]
- target_cond_0 -->|true| 4
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 4["Block 4:\n %5 = alloca i32, align 4\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n store i32 %2, i32* %6, align 4\n store i32 0, i32* %7, align 4\n store i32 1, i32* %8, align 4\n br label %target_phi_0\n"]
- 4 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %9 = icmp eq i1 %0, false\n br i1 %9, label %10, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 10
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 10["Block 10:\n %11 = alloca %struct.DynamicArray*, align 8\n %12 = alloca i32, align 4\n %13 = alloca i32, align 4\n %14 = alloca i32, align 4\n store %struct.DynamicArray* %1, %struct.Dynam...\n %15 = load %struct.DynamicArray*, %struct.Dyn...\n %16 = icmp ne %struct.DynamicArray* %15, null\n br i1 %16, label %17, label %22\n"]
- 10 -->|true| 17
- 10 -->|false| 22
- 17["Block 17:\n %18 = load %struct.DynamicArray*, %struct.Dyn...\n %19 = getelementptr inbounds %struct.DynamicA...\n %20 = load i32*, i32** %19, align 8\n %21 = icmp ne i32* %20, null\n br i1 %21, label %24, label %22\n"]
- 17 -->|true| 24
- 17 -->|false| 22
- 22["Block 22:\n %23 = call i32 @fused_setErrorMessage(i1 fals...\n br label %111\n"]
- 22 --> 111
- 24["Block 24:\n %25 = load %struct.DynamicArray*, %struct.Dyn...\n %26 = getelementptr inbounds %struct.DynamicA...\n %27 = load i32, i32* %26, align 8\n %28 = icmp sle i32 %27, 1\n br i1 %28, label %29, label %30\n"]
- 24 -->|true| 29
- 24 -->|false| 30
- 29["Block 29:\n br label %111\n"]
- 29 --> 111
- 30["Block 30:\n store i32 0, i32* %12, align 4\n %31 = load %struct.DynamicArray*, %struct.Dyn...\n %32 = getelementptr inbounds %struct.DynamicA...\n %33 = load i32*, i32** %32, align 8\n %34 = load %struct.DynamicArray*, %struct.Dyn...\n %35 = getelementptr inbounds %struct.DynamicA...\n %36 = load i32, i32* %35, align 8\n %37 = sub nsw i32 %36, 1\n %38 = call i32 @fused_quickSort(i1 false, i32...\n %39 = load i32, i32* %12, align 4\n %40 = icmp ne i32 %39, 0\n br i1 %40, label %41, label %42\n"]
- 30 -->|true| 41
- 30 -->|false| 42
- 41["Block 41:\n br label %111\n"]
- 41 --> 111
- 42["Block 42:\n store i32 1, i32* %13, align 4\n store i32 1, i32* %14, align 4\n br label %43\n"]
- 42 --> 43
- 43["Block 43:\n %44 = load i32, i32* %14, align 4\n %45 = load %struct.DynamicArray*, %struct.Dyn...\n %46 = getelementptr inbounds %struct.DynamicA...\n %47 = load i32, i32* %46, align 8\n %48 = icmp slt i32 %44, %47\n br i1 %48, label %49, label %86\n"]
- 43 -->|true| 49
- 43 -->|false| 86
- 49["Block 49:\n %50 = load %struct.DynamicArray*, %struct.Dyn...\n %51 = getelementptr inbounds %struct.DynamicA...\n %52 = load i32*, i32** %51, align 8\n %53 = load i32, i32* %14, align 4\n %54 = sext i32 %53 to i64\n %55 = getelementptr inbounds i32, i32* %52, i...\n %56 = load i32, i32* %55, align 4\n %57 = load %struct.DynamicArray*, %struct.Dyn...\n %58 = getelementptr inbounds %struct.DynamicA...\n %59 = load i32*, i32** %58, align 8\n %60 = load i32, i32* %14, align 4\n %61 = sub nsw i32 %60, 1\n %62 = sext i32 %61 to i64\n %63 = getelementptr inbounds i32, i32* %59, i...\n %64 = load i32, i32* %63, align 4\n %65 = icmp ne i32 %56, %64\n br i1 %65, label %66, label %82\n"]
- 49 -->|true| 66
- 49 -->|false| 82
- 66["Block 66:\n %67 = load %struct.DynamicArray*, %struct.Dyn...\n %68 = getelementptr inbounds %struct.DynamicA...\n %69 = load i32*, i32** %68, align 8\n %70 = load i32, i32* %14, align 4\n %71 = sext i32 %70 to i64\n %72 = getelementptr inbounds i32, i32* %69, i...\n %73 = load i32, i32* %72, align 4\n %74 = load %struct.DynamicArray*, %struct.Dyn...\n %75 = getelementptr inbounds %struct.DynamicA...\n %76 = load i32*, i32** %75, align 8\n %77 = load i32, i32* %13, align 4\n %78 = sext i32 %77 to i64\n %79 = getelementptr inbounds i32, i32* %76, i...\n store i32 %73, i32* %79, align 4\n %80 = load i32, i32* %13, align 4\n %81 = add nsw i32 %80, 1\n store i32 %81, i32* %13, align 4\n br label %82\n"]
- 66 --> 82
- 82["Block 82:\n br label %83\n"]
- 82 --> 83
- 83["Block 83:\n %84 = load i32, i32* %14, align 4\n %85 = add nsw i32 %84, 1\n store i32 %85, i32* %14, align 4\n br label %43\n"]
- 83 --> 43
- 86["Block 86:\n %87 = load i32, i32* %13, align 4\n %88 = load %struct.DynamicArray*, %struct.Dyn...\n %89 = getelementptr inbounds %struct.DynamicA...\n store i32 %87, i32* %89, align 8\n %90 = load %struct.DynamicArray*, %struct.Dyn...\n %91 = getelementptr inbounds %struct.DynamicA...\n store i32 1, i32* %91, align 8\n br label %bunker_phi_0\n"]
- 86 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %92 = icmp eq i1 %0, true\n br i1 %92, label %93, label %target_skip_1\n"]
- target_cond_1 -->|true| 93
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 93["Block 93:\n %94 = load i32, i32* %8, align 4\n %95 = icmp slt i32 %94, 5\n br i1 %95, label %96, label %101\n"]
- 93 -->|true| 96
- 93 -->|false| 101
- 96["Block 96:\n %97 = load i32, i32* %7, align 4\n %98 = add nsw i32 %97, 1\n store i32 %98, i32* %7, align 4\n %99 = load i32, i32* %6, align 4\n %100 = icmp sgt i32 %99, 2\n br i1 %100, label %103, label %104\n"]
- 96 -->|true| 103
- 96 -->|false| 104
- 101["Block 101:\n %102 = load i32, i32* %7, align 4\n store i32 %102, i32* %5, align 4\n br label %105\n"]
- 101 --> 105
- 103["Block 103:\n store i32 23, i32* %5, align 4\n br label %105\n"]
- 103 --> 105
- 104["Block 104:\n br label %107\n"]
- 104 --> 107
- 105["Block 105:\n %106 = load i32, i32* %5, align 4\n ret i32 %22\n"]
- 107["Block 107:\n %108 = load i32, i32* %8, align 4\n %109 = add nsw i32 %108, 1\n store i32 %109, i32* %8, align 4\n br label %target_phi_1\n"]
- 107 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %110 = icmp eq i1 %0, false\n br i1 %110, label %111, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 111
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret i32 0\n"]
- 111["Block 111:\n ret void\n br label %bunker_phi_1\n"]
- 111 --> bunker_phi_1
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][performCodeFusion] Processing return values for fused function: fused_removeDuplicates
- [DEBUG][performCodeFusion] Fused function return type: i32
- [DEBUG][performCodeFusion] Non-struct return type detected: i32
- [DEBUG][performCodeFusion] Processing bunker block: %49
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %50 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %51 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %50, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %52 = load i32*, i32** %51, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %53 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %54 = sext i32 %53 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %55 = getelementptr inbounds i32, i32* %52, i64 %54 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %56 = load i32, i32* %55, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %57 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %58 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %57, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %59 = load i32*, i32** %58, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %60 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %61 = sub nsw i32 %60, 1 (opcode: sub)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %62 = sext i32 %61 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %63 = getelementptr inbounds i32, i32* %59, i64 %62 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %64 = load i32, i32* %63, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: %65 = icmp ne i32 %56, %64 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %49 - Processing instruction: br i1 %65, label %66, label %82 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %83
- [DEBUG][performCodeFusion] Block %83 - Processing instruction: %84 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %83 - Processing instruction: %85 = add nsw i32 %84, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %83 - Processing instruction: store i32 %85, i32* %14, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %83 - Processing instruction: br label %43 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %42
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: store i32 1, i32* %13, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: store i32 1, i32* %14, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %42 - Processing instruction: br label %43 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %43
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %44 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %45 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %46 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %45, i32 0, i32 1 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %47 = load i32, i32* %46, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: %48 = icmp slt i32 %44, %47 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %43 - Processing instruction: br i1 %48, label %49, label %86 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %82
- [DEBUG][performCodeFusion] Block %82 - Processing instruction: br label %83 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %22
- [DEBUG][performCodeFusion] Block %22 - Processing instruction: %23 = call i32 @fused_setErrorMessage(i1 false, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.49, i64 0, i64 0)) (opcode: call)
- [DEBUG][performCodeFusion] Block %22 - Processing instruction: br label %111 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %86
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: %87 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: %88 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: %89 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %88, i32 0, i32 1 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: store i32 %87, i32* %89, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: %90 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: %91 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %90, i32 0, i32 3 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: store i32 1, i32* %91, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %86 - Processing instruction: br label %bunker_phi_0 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %30
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: store i32 0, i32* %12, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %31 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %32 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %31, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %33 = load i32*, i32** %32, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %34 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %35 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %34, i32 0, i32 1 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %36 = load i32, i32* %35, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %37 = sub nsw i32 %36, 1 (opcode: sub)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %38 = call i32 @fused_quickSort(i1 false, i32* %33, i32 0, i32 %37, i32* %12, i32 0) (opcode: call)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %39 = load i32, i32* %12, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: %40 = icmp ne i32 %39, 0 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %30 - Processing instruction: br i1 %40, label %41, label %42 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %41
- [DEBUG][performCodeFusion] Block %41 - Processing instruction: br label %111 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %111
- [DEBUG][performCodeFusion] Block %111 - Processing instruction: ret void (opcode: ret)
- [DEBUG][performCodeFusion] Setting default bunker return value
- [DEBUG][performCodeFusion] Updated bunker return in block %111 with value type i32
- [DEBUG][performCodeFusion] Block %111 - Processing instruction: br label %bunker_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Removing extra instruction after return in block %111: br
- [DEBUG][performCodeFusion] Processing bunker block: %29
- [DEBUG][performCodeFusion] Block %29 - Processing instruction: br label %111 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %66
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %67 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %68 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %67, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %69 = load i32*, i32** %68, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %70 = load i32, i32* %14, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %71 = sext i32 %70 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %72 = getelementptr inbounds i32, i32* %69, i64 %71 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %73 = load i32, i32* %72, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %74 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %75 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %74, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %76 = load i32*, i32** %75, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %77 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %78 = sext i32 %77 to i64 (opcode: sext)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %79 = getelementptr inbounds i32, i32* %76, i64 %78 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: store i32 %73, i32* %79, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %80 = load i32, i32* %13, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: %81 = add nsw i32 %80, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: store i32 %81, i32* %13, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %66 - Processing instruction: br label %82 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %17
- [DEBUG][performCodeFusion] Block %17 - Processing instruction: %18 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %17 - Processing instruction: %19 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %18, i32 0, i32 0 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %17 - Processing instruction: %20 = load i32*, i32** %19, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %17 - Processing instruction: %21 = icmp ne i32* %20, null (opcode: icmp)
- [DEBUG][performCodeFusion] Block %17 - Processing instruction: br i1 %21, label %24, label %22 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %10
- [DEBUG][performCodeFusion] Block %10 - Processing instruction: %11 = alloca %struct.DynamicArray*, align 8 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %10 - Processing instruction: %12 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %10 - Processing instruction: %13 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %10 - Processing instruction: %14 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %10 - Processing instruction: store %struct.DynamicArray* %1, %struct.DynamicArray** %11, align 8 (opcode: store)
- [DEBUG][performCodeFusion] Block %10 - Processing instruction: %15 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %10 - Processing instruction: %16 = icmp ne %struct.DynamicArray* %15, null (opcode: icmp)
- [DEBUG][performCodeFusion] Block %10 - Processing instruction: br i1 %16, label %17, label %22 (opcode: br)
- [DEBUG][performCodeFusion] Processing bunker block: %24
- [DEBUG][performCodeFusion] Block %24 - Processing instruction: %25 = load %struct.DynamicArray*, %struct.DynamicArray** %11, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %24 - Processing instruction: %26 = getelementptr inbounds %struct.DynamicArray, %struct.DynamicArray* %25, i32 0, i32 1 (opcode: getelementptr)
- [DEBUG][performCodeFusion] Block %24 - Processing instruction: %27 = load i32, i32* %26, align 8 (opcode: load)
- [DEBUG][performCodeFusion] Block %24 - Processing instruction: %28 = icmp sle i32 %27, 1 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %24 - Processing instruction: br i1 %28, label %29, label %30 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %105
- [DEBUG][performCodeFusion] Block %105 - Processing instruction: %106 = load i32, i32* %5, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %105 - Processing instruction: ret i32 %22 (opcode: ret)
- [DEBUG][performCodeFusion] Updated target return in block %105 with value type i32
- [DEBUG][performCodeFusion] Processing target block: %107
- [DEBUG][performCodeFusion] Block %107 - Processing instruction: %108 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %107 - Processing instruction: %109 = add nsw i32 %108, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %107 - Processing instruction: store i32 %109, i32* %8, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %107 - Processing instruction: br label %target_phi_1 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %101
- [DEBUG][performCodeFusion] Block %101 - Processing instruction: %102 = load i32, i32* %7, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %101 - Processing instruction: store i32 %102, i32* %5, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %101 - Processing instruction: br label %105 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %103
- [DEBUG][performCodeFusion] Block %103 - Processing instruction: store i32 23, i32* %5, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %103 - Processing instruction: br label %105 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %104
- [DEBUG][performCodeFusion] Block %104 - Processing instruction: br label %107 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %93
- [DEBUG][performCodeFusion] Block %93 - Processing instruction: %94 = load i32, i32* %8, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %93 - Processing instruction: %95 = icmp slt i32 %94, 5 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %93 - Processing instruction: br i1 %95, label %96, label %101 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %96
- [DEBUG][performCodeFusion] Block %96 - Processing instruction: %97 = load i32, i32* %7, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %96 - Processing instruction: %98 = add nsw i32 %97, 1 (opcode: add)
- [DEBUG][performCodeFusion] Block %96 - Processing instruction: store i32 %98, i32* %7, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %96 - Processing instruction: %99 = load i32, i32* %6, align 4 (opcode: load)
- [DEBUG][performCodeFusion] Block %96 - Processing instruction: %100 = icmp sgt i32 %99, 2 (opcode: icmp)
- [DEBUG][performCodeFusion] Block %96 - Processing instruction: br i1 %100, label %103, label %104 (opcode: br)
- [DEBUG][performCodeFusion] Processing target block: %4
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %5 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %6 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %7 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: %8 = alloca i32, align 4 (opcode: alloca)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: store i32 %2, i32* %6, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: store i32 0, i32* %7, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: store i32 1, i32* %8, align 4 (opcode: store)
- [DEBUG][performCodeFusion] Block %4 - Processing instruction: br label %target_phi_0 (opcode: br)
- [INFO][performCodeFusion] Listing all instructions after return repairing in function: fused_removeDuplicates
- ```mermaid: fused_removeDuplicates
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %3 = icmp eq i1 %0, true\n br i1 %3, label %4, label %target_skip_0\n"]
- target_cond_0 -->|true| 4
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 4["Block 4:\n %5 = alloca i32, align 4\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n store i32 %2, i32* %6, align 4\n store i32 0, i32* %7, align 4\n store i32 1, i32* %8, align 4\n br label %target_phi_0\n"]
- 4 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %9 = icmp eq i1 %0, false\n br i1 %9, label %10, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 10
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 10["Block 10:\n %11 = alloca %struct.DynamicArray*, align 8\n %12 = alloca i32, align 4\n %13 = alloca i32, align 4\n %14 = alloca i32, align 4\n store %struct.DynamicArray* %1, %struct.Dynam...\n %15 = load %struct.DynamicArray*, %struct.Dyn...\n %16 = icmp ne %struct.DynamicArray* %15, null\n br i1 %16, label %17, label %22\n"]
- 10 -->|true| 17
- 10 -->|false| 22
- 17["Block 17:\n %18 = load %struct.DynamicArray*, %struct.Dyn...\n %19 = getelementptr inbounds %struct.DynamicA...\n %20 = load i32*, i32** %19, align 8\n %21 = icmp ne i32* %20, null\n br i1 %21, label %24, label %22\n"]
- 17 -->|true| 24
- 17 -->|false| 22
- 22["Block 22:\n %23 = call i32 @fused_setErrorMessage(i1 fals...\n br label %111\n"]
- 22 --> 111
- 24["Block 24:\n %25 = load %struct.DynamicArray*, %struct.Dyn...\n %26 = getelementptr inbounds %struct.DynamicA...\n %27 = load i32, i32* %26, align 8\n %28 = icmp sle i32 %27, 1\n br i1 %28, label %29, label %30\n"]
- 24 -->|true| 29
- 24 -->|false| 30
- 29["Block 29:\n br label %111\n"]
- 29 --> 111
- 30["Block 30:\n store i32 0, i32* %12, align 4\n %31 = load %struct.DynamicArray*, %struct.Dyn...\n %32 = getelementptr inbounds %struct.DynamicA...\n %33 = load i32*, i32** %32, align 8\n %34 = load %struct.DynamicArray*, %struct.Dyn...\n %35 = getelementptr inbounds %struct.DynamicA...\n %36 = load i32, i32* %35, align 8\n %37 = sub nsw i32 %36, 1\n %38 = call i32 @fused_quickSort(i1 false, i32...\n %39 = load i32, i32* %12, align 4\n %40 = icmp ne i32 %39, 0\n br i1 %40, label %41, label %42\n"]
- 30 -->|true| 41
- 30 -->|false| 42
- 41["Block 41:\n br label %111\n"]
- 41 --> 111
- 42["Block 42:\n store i32 1, i32* %13, align 4\n store i32 1, i32* %14, align 4\n br label %43\n"]
- 42 --> 43
- 43["Block 43:\n %44 = load i32, i32* %14, align 4\n %45 = load %struct.DynamicArray*, %struct.Dyn...\n %46 = getelementptr inbounds %struct.DynamicA...\n %47 = load i32, i32* %46, align 8\n %48 = icmp slt i32 %44, %47\n br i1 %48, label %49, label %86\n"]
- 43 -->|true| 49
- 43 -->|false| 86
- 49["Block 49:\n %50 = load %struct.DynamicArray*, %struct.Dyn...\n %51 = getelementptr inbounds %struct.DynamicA...\n %52 = load i32*, i32** %51, align 8\n %53 = load i32, i32* %14, align 4\n %54 = sext i32 %53 to i64\n %55 = getelementptr inbounds i32, i32* %52, i...\n %56 = load i32, i32* %55, align 4\n %57 = load %struct.DynamicArray*, %struct.Dyn...\n %58 = getelementptr inbounds %struct.DynamicA...\n %59 = load i32*, i32** %58, align 8\n %60 = load i32, i32* %14, align 4\n %61 = sub nsw i32 %60, 1\n %62 = sext i32 %61 to i64\n %63 = getelementptr inbounds i32, i32* %59, i...\n %64 = load i32, i32* %63, align 4\n %65 = icmp ne i32 %56, %64\n br i1 %65, label %66, label %82\n"]
- 49 -->|true| 66
- 49 -->|false| 82
- 66["Block 66:\n %67 = load %struct.DynamicArray*, %struct.Dyn...\n %68 = getelementptr inbounds %struct.DynamicA...\n %69 = load i32*, i32** %68, align 8\n %70 = load i32, i32* %14, align 4\n %71 = sext i32 %70 to i64\n %72 = getelementptr inbounds i32, i32* %69, i...\n %73 = load i32, i32* %72, align 4\n %74 = load %struct.DynamicArray*, %struct.Dyn...\n %75 = getelementptr inbounds %struct.DynamicA...\n %76 = load i32*, i32** %75, align 8\n %77 = load i32, i32* %13, align 4\n %78 = sext i32 %77 to i64\n %79 = getelementptr inbounds i32, i32* %76, i...\n store i32 %73, i32* %79, align 4\n %80 = load i32, i32* %13, align 4\n %81 = add nsw i32 %80, 1\n store i32 %81, i32* %13, align 4\n br label %82\n"]
- 66 --> 82
- 82["Block 82:\n br label %83\n"]
- 82 --> 83
- 83["Block 83:\n %84 = load i32, i32* %14, align 4\n %85 = add nsw i32 %84, 1\n store i32 %85, i32* %14, align 4\n br label %43\n"]
- 83 --> 43
- 86["Block 86:\n %87 = load i32, i32* %13, align 4\n %88 = load %struct.DynamicArray*, %struct.Dyn...\n %89 = getelementptr inbounds %struct.DynamicA...\n store i32 %87, i32* %89, align 8\n %90 = load %struct.DynamicArray*, %struct.Dyn...\n %91 = getelementptr inbounds %struct.DynamicA...\n store i32 1, i32* %91, align 8\n br label %bunker_phi_0\n"]
- 86 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %92 = icmp eq i1 %0, true\n br i1 %92, label %93, label %target_skip_1\n"]
- target_cond_1 -->|true| 93
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 93["Block 93:\n %94 = load i32, i32* %8, align 4\n %95 = icmp slt i32 %94, 5\n br i1 %95, label %96, label %101\n"]
- 93 -->|true| 96
- 93 -->|false| 101
- 96["Block 96:\n %97 = load i32, i32* %7, align 4\n %98 = add nsw i32 %97, 1\n store i32 %98, i32* %7, align 4\n %99 = load i32, i32* %6, align 4\n %100 = icmp sgt i32 %99, 2\n br i1 %100, label %103, label %104\n"]
- 96 -->|true| 103
- 96 -->|false| 104
- 101["Block 101:\n %102 = load i32, i32* %7, align 4\n store i32 %102, i32* %5, align 4\n br label %105\n"]
- 101 --> 105
- 103["Block 103:\n store i32 23, i32* %5, align 4\n br label %105\n"]
- 103 --> 105
- 104["Block 104:\n br label %107\n"]
- 104 --> 107
- 105["Block 105:\n %106 = load i32, i32* %5, align 4\n ret i32 %22\n"]
- 107["Block 107:\n %108 = load i32, i32* %8, align 4\n %109 = add nsw i32 %108, 1\n store i32 %109, i32* %8, align 4\n br label %target_phi_1\n"]
- 107 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %110 = icmp eq i1 %0, false\n br i1 %110, label %111, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 111
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret i32 0\n"]
- 111["Block 111:\n ret i32 0\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [DEBUG][updateCallSite] Original call instruction:
- %12 = call i32 @testPoints(i32 5)
- [DEBUG][updateCallSite] Adding target control parameter
- [DEBUG][updateCallSite] Adding default bunker parameters:
- [DEBUG][updateCallSite] Parameter type: struct.DynamicArray*
- [DEBUG][updateCallSite] Adding original call parameters:
- [DEBUG][updateCallSite] Argument 0: type=i32
- [DEBUG][updateCallSite] New call instruction:
- %12 = call i32 @fused_removeDuplicates(i1 true, %struct.DynamicArray* null, i32 5)
- [DEBUG][updateCallSite] Processing non-void return value of type: i32
- [DEBUG][updateCallSite] Using direct return value
- [DEBUG][updateCallSite] Successfully replaced all uses of original call
- [INFO][updateCallSite] Successfully updated call site from %12 = call i32 @testPoints(i32 5) to %12 = call i32 @fused_removeDuplicates(i1 true, %struct.DynamicArray* null, i32 5)
- [INFO][performCodeFusion] Listing all instructions after update calls in function: fused_removeDuplicates
- ```mermaid: fused_removeDuplicates
- graph TD
- entry["Block entry:\n br label %target_cond_0\n"]
- entry --> target_cond_0
- target_cond_0["Block target_cond_0:\n %3 = icmp eq i1 %0, true\n br i1 %3, label %4, label %target_skip_0\n"]
- target_cond_0 -->|true| 4
- target_cond_0 -->|false| target_skip_0
- target_skip_0["Block target_skip_0:\n br label %target_phi_0\n"]
- target_skip_0 --> target_phi_0
- target_phi_0["Block target_phi_0:\n br label %bunker_cond_0\n"]
- target_phi_0 --> bunker_cond_0
- 4["Block 4:\n %5 = alloca i32, align 4\n %6 = alloca i32, align 4\n %7 = alloca i32, align 4\n %8 = alloca i32, align 4\n store i32 %2, i32* %6, align 4\n store i32 0, i32* %7, align 4\n store i32 1, i32* %8, align 4\n br label %target_phi_0\n"]
- 4 --> target_phi_0
- bunker_cond_0["Block bunker_cond_0:\n %9 = icmp eq i1 %0, false\n br i1 %9, label %10, label %bunker_skip_0\n"]
- bunker_cond_0 -->|true| 10
- bunker_cond_0 -->|false| bunker_skip_0
- bunker_skip_0["Block bunker_skip_0:\n br label %bunker_phi_0\n"]
- bunker_skip_0 --> bunker_phi_0
- bunker_phi_0["Block bunker_phi_0:\n br label %target_cond_1\n"]
- bunker_phi_0 --> target_cond_1
- 10["Block 10:\n %11 = alloca %struct.DynamicArray*, align 8\n %12 = alloca i32, align 4\n %13 = alloca i32, align 4\n %14 = alloca i32, align 4\n store %struct.DynamicArray* %1, %struct.Dynam...\n %15 = load %struct.DynamicArray*, %struct.Dyn...\n %16 = icmp ne %struct.DynamicArray* %15, null\n br i1 %16, label %17, label %22\n"]
- 10 -->|true| 17
- 10 -->|false| 22
- 17["Block 17:\n %18 = load %struct.DynamicArray*, %struct.Dyn...\n %19 = getelementptr inbounds %struct.DynamicA...\n %20 = load i32*, i32** %19, align 8\n %21 = icmp ne i32* %20, null\n br i1 %21, label %24, label %22\n"]
- 17 -->|true| 24
- 17 -->|false| 22
- 22["Block 22:\n %23 = call i32 @fused_setErrorMessage(i1 fals...\n br label %111\n"]
- 22 --> 111
- 24["Block 24:\n %25 = load %struct.DynamicArray*, %struct.Dyn...\n %26 = getelementptr inbounds %struct.DynamicA...\n %27 = load i32, i32* %26, align 8\n %28 = icmp sle i32 %27, 1\n br i1 %28, label %29, label %30\n"]
- 24 -->|true| 29
- 24 -->|false| 30
- 29["Block 29:\n br label %111\n"]
- 29 --> 111
- 30["Block 30:\n store i32 0, i32* %12, align 4\n %31 = load %struct.DynamicArray*, %struct.Dyn...\n %32 = getelementptr inbounds %struct.DynamicA...\n %33 = load i32*, i32** %32, align 8\n %34 = load %struct.DynamicArray*, %struct.Dyn...\n %35 = getelementptr inbounds %struct.DynamicA...\n %36 = load i32, i32* %35, align 8\n %37 = sub nsw i32 %36, 1\n %38 = call i32 @fused_quickSort(i1 false, i32...\n %39 = load i32, i32* %12, align 4\n %40 = icmp ne i32 %39, 0\n br i1 %40, label %41, label %42\n"]
- 30 -->|true| 41
- 30 -->|false| 42
- 41["Block 41:\n br label %111\n"]
- 41 --> 111
- 42["Block 42:\n store i32 1, i32* %13, align 4\n store i32 1, i32* %14, align 4\n br label %43\n"]
- 42 --> 43
- 43["Block 43:\n %44 = load i32, i32* %14, align 4\n %45 = load %struct.DynamicArray*, %struct.Dyn...\n %46 = getelementptr inbounds %struct.DynamicA...\n %47 = load i32, i32* %46, align 8\n %48 = icmp slt i32 %44, %47\n br i1 %48, label %49, label %86\n"]
- 43 -->|true| 49
- 43 -->|false| 86
- 49["Block 49:\n %50 = load %struct.DynamicArray*, %struct.Dyn...\n %51 = getelementptr inbounds %struct.DynamicA...\n %52 = load i32*, i32** %51, align 8\n %53 = load i32, i32* %14, align 4\n %54 = sext i32 %53 to i64\n %55 = getelementptr inbounds i32, i32* %52, i...\n %56 = load i32, i32* %55, align 4\n %57 = load %struct.DynamicArray*, %struct.Dyn...\n %58 = getelementptr inbounds %struct.DynamicA...\n %59 = load i32*, i32** %58, align 8\n %60 = load i32, i32* %14, align 4\n %61 = sub nsw i32 %60, 1\n %62 = sext i32 %61 to i64\n %63 = getelementptr inbounds i32, i32* %59, i...\n %64 = load i32, i32* %63, align 4\n %65 = icmp ne i32 %56, %64\n br i1 %65, label %66, label %82\n"]
- 49 -->|true| 66
- 49 -->|false| 82
- 66["Block 66:\n %67 = load %struct.DynamicArray*, %struct.Dyn...\n %68 = getelementptr inbounds %struct.DynamicA...\n %69 = load i32*, i32** %68, align 8\n %70 = load i32, i32* %14, align 4\n %71 = sext i32 %70 to i64\n %72 = getelementptr inbounds i32, i32* %69, i...\n %73 = load i32, i32* %72, align 4\n %74 = load %struct.DynamicArray*, %struct.Dyn...\n %75 = getelementptr inbounds %struct.DynamicA...\n %76 = load i32*, i32** %75, align 8\n %77 = load i32, i32* %13, align 4\n %78 = sext i32 %77 to i64\n %79 = getelementptr inbounds i32, i32* %76, i...\n store i32 %73, i32* %79, align 4\n %80 = load i32, i32* %13, align 4\n %81 = add nsw i32 %80, 1\n store i32 %81, i32* %13, align 4\n br label %82\n"]
- 66 --> 82
- 82["Block 82:\n br label %83\n"]
- 82 --> 83
- 83["Block 83:\n %84 = load i32, i32* %14, align 4\n %85 = add nsw i32 %84, 1\n store i32 %85, i32* %14, align 4\n br label %43\n"]
- 83 --> 43
- 86["Block 86:\n %87 = load i32, i32* %13, align 4\n %88 = load %struct.DynamicArray*, %struct.Dyn...\n %89 = getelementptr inbounds %struct.DynamicA...\n store i32 %87, i32* %89, align 8\n %90 = load %struct.DynamicArray*, %struct.Dyn...\n %91 = getelementptr inbounds %struct.DynamicA...\n store i32 1, i32* %91, align 8\n br label %bunker_phi_0\n"]
- 86 --> bunker_phi_0
- target_cond_1["Block target_cond_1:\n %92 = icmp eq i1 %0, true\n br i1 %92, label %93, label %target_skip_1\n"]
- target_cond_1 -->|true| 93
- target_cond_1 -->|false| target_skip_1
- target_skip_1["Block target_skip_1:\n br label %target_phi_1\n"]
- target_skip_1 --> target_phi_1
- target_phi_1["Block target_phi_1:\n br label %bunker_cond_1\n"]
- target_phi_1 --> bunker_cond_1
- 93["Block 93:\n %94 = load i32, i32* %8, align 4\n %95 = icmp slt i32 %94, 5\n br i1 %95, label %96, label %101\n"]
- 93 -->|true| 96
- 93 -->|false| 101
- 96["Block 96:\n %97 = load i32, i32* %7, align 4\n %98 = add nsw i32 %97, 1\n store i32 %98, i32* %7, align 4\n %99 = load i32, i32* %6, align 4\n %100 = icmp sgt i32 %99, 2\n br i1 %100, label %103, label %104\n"]
- 96 -->|true| 103
- 96 -->|false| 104
- 101["Block 101:\n %102 = load i32, i32* %7, align 4\n store i32 %102, i32* %5, align 4\n br label %105\n"]
- 101 --> 105
- 103["Block 103:\n store i32 23, i32* %5, align 4\n br label %105\n"]
- 103 --> 105
- 104["Block 104:\n br label %107\n"]
- 104 --> 107
- 105["Block 105:\n %106 = load i32, i32* %5, align 4\n ret i32 <badref>\n"]
- 107["Block 107:\n %108 = load i32, i32* %8, align 4\n %109 = add nsw i32 %108, 1\n store i32 %109, i32* %8, align 4\n br label %target_phi_1\n"]
- 107 --> target_phi_1
- bunker_cond_1["Block bunker_cond_1:\n %110 = icmp eq i1 %0, false\n br i1 %110, label %111, label %bunker_skip_1\n"]
- bunker_cond_1 -->|true| 111
- bunker_cond_1 -->|false| bunker_skip_1
- bunker_skip_1["Block bunker_skip_1:\n br label %bunker_phi_1\n"]
- bunker_skip_1 --> bunker_phi_1
- bunker_phi_1["Block bunker_phi_1:\n ret i32 0\n"]
- 111["Block 111:\n ret i32 0\n"]
- classDef critical fill:#f96,stroke:#333,stroke-width:4px
- ```
- [INFO][performCodeFusion] Completed function fusion: fused_removeDuplicates
- [INFO][performCodeFusion] Code fusion completed, processed 7 function pairs
- Instruction does not dominate all uses!
- %8 = alloca i32, align 4
- %261 = load i32, i32* %8, align 4
- Instruction does not dominate all uses!
- %8 = alloca i32, align 4
- %264 = load i32, i32* %8, align 4
- Instruction does not dominate all uses!
- %9 = alloca i32, align 4
- %266 = load i32, i32* %9, align 4
- Instruction does not dominate all uses!
- %9 = alloca i32, align 4
- store i32 %267, i32* %9, align 4
- Instruction does not dominate all uses!
- %8 = alloca i32, align 4
- %268 = load i32, i32* %8, align 4
- Instruction does not dominate all uses!
- %8 = alloca i32, align 4
- store i32 %269, i32* %8, align 4
- Instruction does not dominate all uses!
- %9 = alloca i32, align 4
- %271 = load i32, i32* %9, align 4
- in function fused_quickSort
- LLVM ERROR: Broken function found, compilation aborted!
|