d4dag.ll 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142
  1. ; ModuleID = 'd4dag.bc'
  2. source_filename = "d4dag.c"
  3. target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
  4. target triple = "x86_64-pc-linux-gnu"
  5. %struct.d4d__maing = type { i8* (i32)*, void (i8*)* }
  6. %struct.splay_tree_s = type { %struct.splay_tree_node_s*, i32 (i64, i64)*, void (i64)*, void (i64)*, i8* (i32, i8*)*, void (i8*, i8*)*, i8* }
  7. %struct.splay_tree_node_s = type { i64, i64, %struct.splay_tree_node_s*, %struct.splay_tree_node_s* }
  8. @d4d__main = internal global %struct.d4d__maing* null, align 8
  9. ; Function Attrs: noinline nounwind optnone uwtable
  10. define dso_local i32 @d4d_version() #0 {
  11. ret i32 10
  12. }
  13. ; Function Attrs: noinline nounwind optnone uwtable
  14. define dso_local i32 @d4d_init(i8* (i32)* %0, void (i8*)* %1) #0 {
  15. %3 = alloca i32, align 4
  16. %4 = alloca i8* (i32)*, align 8
  17. %5 = alloca void (i8*)*, align 8
  18. %6 = alloca %struct.splay_tree_s*, align 8
  19. %7 = alloca i64, align 8
  20. %8 = alloca %struct.splay_tree_node_s*, align 8
  21. store i8* (i32)* %0, i8* (i32)** %4, align 8
  22. store void (i8*)* %1, void (i8*)** %5, align 8
  23. %9 = load i8* (i32)*, i8* (i32)** %4, align 8
  24. %10 = icmp ne i8* (i32)* %9, null
  25. br i1 %10, label %12, label %11
  26. 11: ; preds = %2
  27. store i32 -1, i32* %3, align 4
  28. br label %49
  29. 12: ; preds = %2
  30. %13 = load void (i8*)*, void (i8*)** %5, align 8
  31. %14 = icmp ne void (i8*)* %13, null
  32. br i1 %14, label %16, label %15
  33. 15: ; preds = %12
  34. store i32 -1, i32* %3, align 4
  35. br label %49
  36. 16: ; preds = %12
  37. %17 = load i8* (i32)*, i8* (i32)** %4, align 8
  38. %18 = call i8* %17(i32 16)
  39. %19 = bitcast i8* %18 to %struct.d4d__maing*
  40. store %struct.d4d__maing* %19, %struct.d4d__maing** @d4d__main, align 8
  41. %20 = load %struct.d4d__maing*, %struct.d4d__maing** @d4d__main, align 8
  42. %21 = icmp ne %struct.d4d__maing* %20, null
  43. br i1 %21, label %23, label %22
  44. 22: ; preds = %16
  45. store i32 -2, i32* %3, align 4
  46. br label %49
  47. 23: ; preds = %16
  48. %24 = load %struct.d4d__maing*, %struct.d4d__maing** @d4d__main, align 8
  49. %25 = bitcast %struct.d4d__maing* %24 to i8*
  50. call void @d4d__memzero(i8* %25, i32 16)
  51. %26 = load i8* (i32)*, i8* (i32)** %4, align 8
  52. %27 = load %struct.d4d__maing*, %struct.d4d__maing** @d4d__main, align 8
  53. %28 = getelementptr inbounds %struct.d4d__maing, %struct.d4d__maing* %27, i32 0, i32 0
  54. store i8* (i32)* %26, i8* (i32)** %28, align 8
  55. %29 = load void (i8*)*, void (i8*)** %5, align 8
  56. %30 = load %struct.d4d__maing*, %struct.d4d__maing** @d4d__main, align 8
  57. %31 = getelementptr inbounds %struct.d4d__maing, %struct.d4d__maing* %30, i32 0, i32 1
  58. store void (i8*)* %29, void (i8*)** %31, align 8
  59. store %struct.splay_tree_s* null, %struct.splay_tree_s** %6, align 8
  60. store i64 0, i64* %7, align 8
  61. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %8, align 8
  62. %32 = call %struct.splay_tree_s* @splay_tree_new(i32 (i64, i64)* @splay_tree_compare_ints, void (i64)* null, void (i64)* null)
  63. store %struct.splay_tree_s* %32, %struct.splay_tree_s** %6, align 8
  64. store i64 0, i64* %7, align 8
  65. br label %33
  66. 33: ; preds = %44, %23
  67. %34 = load i64, i64* %7, align 8
  68. %35 = icmp ult i64 %34, 10
  69. br i1 %35, label %36, label %47
  70. 36: ; preds = %33
  71. %37 = load %struct.splay_tree_s*, %struct.splay_tree_s** %6, align 8
  72. %38 = load i64, i64* %7, align 8
  73. %39 = call %struct.splay_tree_node_s* @d4dag___splay_tree_insert(%struct.splay_tree_s* %37, i64 %38, i64 0)
  74. store %struct.splay_tree_node_s* %39, %struct.splay_tree_node_s** %8, align 8
  75. %40 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  76. %41 = icmp ne %struct.splay_tree_node_s* %40, null
  77. br i1 %41, label %43, label %42
  78. 42: ; preds = %36
  79. br label %43
  80. 43: ; preds = %42, %36
  81. br label %44
  82. 44: ; preds = %43
  83. %45 = load i64, i64* %7, align 8
  84. %46 = add i64 %45, 1
  85. store i64 %46, i64* %7, align 8
  86. br label %33
  87. 47: ; preds = %33
  88. %48 = load %struct.splay_tree_s*, %struct.splay_tree_s** %6, align 8
  89. call void @d4dag___splay_tree_delete(%struct.splay_tree_s* %48)
  90. store i32 0, i32* %3, align 4
  91. br label %49
  92. 49: ; preds = %47, %22, %15, %11
  93. %50 = load i32, i32* %3, align 4
  94. ret i32 %50
  95. }
  96. ; Function Attrs: noinline nounwind optnone uwtable
  97. define internal void @d4d__memzero(i8* %0, i32 %1) #0 {
  98. %3 = alloca i8*, align 8
  99. %4 = alloca i32, align 4
  100. %5 = alloca i8*, align 8
  101. store i8* %0, i8** %3, align 8
  102. store i32 %1, i32* %4, align 4
  103. store i8* null, i8** %5, align 8
  104. %6 = load i8*, i8** %3, align 8
  105. store i8* %6, i8** %5, align 8
  106. br label %7
  107. 7: ; preds = %10, %2
  108. %8 = load i32, i32* %4, align 4
  109. %9 = icmp ne i32 %8, 0
  110. br i1 %9, label %10, label %16
  111. 10: ; preds = %7
  112. %11 = load i8*, i8** %5, align 8
  113. store i8 0, i8* %11, align 1
  114. %12 = load i8*, i8** %5, align 8
  115. %13 = getelementptr inbounds i8, i8* %12, i32 1
  116. store i8* %13, i8** %5, align 8
  117. %14 = load i32, i32* %4, align 4
  118. %15 = add i32 %14, -1
  119. store i32 %15, i32* %4, align 4
  120. br label %7
  121. 16: ; preds = %7
  122. ret void
  123. }
  124. ; Function Attrs: noinline nounwind optnone uwtable
  125. define internal %struct.splay_tree_s* @splay_tree_new(i32 (i64, i64)* %0, void (i64)* %1, void (i64)* %2) #0 {
  126. %4 = alloca i32 (i64, i64)*, align 8
  127. %5 = alloca void (i64)*, align 8
  128. %6 = alloca void (i64)*, align 8
  129. store i32 (i64, i64)* %0, i32 (i64, i64)** %4, align 8
  130. store void (i64)* %1, void (i64)** %5, align 8
  131. store void (i64)* %2, void (i64)** %6, align 8
  132. %7 = load i32 (i64, i64)*, i32 (i64, i64)** %4, align 8
  133. %8 = load void (i64)*, void (i64)** %5, align 8
  134. %9 = load void (i64)*, void (i64)** %6, align 8
  135. %10 = call %struct.splay_tree_s* @splay_tree_new_with_allocator(i32 (i64, i64)* %7, void (i64)* %8, void (i64)* %9, i8* (i32, i8*)* @splay_tree_xmalloc_allocate, void (i8*, i8*)* @splay_tree_xmalloc_deallocate, i8* null)
  136. ret %struct.splay_tree_s* %10
  137. }
  138. ; Function Attrs: noinline nounwind optnone uwtable
  139. define internal i32 @splay_tree_compare_ints(i64 %0, i64 %1) #0 {
  140. %3 = alloca i32, align 4
  141. %4 = alloca i64, align 8
  142. %5 = alloca i64, align 8
  143. store i64 %0, i64* %4, align 8
  144. store i64 %1, i64* %5, align 8
  145. %6 = load i64, i64* %4, align 8
  146. %7 = trunc i64 %6 to i32
  147. %8 = load i64, i64* %5, align 8
  148. %9 = trunc i64 %8 to i32
  149. %10 = icmp slt i32 %7, %9
  150. br i1 %10, label %11, label %12
  151. 11: ; preds = %2
  152. store i32 -1, i32* %3, align 4
  153. br label %20
  154. 12: ; preds = %2
  155. %13 = load i64, i64* %4, align 8
  156. %14 = trunc i64 %13 to i32
  157. %15 = load i64, i64* %5, align 8
  158. %16 = trunc i64 %15 to i32
  159. %17 = icmp sgt i32 %14, %16
  160. br i1 %17, label %18, label %19
  161. 18: ; preds = %12
  162. store i32 1, i32* %3, align 4
  163. br label %20
  164. 19: ; preds = %12
  165. store i32 0, i32* %3, align 4
  166. br label %20
  167. 20: ; preds = %19, %18, %11
  168. %21 = load i32, i32* %3, align 4
  169. ret i32 %21
  170. }
  171. ; Function Attrs: noinline nounwind optnone uwtable
  172. define internal %struct.splay_tree_node_s* @d4dag___splay_tree_insert(%struct.splay_tree_s* %0, i64 %1, i64 %2) #0 {
  173. %4 = alloca %struct.splay_tree_s*, align 8
  174. %5 = alloca i64, align 8
  175. %6 = alloca i64, align 8
  176. %7 = alloca i32, align 4
  177. %8 = alloca %struct.splay_tree_node_s*, align 8
  178. store %struct.splay_tree_s* %0, %struct.splay_tree_s** %4, align 8
  179. store i64 %1, i64* %5, align 8
  180. store i64 %2, i64* %6, align 8
  181. store i32 0, i32* %7, align 4
  182. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %8, align 8
  183. %9 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  184. %10 = load i64, i64* %5, align 8
  185. call void @splay_tree_splay(%struct.splay_tree_s* %9, i64 %10)
  186. %11 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  187. %12 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %11, i32 0, i32 0
  188. %13 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %12, align 8
  189. %14 = icmp ne %struct.splay_tree_node_s* %13, null
  190. br i1 %14, label %15, label %26
  191. 15: ; preds = %3
  192. %16 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  193. %17 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %16, i32 0, i32 1
  194. %18 = load i32 (i64, i64)*, i32 (i64, i64)** %17, align 8
  195. %19 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  196. %20 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %19, i32 0, i32 0
  197. %21 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %20, align 8
  198. %22 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %21, i32 0, i32 0
  199. %23 = load i64, i64* %22, align 8
  200. %24 = load i64, i64* %5, align 8
  201. %25 = call i32 %18(i64 %23, i64 %24)
  202. store i32 %25, i32* %7, align 4
  203. br label %26
  204. 26: ; preds = %15, %3
  205. %27 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  206. %28 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %27, i32 0, i32 0
  207. %29 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %28, align 8
  208. %30 = icmp ne %struct.splay_tree_node_s* %29, null
  209. br i1 %30, label %31, label %73
  210. 31: ; preds = %26
  211. %32 = load i32, i32* %7, align 4
  212. %33 = icmp eq i32 %32, 0
  213. br i1 %33, label %34, label %73
  214. 34: ; preds = %31
  215. %35 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  216. %36 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %35, i32 0, i32 2
  217. %37 = load void (i64)*, void (i64)** %36, align 8
  218. %38 = icmp ne void (i64)* %37, null
  219. br i1 %38, label %39, label %48
  220. 39: ; preds = %34
  221. %40 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  222. %41 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %40, i32 0, i32 2
  223. %42 = load void (i64)*, void (i64)** %41, align 8
  224. %43 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  225. %44 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %43, i32 0, i32 0
  226. %45 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %44, align 8
  227. %46 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %45, i32 0, i32 0
  228. %47 = load i64, i64* %46, align 8
  229. call void %42(i64 %47)
  230. br label %48
  231. 48: ; preds = %39, %34
  232. %49 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  233. %50 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %49, i32 0, i32 3
  234. %51 = load void (i64)*, void (i64)** %50, align 8
  235. %52 = icmp ne void (i64)* %51, null
  236. br i1 %52, label %53, label %62
  237. 53: ; preds = %48
  238. %54 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  239. %55 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %54, i32 0, i32 3
  240. %56 = load void (i64)*, void (i64)** %55, align 8
  241. %57 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  242. %58 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %57, i32 0, i32 0
  243. %59 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %58, align 8
  244. %60 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %59, i32 0, i32 1
  245. %61 = load i64, i64* %60, align 8
  246. call void %56(i64 %61)
  247. br label %62
  248. 62: ; preds = %53, %48
  249. %63 = load i64, i64* %5, align 8
  250. %64 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  251. %65 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %64, i32 0, i32 0
  252. %66 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %65, align 8
  253. %67 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %66, i32 0, i32 0
  254. store i64 %63, i64* %67, align 8
  255. %68 = load i64, i64* %6, align 8
  256. %69 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  257. %70 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %69, i32 0, i32 0
  258. %71 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %70, align 8
  259. %72 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %71, i32 0, i32 1
  260. store i64 %68, i64* %72, align 8
  261. br label %139
  262. 73: ; preds = %31, %26
  263. %74 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  264. %75 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %74, i32 0, i32 4
  265. %76 = load i8* (i32, i8*)*, i8* (i32, i8*)** %75, align 8
  266. %77 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  267. %78 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %77, i32 0, i32 6
  268. %79 = load i8*, i8** %78, align 8
  269. %80 = call i8* %76(i32 32, i8* %79)
  270. %81 = bitcast i8* %80 to %struct.splay_tree_node_s*
  271. store %struct.splay_tree_node_s* %81, %struct.splay_tree_node_s** %8, align 8
  272. %82 = load i64, i64* %5, align 8
  273. %83 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  274. %84 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %83, i32 0, i32 0
  275. store i64 %82, i64* %84, align 8
  276. %85 = load i64, i64* %6, align 8
  277. %86 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  278. %87 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %86, i32 0, i32 1
  279. store i64 %85, i64* %87, align 8
  280. %88 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  281. %89 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %88, i32 0, i32 0
  282. %90 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %89, align 8
  283. %91 = icmp ne %struct.splay_tree_node_s* %90, null
  284. br i1 %91, label %97, label %92
  285. 92: ; preds = %73
  286. %93 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  287. %94 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %93, i32 0, i32 2
  288. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %94, align 8
  289. %95 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  290. %96 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %95, i32 0, i32 3
  291. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %96, align 8
  292. br label %135
  293. 97: ; preds = %73
  294. %98 = load i32, i32* %7, align 4
  295. %99 = icmp slt i32 %98, 0
  296. br i1 %99, label %100, label %117
  297. 100: ; preds = %97
  298. %101 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  299. %102 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %101, i32 0, i32 0
  300. %103 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %102, align 8
  301. %104 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  302. %105 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %104, i32 0, i32 2
  303. store %struct.splay_tree_node_s* %103, %struct.splay_tree_node_s** %105, align 8
  304. %106 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  305. %107 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %106, i32 0, i32 2
  306. %108 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %107, align 8
  307. %109 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %108, i32 0, i32 3
  308. %110 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %109, align 8
  309. %111 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  310. %112 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %111, i32 0, i32 3
  311. store %struct.splay_tree_node_s* %110, %struct.splay_tree_node_s** %112, align 8
  312. %113 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  313. %114 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %113, i32 0, i32 2
  314. %115 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %114, align 8
  315. %116 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %115, i32 0, i32 3
  316. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %116, align 8
  317. br label %134
  318. 117: ; preds = %97
  319. %118 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  320. %119 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %118, i32 0, i32 0
  321. %120 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %119, align 8
  322. %121 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  323. %122 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %121, i32 0, i32 3
  324. store %struct.splay_tree_node_s* %120, %struct.splay_tree_node_s** %122, align 8
  325. %123 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  326. %124 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %123, i32 0, i32 3
  327. %125 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %124, align 8
  328. %126 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %125, i32 0, i32 2
  329. %127 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %126, align 8
  330. %128 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  331. %129 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %128, i32 0, i32 2
  332. store %struct.splay_tree_node_s* %127, %struct.splay_tree_node_s** %129, align 8
  333. %130 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  334. %131 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %130, i32 0, i32 3
  335. %132 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %131, align 8
  336. %133 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %132, i32 0, i32 2
  337. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %133, align 8
  338. br label %134
  339. 134: ; preds = %117, %100
  340. br label %135
  341. 135: ; preds = %134, %92
  342. %136 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  343. %137 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  344. %138 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %137, i32 0, i32 0
  345. store %struct.splay_tree_node_s* %136, %struct.splay_tree_node_s** %138, align 8
  346. br label %139
  347. 139: ; preds = %135, %62
  348. %140 = load %struct.splay_tree_s*, %struct.splay_tree_s** %4, align 8
  349. %141 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %140, i32 0, i32 0
  350. %142 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %141, align 8
  351. ret %struct.splay_tree_node_s* %142
  352. }
  353. ; Function Attrs: noinline nounwind optnone uwtable
  354. define internal void @d4dag___splay_tree_delete(%struct.splay_tree_s* %0) #0 {
  355. %2 = alloca %struct.splay_tree_s*, align 8
  356. store %struct.splay_tree_s* %0, %struct.splay_tree_s** %2, align 8
  357. %3 = load %struct.splay_tree_s*, %struct.splay_tree_s** %2, align 8
  358. %4 = load %struct.splay_tree_s*, %struct.splay_tree_s** %2, align 8
  359. %5 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %4, i32 0, i32 0
  360. %6 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  361. call void @splay_tree_delete_helper(%struct.splay_tree_s* %3, %struct.splay_tree_node_s* %6)
  362. %7 = load %struct.splay_tree_s*, %struct.splay_tree_s** %2, align 8
  363. %8 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %7, i32 0, i32 5
  364. %9 = load void (i8*, i8*)*, void (i8*, i8*)** %8, align 8
  365. %10 = load %struct.splay_tree_s*, %struct.splay_tree_s** %2, align 8
  366. %11 = bitcast %struct.splay_tree_s* %10 to i8*
  367. %12 = load %struct.splay_tree_s*, %struct.splay_tree_s** %2, align 8
  368. %13 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %12, i32 0, i32 6
  369. %14 = load i8*, i8** %13, align 8
  370. call void %9(i8* %11, i8* %14)
  371. ret void
  372. }
  373. ; Function Attrs: noinline nounwind optnone uwtable
  374. define dso_local i32 @d4d_deinit() #0 {
  375. %1 = alloca i32, align 4
  376. %2 = load %struct.d4d__maing*, %struct.d4d__maing** @d4d__main, align 8
  377. %3 = icmp ne %struct.d4d__maing* %2, null
  378. br i1 %3, label %5, label %4
  379. 4: ; preds = %0
  380. store i32 0, i32* %1, align 4
  381. br label %11
  382. 5: ; preds = %0
  383. %6 = load %struct.d4d__maing*, %struct.d4d__maing** @d4d__main, align 8
  384. %7 = getelementptr inbounds %struct.d4d__maing, %struct.d4d__maing* %6, i32 0, i32 1
  385. %8 = load void (i8*)*, void (i8*)** %7, align 8
  386. %9 = load %struct.d4d__maing*, %struct.d4d__maing** @d4d__main, align 8
  387. %10 = bitcast %struct.d4d__maing* %9 to i8*
  388. call void %8(i8* %10)
  389. store %struct.d4d__maing* null, %struct.d4d__maing** @d4d__main, align 8
  390. store i32 0, i32* %1, align 4
  391. br label %11
  392. 11: ; preds = %5, %4
  393. %12 = load i32, i32* %1, align 4
  394. ret i32 %12
  395. }
  396. ; Function Attrs: noinline nounwind optnone uwtable
  397. define internal %struct.splay_tree_s* @splay_tree_new_with_allocator(i32 (i64, i64)* %0, void (i64)* %1, void (i64)* %2, i8* (i32, i8*)* %3, void (i8*, i8*)* %4, i8* %5) #0 {
  398. %7 = alloca i32 (i64, i64)*, align 8
  399. %8 = alloca void (i64)*, align 8
  400. %9 = alloca void (i64)*, align 8
  401. %10 = alloca i8* (i32, i8*)*, align 8
  402. %11 = alloca void (i8*, i8*)*, align 8
  403. %12 = alloca i8*, align 8
  404. store i32 (i64, i64)* %0, i32 (i64, i64)** %7, align 8
  405. store void (i64)* %1, void (i64)** %8, align 8
  406. store void (i64)* %2, void (i64)** %9, align 8
  407. store i8* (i32, i8*)* %3, i8* (i32, i8*)** %10, align 8
  408. store void (i8*, i8*)* %4, void (i8*, i8*)** %11, align 8
  409. store i8* %5, i8** %12, align 8
  410. %13 = load i32 (i64, i64)*, i32 (i64, i64)** %7, align 8
  411. %14 = load void (i64)*, void (i64)** %8, align 8
  412. %15 = load void (i64)*, void (i64)** %9, align 8
  413. %16 = load i8* (i32, i8*)*, i8* (i32, i8*)** %10, align 8
  414. %17 = load i8* (i32, i8*)*, i8* (i32, i8*)** %10, align 8
  415. %18 = load void (i8*, i8*)*, void (i8*, i8*)** %11, align 8
  416. %19 = load i8*, i8** %12, align 8
  417. %20 = call %struct.splay_tree_s* @splay_tree_new_typed_alloc(i32 (i64, i64)* %13, void (i64)* %14, void (i64)* %15, i8* (i32, i8*)* %16, i8* (i32, i8*)* %17, void (i8*, i8*)* %18, i8* %19)
  418. ret %struct.splay_tree_s* %20
  419. }
  420. ; Function Attrs: noinline nounwind optnone uwtable
  421. define internal i8* @splay_tree_xmalloc_allocate(i32 %0, i8* %1) #0 {
  422. %3 = alloca i32, align 4
  423. %4 = alloca i8*, align 8
  424. %5 = alloca i8*, align 8
  425. store i32 %0, i32* %3, align 4
  426. store i8* %1, i8** %4, align 8
  427. store i8* null, i8** %5, align 8
  428. %6 = load i8*, i8** %4, align 8
  429. %7 = icmp ne i8* %6, null
  430. br i1 %7, label %8, label %9
  431. 8: ; preds = %2
  432. br label %9
  433. 9: ; preds = %8, %2
  434. %10 = load %struct.d4d__maing*, %struct.d4d__maing** @d4d__main, align 8
  435. %11 = getelementptr inbounds %struct.d4d__maing, %struct.d4d__maing* %10, i32 0, i32 0
  436. %12 = load i8* (i32)*, i8* (i32)** %11, align 8
  437. %13 = load i32, i32* %3, align 4
  438. %14 = call i8* %12(i32 %13)
  439. store i8* %14, i8** %5, align 8
  440. %15 = load i8*, i8** %5, align 8
  441. %16 = load i32, i32* %3, align 4
  442. call void @d4d__memzero(i8* %15, i32 %16)
  443. %17 = load i8*, i8** %5, align 8
  444. ret i8* %17
  445. }
  446. ; Function Attrs: noinline nounwind optnone uwtable
  447. define internal void @splay_tree_xmalloc_deallocate(i8* %0, i8* %1) #0 {
  448. %3 = alloca i8*, align 8
  449. %4 = alloca i8*, align 8
  450. store i8* %0, i8** %3, align 8
  451. store i8* %1, i8** %4, align 8
  452. %5 = load i8*, i8** %3, align 8
  453. %6 = icmp ne i8* %5, null
  454. br i1 %6, label %7, label %12
  455. 7: ; preds = %2
  456. %8 = load %struct.d4d__maing*, %struct.d4d__maing** @d4d__main, align 8
  457. %9 = getelementptr inbounds %struct.d4d__maing, %struct.d4d__maing* %8, i32 0, i32 1
  458. %10 = load void (i8*)*, void (i8*)** %9, align 8
  459. %11 = load i8*, i8** %3, align 8
  460. call void %10(i8* %11)
  461. br label %12
  462. 12: ; preds = %7, %2
  463. %13 = load i8*, i8** %4, align 8
  464. %14 = icmp ne i8* %13, null
  465. br i1 %14, label %15, label %16
  466. 15: ; preds = %12
  467. br label %16
  468. 16: ; preds = %15, %12
  469. ret void
  470. }
  471. ; Function Attrs: noinline nounwind optnone uwtable
  472. define internal %struct.splay_tree_s* @splay_tree_new_typed_alloc(i32 (i64, i64)* %0, void (i64)* %1, void (i64)* %2, i8* (i32, i8*)* %3, i8* (i32, i8*)* %4, void (i8*, i8*)* %5, i8* %6) #0 {
  473. %8 = alloca i32 (i64, i64)*, align 8
  474. %9 = alloca void (i64)*, align 8
  475. %10 = alloca void (i64)*, align 8
  476. %11 = alloca i8* (i32, i8*)*, align 8
  477. %12 = alloca i8* (i32, i8*)*, align 8
  478. %13 = alloca void (i8*, i8*)*, align 8
  479. %14 = alloca i8*, align 8
  480. %15 = alloca %struct.splay_tree_s*, align 8
  481. store i32 (i64, i64)* %0, i32 (i64, i64)** %8, align 8
  482. store void (i64)* %1, void (i64)** %9, align 8
  483. store void (i64)* %2, void (i64)** %10, align 8
  484. store i8* (i32, i8*)* %3, i8* (i32, i8*)** %11, align 8
  485. store i8* (i32, i8*)* %4, i8* (i32, i8*)** %12, align 8
  486. store void (i8*, i8*)* %5, void (i8*, i8*)** %13, align 8
  487. store i8* %6, i8** %14, align 8
  488. %16 = load i8* (i32, i8*)*, i8* (i32, i8*)** %11, align 8
  489. %17 = load i8*, i8** %14, align 8
  490. %18 = call i8* %16(i32 56, i8* %17)
  491. %19 = bitcast i8* %18 to %struct.splay_tree_s*
  492. store %struct.splay_tree_s* %19, %struct.splay_tree_s** %15, align 8
  493. %20 = load %struct.splay_tree_s*, %struct.splay_tree_s** %15, align 8
  494. %21 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %20, i32 0, i32 0
  495. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %21, align 8
  496. %22 = load i32 (i64, i64)*, i32 (i64, i64)** %8, align 8
  497. %23 = load %struct.splay_tree_s*, %struct.splay_tree_s** %15, align 8
  498. %24 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %23, i32 0, i32 1
  499. store i32 (i64, i64)* %22, i32 (i64, i64)** %24, align 8
  500. %25 = load void (i64)*, void (i64)** %9, align 8
  501. %26 = load %struct.splay_tree_s*, %struct.splay_tree_s** %15, align 8
  502. %27 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %26, i32 0, i32 2
  503. store void (i64)* %25, void (i64)** %27, align 8
  504. %28 = load void (i64)*, void (i64)** %10, align 8
  505. %29 = load %struct.splay_tree_s*, %struct.splay_tree_s** %15, align 8
  506. %30 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %29, i32 0, i32 3
  507. store void (i64)* %28, void (i64)** %30, align 8
  508. %31 = load i8* (i32, i8*)*, i8* (i32, i8*)** %12, align 8
  509. %32 = load %struct.splay_tree_s*, %struct.splay_tree_s** %15, align 8
  510. %33 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %32, i32 0, i32 4
  511. store i8* (i32, i8*)* %31, i8* (i32, i8*)** %33, align 8
  512. %34 = load void (i8*, i8*)*, void (i8*, i8*)** %13, align 8
  513. %35 = load %struct.splay_tree_s*, %struct.splay_tree_s** %15, align 8
  514. %36 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %35, i32 0, i32 5
  515. store void (i8*, i8*)* %34, void (i8*, i8*)** %36, align 8
  516. %37 = load i8*, i8** %14, align 8
  517. %38 = load %struct.splay_tree_s*, %struct.splay_tree_s** %15, align 8
  518. %39 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %38, i32 0, i32 6
  519. store i8* %37, i8** %39, align 8
  520. %40 = load %struct.splay_tree_s*, %struct.splay_tree_s** %15, align 8
  521. ret %struct.splay_tree_s* %40
  522. }
  523. ; Function Attrs: noinline nounwind optnone uwtable
  524. define internal void @splay_tree_delete_helper(%struct.splay_tree_s* %0, %struct.splay_tree_node_s* %1) #0 {
  525. %3 = alloca %struct.splay_tree_s*, align 8
  526. %4 = alloca %struct.splay_tree_node_s*, align 8
  527. %5 = alloca %struct.splay_tree_node_s*, align 8
  528. %6 = alloca %struct.splay_tree_node_s*, align 8
  529. %7 = alloca %struct.splay_tree_node_s*, align 8
  530. store %struct.splay_tree_s* %0, %struct.splay_tree_s** %3, align 8
  531. store %struct.splay_tree_node_s* %1, %struct.splay_tree_node_s** %4, align 8
  532. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %5, align 8
  533. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %6, align 8
  534. %8 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %4, align 8
  535. %9 = icmp ne %struct.splay_tree_node_s* %8, null
  536. br i1 %9, label %11, label %10
  537. 10: ; preds = %2
  538. br label %151
  539. 11: ; preds = %2
  540. %12 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  541. %13 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %12, i32 0, i32 2
  542. %14 = load void (i64)*, void (i64)** %13, align 8
  543. %15 = icmp ne void (i64)* %14, null
  544. br i1 %15, label %16, label %23
  545. 16: ; preds = %11
  546. %17 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  547. %18 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %17, i32 0, i32 2
  548. %19 = load void (i64)*, void (i64)** %18, align 8
  549. %20 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %4, align 8
  550. %21 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %20, i32 0, i32 0
  551. %22 = load i64, i64* %21, align 8
  552. call void %19(i64 %22)
  553. br label %23
  554. 23: ; preds = %16, %11
  555. %24 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  556. %25 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %24, i32 0, i32 3
  557. %26 = load void (i64)*, void (i64)** %25, align 8
  558. %27 = icmp ne void (i64)* %26, null
  559. br i1 %27, label %28, label %35
  560. 28: ; preds = %23
  561. %29 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  562. %30 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %29, i32 0, i32 3
  563. %31 = load void (i64)*, void (i64)** %30, align 8
  564. %32 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %4, align 8
  565. %33 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %32, i32 0, i32 1
  566. %34 = load i64, i64* %33, align 8
  567. call void %31(i64 %34)
  568. br label %35
  569. 35: ; preds = %28, %23
  570. %36 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  571. %37 = ptrtoint %struct.splay_tree_node_s* %36 to i64
  572. %38 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %4, align 8
  573. %39 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %38, i32 0, i32 0
  574. store i64 %37, i64* %39, align 8
  575. %40 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %4, align 8
  576. store %struct.splay_tree_node_s* %40, %struct.splay_tree_node_s** %5, align 8
  577. br label %41
  578. 41: ; preds = %149, %35
  579. %42 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  580. %43 = icmp ne %struct.splay_tree_node_s* %42, null
  581. br i1 %43, label %44, label %150
  582. 44: ; preds = %41
  583. %45 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  584. store %struct.splay_tree_node_s* %45, %struct.splay_tree_node_s** %6, align 8
  585. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %5, align 8
  586. br label %46
  587. 46: ; preds = %135, %44
  588. %47 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  589. %48 = icmp ne %struct.splay_tree_node_s* %47, null
  590. br i1 %48, label %49, label %149
  591. 49: ; preds = %46
  592. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %7, align 8
  593. %50 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  594. %51 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %50, i32 0, i32 2
  595. %52 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %51, align 8
  596. %53 = icmp ne %struct.splay_tree_node_s* %52, null
  597. br i1 %53, label %54, label %92
  598. 54: ; preds = %49
  599. %55 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  600. %56 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %55, i32 0, i32 2
  601. %57 = load void (i64)*, void (i64)** %56, align 8
  602. %58 = icmp ne void (i64)* %57, null
  603. br i1 %58, label %59, label %68
  604. 59: ; preds = %54
  605. %60 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  606. %61 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %60, i32 0, i32 2
  607. %62 = load void (i64)*, void (i64)** %61, align 8
  608. %63 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  609. %64 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %63, i32 0, i32 2
  610. %65 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %64, align 8
  611. %66 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %65, i32 0, i32 0
  612. %67 = load i64, i64* %66, align 8
  613. call void %62(i64 %67)
  614. br label %68
  615. 68: ; preds = %59, %54
  616. %69 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  617. %70 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %69, i32 0, i32 3
  618. %71 = load void (i64)*, void (i64)** %70, align 8
  619. %72 = icmp ne void (i64)* %71, null
  620. br i1 %72, label %73, label %82
  621. 73: ; preds = %68
  622. %74 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  623. %75 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %74, i32 0, i32 3
  624. %76 = load void (i64)*, void (i64)** %75, align 8
  625. %77 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  626. %78 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %77, i32 0, i32 2
  627. %79 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %78, align 8
  628. %80 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %79, i32 0, i32 1
  629. %81 = load i64, i64* %80, align 8
  630. call void %76(i64 %81)
  631. br label %82
  632. 82: ; preds = %73, %68
  633. %83 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  634. %84 = ptrtoint %struct.splay_tree_node_s* %83 to i64
  635. %85 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  636. %86 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %85, i32 0, i32 2
  637. %87 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %86, align 8
  638. %88 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %87, i32 0, i32 0
  639. store i64 %84, i64* %88, align 8
  640. %89 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  641. %90 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %89, i32 0, i32 2
  642. %91 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %90, align 8
  643. store %struct.splay_tree_node_s* %91, %struct.splay_tree_node_s** %5, align 8
  644. br label %92
  645. 92: ; preds = %82, %49
  646. %93 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  647. %94 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %93, i32 0, i32 3
  648. %95 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %94, align 8
  649. %96 = icmp ne %struct.splay_tree_node_s* %95, null
  650. br i1 %96, label %97, label %135
  651. 97: ; preds = %92
  652. %98 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  653. %99 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %98, i32 0, i32 2
  654. %100 = load void (i64)*, void (i64)** %99, align 8
  655. %101 = icmp ne void (i64)* %100, null
  656. br i1 %101, label %102, label %111
  657. 102: ; preds = %97
  658. %103 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  659. %104 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %103, i32 0, i32 2
  660. %105 = load void (i64)*, void (i64)** %104, align 8
  661. %106 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  662. %107 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %106, i32 0, i32 3
  663. %108 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %107, align 8
  664. %109 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %108, i32 0, i32 0
  665. %110 = load i64, i64* %109, align 8
  666. call void %105(i64 %110)
  667. br label %111
  668. 111: ; preds = %102, %97
  669. %112 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  670. %113 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %112, i32 0, i32 3
  671. %114 = load void (i64)*, void (i64)** %113, align 8
  672. %115 = icmp ne void (i64)* %114, null
  673. br i1 %115, label %116, label %125
  674. 116: ; preds = %111
  675. %117 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  676. %118 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %117, i32 0, i32 3
  677. %119 = load void (i64)*, void (i64)** %118, align 8
  678. %120 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  679. %121 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %120, i32 0, i32 3
  680. %122 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %121, align 8
  681. %123 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %122, i32 0, i32 1
  682. %124 = load i64, i64* %123, align 8
  683. call void %119(i64 %124)
  684. br label %125
  685. 125: ; preds = %116, %111
  686. %126 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  687. %127 = ptrtoint %struct.splay_tree_node_s* %126 to i64
  688. %128 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  689. %129 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %128, i32 0, i32 3
  690. %130 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %129, align 8
  691. %131 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %130, i32 0, i32 0
  692. store i64 %127, i64* %131, align 8
  693. %132 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  694. %133 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %132, i32 0, i32 3
  695. %134 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %133, align 8
  696. store %struct.splay_tree_node_s* %134, %struct.splay_tree_node_s** %5, align 8
  697. br label %135
  698. 135: ; preds = %125, %92
  699. %136 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  700. store %struct.splay_tree_node_s* %136, %struct.splay_tree_node_s** %7, align 8
  701. %137 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  702. %138 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %137, i32 0, i32 0
  703. %139 = load i64, i64* %138, align 8
  704. %140 = inttoptr i64 %139 to %struct.splay_tree_node_s*
  705. store %struct.splay_tree_node_s* %140, %struct.splay_tree_node_s** %6, align 8
  706. %141 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  707. %142 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %141, i32 0, i32 5
  708. %143 = load void (i8*, i8*)*, void (i8*, i8*)** %142, align 8
  709. %144 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  710. %145 = bitcast %struct.splay_tree_node_s* %144 to i8*
  711. %146 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  712. %147 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %146, i32 0, i32 6
  713. %148 = load i8*, i8** %147, align 8
  714. call void %143(i8* %145, i8* %148)
  715. br label %46
  716. 149: ; preds = %46
  717. br label %41
  718. 150: ; preds = %41
  719. br label %151
  720. 151: ; preds = %150, %10
  721. ret void
  722. }
  723. ; Function Attrs: noinline nounwind optnone uwtable
  724. define internal void @splay_tree_splay(%struct.splay_tree_s* %0, i64 %1) #0 {
  725. %3 = alloca %struct.splay_tree_s*, align 8
  726. %4 = alloca i64, align 8
  727. %5 = alloca i32, align 4
  728. %6 = alloca i32, align 4
  729. %7 = alloca %struct.splay_tree_node_s*, align 8
  730. %8 = alloca %struct.splay_tree_node_s*, align 8
  731. store %struct.splay_tree_s* %0, %struct.splay_tree_s** %3, align 8
  732. store i64 %1, i64* %4, align 8
  733. store i32 0, i32* %5, align 4
  734. store i32 0, i32* %6, align 4
  735. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %7, align 8
  736. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %8, align 8
  737. %9 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  738. %10 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %9, i32 0, i32 0
  739. %11 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %10, align 8
  740. %12 = icmp ne %struct.splay_tree_node_s* %11, null
  741. br i1 %12, label %14, label %13
  742. 13: ; preds = %2
  743. br label %169
  744. 14: ; preds = %2
  745. br label %15
  746. 15: ; preds = %167, %14
  747. %16 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  748. %17 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %16, i32 0, i32 0
  749. %18 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %17, align 8
  750. store %struct.splay_tree_node_s* %18, %struct.splay_tree_node_s** %7, align 8
  751. %19 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  752. %20 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %19, i32 0, i32 1
  753. %21 = load i32 (i64, i64)*, i32 (i64, i64)** %20, align 8
  754. %22 = load i64, i64* %4, align 8
  755. %23 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  756. %24 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %23, i32 0, i32 0
  757. %25 = load i64, i64* %24, align 8
  758. %26 = call i32 %21(i64 %22, i64 %25)
  759. store i32 %26, i32* %5, align 4
  760. %27 = load i32, i32* %5, align 4
  761. %28 = icmp eq i32 %27, 0
  762. br i1 %28, label %29, label %30
  763. 29: ; preds = %15
  764. br label %169
  765. 30: ; preds = %15
  766. %31 = load i32, i32* %5, align 4
  767. %32 = icmp slt i32 %31, 0
  768. br i1 %32, label %33, label %37
  769. 33: ; preds = %30
  770. %34 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  771. %35 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %34, i32 0, i32 2
  772. %36 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %35, align 8
  773. store %struct.splay_tree_node_s* %36, %struct.splay_tree_node_s** %8, align 8
  774. br label %41
  775. 37: ; preds = %30
  776. %38 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  777. %39 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %38, i32 0, i32 3
  778. %40 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %39, align 8
  779. store %struct.splay_tree_node_s* %40, %struct.splay_tree_node_s** %8, align 8
  780. br label %41
  781. 41: ; preds = %37, %33
  782. %42 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  783. %43 = icmp ne %struct.splay_tree_node_s* %42, null
  784. br i1 %43, label %45, label %44
  785. 44: ; preds = %41
  786. br label %169
  787. 45: ; preds = %41
  788. %46 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  789. %47 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %46, i32 0, i32 1
  790. %48 = load i32 (i64, i64)*, i32 (i64, i64)** %47, align 8
  791. %49 = load i64, i64* %4, align 8
  792. %50 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  793. %51 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %50, i32 0, i32 0
  794. %52 = load i64, i64* %51, align 8
  795. %53 = call i32 %48(i64 %49, i64 %52)
  796. store i32 %53, i32* %6, align 4
  797. %54 = load i32, i32* %6, align 4
  798. %55 = icmp eq i32 %54, 0
  799. br i1 %55, label %72, label %56
  800. 56: ; preds = %45
  801. %57 = load i32, i32* %6, align 4
  802. %58 = icmp slt i32 %57, 0
  803. br i1 %58, label %59, label %64
  804. 59: ; preds = %56
  805. %60 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  806. %61 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %60, i32 0, i32 2
  807. %62 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %61, align 8
  808. %63 = icmp ne %struct.splay_tree_node_s* %62, null
  809. br i1 %63, label %64, label %72
  810. 64: ; preds = %59, %56
  811. %65 = load i32, i32* %6, align 4
  812. %66 = icmp sgt i32 %65, 0
  813. br i1 %66, label %67, label %86
  814. 67: ; preds = %64
  815. %68 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  816. %69 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %68, i32 0, i32 3
  817. %70 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %69, align 8
  818. %71 = icmp ne %struct.splay_tree_node_s* %70, null
  819. br i1 %71, label %86, label %72
  820. 72: ; preds = %67, %59, %45
  821. %73 = load i32, i32* %5, align 4
  822. %74 = icmp slt i32 %73, 0
  823. br i1 %74, label %75, label %80
  824. 75: ; preds = %72
  825. %76 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  826. %77 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %76, i32 0, i32 0
  827. %78 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  828. %79 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  829. call void @rotate_left(%struct.splay_tree_node_s** %77, %struct.splay_tree_node_s* %78, %struct.splay_tree_node_s* %79)
  830. br label %85
  831. 80: ; preds = %72
  832. %81 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  833. %82 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %81, i32 0, i32 0
  834. %83 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  835. %84 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  836. call void @rotate_right(%struct.splay_tree_node_s** %82, %struct.splay_tree_node_s* %83, %struct.splay_tree_node_s* %84)
  837. br label %85
  838. 85: ; preds = %80, %75
  839. br label %169
  840. 86: ; preds = %67, %64
  841. %87 = load i32, i32* %5, align 4
  842. %88 = icmp slt i32 %87, 0
  843. br i1 %88, label %89, label %105
  844. 89: ; preds = %86
  845. %90 = load i32, i32* %6, align 4
  846. %91 = icmp slt i32 %90, 0
  847. br i1 %91, label %92, label %105
  848. 92: ; preds = %89
  849. %93 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  850. %94 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %93, i32 0, i32 2
  851. %95 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  852. %96 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  853. %97 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %96, i32 0, i32 2
  854. %98 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %97, align 8
  855. call void @rotate_left(%struct.splay_tree_node_s** %94, %struct.splay_tree_node_s* %95, %struct.splay_tree_node_s* %98)
  856. %99 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  857. %100 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %99, i32 0, i32 0
  858. %101 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  859. %102 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  860. %103 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %102, i32 0, i32 2
  861. %104 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %103, align 8
  862. call void @rotate_left(%struct.splay_tree_node_s** %100, %struct.splay_tree_node_s* %101, %struct.splay_tree_node_s* %104)
  863. br label %166
  864. 105: ; preds = %89, %86
  865. %106 = load i32, i32* %5, align 4
  866. %107 = icmp sgt i32 %106, 0
  867. br i1 %107, label %108, label %124
  868. 108: ; preds = %105
  869. %109 = load i32, i32* %6, align 4
  870. %110 = icmp sgt i32 %109, 0
  871. br i1 %110, label %111, label %124
  872. 111: ; preds = %108
  873. %112 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  874. %113 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %112, i32 0, i32 3
  875. %114 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  876. %115 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  877. %116 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %115, i32 0, i32 3
  878. %117 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %116, align 8
  879. call void @rotate_right(%struct.splay_tree_node_s** %113, %struct.splay_tree_node_s* %114, %struct.splay_tree_node_s* %117)
  880. %118 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  881. %119 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %118, i32 0, i32 0
  882. %120 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  883. %121 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  884. %122 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %121, i32 0, i32 3
  885. %123 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %122, align 8
  886. call void @rotate_right(%struct.splay_tree_node_s** %119, %struct.splay_tree_node_s* %120, %struct.splay_tree_node_s* %123)
  887. br label %165
  888. 124: ; preds = %108, %105
  889. %125 = load i32, i32* %5, align 4
  890. %126 = icmp slt i32 %125, 0
  891. br i1 %126, label %127, label %143
  892. 127: ; preds = %124
  893. %128 = load i32, i32* %6, align 4
  894. %129 = icmp sgt i32 %128, 0
  895. br i1 %129, label %130, label %143
  896. 130: ; preds = %127
  897. %131 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  898. %132 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %131, i32 0, i32 2
  899. %133 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  900. %134 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  901. %135 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %134, i32 0, i32 3
  902. %136 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %135, align 8
  903. call void @rotate_right(%struct.splay_tree_node_s** %132, %struct.splay_tree_node_s* %133, %struct.splay_tree_node_s* %136)
  904. %137 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  905. %138 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %137, i32 0, i32 0
  906. %139 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  907. %140 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  908. %141 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %140, i32 0, i32 2
  909. %142 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %141, align 8
  910. call void @rotate_left(%struct.splay_tree_node_s** %138, %struct.splay_tree_node_s* %139, %struct.splay_tree_node_s* %142)
  911. br label %164
  912. 143: ; preds = %127, %124
  913. %144 = load i32, i32* %5, align 4
  914. %145 = icmp sgt i32 %144, 0
  915. br i1 %145, label %146, label %162
  916. 146: ; preds = %143
  917. %147 = load i32, i32* %6, align 4
  918. %148 = icmp slt i32 %147, 0
  919. br i1 %148, label %149, label %162
  920. 149: ; preds = %146
  921. %150 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  922. %151 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %150, i32 0, i32 3
  923. %152 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  924. %153 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %8, align 8
  925. %154 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %153, i32 0, i32 2
  926. %155 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %154, align 8
  927. call void @rotate_left(%struct.splay_tree_node_s** %151, %struct.splay_tree_node_s* %152, %struct.splay_tree_node_s* %155)
  928. %156 = load %struct.splay_tree_s*, %struct.splay_tree_s** %3, align 8
  929. %157 = getelementptr inbounds %struct.splay_tree_s, %struct.splay_tree_s* %156, i32 0, i32 0
  930. %158 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  931. %159 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  932. %160 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %159, i32 0, i32 3
  933. %161 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %160, align 8
  934. call void @rotate_right(%struct.splay_tree_node_s** %157, %struct.splay_tree_node_s* %158, %struct.splay_tree_node_s* %161)
  935. br label %163
  936. 162: ; preds = %146, %143
  937. br label %163
  938. 163: ; preds = %162, %149
  939. br label %164
  940. 164: ; preds = %163, %130
  941. br label %165
  942. 165: ; preds = %164, %111
  943. br label %166
  944. 166: ; preds = %165, %92
  945. br label %167
  946. 167: ; preds = %166
  947. br i1 true, label %15, label %168
  948. 168: ; preds = %167
  949. br label %169
  950. 169: ; preds = %168, %85, %44, %29, %13
  951. ret void
  952. }
  953. ; Function Attrs: noinline nounwind optnone uwtable
  954. define internal void @rotate_left(%struct.splay_tree_node_s** %0, %struct.splay_tree_node_s* %1, %struct.splay_tree_node_s* %2) #0 {
  955. %4 = alloca %struct.splay_tree_node_s**, align 8
  956. %5 = alloca %struct.splay_tree_node_s*, align 8
  957. %6 = alloca %struct.splay_tree_node_s*, align 8
  958. %7 = alloca %struct.splay_tree_node_s*, align 8
  959. store %struct.splay_tree_node_s** %0, %struct.splay_tree_node_s*** %4, align 8
  960. store %struct.splay_tree_node_s* %1, %struct.splay_tree_node_s** %5, align 8
  961. store %struct.splay_tree_node_s* %2, %struct.splay_tree_node_s** %6, align 8
  962. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %7, align 8
  963. %8 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  964. %9 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %8, i32 0, i32 3
  965. %10 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %9, align 8
  966. store %struct.splay_tree_node_s* %10, %struct.splay_tree_node_s** %7, align 8
  967. %11 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  968. %12 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  969. %13 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %12, i32 0, i32 3
  970. store %struct.splay_tree_node_s* %11, %struct.splay_tree_node_s** %13, align 8
  971. %14 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  972. %15 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  973. %16 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %15, i32 0, i32 2
  974. store %struct.splay_tree_node_s* %14, %struct.splay_tree_node_s** %16, align 8
  975. %17 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  976. %18 = load %struct.splay_tree_node_s**, %struct.splay_tree_node_s*** %4, align 8
  977. store %struct.splay_tree_node_s* %17, %struct.splay_tree_node_s** %18, align 8
  978. ret void
  979. }
  980. ; Function Attrs: noinline nounwind optnone uwtable
  981. define internal void @rotate_right(%struct.splay_tree_node_s** %0, %struct.splay_tree_node_s* %1, %struct.splay_tree_node_s* %2) #0 {
  982. %4 = alloca %struct.splay_tree_node_s**, align 8
  983. %5 = alloca %struct.splay_tree_node_s*, align 8
  984. %6 = alloca %struct.splay_tree_node_s*, align 8
  985. %7 = alloca %struct.splay_tree_node_s*, align 8
  986. store %struct.splay_tree_node_s** %0, %struct.splay_tree_node_s*** %4, align 8
  987. store %struct.splay_tree_node_s* %1, %struct.splay_tree_node_s** %5, align 8
  988. store %struct.splay_tree_node_s* %2, %struct.splay_tree_node_s** %6, align 8
  989. store %struct.splay_tree_node_s* null, %struct.splay_tree_node_s** %7, align 8
  990. %8 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  991. %9 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %8, i32 0, i32 2
  992. %10 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %9, align 8
  993. store %struct.splay_tree_node_s* %10, %struct.splay_tree_node_s** %7, align 8
  994. %11 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  995. %12 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  996. %13 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %12, i32 0, i32 2
  997. store %struct.splay_tree_node_s* %11, %struct.splay_tree_node_s** %13, align 8
  998. %14 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %7, align 8
  999. %15 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %5, align 8
  1000. %16 = getelementptr inbounds %struct.splay_tree_node_s, %struct.splay_tree_node_s* %15, i32 0, i32 3
  1001. store %struct.splay_tree_node_s* %14, %struct.splay_tree_node_s** %16, align 8
  1002. %17 = load %struct.splay_tree_node_s*, %struct.splay_tree_node_s** %6, align 8
  1003. %18 = load %struct.splay_tree_node_s**, %struct.splay_tree_node_s*** %4, align 8
  1004. store %struct.splay_tree_node_s* %17, %struct.splay_tree_node_s** %18, align 8
  1005. ret void
  1006. }
  1007. attributes #0 = { noinline nounwind optnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
  1008. !llvm.module.flags = !{!0}
  1009. !llvm.ident = !{!1}
  1010. !0 = !{i32 1, !"wchar_size", i32 4}
  1011. !1 = !{!"Debian clang version 11.0.1-2"}