; LLVM IR from VAR-solutions/Algorithms :: Graphs/Minimum Spanning Tree/C++/kruskal.ll (Z14findMstKruskalR11LinkedGraph)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.LinkedList = type <{ ptr, ptr, i32, [4 x i8] }>
%class.LinkedGraph = type { ptr }
%class.LinkedGraphEdge = type { i32, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z14findMstKruskalR11LinkedGraph(ptr noundef nonnull align 8 dereferenceable(8) %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %class.LinkedList, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %class.LinkedGraph, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %23, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %24 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 8) #9
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = invoke noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %25)
          to label %27 unwind label %40

27:                                               ; preds = %1
  invoke void @_ZN11LinkedGraphC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %24, i32 noundef %26)
          to label %28 unwind label %40

28:                                               ; preds = %27
  store ptr %24, ptr %4, align 8, !tbaa !5
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = call noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %29)
  %31 = zext i32 %30 to i64
  %32 = call ptr @llvm.stacksave.p0()
  store ptr %32, ptr %7, align 8
  %33 = alloca i32, i64 %31, align 16
  store i64 %31, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %34

34:                                               ; preds = %49, %28
  %35 = load i32, ptr %9, align 4, !tbaa !11
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = call noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %36)
  %38 = icmp slt i32 %35, %37
  br i1 %38, label %44, label %39

39:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %52

40:                                               ; preds = %27, %1
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %5, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %24, i64 noundef 8) #10
  br label %241

44:                                               ; preds = %34
  %45 = load i32, ptr %9, align 4, !tbaa !11
  %46 = load i32, ptr %9, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %33, i64 %47
  store i32 %45, ptr %48, align 4, !tbaa !11
  br label %49

49:                                               ; preds = %44
  %50 = load i32, ptr %9, align 4, !tbaa !11
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %9, align 4, !tbaa !11
  br label %34, !llvm.loop !13

52:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = call noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %53)
  store i32 %54, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @_ZN10LinkedListIP15LinkedGraphEdgeEC1Ev(ptr noundef nonnull align 8 dereferenceable(20) %11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %55

55:                                               ; preds = %105, %52
  %56 = load i32, ptr %12, align 4, !tbaa !11
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = invoke noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %57)
          to label %59 unwind label %62

59:                                               ; preds = %55
  %60 = icmp slt i32 %56, %58
  br i1 %60, label %66, label %61

61:                                               ; preds = %59
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %109

62:                                               ; preds = %55
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %5, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %6, align 4
  br label %108

66:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %67

67:                                               ; preds = %101, %66
  %68 = load i32, ptr %14, align 4, !tbaa !11
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load i32, ptr %12, align 4, !tbaa !11
  %71 = invoke noundef ptr @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE3getEi(ptr noundef nonnull align 8 dereferenceable(12) %69, i32 noundef %70)
          to label %72 unwind label %77

72:                                               ; preds = %67
  %73 = invoke noundef i32 @_ZN10LinkedListIP15LinkedGraphEdgeE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %71)
          to label %74 unwind label %77

74:                                               ; preds = %72
  %75 = icmp slt i32 %68, %73
  br i1 %75, label %81, label %76

76:                                               ; preds = %74
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %104

77:                                               ; preds = %98, %95, %91, %88, %85, %81, %72, %67
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %5, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %108

81:                                               ; preds = %74
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = load i32, ptr %12, align 4, !tbaa !11
  %84 = invoke noundef ptr @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE3getEi(ptr noundef nonnull align 8 dereferenceable(12) %82, i32 noundef %83)
          to label %85 unwind label %77

85:                                               ; preds = %81
  %86 = load i32, ptr %14, align 4, !tbaa !11
  %87 = invoke noundef ptr @_ZN10LinkedListIP15LinkedGraphEdgeE3getEi(ptr noundef nonnull align 8 dereferenceable(20) %84, i32 noundef %86)
          to label %88 unwind label %77

88:                                               ; preds = %85
  %89 = invoke noundef zeroext i1 @_ZN10LinkedListIP15LinkedGraphEdgeE8containsES1_(ptr noundef nonnull align 8 dereferenceable(20) %11, ptr noundef %87)
          to label %90 unwind label %77

90:                                               ; preds = %88
  br i1 %89, label %100, label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = load i32, ptr %12, align 4, !tbaa !11
  %94 = invoke noundef ptr @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE3getEi(ptr noundef nonnull align 8 dereferenceable(12) %92, i32 noundef %93)
          to label %95 unwind label %77

95:                                               ; preds = %91
  %96 = load i32, ptr %14, align 4, !tbaa !11
  %97 = invoke noundef ptr @_ZN10LinkedListIP15LinkedGraphEdgeE3getEi(ptr noundef nonnull align 8 dereferenceable(20) %94, i32 noundef %96)
          to label %98 unwind label %77

98:                                               ; preds = %95
  invoke void @_ZN10LinkedListIP15LinkedGraphEdgeE3addES1_(ptr noundef nonnull align 8 dereferenceable(20) %11, ptr noundef %97)
          to label %99 unwind label %77

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99, %90
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %14, align 4, !tbaa !11
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %14, align 4, !tbaa !11
  br label %67, !llvm.loop !15

104:                                              ; preds = %76
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %12, align 4, !tbaa !11
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %12, align 4, !tbaa !11
  br label %55, !llvm.loop !16

108:                                              ; preds = %77, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %240

109:                                              ; preds = %61
  br label %110

110:                                              ; preds = %235, %109
  %111 = load i32, ptr %10, align 4, !tbaa !11
  %112 = icmp sgt i32 %111, 1
  br i1 %112, label %113, label %117

113:                                              ; preds = %110
  %114 = invoke noundef i32 @_ZN10LinkedListIP15LinkedGraphEdgeE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11)
          to label %115 unwind label %127

115:                                              ; preds = %113
  %116 = icmp sgt i32 %114, 0
  br label %117

117:                                              ; preds = %115, %110
  %118 = phi i1 [ false, %110 ], [ %116, %115 ]
  br i1 %118, label %119, label %237

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %120 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #8
  store i32 %120, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %121

121:                                              ; preds = %154, %119
  %122 = load i32, ptr %17, align 4, !tbaa !11
  %123 = invoke noundef i32 @_ZN10LinkedListIP15LinkedGraphEdgeE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %11)
          to label %124 unwind label %131

124:                                              ; preds = %121
  %125 = icmp slt i32 %122, %123
  br i1 %125, label %135, label %126

126:                                              ; preds = %124
  store i32 13, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %158

127:                                              ; preds = %113
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %5, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %6, align 4
  br label %240

131:                                              ; preds = %121
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %5, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %6, align 4
  br label %157

135:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %136 = load i32, ptr %17, align 4, !tbaa !11
  %137 = invoke noundef ptr @_ZN10LinkedListIP15LinkedGraphEdgeE3getEi(ptr noundef nonnull align 8 dereferenceable(20) %11, i32 noundef %136)
          to label %138 unwind label %149

138:                                              ; preds = %135
  store ptr %137, ptr %18, align 8, !tbaa !5
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = getelementptr inbounds %class.LinkedGraphEdge, ptr %139, i32 0, i32 2
  %141 = load i32, ptr %140, align 4, !tbaa !17
  %142 = load i32, ptr %15, align 4, !tbaa !11
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %144, label %153

144:                                              ; preds = %138
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = getelementptr inbounds %class.LinkedGraphEdge, ptr %145, i32 0, i32 2
  %147 = load i32, ptr %146, align 4, !tbaa !17
  store i32 %147, ptr %15, align 4, !tbaa !11
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %148, ptr %16, align 8, !tbaa !5
  br label %153

149:                                              ; preds = %135
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %5, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %157

153:                                              ; preds = %144, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %154

154:                                              ; preds = %153
  %155 = load i32, ptr %17, align 4, !tbaa !11
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %17, align 4, !tbaa !11
  br label %121, !llvm.loop !19

157:                                              ; preds = %149, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %236

158:                                              ; preds = %126
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %235

161:                                              ; preds = %158
  %162 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZN10LinkedListIP15LinkedGraphEdgeE6removeES1_(ptr noundef nonnull align 8 dereferenceable(20) %11, ptr noundef %162)
          to label %163 unwind label %202

163:                                              ; preds = %161
  %164 = load ptr, ptr %16, align 8, !tbaa !5
  %165 = getelementptr inbounds %class.LinkedGraphEdge, ptr %164, i32 0, i32 0
  %166 = load i32, ptr %165, align 4, !tbaa !20
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds i32, ptr %33, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !11
  %170 = load ptr, ptr %16, align 8, !tbaa !5
  %171 = getelementptr inbounds %class.LinkedGraphEdge, ptr %170, i32 0, i32 1
  %172 = load i32, ptr %171, align 4, !tbaa !21
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i32, ptr %33, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !11
  %176 = icmp ne i32 %169, %175
  br i1 %176, label %177, label %234

177:                                              ; preds = %163
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = load ptr, ptr %16, align 8, !tbaa !5
  %180 = getelementptr inbounds %class.LinkedGraphEdge, ptr %179, i32 0, i32 0
  %181 = load i32, ptr %180, align 4, !tbaa !20
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = getelementptr inbounds %class.LinkedGraphEdge, ptr %182, i32 0, i32 1
  %184 = load i32, ptr %183, align 4, !tbaa !21
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  %186 = getelementptr inbounds %class.LinkedGraphEdge, ptr %185, i32 0, i32 2
  %187 = load i32, ptr %186, align 4, !tbaa !17
  invoke void @_ZN11LinkedGraph7addEdgeEiii(ptr noundef nonnull align 8 dereferenceable(8) %178, i32 noundef %181, i32 noundef %184, i32 noundef %187)
          to label %188 unwind label %202

188:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %189 = load ptr, ptr %16, align 8, !tbaa !5
  %190 = getelementptr inbounds %class.LinkedGraphEdge, ptr %189, i32 0, i32 1
  %191 = load i32, ptr %190, align 4, !tbaa !21
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %33, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !11
  store i32 %194, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %195

195:                                              ; preds = %228, %188
  %196 = load i32, ptr %20, align 4, !tbaa !11
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = invoke noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %197)
          to label %199 unwind label %206

199:                                              ; preds = %195
  %200 = icmp slt i32 %196, %198
  br i1 %200, label %210, label %201

201:                                              ; preds = %199
  store i32 16, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %231

202:                                              ; preds = %177, %161
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %5, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %6, align 4
  br label %236

206:                                              ; preds = %195
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %5, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %236

210:                                              ; preds = %199
  %211 = load i32, ptr %20, align 4, !tbaa !11
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds i32, ptr %33, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !11
  %215 = load i32, ptr %19, align 4, !tbaa !11
  %216 = icmp eq i32 %214, %215
  br i1 %216, label %217, label %227

217:                                              ; preds = %210
  %218 = load ptr, ptr %16, align 8, !tbaa !5
  %219 = getelementptr inbounds %class.LinkedGraphEdge, ptr %218, i32 0, i32 0
  %220 = load i32, ptr %219, align 4, !tbaa !20
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i32, ptr %33, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !11
  %224 = load i32, ptr %20, align 4, !tbaa !11
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds i32, ptr %33, i64 %225
  store i32 %223, ptr %226, align 4, !tbaa !11
  br label %227

227:                                              ; preds = %217, %210
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %20, align 4, !tbaa !11
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %20, align 4, !tbaa !11
  br label %195, !llvm.loop !22

231:                                              ; preds = %201
  %232 = load i32, ptr %10, align 4, !tbaa !11
  %233 = add nsw i32 %232, -1
  store i32 %233, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %234

234:                                              ; preds = %231, %163
  br label %235

235:                                              ; preds = %234, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %110, !llvm.loop !23

236:                                              ; preds = %206, %202, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %240

237:                                              ; preds = %117
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  store i32 1, ptr %13, align 4
  call void @_ZN10LinkedListIP15LinkedGraphEdgeED1Ev(ptr noundef nonnull align 8 dereferenceable(20) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %239 = load ptr, ptr %7, align 8
  call void @llvm.stackrestore.p0(ptr %239)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  ret ptr %238

240:                                              ; preds = %236, %127, %108
  call void @_ZN10LinkedListIP15LinkedGraphEdgeED1Ev(ptr noundef nonnull align 8 dereferenceable(20) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %241

241:                                              ; preds = %240, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  br label %242

242:                                              ; preds = %241
  %243 = load ptr, ptr %5, align 8
  %244 = load i32, ptr %6, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

declare noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12)) #3

declare i32 @__gxx_personality_v0(...)

declare void @_ZN11LinkedGraphC1Ei(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare void @_ZN10LinkedListIP15LinkedGraphEdgeEC1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #3

declare noundef ptr @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE3getEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) #3

declare noundef i32 @_ZN10LinkedListIP15LinkedGraphEdgeE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) #3

declare noundef zeroext i1 @_ZN10LinkedListIP15LinkedGraphEdgeE8containsES1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) #3

declare noundef ptr @_ZN10LinkedListIP15LinkedGraphEdgeE3getEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #3

declare void @_ZN10LinkedListIP15LinkedGraphEdgeE3addES1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #6 align 2

declare void @_ZN10LinkedListIP15LinkedGraphEdgeE6removeES1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) #3

declare void @_ZN11LinkedGraph7addEdgeEiii(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind
declare void @_ZN10LinkedListIP15LinkedGraphEdgeED1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #7

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind willreturn }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS11LinkedGraph", !6, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!18, !12, i64 8}
!18 = !{!"_ZTS15LinkedGraphEdge", !12, i64 0, !12, i64 4, !12, i64 8}
!19 = distinct !{!19, !14}
!20 = !{!18, !12, i64 0}
!21 = !{!18, !12, i64 4}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.LinkedList = type <{ ptr, ptr, i32, [4 x i8] }>

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_Z14findMstKruskalR11LinkedGraph(ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.LinkedList, align 8
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %4 = tail call noalias noundef nonnull dereferenceable(8) ptr @_Znwm(i64 noundef 8) #8
  %5 = invoke noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %6 unwind label %14

6:                                                ; preds = %1
  invoke void @_ZN11LinkedGraphC1Ei(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %5)
          to label %7 unwind label %14

7:                                                ; preds = %6
  %8 = tail call noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
  %9 = zext i32 %8 to i64
  %10 = alloca i32, i64 %9, align 16
  %11 = tail call noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %7
  %13 = tail call noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #9
  call void @_ZN10LinkedListIP15LinkedGraphEdgeEC1Ev(ptr noundef nonnull align 8 dereferenceable(20) %2)
  br label %21

14:                                               ; preds = %6, %1
  %15 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %4, i64 noundef 8) #10
  br label %117

.lr.ph:                                           ; preds = %7, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %7 ]
  %16 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
  %17 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %17, ptr %16, align 4, !tbaa !10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = tail call noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
  %19 = sext i32 %18 to i64
  %20 = icmp slt i64 %indvars.iv.next, %19
  br i1 %20, label %.lr.ph, label %._crit_edge, !llvm.loop !12

21:                                               ; preds = %33, %._crit_edge
  %.062 = phi i32 [ 0, %._crit_edge ], [ %34, %33 ]
  %22 = invoke noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %23 unwind label %26

23:                                               ; preds = %21
  %24 = icmp slt i32 %.062, %22
  br i1 %24, label %.preheader75, label %.preheader

.preheader:                                       ; preds = %23
  %25 = icmp sgt i32 %13, 1
  br i1 %25, label %.lr.ph80, label %.critedge

26:                                               ; preds = %21
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %116

.preheader75:                                     ; preds = %23, %49
  %.061 = phi i32 [ %50, %49 ], [ 0, %23 ]
  %28 = invoke noundef ptr @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE3getEi(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef %.062)
          to label %29 unwind label %35

29:                                               ; preds = %.preheader75
  %30 = invoke noundef i32 @_ZN10LinkedListIP15LinkedGraphEdgeE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %28)
          to label %31 unwind label %35

31:                                               ; preds = %29
  %32 = icmp slt i32 %.061, %30
  br i1 %32, label %37, label %33

33:                                               ; preds = %31
  %34 = add nuw nsw i32 %.062, 1
  br label %21, !llvm.loop !14

35:                                               ; preds = %48, %46, %44, %41, %39, %37, %29, %.preheader75
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %116

37:                                               ; preds = %31
  %38 = invoke noundef ptr @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE3getEi(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef %.062)
          to label %39 unwind label %35

39:                                               ; preds = %37
  %40 = invoke noundef ptr @_ZN10LinkedListIP15LinkedGraphEdgeE3getEi(ptr noundef nonnull align 8 dereferenceable(20) %38, i32 noundef %.061)
          to label %41 unwind label %35

41:                                               ; preds = %39
  %42 = invoke noundef zeroext i1 @_ZN10LinkedListIP15LinkedGraphEdgeE8containsES1_(ptr noundef nonnull align 8 dereferenceable(20) %2, ptr noundef %40)
          to label %43 unwind label %35

43:                                               ; preds = %41
  br i1 %42, label %49, label %44

44:                                               ; preds = %43
  %45 = invoke noundef ptr @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE3getEi(ptr noundef nonnull align 8 dereferenceable(12) %3, i32 noundef %.062)
          to label %46 unwind label %35

46:                                               ; preds = %44
  %47 = invoke noundef ptr @_ZN10LinkedListIP15LinkedGraphEdgeE3getEi(ptr noundef nonnull align 8 dereferenceable(20) %45, i32 noundef %.061)
          to label %48 unwind label %35

48:                                               ; preds = %46
  invoke void @_ZN10LinkedListIP15LinkedGraphEdgeE3addES1_(ptr noundef nonnull align 8 dereferenceable(20) %2, ptr noundef %47)
          to label %49 unwind label %35

49:                                               ; preds = %43, %48
  %50 = add nuw nsw i32 %.061, 1
  br label %.preheader75, !llvm.loop !15

.lr.ph80:                                         ; preds = %.preheader, %114
  %.06379 = phi i32 [ %.164, %114 ], [ %13, %.preheader ]
  %51 = invoke noundef i32 @_ZN10LinkedListIP15LinkedGraphEdgeE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %2)
          to label %52 unwind label %61

52:                                               ; preds = %.lr.ph80
  %53 = icmp sgt i32 %51, 0
  br i1 %53, label %54, label %.critedge

54:                                               ; preds = %52
  %55 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #9
  br label %56

56:                                               ; preds = %67, %54
  %.059 = phi i32 [ %55, %54 ], [ %spec.select, %67 ]
  %.057 = phi ptr [ null, %54 ], [ %spec.select74, %67 ]
  %.056 = phi i32 [ 0, %54 ], [ %71, %67 ]
  %57 = invoke noundef i32 @_ZN10LinkedListIP15LinkedGraphEdgeE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %2)
          to label %58 unwind label %63

58:                                               ; preds = %56
  %59 = icmp slt i32 %.056, %57
  br i1 %59, label %65, label %60

60:                                               ; preds = %58
  %.not = icmp eq ptr %.057, null
  br i1 %.not, label %114, label %74

61:                                               ; preds = %.lr.ph80
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %116

63:                                               ; preds = %56
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %116

65:                                               ; preds = %58
  %66 = invoke noundef ptr @_ZN10LinkedListIP15LinkedGraphEdgeE3getEi(ptr noundef nonnull align 8 dereferenceable(20) %2, i32 noundef %.056)
          to label %67 unwind label %72

67:                                               ; preds = %65
  %68 = getelementptr inbounds i8, ptr %66, i64 8
  %69 = load i32, ptr %68, align 4, !tbaa !16
  %70 = icmp slt i32 %69, %.059
  %spec.select = call i32 @llvm.smin.i32(i32 %69, i32 %.059)
  %spec.select74 = select i1 %70, ptr %66, ptr %.057
  %71 = add nuw nsw i32 %.056, 1
  br label %56, !llvm.loop !18

72:                                               ; preds = %65
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %116

74:                                               ; preds = %60
  invoke void @_ZN10LinkedListIP15LinkedGraphEdgeE6removeES1_(ptr noundef nonnull align 8 dereferenceable(20) %2, ptr noundef nonnull %.057)
          to label %75 unwind label %100

75:                                               ; preds = %74
  %76 = load i32, ptr %.057, align 4, !tbaa !19
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %10, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !10
  %80 = getelementptr inbounds i8, ptr %.057, i64 4
  %81 = load i32, ptr %80, align 4, !tbaa !20
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr %10, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !10
  %.not67 = icmp eq i32 %79, %84
  br i1 %.not67, label %114, label %85

85:                                               ; preds = %75
  %86 = getelementptr inbounds i8, ptr %.057, i64 8
  %87 = load i32, ptr %86, align 4, !tbaa !16
  invoke void @_ZN11LinkedGraph7addEdgeEiii(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef %76, i32 noundef %81, i32 noundef %87)
          to label %88 unwind label %100

88:                                               ; preds = %85
  %89 = load i32, ptr %80, align 4, !tbaa !20
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i32, ptr %10, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !10
  br label %93

93:                                               ; preds = %113, %88
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %113 ], [ 0, %88 ]
  %94 = invoke noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %95 unwind label %102

95:                                               ; preds = %93
  %96 = sext i32 %94 to i64
  %97 = icmp slt i64 %indvars.iv85, %96
  br i1 %97, label %104, label %98

98:                                               ; preds = %95
  %99 = add nsw i32 %.06379, -1
  br label %114

100:                                              ; preds = %85, %74
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %116

102:                                              ; preds = %93
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %116

104:                                              ; preds = %95
  %105 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv85
  %106 = load i32, ptr %105, align 4, !tbaa !10
  %107 = icmp eq i32 %106, %92
  br i1 %107, label %108, label %113

108:                                              ; preds = %104
  %109 = load i32, ptr %.057, align 4, !tbaa !19
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i32, ptr %10, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !10
  store i32 %112, ptr %105, align 4, !tbaa !10
  br label %113

113:                                              ; preds = %104, %108
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  br label %93, !llvm.loop !21

114:                                              ; preds = %75, %98, %60
  %.164 = phi i32 [ %99, %98 ], [ %.06379, %75 ], [ %.06379, %60 ]
  %115 = icmp sgt i32 %.164, 1
  br i1 %115, label %.lr.ph80, label %.critedge, !llvm.loop !22

.critedge:                                        ; preds = %52, %114, %.preheader
  call void @_ZN10LinkedListIP15LinkedGraphEdgeED1Ev(ptr noundef nonnull align 8 dereferenceable(20) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  ret ptr %4

116:                                              ; preds = %100, %102, %72, %63, %26, %35, %61
  %.pn70.pn = phi { ptr, i32 } [ %62, %61 ], [ %36, %35 ], [ %27, %26 ], [ %103, %102 ], [ %101, %100 ], [ %73, %72 ], [ %64, %63 ]
  call void @_ZN10LinkedListIP15LinkedGraphEdgeED1Ev(ptr noundef nonnull align 8 dereferenceable(20) %2) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  br label %117

117:                                              ; preds = %116, %14
  %.pn70.pn.pn = phi { ptr, i32 } [ %.pn70.pn, %116 ], [ %15, %14 ]
  resume { ptr, i32 } %.pn70.pn.pn
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

declare noundef i32 @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(12)) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare void @_ZN11LinkedGraphC1Ei(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare void @_ZN10LinkedListIP15LinkedGraphEdgeEC1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #3

declare noundef ptr @_ZN9ArrayListIP10LinkedListIP15LinkedGraphEdgeEE3getEi(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZN10LinkedListIP15LinkedGraphEdgeE7getSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN10LinkedListIP15LinkedGraphEdgeE8containsES1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) local_unnamed_addr #3

declare noundef ptr @_ZN10LinkedListIP15LinkedGraphEdgeE3getEi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #3

declare void @_ZN10LinkedListIP15LinkedGraphEdgeE3addES1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() local_unnamed_addr #5 align 2

declare void @_ZN10LinkedListIP15LinkedGraphEdgeE6removeES1_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) local_unnamed_addr #3

declare void @_ZN11LinkedGraph7addEdgeEiii(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN10LinkedListIP15LinkedGraphEdgeED1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS11LinkedGraph", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!17, !11, i64 8}
!17 = !{!"_ZTS15LinkedGraphEdge", !11, i64 0, !11, i64 4, !11, i64 8}
!18 = distinct !{!18, !13}
!19 = !{!17, !11, i64 0}
!20 = !{!17, !11, i64 4}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass