; LLVM IR from UtkarshPathrabe/Competitive-Coding :: Model Algorithms/Graphs (Boruvka's Algorithm for Minimum Spanning Tree)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.Graph = type { i32, i32, ptr }
%struct.subset = type { i32, i32 }
%struct.Edge = type { i32, i32, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findP6subseti(ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5UnionP6subsetii(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10boruvkaMSTP5Graph(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.Graph, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !9
  store i32 %21, ptr %3, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.Graph, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 4, !tbaa !13
  store i32 %24, ptr %4, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.Graph, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  store ptr %27, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %28 = load i32, ptr %3, align 4, !tbaa !12
  %29 = sext i32 %28 to i64
  %30 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %29, i64 8)
  %31 = extractvalue { i64, i1 } %30, 1
  %32 = extractvalue { i64, i1 } %30, 0
  %33 = select i1 %31, i64 -1, i64 %32
  %34 = call noalias noundef nonnull ptr @_Znam(i64 noundef %33) #7
  store ptr %34, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %35 = load i32, ptr %3, align 4, !tbaa !12
  %36 = sext i32 %35 to i64
  %37 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %36, i64 4)
  %38 = extractvalue { i64, i1 } %37, 1
  %39 = extractvalue { i64, i1 } %37, 0
  %40 = select i1 %38, i64 -1, i64 %39
  %41 = call noalias noundef nonnull ptr @_Znam(i64 noundef %40) #7
  store ptr %41, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %42 = load i32, ptr %3, align 4, !tbaa !12
  store i32 %42, ptr %8, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %43

43:                                               ; preds = %60, %1
  %44 = load i32, ptr %10, align 4, !tbaa !12
  %45 = load i32, ptr %3, align 4, !tbaa !12
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %63

48:                                               ; preds = %43
  %49 = load i32, ptr %10, align 4, !tbaa !12
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i32, ptr %10, align 4, !tbaa !12
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %struct.subset, ptr %50, i64 %52
  %54 = getelementptr inbounds %struct.subset, ptr %53, i32 0, i32 0
  store i32 %49, ptr %54, align 4, !tbaa !15
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load i32, ptr %10, align 4, !tbaa !12
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds %struct.subset, ptr %55, i64 %57
  %59 = getelementptr inbounds %struct.subset, ptr %58, i32 0, i32 1
  store i32 0, ptr %59, align 4, !tbaa !17
  br label %60

60:                                               ; preds = %48
  %61 = load i32, ptr %10, align 4, !tbaa !12
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %10, align 4, !tbaa !12
  br label %43, !llvm.loop !18

63:                                               ; preds = %47
  br label %64

64:                                               ; preds = %283, %63
  %65 = load i32, ptr %8, align 4, !tbaa !12
  %66 = icmp sgt i32 %65, 1
  br i1 %66, label %67, label %284

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %68

68:                                               ; preds = %78, %67
  %69 = load i32, ptr %11, align 4, !tbaa !12
  %70 = load i32, ptr %3, align 4, !tbaa !12
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %81

73:                                               ; preds = %68
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load i32, ptr %11, align 4, !tbaa !12
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %74, i64 %76
  store i32 -1, ptr %77, align 4, !tbaa !12
  br label %78

78:                                               ; preds = %73
  %79 = load i32, ptr %11, align 4, !tbaa !12
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %11, align 4, !tbaa !12
  br label %68, !llvm.loop !20

81:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !12
  br label %82

82:                                               ; preds = %175, %81
  %83 = load i32, ptr %12, align 4, !tbaa !12
  %84 = load i32, ptr %4, align 4, !tbaa !12
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 10, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %178

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load i32, ptr %12, align 4, !tbaa !12
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds %struct.Edge, ptr %89, i64 %91
  %93 = getelementptr inbounds %struct.Edge, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 4, !tbaa !21
  %95 = call noundef i32 @_Z4findP6subseti(ptr noundef %88, i32 noundef %94)
  store i32 %95, ptr %14, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load i32, ptr %12, align 4, !tbaa !12
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %struct.Edge, ptr %97, i64 %99
  %101 = getelementptr inbounds %struct.Edge, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !23
  %103 = call noundef i32 @_Z4findP6subseti(ptr noundef %96, i32 noundef %102)
  store i32 %103, ptr %15, align 4, !tbaa !12
  %104 = load i32, ptr %14, align 4, !tbaa !12
  %105 = load i32, ptr %15, align 4, !tbaa !12
  %106 = icmp eq i32 %104, %105
  br i1 %106, label %107, label %108

107:                                              ; preds = %87
  store i32 12, ptr %13, align 4
  br label %172

108:                                              ; preds = %87
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = load i32, ptr %14, align 4, !tbaa !12
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !12
  %114 = icmp eq i32 %113, -1
  br i1 %114, label %133, label %115

115:                                              ; preds = %108
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = load i32, ptr %14, align 4, !tbaa !12
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr %117, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !12
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %struct.Edge, ptr %116, i64 %122
  %124 = getelementptr inbounds %struct.Edge, ptr %123, i32 0, i32 2
  %125 = load i32, ptr %124, align 4, !tbaa !24
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = load i32, ptr %12, align 4, !tbaa !12
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %struct.Edge, ptr %126, i64 %128
  %130 = getelementptr inbounds %struct.Edge, ptr %129, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !24
  %132 = icmp sgt i32 %125, %131
  br i1 %132, label %133, label %139

133:                                              ; preds = %115, %108
  %134 = load i32, ptr %12, align 4, !tbaa !12
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = load i32, ptr %14, align 4, !tbaa !12
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %135, i64 %137
  store i32 %134, ptr %138, align 4, !tbaa !12
  br label %139

139:                                              ; preds = %133, %115
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = load i32, ptr %15, align 4, !tbaa !12
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i32, ptr %140, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !12
  %145 = icmp eq i32 %144, -1
  br i1 %145, label %164, label %146

146:                                              ; preds = %139
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = load i32, ptr %15, align 4, !tbaa !12
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds i32, ptr %148, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !12
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.Edge, ptr %147, i64 %153
  %155 = getelementptr inbounds %struct.Edge, ptr %154, i32 0, i32 2
  %156 = load i32, ptr %155, align 4, !tbaa !24
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = load i32, ptr %12, align 4, !tbaa !12
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds %struct.Edge, ptr %157, i64 %159
  %161 = getelementptr inbounds %struct.Edge, ptr %160, i32 0, i32 2
  %162 = load i32, ptr %161, align 4, !tbaa !24
  %163 = icmp sgt i32 %156, %162
  br i1 %163, label %164, label %170

164:                                              ; preds = %146, %139
  %165 = load i32, ptr %12, align 4, !tbaa !12
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load i32, ptr %15, align 4, !tbaa !12
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds i32, ptr %166, i64 %168
  store i32 %165, ptr %169, align 4, !tbaa !12
  br label %170

170:                                              ; preds = %164, %146
  br label %171

171:                                              ; preds = %170
  store i32 0, ptr %13, align 4
  br label %172

172:                                              ; preds = %171, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  %173 = load i32, ptr %13, align 4
  switch i32 %173, label %290 [
    i32 0, label %174
    i32 12, label %175
  ]

174:                                              ; preds = %172
  br label %175

175:                                              ; preds = %174, %172
  %176 = load i32, ptr %12, align 4, !tbaa !12
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %12, align 4, !tbaa !12
  br label %82, !llvm.loop !25

178:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !12
  br label %179

179:                                              ; preds = %280, %178
  %180 = load i32, ptr %16, align 4, !tbaa !12
  %181 = load i32, ptr %3, align 4, !tbaa !12
  %182 = icmp slt i32 %180, %181
  br i1 %182, label %184, label %183

183:                                              ; preds = %179
  store i32 13, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %283

184:                                              ; preds = %179
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load i32, ptr %16, align 4, !tbaa !12
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i32, ptr %185, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !12
  %190 = icmp ne i32 %189, -1
  br i1 %190, label %191, label %279

191:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = load i32, ptr %16, align 4, !tbaa !12
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds i32, ptr %194, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !12
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds %struct.Edge, ptr %193, i64 %199
  %201 = getelementptr inbounds %struct.Edge, ptr %200, i32 0, i32 0
  %202 = load i32, ptr %201, align 4, !tbaa !21
  %203 = call noundef i32 @_Z4findP6subseti(ptr noundef %192, i32 noundef %202)
  store i32 %203, ptr %17, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = load i32, ptr %16, align 4, !tbaa !12
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds i32, ptr %206, i64 %208
  %210 = load i32, ptr %209, align 4, !tbaa !12
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds %struct.Edge, ptr %205, i64 %211
  %213 = getelementptr inbounds %struct.Edge, ptr %212, i32 0, i32 1
  %214 = load i32, ptr %213, align 4, !tbaa !23
  %215 = call noundef i32 @_Z4findP6subseti(ptr noundef %204, i32 noundef %214)
  store i32 %215, ptr %18, align 4, !tbaa !12
  %216 = load i32, ptr %17, align 4, !tbaa !12
  %217 = load i32, ptr %18, align 4, !tbaa !12
  %218 = icmp eq i32 %216, %217
  br i1 %218, label %219, label %220

219:                                              ; preds = %191
  store i32 15, ptr %13, align 4
  br label %276

220:                                              ; preds = %191
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = load i32, ptr %16, align 4, !tbaa !12
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds i32, ptr %222, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !12
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds %struct.Edge, ptr %221, i64 %227
  %229 = getelementptr inbounds %struct.Edge, ptr %228, i32 0, i32 2
  %230 = load i32, ptr %229, align 4, !tbaa !24
  %231 = load i32, ptr %9, align 4, !tbaa !12
  %232 = add nsw i32 %231, %230
  store i32 %232, ptr %9, align 4, !tbaa !12
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = load i32, ptr %16, align 4, !tbaa !12
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds i32, ptr %235, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !12
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds %struct.Edge, ptr %234, i64 %240
  %242 = getelementptr inbounds %struct.Edge, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 4, !tbaa !21
  %244 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %233, i32 noundef %243)
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %244, ptr noundef @.str.1)
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  %248 = load i32, ptr %16, align 4, !tbaa !12
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds i32, ptr %247, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !12
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds %struct.Edge, ptr %246, i64 %252
  %254 = getelementptr inbounds %struct.Edge, ptr %253, i32 0, i32 1
  %255 = load i32, ptr %254, align 4, !tbaa !23
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %245, i32 noundef %255)
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %256, ptr noundef @.str.2)
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = load i32, ptr %16, align 4, !tbaa !12
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds i32, ptr %259, i64 %261
  %263 = load i32, ptr %262, align 4, !tbaa !12
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds %struct.Edge, ptr %258, i64 %264
  %266 = getelementptr inbounds %struct.Edge, ptr %265, i32 0, i32 2
  %267 = load i32, ptr %266, align 4, !tbaa !24
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %257, i32 noundef %267)
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef @.str.3)
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %269, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = load i32, ptr %17, align 4, !tbaa !12
  %273 = load i32, ptr %18, align 4, !tbaa !12
  call void @_Z5UnionP6subsetii(ptr noundef %271, i32 noundef %272, i32 noundef %273)
  %274 = load i32, ptr %8, align 4, !tbaa !12
  %275 = add nsw i32 %274, -1
  store i32 %275, ptr %8, align 4, !tbaa !12
  store i32 0, ptr %13, align 4
  br label %276

276:                                              ; preds = %220, %219
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %277 = load i32, ptr %13, align 4
  switch i32 %277, label %290 [
    i32 0, label %278
    i32 15, label %280
  ]

278:                                              ; preds = %276
  br label %279

279:                                              ; preds = %278, %184
  br label %280

280:                                              ; preds = %279, %276
  %281 = load i32, ptr %16, align 4, !tbaa !12
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %16, align 4, !tbaa !12
  br label %179, !llvm.loop !26

283:                                              ; preds = %183
  br label %64, !llvm.loop !27

284:                                              ; preds = %64
  %285 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %286 = load i32, ptr %9, align 4, !tbaa !12
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %285, i32 noundef %286)
  %288 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %287, ptr noundef @.str.5)
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %288, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void

290:                                              ; preds = %276, %172
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { inlinehint 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 #5 = { "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 }
attributes #7 = { builtin allocsize(0) }

!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, !11, i64 0}
!10 = !{!"_ZTS5Graph", !11, i64 0, !11, i64 4, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 4}
!14 = !{!10, !6, i64 8}
!15 = !{!16, !11, i64 0}
!16 = !{!"_ZTS6subset", !11, i64 0, !11, i64 4}
!17 = !{!16, !11, i64 4}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!22, !11, i64 0}
!22 = !{!"_ZTS4Edge", !11, i64 0, !11, i64 4, !11, i64 8}
!23 = !{!22, !11, i64 4}
!24 = !{!22, !11, i64 8}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.subset = type { i32, i32 }
%struct.Edge = type { i32, i32, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4findP6subseti(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5UnionP6subsetii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10boruvkaMSTP5Graph(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = load i32, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  %4 = load i32, ptr %3, align 4, !tbaa !11
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !12
  %7 = sext i32 %2 to i64
  %8 = icmp slt i32 %2, 0
  %9 = shl nsw i64 %7, 3
  %10 = select i1 %8, i64 -1, i64 %9
  %11 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %10) #5
  %12 = shl nsw i64 %7, 2
  %13 = select i1 %8, i64 -1, i64 %12
  %14 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %13) #5
  %15 = icmp sgt i32 %2, 0
  br i1 %15, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %1
  %wide.trip.count = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 4
  br i1 %min.iters.check, label %.lr.ph.preheader132, label %vector.ph

.lr.ph.preheader132:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 0, i32 1>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %16 = or disjoint i64 %index, 2
  %17 = getelementptr inbounds %struct.subset, ptr %11, i64 %index
  %18 = getelementptr inbounds %struct.subset, ptr %11, i64 %16
  %interleaved.vec = shufflevector <2 x i32> %vec.ind, <2 x i32> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec, ptr %17, align 4, !tbaa !13
  %interleaved.vec131 = shufflevector <2 x i32> %step.add, <2 x i32> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x i32> %interleaved.vec131, ptr %18, align 4, !tbaa !13
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 4, i32 4>
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader101, label %.lr.ph.preheader132

.preheader101:                                    ; preds = %.lr.ph, %middle.block
  %.not129 = icmp eq i32 %2, 1
  br i1 %.not129, label %._crit_edge, label %.preheader100.lr.ph

.preheader100.lr.ph:                              ; preds = %.preheader101
  %20 = icmp sgt i32 %4, 0
  %21 = zext nneg i32 %2 to i64
  %22 = shl nuw nsw i64 %21, 2
  %wide.trip.count122 = zext nneg i32 %4 to i64
  br label %.preheader99

.lr.ph:                                           ; preds = %.lr.ph.preheader132, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader132 ]
  %23 = getelementptr inbounds %struct.subset, ptr %11, i64 %indvars.iv
  %24 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %24, ptr %23, align 4, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %23, i64 4
  store i32 0, ptr %25, align 4, !tbaa !20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader101, label %.lr.ph, !llvm.loop !21

.loopexit:                                        ; preds = %90
  %26 = icmp sgt i32 %.3, 1
  br i1 %26, label %.preheader99, label %._crit_edge, !llvm.loop !22

.preheader99:                                     ; preds = %.preheader100.lr.ph, %.loopexit
  %.0113 = phi i32 [ %2, %.preheader100.lr.ph ], [ %.3, %.loopexit ]
  %.083112 = phi i32 [ 0, %.preheader100.lr.ph ], [ %.386, %.loopexit ]
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %14, i8 -1, i64 %22, i1 false), !tbaa !13
  br i1 %20, label %.lr.ph106, label %.lr.ph110.preheader

.lr.ph106:                                        ; preds = %.preheader99, %62
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %62 ], [ 0, %.preheader99 ]
  %27 = getelementptr inbounds %struct.Edge, ptr %6, i64 %indvars.iv119
  %28 = load i32, ptr %27, align 4, !tbaa !23
  %29 = tail call noundef i32 @_Z4findP6subseti(ptr noundef nonnull %11, i32 noundef %28)
  %30 = getelementptr inbounds i8, ptr %27, i64 4
  %31 = load i32, ptr %30, align 4, !tbaa !25
  %32 = tail call noundef i32 @_Z4findP6subseti(ptr noundef nonnull %11, i32 noundef %31)
  %33 = icmp eq i32 %29, %32
  br i1 %33, label %62, label %34

34:                                               ; preds = %.lr.ph106
  %35 = sext i32 %29 to i64
  %36 = getelementptr inbounds i32, ptr %14, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !13
  %38 = icmp eq i32 %37, -1
  br i1 %38, label %46, label %39

39:                                               ; preds = %34
  %40 = sext i32 %37 to i64
  %41 = getelementptr inbounds %struct.Edge, ptr %6, i64 %40, i32 2
  %42 = load i32, ptr %41, align 4, !tbaa !26
  %43 = getelementptr inbounds i8, ptr %27, i64 8
  %44 = load i32, ptr %43, align 4, !tbaa !26
  %45 = icmp sgt i32 %42, %44
  br i1 %45, label %46, label %48

46:                                               ; preds = %39, %34
  %47 = trunc nuw nsw i64 %indvars.iv119 to i32
  store i32 %47, ptr %36, align 4, !tbaa !13
  br label %48

48:                                               ; preds = %46, %39
  %49 = sext i32 %32 to i64
  %50 = getelementptr inbounds i32, ptr %14, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !13
  %52 = icmp eq i32 %51, -1
  br i1 %52, label %60, label %53

53:                                               ; preds = %48
  %54 = sext i32 %51 to i64
  %55 = getelementptr inbounds %struct.Edge, ptr %6, i64 %54, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !26
  %57 = getelementptr inbounds i8, ptr %27, i64 8
  %58 = load i32, ptr %57, align 4, !tbaa !26
  %59 = icmp sgt i32 %56, %58
  br i1 %59, label %60, label %62

60:                                               ; preds = %53, %48
  %61 = trunc nuw nsw i64 %indvars.iv119 to i32
  store i32 %61, ptr %50, align 4, !tbaa !13
  br label %62

62:                                               ; preds = %60, %53, %.lr.ph106
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next120, %wide.trip.count122
  br i1 %exitcond123.not, label %.lr.ph110.preheader, label %.lr.ph106, !llvm.loop !27

.lr.ph110.preheader:                              ; preds = %62, %.preheader99
  br label %.lr.ph110

.lr.ph110:                                        ; preds = %.lr.ph110.preheader, %90
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %90 ], [ 0, %.lr.ph110.preheader ]
  %.1109 = phi i32 [ %.3, %90 ], [ %.0113, %.lr.ph110.preheader ]
  %.184108 = phi i32 [ %.386, %90 ], [ %.083112, %.lr.ph110.preheader ]
  %63 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv124
  %64 = load i32, ptr %63, align 4, !tbaa !13
  %.not = icmp eq i32 %64, -1
  br i1 %.not, label %90, label %65

65:                                               ; preds = %.lr.ph110
  %66 = sext i32 %64 to i64
  %67 = getelementptr inbounds %struct.Edge, ptr %6, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !23
  %69 = tail call noundef i32 @_Z4findP6subseti(ptr noundef nonnull %11, i32 noundef %68)
  %70 = getelementptr inbounds %struct.Edge, ptr %6, i64 %66, i32 1
  %71 = load i32, ptr %70, align 4, !tbaa !25
  %72 = tail call noundef i32 @_Z4findP6subseti(ptr noundef nonnull %11, i32 noundef %71)
  %73 = icmp eq i32 %69, %72
  br i1 %73, label %90, label %74

74:                                               ; preds = %65
  %75 = getelementptr inbounds %struct.Edge, ptr %6, i64 %66, i32 2
  %76 = load i32, ptr %75, align 4, !tbaa !26
  %77 = add nsw i32 %76, %.184108
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %79 = load i32, ptr %67, align 4, !tbaa !23
  %80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %78, i32 noundef %79)
  %81 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull @.str.1)
  %82 = load i32, ptr %70, align 4, !tbaa !25
  %83 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %81, i32 noundef %82)
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef nonnull @.str.2)
  %85 = load i32, ptr %75, align 4, !tbaa !26
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %84, i32 noundef %85)
  %87 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @.str.3)
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @_Z5UnionP6subsetii(ptr noundef nonnull %11, i32 noundef %69, i32 noundef %72)
  %89 = add nsw i32 %.1109, -1
  br label %90

90:                                               ; preds = %74, %65, %.lr.ph110
  %.386 = phi i32 [ %.184108, %.lr.ph110 ], [ %77, %74 ], [ %.184108, %65 ]
  %.3 = phi i32 [ %.1109, %.lr.ph110 ], [ %89, %74 ], [ %.1109, %65 ]
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond128.not = icmp eq i64 %indvars.iv.next125, %21
  br i1 %exitcond128.not, label %.loopexit, label %.lr.ph110, !llvm.loop !28

._crit_edge:                                      ; preds = %.loopexit, %1, %.preheader101
  %.083.lcssa = phi i32 [ 0, %.preheader101 ], [ 0, %1 ], [ %.386, %.loopexit ]
  %91 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %92 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %91, i32 noundef %.083.lcssa)
  %93 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull @.str.5)
  %94 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 = { 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 #2 = { inlinehint 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { builtin allocsize(0) }

!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 = !{!"_ZTS5Graph", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !10, i64 8}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = !{!19, !7, i64 0}
!19 = !{!"_ZTS6subset", !7, i64 0, !7, i64 4}
!20 = !{!19, !7, i64 4}
!21 = distinct !{!21, !15, !17, !16}
!22 = distinct !{!22, !15}
!23 = !{!24, !7, i64 0}
!24 = !{!"_ZTS4Edge", !7, i64 0, !7, i64 4, !7, i64 8}
!25 = !{!24, !7, i64 4}
!26 = !{!24, !7, i64 8}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass