; LLVM IR from lzyrapx/Competitive-Programming :: 百度之星/百度之星2017-资格赛 (1（Floyd求最小环）)

; 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.Point = type { i32, i32 }

@h = external dso_local global [505 x %struct.Point], align 16
@s = external dso_local global [505 x %struct.Point], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@road = external dso_local global [505 x [505 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3Jud5PointS_S_(i64, i64, i64) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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 %struct.Point, align 4
  %7 = alloca %struct.Point, align 4
  %8 = alloca %struct.Point, align 4
  %9 = alloca %struct.Point, align 4
  %10 = alloca %struct.Point, align 4
  %11 = alloca %struct.Point, align 4
  %12 = alloca %struct.Point, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  br label %14

14:                                               ; preds = %238, %0
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %16 = icmp ne i32 %15, -1
  br i1 %16, label %17, label %239

17:                                               ; preds = %14
  call void @llvm.memset.p0.i64(ptr align 16 @road, i8 62, i64 1020100, i1 false)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %32, %17
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp sle i32 %19, %20
  br i1 %21, label %22, label %35

22:                                               ; preds = %18
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [505 x %struct.Point], ptr @h, i64 0, i64 %24
  %26 = getelementptr inbounds %struct.Point, ptr %25, i32 0, i32 0
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [505 x %struct.Point], ptr @h, i64 0, i64 %28
  %30 = getelementptr inbounds %struct.Point, ptr %29, i32 0, i32 1
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %26, ptr noundef %30)
  br label %32

32:                                               ; preds = %22
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %2, align 4, !tbaa !5
  br label %18, !llvm.loop !9

35:                                               ; preds = %18
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @m)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %51, %35
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = load i32, ptr @m, align 4, !tbaa !5
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %41, label %54

41:                                               ; preds = %37
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %43
  %45 = getelementptr inbounds %struct.Point, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %47
  %49 = getelementptr inbounds %struct.Point, ptr %48, i32 0, i32 1
  %50 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %45, ptr noundef %49)
  br label %51

51:                                               ; preds = %41
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %2, align 4, !tbaa !5
  br label %37, !llvm.loop !11

54:                                               ; preds = %37
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %141, %54
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = load i32, ptr @m, align 4, !tbaa !5
  %58 = icmp sle i32 %56, %57
  br i1 %58, label %59, label %144

59:                                               ; preds = %55
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %137, %59
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = load i32, ptr @m, align 4, !tbaa !5
  %63 = icmp sle i32 %61, %62
  br i1 %63, label %64, label %140

64:                                               ; preds = %60
  store i32 1, ptr %5, align 4, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %123, %64
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = load i32, ptr @n, align 4, !tbaa !5
  %68 = icmp sle i32 %66, %67
  br i1 %68, label %69, label %126

69:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %70 = load i32, ptr %2, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %71
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %74
  %76 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %72, ptr noundef nonnull align 4 dereferenceable(8) %75)
  store i64 %76, ptr %6, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %78
  %80 = load i32, ptr %4, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [505 x %struct.Point], ptr @h, i64 0, i64 %81
  %83 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(8) %82)
  store i64 %83, ptr %7, align 4
  %84 = call noundef double @_ZNK5PointmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %7)
  %85 = fcmp olt double %84, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  br i1 %85, label %119, label %86

86:                                               ; preds = %69
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %88
  %90 = load i32, ptr %3, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %91
  %93 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %89, ptr noundef nonnull align 4 dereferenceable(8) %92)
  store i64 %93, ptr %8, align 4
  %94 = load i32, ptr %2, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %95
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [505 x %struct.Point], ptr @h, i64 0, i64 %98
  %100 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %96, ptr noundef nonnull align 4 dereferenceable(8) %99)
  store i64 %100, ptr %9, align 4
  %101 = call noundef double @_ZNK5PointmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %102 = fcmp oeq double %101, 0.000000e+00
  br i1 %102, label %103, label %117

103:                                              ; preds = %86
  %104 = load i32, ptr %2, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %105
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 8 %106, i64 8, i1 false), !tbaa.struct !12
  %107 = load i32, ptr %3, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %108
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %109, i64 8, i1 false), !tbaa.struct !12
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [505 x %struct.Point], ptr @h, i64 0, i64 %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %112, i64 8, i1 false), !tbaa.struct !12
  %113 = load i64, ptr %10, align 4
  %114 = load i64, ptr %11, align 4
  %115 = load i64, ptr %12, align 4
  %116 = call noundef zeroext i1 @_Z3Jud5PointS_S_(i64 %113, i64 %114, i64 %115)
  br label %117

117:                                              ; preds = %103, %86
  %118 = phi i1 [ false, %86 ], [ %116, %103 ]
  br label %119

119:                                              ; preds = %117, %69
  %120 = phi i1 [ true, %69 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br i1 %120, label %121, label %122

121:                                              ; preds = %119
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %126

122:                                              ; preds = %119
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %4, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %4, align 4, !tbaa !5
  br label %65, !llvm.loop !13

126:                                              ; preds = %121, %65
  %127 = load i32, ptr %5, align 4, !tbaa !5
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %136

129:                                              ; preds = %126
  %130 = load i32, ptr %2, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %131
  %133 = load i32, ptr %3, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [505 x i32], ptr %132, i64 0, i64 %134
  store i32 1, ptr %135, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %129, %126
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %3, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %3, align 4, !tbaa !5
  br label %60, !llvm.loop !14

140:                                              ; preds = %60
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %2, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %2, align 4, !tbaa !5
  br label %55, !llvm.loop !15

144:                                              ; preds = %55
  store i32 1044266558, ptr @ans, align 4, !tbaa !5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %207, %144
  %146 = load i32, ptr %4, align 4, !tbaa !5
  %147 = load i32, ptr @m, align 4, !tbaa !5
  %148 = icmp sle i32 %146, %147
  br i1 %148, label %149, label %210

149:                                              ; preds = %145
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %203, %149
  %151 = load i32, ptr %2, align 4, !tbaa !5
  %152 = load i32, ptr @m, align 4, !tbaa !5
  %153 = icmp sle i32 %151, %152
  br i1 %153, label %154, label %206

154:                                              ; preds = %150
  %155 = load i32, ptr %2, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %156
  %158 = load i32, ptr %4, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [505 x i32], ptr %157, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = icmp eq i32 %161, 1044266558
  br i1 %162, label %163, label %164

163:                                              ; preds = %154
  br label %203

164:                                              ; preds = %154
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %199, %164
  %166 = load i32, ptr %3, align 4, !tbaa !5
  %167 = load i32, ptr @m, align 4, !tbaa !5
  %168 = icmp sle i32 %166, %167
  br i1 %168, label %169, label %202

169:                                              ; preds = %165
  %170 = load i32, ptr %2, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %171
  %173 = load i32, ptr %3, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [505 x i32], ptr %172, i64 0, i64 %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %176 = load i32, ptr %2, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %177
  %179 = load i32, ptr %4, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [505 x i32], ptr %178, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = load i32, ptr %4, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %184
  %186 = load i32, ptr %3, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [505 x i32], ptr %185, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = add nsw i32 %182, %189
  store i32 %190, ptr %13, align 4, !tbaa !5
  %191 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %175, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = load i32, ptr %2, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %194
  %196 = load i32, ptr %3, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [505 x i32], ptr %195, i64 0, i64 %197
  store i32 %192, ptr %198, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %199

199:                                              ; preds = %169
  %200 = load i32, ptr %3, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %3, align 4, !tbaa !5
  br label %165, !llvm.loop !16

202:                                              ; preds = %165
  br label %203

203:                                              ; preds = %202, %163
  %204 = load i32, ptr %2, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %2, align 4, !tbaa !5
  br label %150, !llvm.loop !17

206:                                              ; preds = %150
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %4, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %4, align 4, !tbaa !5
  br label %145, !llvm.loop !18

210:                                              ; preds = %145
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %224, %210
  %212 = load i32, ptr %2, align 4, !tbaa !5
  %213 = load i32, ptr @m, align 4, !tbaa !5
  %214 = icmp sle i32 %212, %213
  br i1 %214, label %215, label %227

215:                                              ; preds = %211
  %216 = load i32, ptr %2, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %217
  %219 = load i32, ptr %2, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [505 x i32], ptr %218, i64 0, i64 %220
  %222 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @ans, ptr noundef nonnull align 4 dereferenceable(4) %221)
  %223 = load i32, ptr %222, align 4, !tbaa !5
  store i32 %223, ptr @ans, align 4, !tbaa !5
  br label %224

224:                                              ; preds = %215
  %225 = load i32, ptr %2, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %2, align 4, !tbaa !5
  br label %211, !llvm.loop !19

227:                                              ; preds = %211
  %228 = load i32, ptr @ans, align 4, !tbaa !5
  %229 = load i32, ptr @m, align 4, !tbaa !5
  %230 = icmp sgt i32 %228, %229
  br i1 %230, label %231, label %233

231:                                              ; preds = %227
  %232 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %238

233:                                              ; preds = %227
  %234 = load i32, ptr @m, align 4, !tbaa !5
  %235 = load i32, ptr @ans, align 4, !tbaa !5
  %236 = sub nsw i32 %234, %235
  %237 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %236)
  br label %238

238:                                              ; preds = %233, %231
  br label %14, !llvm.loop !20

239:                                              ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5PointmlERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 }

!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 = distinct !{!11, !10}
!12 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !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.Point = type { i32, i32 }

@h = external dso_local global [505 x %struct.Point], align 16
@s = external dso_local global [505 x %struct.Point], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@road = external dso_local global [505 x [505 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3Jud5PointS_S_(i64, i64, i64) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %struct.Point, align 8
  %2 = alloca %struct.Point, align 8
  %3 = alloca %struct.Point, align 8
  %4 = alloca %struct.Point, align 8
  %5 = alloca i32, align 4
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %.not105 = icmp eq i32 %6, -1
  br i1 %.not105, label %._crit_edge108, label %.lr.ph107

.lr.ph107:                                        ; preds = %0, %85
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1020100) @road, i8 62, i64 1020100, i1 false)
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %.not5977 = icmp slt i32 %7, 1
  br i1 %.not5977, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph107, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph107 ]
  %8 = getelementptr inbounds [505 x %struct.Point], ptr @h, i64 0, i64 %indvars.iv
  %9 = getelementptr inbounds i8, ptr %8, i64 4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %.not59.not = icmp slt i64 %indvars.iv, %12
  br i1 %.not59.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph107
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @m)
  %14 = load i32, ptr @m, align 4
  %.not6079 = icmp slt i32 %14, 1
  br i1 %.not6079, label %._crit_edge91.thread, label %.lr.ph82

.preheader76:                                     ; preds = %.lr.ph82
  %.not6189 = icmp slt i32 %18, 1
  br i1 %.not6189, label %._crit_edge91.thread, label %.preheader74

.lr.ph82:                                         ; preds = %._crit_edge, %.lr.ph82
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %.lr.ph82 ], [ 1, %._crit_edge ]
  %15 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %indvars.iv114
  %16 = getelementptr inbounds i8, ptr %15, i64 4
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %15, ptr noundef nonnull %16)
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %18 = load i32, ptr @m, align 4
  %19 = sext i32 %18 to i64
  %.not60.not = icmp slt i64 %indvars.iv114, %19
  br i1 %.not60.not, label %.lr.ph82, label %.preheader76, !llvm.loop !11

.preheader74:                                     ; preds = %.preheader76, %._crit_edge88
  %20 = phi i32 [ %51, %._crit_edge88 ], [ %18, %.preheader76 ]
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %._crit_edge88 ], [ 1, %.preheader76 ]
  %.not6686 = icmp slt i32 %20, 1
  br i1 %.not6686, label %._crit_edge88, label %.preheader71.lr.ph

.preheader71.lr.ph:                               ; preds = %.preheader74
  %21 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %indvars.iv126
  %22 = load i32, ptr @n, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 1
  br i1 %23, label %.preheader71.lr.ph.split.us, label %.preheader71

.preheader71.lr.ph.split.us:                      ; preds = %.preheader71.lr.ph
  %24 = add nuw i32 %20, 1
  %wide.trip.count = zext i32 %24 to i64
  %25 = zext nneg i32 %20 to i64
  %min.iters.check = icmp ult i32 %20, 8
  br i1 %min.iters.check, label %.preheader71.us.preheader, label %vector.ph

vector.ph:                                        ; preds = %.preheader71.lr.ph.split.us
  %n.vec = and i64 %25, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %26 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %indvars.iv126, i64 %offset.idx
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %26, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %27, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %28 = icmp eq i64 %index.next, %n.vec
  br i1 %28, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %25
  br i1 %cmp.n, label %._crit_edge88, label %.preheader71.us.preheader

.preheader71.us.preheader:                        ; preds = %middle.block, %.preheader71.lr.ph.split.us
  %indvars.iv123.ph = phi i64 [ 1, %.preheader71.lr.ph.split.us ], [ %ind.end, %middle.block ]
  br label %.preheader71.us

.preheader71.us:                                  ; preds = %.preheader71.us.preheader, %.preheader71.us
  %indvars.iv123 = phi i64 [ %indvars.iv.next124, %.preheader71.us ], [ %indvars.iv123.ph, %.preheader71.us.preheader ]
  %29 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %indvars.iv126, i64 %indvars.iv123
  store i32 1, ptr %29, align 4, !tbaa !5
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next124, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge88, label %.preheader71.us, !llvm.loop !15

.preheader71thread-pre-split:                     ; preds = %.loopexit72
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %.pr = load i32, ptr @n, align 4, !tbaa !5
  br label %.preheader71

.preheader71:                                     ; preds = %.preheader71.lr.ph, %.preheader71thread-pre-split
  %30 = phi i32 [ %.pr, %.preheader71thread-pre-split ], [ %22, %.preheader71.lr.ph ]
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %.preheader71thread-pre-split ], [ 1, %.preheader71.lr.ph ]
  %.not67.not83 = icmp slt i32 %30, 1
  br i1 %.not67.not83, label %.critedge70, label %.lr.ph85

.lr.ph85:                                         ; preds = %.preheader71
  %31 = getelementptr inbounds [505 x %struct.Point], ptr @s, i64 0, i64 %indvars.iv120
  br label %32

32:                                               ; preds = %.lr.ph85, %45
  %indvars.iv117 = phi i64 [ 1, %.lr.ph85 ], [ %indvars.iv.next118, %45 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %33 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %31)
  store i64 %33, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %34 = getelementptr inbounds [505 x %struct.Point], ptr @h, i64 0, i64 %indvars.iv117
  %35 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store i64 %35, ptr %2, align 8
  %36 = call noundef double @_ZNK5PointmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %2)
  %37 = fcmp olt double %36, 0.000000e+00
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  br i1 %37, label %.critedge, label %38

38:                                               ; preds = %32
  %39 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %31)
  store i64 %39, ptr %3, align 8
  %40 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %21, ptr noundef nonnull align 4 dereferenceable(8) %34)
  store i64 %40, ptr %4, align 8
  %41 = call noundef double @_ZNK5PointmlERKS_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4)
  %42 = fcmp oeq double %41, 0.000000e+00
  br i1 %42, label %43, label %.critedge2

43:                                               ; preds = %38
  %.sroa.04.0.copyload = load i64, ptr %21, align 8
  %.sroa.03.0.copyload = load i64, ptr %31, align 8
  %.sroa.0.0.copyload = load i64, ptr %34, align 8
  %44 = call noundef zeroext i1 @_Z3Jud5PointS_S_(i64 %.sroa.04.0.copyload, i64 %.sroa.03.0.copyload, i64 %.sroa.0.0.copyload)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  br i1 %44, label %.loopexit72, label %45

.critedge:                                        ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  br label %.loopexit72

.critedge2:                                       ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  br label %45

45:                                               ; preds = %43, %.critedge2
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %46 = load i32, ptr @n, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %.not67.not.not = icmp slt i64 %indvars.iv117, %47
  br i1 %.not67.not.not, label %32, label %.critedge70, !llvm.loop !16

.critedge70:                                      ; preds = %45, %.preheader71
  %48 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %indvars.iv126, i64 %indvars.iv120
  store i32 1, ptr %48, align 4, !tbaa !5
  br label %.loopexit72

.loopexit72:                                      ; preds = %43, %.critedge, %.critedge70
  %49 = load i32, ptr @m, align 4
  %50 = sext i32 %49 to i64
  %.not66.not = icmp slt i64 %indvars.iv120, %50
  br i1 %.not66.not, label %.preheader71thread-pre-split, label %._crit_edge88, !llvm.loop !17

._crit_edge88:                                    ; preds = %.loopexit72, %.preheader71.us, %middle.block, %.preheader74
  %51 = phi i32 [ %20, %.preheader74 ], [ %20, %middle.block ], [ %20, %.preheader71.us ], [ %49, %.loopexit72 ]
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %52 = sext i32 %51 to i64
  %.not61.not = icmp slt i64 %indvars.iv126, %52
  br i1 %.not61.not, label %.preheader74, label %._crit_edge91, !llvm.loop !19

._crit_edge91.thread:                             ; preds = %.preheader76, %._crit_edge
  %.ph = phi i32 [ %18, %.preheader76 ], [ %14, %._crit_edge ]
  store i32 1044266558, ptr @ans, align 4, !tbaa !5
  br label %.preheader75.._crit_edge104_crit_edge

._crit_edge91:                                    ; preds = %._crit_edge88
  store i32 1044266558, ptr @ans, align 4, !tbaa !5
  %.not6299 = icmp slt i32 %51, 1
  br i1 %.not6299, label %.preheader75.._crit_edge104_crit_edge, label %.preheader73

.preheader75:                                     ; preds = %._crit_edge98
  %.not63101 = icmp slt i32 %71, 1
  br i1 %.not63101, label %.preheader75.._crit_edge104_crit_edge, label %.lr.ph103

.preheader75.._crit_edge104_crit_edge:            ; preds = %._crit_edge91.thread, %._crit_edge91, %.preheader75
  %53 = phi i32 [ %71, %.preheader75 ], [ %.ph, %._crit_edge91.thread ], [ %51, %._crit_edge91 ]
  %.pre = load i32, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge104

.preheader73:                                     ; preds = %._crit_edge91, %._crit_edge98
  %54 = phi i32 [ %71, %._crit_edge98 ], [ %51, %._crit_edge91 ]
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %._crit_edge98 ], [ 1, %._crit_edge91 ]
  %.not6495 = icmp slt i32 %54, 1
  br i1 %.not6495, label %._crit_edge98, label %.lr.ph97

.lr.ph97:                                         ; preds = %.preheader73, %.loopexit
  %55 = phi i32 [ %69, %.loopexit ], [ %54, %.preheader73 ]
  %56 = phi i32 [ %70, %.loopexit ], [ %54, %.preheader73 ]
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %.loopexit ], [ 1, %.preheader73 ]
  %57 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %indvars.iv132, i64 %indvars.iv135
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp eq i32 %58, 1044266558
  %.not6592 = icmp slt i32 %56, 1
  %or.cond = select i1 %59, i1 true, i1 %.not6592
  br i1 %or.cond, label %..loopexit_crit_edge, label %.lr.ph94

..loopexit_crit_edge:                             ; preds = %.lr.ph97
  %.pre141 = sext i32 %56 to i64
  br label %.loopexit

.lr.ph94:                                         ; preds = %.lr.ph97, %.lr.ph94
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %.lr.ph94 ], [ 1, %.lr.ph97 ]
  %60 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %indvars.iv132, i64 %indvars.iv129
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %61 = load i32, ptr %57, align 4, !tbaa !5
  %62 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %indvars.iv135, i64 %indvars.iv129
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = add nsw i32 %63, %61
  store i32 %64, ptr %5, align 4, !tbaa !5
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %60, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %66 = load i32, ptr %65, align 4, !tbaa !5
  store i32 %66, ptr %60, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %67 = load i32, ptr @m, align 4
  %68 = sext i32 %67 to i64
  %.not65.not = icmp slt i64 %indvars.iv129, %68
  br i1 %.not65.not, label %.lr.ph94, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %.lr.ph94, %..loopexit_crit_edge
  %.pre-phi = phi i64 [ %.pre141, %..loopexit_crit_edge ], [ %68, %.lr.ph94 ]
  %69 = phi i32 [ %55, %..loopexit_crit_edge ], [ %67, %.lr.ph94 ]
  %70 = phi i32 [ %56, %..loopexit_crit_edge ], [ %67, %.lr.ph94 ]
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %.not64.not = icmp slt i64 %indvars.iv132, %.pre-phi
  br i1 %.not64.not, label %.lr.ph97, label %._crit_edge98, !llvm.loop !21

._crit_edge98:                                    ; preds = %.loopexit, %.preheader73
  %71 = phi i32 [ %54, %.preheader73 ], [ %69, %.loopexit ]
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %72 = sext i32 %71 to i64
  %.not62.not = icmp slt i64 %indvars.iv135, %72
  br i1 %.not62.not, label %.preheader73, label %.preheader75, !llvm.loop !22

.lr.ph103:                                        ; preds = %.preheader75, %.lr.ph103
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %.lr.ph103 ], [ 1, %.preheader75 ]
  %73 = getelementptr inbounds [505 x [505 x i32]], ptr @road, i64 0, i64 %indvars.iv138, i64 %indvars.iv138
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @ans, ptr noundef nonnull align 4 dereferenceable(4) %73)
  %75 = load i32, ptr %74, align 4, !tbaa !5
  store i32 %75, ptr @ans, align 4, !tbaa !5
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %76 = load i32, ptr @m, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %.not63.not = icmp slt i64 %indvars.iv138, %77
  br i1 %.not63.not, label %.lr.ph103, label %._crit_edge104, !llvm.loop !23

._crit_edge104:                                   ; preds = %.lr.ph103, %.preheader75.._crit_edge104_crit_edge
  %78 = phi i32 [ %.pre, %.preheader75.._crit_edge104_crit_edge ], [ %75, %.lr.ph103 ]
  %.lcssa = phi i32 [ %53, %.preheader75.._crit_edge104_crit_edge ], [ %76, %.lr.ph103 ]
  %79 = icmp sgt i32 %78, %.lcssa
  br i1 %79, label %80, label %82

80:                                               ; preds = %._crit_edge104
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %85

82:                                               ; preds = %._crit_edge104
  %83 = sub nsw i32 %.lcssa, %78
  %84 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %83)
  br label %85

85:                                               ; preds = %82, %80
  %86 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %.not = icmp eq i32 %86, -1
  br i1 %.not, label %._crit_edge108, label %.lr.ph107, !llvm.loop !24

._crit_edge108:                                   ; preds = %85, %0
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK5PointmlERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; 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 norecurse 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { inlinehint 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 }

!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 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !10, !14, !13}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !18}
!18 = !{!"llvm.loop.unswitch.partial.disable"}
!19 = distinct !{!19, !10, !18}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10, !18}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}


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