; LLVM IR from upupming/algorithm :: AdvancedLevel_C++/1114. Family Property (25) (main)

; 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"

%struct.DATA = type { i32, i32, i32, i32, i32, [10 x i32] }
%struct.node = type <{ i32, i32, double, double, i8, [7 x i8] }>

@data = external dso_local global [1005 x %struct.DATA], align 16
@ans = external dso_local global [10000 x %struct.node], align 16
@father = external dso_local global [10000 x i32], align 16
@visit = external dso_local global [10000 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z5Unionii(i32 noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4cmp14nodeS_(ptr noundef byval(%struct.node) align 8, ptr noundef byval(%struct.node) align 8) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %24, %0
  %16 = load i32, ptr %5, align 4, !tbaa !5
  %17 = icmp slt i32 %16, 10000
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %27

19:                                               ; preds = %15
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [10000 x i32], ptr @father, i64 0, i64 %22
  store i32 %20, ptr %23, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %19
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %5, align 4, !tbaa !5
  br label %15, !llvm.loop !9

27:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %154, %27
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %157

33:                                               ; preds = %28
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %35
  %37 = getelementptr inbounds %struct.DATA, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %6, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %39
  %41 = getelementptr inbounds %struct.DATA, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %43
  %45 = getelementptr inbounds %struct.DATA, ptr %44, i32 0, i32 2
  %46 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %37, ptr noundef %41, ptr noundef %45, ptr noundef %3)
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %48
  %50 = getelementptr inbounds %struct.DATA, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 4, !tbaa !11
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %52
  store i8 1, ptr %53, align 1, !tbaa !13
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %55
  %57 = getelementptr inbounds %struct.DATA, ptr %56, i32 0, i32 1
  %58 = load i32, ptr %57, align 4, !tbaa !15
  %59 = icmp ne i32 %58, -1
  br i1 %59, label %60, label %78

60:                                               ; preds = %33
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %62
  %64 = getelementptr inbounds %struct.DATA, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 4, !tbaa !15
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %66
  store i8 1, ptr %67, align 1, !tbaa !13
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %69
  %71 = getelementptr inbounds %struct.DATA, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !15
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %74
  %76 = getelementptr inbounds %struct.DATA, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !11
  call void @_Z5Unionii(i32 noundef %72, i32 noundef %77)
  br label %78

78:                                               ; preds = %60, %33
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %80
  %82 = getelementptr inbounds %struct.DATA, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %82, align 4, !tbaa !16
  %84 = icmp ne i32 %83, -1
  br i1 %84, label %85, label %103

85:                                               ; preds = %78
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %87
  %89 = getelementptr inbounds %struct.DATA, ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 4, !tbaa !16
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %91
  store i8 1, ptr %92, align 1, !tbaa !13
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %94
  %96 = getelementptr inbounds %struct.DATA, ptr %95, i32 0, i32 2
  %97 = load i32, ptr %96, align 4, !tbaa !16
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %99
  %101 = getelementptr inbounds %struct.DATA, ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 4, !tbaa !11
  call void @_Z5Unionii(i32 noundef %97, i32 noundef %102)
  br label %103

103:                                              ; preds = %85, %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %141, %103
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %144

109:                                              ; preds = %104
  %110 = load i32, ptr %6, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %111
  %113 = getelementptr inbounds %struct.DATA, ptr %112, i32 0, i32 5
  %114 = load i32, ptr %8, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [10 x i32], ptr %113, i64 0, i64 %115
  %117 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %116)
  %118 = load i32, ptr %6, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %119
  %121 = getelementptr inbounds %struct.DATA, ptr %120, i32 0, i32 5
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [10 x i32], ptr %121, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %126
  store i8 1, ptr %127, align 1, !tbaa !13
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %129
  %131 = getelementptr inbounds %struct.DATA, ptr %130, i32 0, i32 5
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [10 x i32], ptr %131, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %137
  %139 = getelementptr inbounds %struct.DATA, ptr %138, i32 0, i32 0
  %140 = load i32, ptr %139, align 4, !tbaa !11
  call void @_Z5Unionii(i32 noundef %135, i32 noundef %140)
  br label %141

141:                                              ; preds = %109
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %8, align 4, !tbaa !5
  br label %104, !llvm.loop !17

144:                                              ; preds = %108
  %145 = load i32, ptr %6, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %146
  %148 = getelementptr inbounds %struct.DATA, ptr %147, i32 0, i32 3
  %149 = load i32, ptr %6, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %150
  %152 = getelementptr inbounds %struct.DATA, ptr %151, i32 0, i32 4
  %153 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %148, ptr noundef %152)
  br label %154

154:                                              ; preds = %144
  %155 = load i32, ptr %6, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %6, align 4, !tbaa !5
  br label %28, !llvm.loop !18

157:                                              ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %203, %157
  %159 = load i32, ptr %9, align 4, !tbaa !5
  %160 = load i32, ptr %2, align 4, !tbaa !5
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %158
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %206

163:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %164 = load i32, ptr %9, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %165
  %167 = getelementptr inbounds %struct.DATA, ptr %166, i32 0, i32 0
  %168 = load i32, ptr %167, align 4, !tbaa !11
  %169 = call noundef i32 @_Z4findi(i32 noundef %168)
  store i32 %169, ptr %10, align 4, !tbaa !5
  %170 = load i32, ptr %10, align 4, !tbaa !5
  %171 = load i32, ptr %10, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %172
  %174 = getelementptr inbounds %struct.node, ptr %173, i32 0, i32 0
  store i32 %170, ptr %174, align 16, !tbaa !19
  %175 = load i32, ptr %9, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %176
  %178 = getelementptr inbounds %struct.DATA, ptr %177, i32 0, i32 3
  %179 = load i32, ptr %178, align 4, !tbaa !22
  %180 = sitofp i32 %179 to double
  %181 = load i32, ptr %10, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %182
  %184 = getelementptr inbounds %struct.node, ptr %183, i32 0, i32 2
  %185 = load double, ptr %184, align 8, !tbaa !23
  %186 = fadd double %185, %180
  store double %186, ptr %184, align 8, !tbaa !23
  %187 = load i32, ptr %9, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %188
  %190 = getelementptr inbounds %struct.DATA, ptr %189, i32 0, i32 4
  %191 = load i32, ptr %190, align 4, !tbaa !24
  %192 = sitofp i32 %191 to double
  %193 = load i32, ptr %10, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %194
  %196 = getelementptr inbounds %struct.node, ptr %195, i32 0, i32 3
  %197 = load double, ptr %196, align 16, !tbaa !25
  %198 = fadd double %197, %192
  store double %198, ptr %196, align 16, !tbaa !25
  %199 = load i32, ptr %10, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %200
  %202 = getelementptr inbounds %struct.node, ptr %201, i32 0, i32 4
  store i8 1, ptr %202, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %203

203:                                              ; preds = %163
  %204 = load i32, ptr %9, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %9, align 4, !tbaa !5
  br label %158, !llvm.loop !27

206:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %236, %206
  %208 = load i32, ptr %11, align 4, !tbaa !5
  %209 = icmp slt i32 %208, 10000
  br i1 %209, label %211, label %210

210:                                              ; preds = %207
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %239

211:                                              ; preds = %207
  %212 = load i32, ptr %11, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %213
  %215 = load i8, ptr %214, align 1, !tbaa !13, !range !28, !noundef !29
  %216 = trunc i8 %215 to i1
  br i1 %216, label %217, label %225

217:                                              ; preds = %211
  %218 = load i32, ptr %11, align 4, !tbaa !5
  %219 = call noundef i32 @_Z4findi(i32 noundef %218)
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %220
  %222 = getelementptr inbounds %struct.node, ptr %221, i32 0, i32 1
  %223 = load i32, ptr %222, align 4, !tbaa !30
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %222, align 4, !tbaa !30
  br label %225

225:                                              ; preds = %217, %211
  %226 = load i32, ptr %11, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %227
  %229 = getelementptr inbounds %struct.node, ptr %228, i32 0, i32 4
  %230 = load i8, ptr %229, align 8, !tbaa !26, !range !28, !noundef !29
  %231 = trunc i8 %230 to i1
  br i1 %231, label %232, label %235

232:                                              ; preds = %225
  %233 = load i32, ptr %4, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %4, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %232, %225
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %11, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %11, align 4, !tbaa !5
  br label %207, !llvm.loop !31

239:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %287, %239
  %241 = load i32, ptr %12, align 4, !tbaa !5
  %242 = icmp slt i32 %241, 10000
  br i1 %242, label %244, label %243

243:                                              ; preds = %240
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %290

244:                                              ; preds = %240
  %245 = load i32, ptr %12, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %246
  %248 = getelementptr inbounds %struct.node, ptr %247, i32 0, i32 4
  %249 = load i8, ptr %248, align 8, !tbaa !26, !range !28, !noundef !29
  %250 = trunc i8 %249 to i1
  br i1 %250, label %251, label %286

251:                                              ; preds = %244
  %252 = load i32, ptr %12, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %253
  %255 = getelementptr inbounds %struct.node, ptr %254, i32 0, i32 2
  %256 = load double, ptr %255, align 8, !tbaa !23
  %257 = fmul double %256, 1.000000e+00
  %258 = load i32, ptr %12, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %259
  %261 = getelementptr inbounds %struct.node, ptr %260, i32 0, i32 1
  %262 = load i32, ptr %261, align 4, !tbaa !30
  %263 = sitofp i32 %262 to double
  %264 = fdiv double %257, %263
  %265 = load i32, ptr %12, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %266
  %268 = getelementptr inbounds %struct.node, ptr %267, i32 0, i32 2
  store double %264, ptr %268, align 8, !tbaa !23
  %269 = load i32, ptr %12, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %270
  %272 = getelementptr inbounds %struct.node, ptr %271, i32 0, i32 3
  %273 = load double, ptr %272, align 16, !tbaa !25
  %274 = fmul double %273, 1.000000e+00
  %275 = load i32, ptr %12, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %276
  %278 = getelementptr inbounds %struct.node, ptr %277, i32 0, i32 1
  %279 = load i32, ptr %278, align 4, !tbaa !30
  %280 = sitofp i32 %279 to double
  %281 = fdiv double %274, %280
  %282 = load i32, ptr %12, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %283
  %285 = getelementptr inbounds %struct.node, ptr %284, i32 0, i32 3
  store double %281, ptr %285, align 16, !tbaa !25
  br label %286

286:                                              ; preds = %251, %244
  br label %287

287:                                              ; preds = %286
  %288 = load i32, ptr %12, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %12, align 4, !tbaa !5
  br label %240, !llvm.loop !32

290:                                              ; preds = %243
  call void @_ZSt4sortIP4nodePFiS0_S0_EEvT_S4_T0_(ptr noundef @ans, ptr noundef getelementptr inbounds (%struct.node, ptr @ans, i64 10000), ptr noundef @_Z4cmp14nodeS_)
  %291 = load i32, ptr %4, align 4, !tbaa !5
  %292 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %291)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %293

293:                                              ; preds = %320, %290
  %294 = load i32, ptr %13, align 4, !tbaa !5
  %295 = load i32, ptr %4, align 4, !tbaa !5
  %296 = icmp slt i32 %294, %295
  br i1 %296, label %298, label %297

297:                                              ; preds = %293
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %323

298:                                              ; preds = %293
  %299 = load i32, ptr %13, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %300
  %302 = getelementptr inbounds %struct.node, ptr %301, i32 0, i32 0
  %303 = load i32, ptr %302, align 16, !tbaa !19
  %304 = load i32, ptr %13, align 4, !tbaa !5
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %305
  %307 = getelementptr inbounds %struct.node, ptr %306, i32 0, i32 1
  %308 = load i32, ptr %307, align 4, !tbaa !30
  %309 = load i32, ptr %13, align 4, !tbaa !5
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %310
  %312 = getelementptr inbounds %struct.node, ptr %311, i32 0, i32 2
  %313 = load double, ptr %312, align 8, !tbaa !23
  %314 = load i32, ptr %13, align 4, !tbaa !5
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %315
  %317 = getelementptr inbounds %struct.node, ptr %316, i32 0, i32 3
  %318 = load double, ptr %317, align 16, !tbaa !25
  %319 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %303, i32 noundef %308, double noundef %313, double noundef %318)
  br label %320

320:                                              ; preds = %298
  %321 = load i32, ptr %13, align 4, !tbaa !5
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %13, align 4, !tbaa !5
  br label %293, !llvm.loop !33

323:                                              ; preds = %297
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %324 = load i32, ptr %1, align 4
  ret i32 %324
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4nodePFiS0_S0_EEvT_S4_T0_(ptr noundef, ptr noundef, ptr noundef) #4

declare i32 @printf(ptr noundef, ...) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse 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 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS4DATA", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !7, i64 20}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!12, !6, i64 4}
!16 = !{!12, !6, i64 8}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTS4node", !6, i64 0, !6, i64 4, !21, i64 8, !21, i64 16, !14, i64 24}
!21 = !{!"double", !7, i64 0}
!22 = !{!12, !6, i64 12}
!23 = !{!20, !21, i64 8}
!24 = !{!12, !6, i64 16}
!25 = !{!20, !21, i64 16}
!26 = !{!20, !14, i64 24}
!27 = distinct !{!27, !10}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!20, !6, i64 4}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !10}
!33 = distinct !{!33, !10}


; 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"

%struct.DATA = type { i32, i32, i32, i32, i32, [10 x i32] }
%struct.node = type <{ i32, i32, double, double, i8, [7 x i8] }>

@data = external dso_local global [1005 x %struct.DATA], align 16
@ans = external dso_local global [10000 x %struct.node], align 16
@father = external dso_local local_unnamed_addr global [10000 x i32], align 16
@visit = external dso_local local_unnamed_addr global [10000 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4findi(i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4cmp14nodeS_(ptr noundef byval(%struct.node) align 8, ptr noundef byval(%struct.node) align 8) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
vector.ph:
  %0 = alloca i32, align 4
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %0) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %2 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %0)
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.1, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next.1, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %3 = getelementptr inbounds [10000 x i32], ptr @father, i64 0, i64 %index
  %4 = getelementptr inbounds i8, ptr %3, i64 16
  store <4 x i32> %vec.ind, ptr %3, align 16, !tbaa !5
  store <4 x i32> %step.add, ptr %4, align 16, !tbaa !5
  %index.next = or disjoint i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %step.add.1 = add <4 x i32> %vec.ind, <i32 12, i32 12, i32 12, i32 12>
  %5 = getelementptr inbounds [10000 x i32], ptr @father, i64 0, i64 %index.next
  %6 = getelementptr inbounds i8, ptr %5, i64 16
  store <4 x i32> %vec.ind.next, ptr %5, align 16, !tbaa !5
  store <4 x i32> %step.add.1, ptr %6, align 16, !tbaa !5
  %index.next.1 = add nuw nsw i64 %index, 16
  %vec.ind.next.1 = add <4 x i32> %vec.ind, <i32 16, i32 16, i32 16, i32 16>
  %7 = icmp eq i64 %index.next.1, 10000
  br i1 %7, label %.preheader75, label %vector.body, !llvm.loop !9

.preheader75:                                     ; preds = %vector.body
  %8 = load i32, ptr %0, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph79, label %.preheader73.preheader

.preheader74:                                     ; preds = %._crit_edge
  %10 = icmp sgt i32 %35, 0
  br i1 %10, label %.lr.ph81, label %.preheader73.preheader

.lr.ph79:                                         ; preds = %.preheader75, %._crit_edge
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %._crit_edge ], [ 0, %.preheader75 ]
  %11 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %indvars.iv94
  %12 = getelementptr inbounds i8, ptr %11, i64 4
  %13 = getelementptr inbounds i8, ptr %11, i64 8
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %1)
  %15 = load i32, ptr %11, align 4, !tbaa !13
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %16
  store i8 1, ptr %17, align 1, !tbaa !15
  %18 = load i32, ptr %12, align 4, !tbaa !17
  %.not = icmp eq i32 %18, -1
  br i1 %.not, label %22, label %19

19:                                               ; preds = %.lr.ph79
  %20 = sext i32 %18 to i64
  %21 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %20
  store i8 1, ptr %21, align 1, !tbaa !15
  call void @_Z5Unionii(i32 noundef %18, i32 noundef %15)
  br label %22

22:                                               ; preds = %19, %.lr.ph79
  %23 = load i32, ptr %13, align 4, !tbaa !18
  %.not72 = icmp eq i32 %23, -1
  br i1 %.not72, label %28, label %24

24:                                               ; preds = %22
  %25 = sext i32 %23 to i64
  %26 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %25
  store i8 1, ptr %26, align 1, !tbaa !15
  %27 = load i32, ptr %11, align 4, !tbaa !13
  call void @_Z5Unionii(i32 noundef %23, i32 noundef %27)
  br label %28

28:                                               ; preds = %24, %22
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %28
  %31 = getelementptr inbounds i8, ptr %11, i64 20
  br label %38

._crit_edge:                                      ; preds = %38, %28
  %32 = getelementptr inbounds i8, ptr %11, i64 12
  %33 = getelementptr inbounds i8, ptr %11, i64 16
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %32, ptr noundef nonnull %33)
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %35 = load i32, ptr %0, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = icmp slt i64 %indvars.iv.next95, %36
  br i1 %37, label %.lr.ph79, label %.preheader74, !llvm.loop !19

38:                                               ; preds = %.lr.ph, %38
  %indvars.iv91 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next92, %38 ]
  %39 = getelementptr inbounds [10 x i32], ptr %31, i64 0, i64 %indvars.iv91
  %40 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %39)
  %41 = load i32, ptr %39, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %42
  store i8 1, ptr %43, align 1, !tbaa !15
  %44 = load i32, ptr %11, align 4, !tbaa !13
  call void @_Z5Unionii(i32 noundef %41, i32 noundef %44)
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = icmp slt i64 %indvars.iv.next92, %46
  br i1 %47, label %38, label %._crit_edge, !llvm.loop !20

.lr.ph81:                                         ; preds = %.preheader74, %.lr.ph81
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %.lr.ph81 ], [ 0, %.preheader74 ]
  %48 = getelementptr inbounds [1005 x %struct.DATA], ptr @data, i64 0, i64 %indvars.iv97
  %49 = load i32, ptr %48, align 4, !tbaa !13
  %50 = call noundef i32 @_Z4findi(i32 noundef %49)
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %51
  store i32 %50, ptr %52, align 16, !tbaa !21
  %53 = getelementptr inbounds i8, ptr %48, i64 12
  %54 = getelementptr inbounds i8, ptr %52, i64 8
  %55 = load <2 x i32>, ptr %53, align 4, !tbaa !5
  %56 = sitofp <2 x i32> %55 to <2 x double>
  %57 = load <2 x double>, ptr %54, align 8, !tbaa !24
  %58 = fadd <2 x double> %57, %56
  store <2 x double> %58, ptr %54, align 8, !tbaa !24
  %59 = getelementptr inbounds i8, ptr %52, i64 24
  store i8 1, ptr %59, align 8, !tbaa !25
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %60 = load i32, ptr %0, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv.next98, %61
  br i1 %62, label %.lr.ph81, label %.preheader73.preheader, !llvm.loop !26

.preheader73.preheader:                           ; preds = %.lr.ph81, %.preheader75, %.preheader74
  br label %.preheader73

.preheader73:                                     ; preds = %.preheader73.preheader, %73
  %indvars.iv100 = phi i64 [ %indvars.iv.next101, %73 ], [ 0, %.preheader73.preheader ]
  %.06982 = phi i32 [ %spec.select, %73 ], [ 0, %.preheader73.preheader ]
  %63 = getelementptr inbounds [10000 x i8], ptr @visit, i64 0, i64 %indvars.iv100
  %64 = load i8, ptr %63, align 1, !tbaa !15, !range !27, !noundef !28
  %65 = trunc nuw i8 %64 to i1
  br i1 %65, label %66, label %73

66:                                               ; preds = %.preheader73
  %67 = trunc nuw nsw i64 %indvars.iv100 to i32
  %68 = call noundef i32 @_Z4findi(i32 noundef %67)
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %69, i32 1
  %71 = load i32, ptr %70, align 4, !tbaa !29
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %70, align 4, !tbaa !29
  br label %73

73:                                               ; preds = %66, %.preheader73
  %74 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %indvars.iv100, i32 4
  %75 = load i8, ptr %74, align 8, !tbaa !25, !range !27, !noundef !28
  %76 = zext nneg i8 %75 to i32
  %spec.select = add i32 %.06982, %76
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %exitcond103.not = icmp eq i64 %indvars.iv.next101, 10000
  br i1 %exitcond103.not, label %.preheader, label %.preheader73, !llvm.loop !30

77:                                               ; preds = %105
  call void @_ZSt4sortIP4nodePFiS0_S0_EEvT_S4_T0_(ptr noundef nonnull @ans, ptr noundef nonnull getelementptr inbounds (i8, ptr @ans, i64 320000), ptr noundef nonnull @_Z4cmp14nodeS_)
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %spec.select)
  %.not89 = icmp eq i32 %spec.select, 0
  br i1 %.not89, label %._crit_edge88, label %.lr.ph87.preheader

.lr.ph87.preheader:                               ; preds = %77
  %wide.trip.count = zext i32 %spec.select to i64
  br label %.lr.ph87

.preheader:                                       ; preds = %73, %105
  %indvars.iv104 = phi i64 [ %indvars.iv.next105.1, %105 ], [ 0, %73 ]
  %79 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %indvars.iv104
  %80 = getelementptr inbounds i8, ptr %79, i64 24
  %81 = load i8, ptr %80, align 8, !tbaa !25, !range !27, !noundef !28
  %82 = trunc nuw i8 %81 to i1
  br i1 %82, label %83, label %.preheader.1

83:                                               ; preds = %.preheader
  %84 = getelementptr inbounds i8, ptr %79, i64 8
  %85 = getelementptr inbounds i8, ptr %79, i64 4
  %86 = load i32, ptr %85, align 4, !tbaa !29
  %87 = sitofp i32 %86 to double
  %88 = load <2 x double>, ptr %84, align 8, !tbaa !24
  %89 = insertelement <2 x double> poison, double %87, i64 0
  %90 = shufflevector <2 x double> %89, <2 x double> poison, <2 x i32> zeroinitializer
  %91 = fdiv <2 x double> %88, %90
  store <2 x double> %91, ptr %84, align 8, !tbaa !24
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader, %83
  %indvars.iv.next105 = or disjoint i64 %indvars.iv104, 1
  %92 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %indvars.iv.next105
  %93 = getelementptr inbounds i8, ptr %92, i64 24
  %94 = load i8, ptr %93, align 8, !tbaa !25, !range !27, !noundef !28
  %95 = trunc nuw i8 %94 to i1
  br i1 %95, label %96, label %105

96:                                               ; preds = %.preheader.1
  %97 = getelementptr inbounds i8, ptr %92, i64 8
  %98 = getelementptr inbounds i8, ptr %92, i64 4
  %99 = load i32, ptr %98, align 4, !tbaa !29
  %100 = sitofp i32 %99 to double
  %101 = load <2 x double>, ptr %97, align 8, !tbaa !24
  %102 = insertelement <2 x double> poison, double %100, i64 0
  %103 = shufflevector <2 x double> %102, <2 x double> poison, <2 x i32> zeroinitializer
  %104 = fdiv <2 x double> %101, %103
  store <2 x double> %104, ptr %97, align 8, !tbaa !24
  br label %105

105:                                              ; preds = %96, %.preheader.1
  %indvars.iv.next105.1 = add nuw nsw i64 %indvars.iv104, 2
  %exitcond107.not.1 = icmp eq i64 %indvars.iv.next105.1, 10000
  br i1 %exitcond107.not.1, label %77, label %.preheader, !llvm.loop !31

._crit_edge88:                                    ; preds = %.lr.ph87, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %0) #5
  ret i32 0

.lr.ph87:                                         ; preds = %.lr.ph87.preheader, %.lr.ph87
  %indvars.iv108 = phi i64 [ 0, %.lr.ph87.preheader ], [ %indvars.iv.next109, %.lr.ph87 ]
  %106 = getelementptr inbounds [10000 x %struct.node], ptr @ans, i64 0, i64 %indvars.iv108
  %107 = load i32, ptr %106, align 16, !tbaa !21
  %108 = getelementptr inbounds i8, ptr %106, i64 4
  %109 = load i32, ptr %108, align 4, !tbaa !29
  %110 = getelementptr inbounds i8, ptr %106, i64 8
  %111 = load double, ptr %110, align 8, !tbaa !32
  %112 = getelementptr inbounds i8, ptr %106, i64 16
  %113 = load double, ptr %112, align 16, !tbaa !33
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %107, i32 noundef %109, double noundef %111, double noundef %113)
  %indvars.iv.next109 = add nuw nsw i64 %indvars.iv108, 1
  %exitcond111.not = icmp eq i64 %indvars.iv.next109, %wide.trip.count
  br i1 %exitcond111.not, label %._crit_edge88, label %.lr.ph87, !llvm.loop !34
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4nodePFiS0_S0_EEvT_S4_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse 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 = { nofree 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 #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS4DATA", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !7, i64 20}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!14, !6, i64 4}
!18 = !{!14, !6, i64 8}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTS4node", !6, i64 0, !6, i64 4, !23, i64 8, !23, i64 16, !16, i64 24}
!23 = !{!"double", !7, i64 0}
!24 = !{!23, !23, i64 0}
!25 = !{!22, !16, i64 24}
!26 = distinct !{!26, !10}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!22, !6, i64 4}
!30 = distinct !{!30, !10}
!31 = distinct !{!31, !10}
!32 = !{!22, !23, i64 8}
!33 = !{!22, !23, i64 16}
!34 = distinct !{!34, !10}


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