; LLVM IR from tangjz/acm-icpc :: buaa/oj3rd (1124)

; 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 { i64, i64 }
%struct.edge = type { i32, i32, i64 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@ans = external dso_local global double, align 8
@a = external dso_local global [21000 x %struct.point], align 16
@b = external dso_local global [21000 x %struct.point], align 16
@c = external dso_local global [21000 x %struct.point], align 16
@e = external dso_local global [420000 x %struct.edge], align 16
@fa = external dso_local global [21000 x i32], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; 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 %struct.edge, align 8
  %9 = alloca %struct.edge, align 8
  %10 = alloca %struct.edge, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.edge, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.edge, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.edge, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.edge, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %21

21:                                               ; preds = %380, %0
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @q)
  %23 = icmp eq i32 %22, 3
  br i1 %23, label %24, label %384

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %40, %24
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = icmp sle i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %43

30:                                               ; preds = %25
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %32
  %34 = getelementptr inbounds %struct.point, ptr %33, i32 0, i32 0
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %36
  %38 = getelementptr inbounds %struct.point, ptr %37, i32 0, i32 1
  %39 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %34, ptr noundef %38)
  br label %40

40:                                               ; preds = %30
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %2, align 4, !tbaa !5
  br label %25, !llvm.loop !9

43:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %59, %43
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = load i32, ptr @m, align 4, !tbaa !5
  %47 = icmp sle i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %62

49:                                               ; preds = %44
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %51
  %53 = getelementptr inbounds %struct.point, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %55
  %57 = getelementptr inbounds %struct.point, ptr %56, i32 0, i32 1
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %53, ptr noundef %57)
  br label %59

59:                                               ; preds = %49
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %3, align 4, !tbaa !5
  br label %44, !llvm.loop !11

62:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %78, %62
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = load i32, ptr @q, align 4, !tbaa !5
  %66 = icmp sle i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %81

68:                                               ; preds = %63
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %70
  %72 = getelementptr inbounds %struct.point, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %74
  %76 = getelementptr inbounds %struct.point, ptr %75, i32 0, i32 1
  %77 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %72, ptr noundef %76)
  br label %78

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

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

82:                                               ; preds = %204, %81
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %85 = icmp sle i32 %83, %84
  br i1 %85, label %87, label %86

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

87:                                               ; preds = %82
  br label %88

88:                                               ; preds = %106, %87
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = load i32, ptr @m, align 4, !tbaa !5
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %92, label %104

92:                                               ; preds = %88
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %94
  %96 = getelementptr inbounds %struct.point, ptr %95, i32 0, i32 1
  %97 = load i64, ptr %96, align 8, !tbaa !13
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %99
  %101 = getelementptr inbounds %struct.point, ptr %100, i32 0, i32 1
  %102 = load i64, ptr %101, align 8, !tbaa !13
  %103 = icmp slt i64 %97, %102
  br label %104

104:                                              ; preds = %92, %88
  %105 = phi i1 [ false, %88 ], [ %103, %92 ]
  br i1 %105, label %106, label %109

106:                                              ; preds = %104
  %107 = load i32, ptr %6, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %6, align 4, !tbaa !5
  br label %88, !llvm.loop !16

109:                                              ; preds = %104
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = icmp sgt i32 %110, 1
  br i1 %111, label %112, label %131

112:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  %113 = getelementptr inbounds %struct.edge, ptr %8, i32 0, i32 0
  %114 = load i32, ptr %5, align 4, !tbaa !5
  %115 = sub nsw i32 %114, 1
  store i32 %115, ptr %113, align 8, !tbaa !17
  %116 = getelementptr inbounds %struct.edge, ptr %8, i32 0, i32 1
  %117 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %117, ptr %116, align 4, !tbaa !19
  %118 = getelementptr inbounds %struct.edge, ptr %8, i32 0, i32 2
  %119 = load i32, ptr %5, align 4, !tbaa !5
  %120 = sub nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %121
  %123 = load i32, ptr %5, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %124
  %126 = call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %122, ptr noundef nonnull align 8 dereferenceable(16) %125)
  store i64 %126, ptr %118, align 8, !tbaa !20
  %127 = load i32, ptr @tot, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr @tot, align 4, !tbaa !5
  %129 = sext i32 %127 to i64
  %130 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %130, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  br label %131

131:                                              ; preds = %112, %109
  %132 = load i32, ptr %6, align 4, !tbaa !5
  %133 = icmp sgt i32 %132, 1
  br i1 %133, label %134, label %155

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  %135 = getelementptr inbounds %struct.edge, ptr %9, i32 0, i32 0
  %136 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %136, ptr %135, align 8, !tbaa !17
  %137 = getelementptr inbounds %struct.edge, ptr %9, i32 0, i32 1
  %138 = load i32, ptr @n, align 4, !tbaa !5
  %139 = load i32, ptr %6, align 4, !tbaa !5
  %140 = add nsw i32 %138, %139
  %141 = sub nsw i32 %140, 1
  store i32 %141, ptr %137, align 4, !tbaa !19
  %142 = getelementptr inbounds %struct.edge, ptr %9, i32 0, i32 2
  %143 = load i32, ptr %5, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %144
  %146 = load i32, ptr %6, align 4, !tbaa !5
  %147 = sub nsw i32 %146, 1
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %148
  %150 = call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %145, ptr noundef nonnull align 8 dereferenceable(16) %149)
  store i64 %150, ptr %142, align 8, !tbaa !20
  %151 = load i32, ptr @tot, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr @tot, align 4, !tbaa !5
  %153 = sext i32 %151 to i64
  %154 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %153
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %154, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  br label %155

155:                                              ; preds = %134, %131
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %156 = getelementptr inbounds %struct.edge, ptr %10, i32 0, i32 0
  %157 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %157, ptr %156, align 8, !tbaa !17
  %158 = getelementptr inbounds %struct.edge, ptr %10, i32 0, i32 1
  %159 = load i32, ptr @n, align 4, !tbaa !5
  %160 = load i32, ptr %6, align 4, !tbaa !5
  %161 = add nsw i32 %159, %160
  store i32 %161, ptr %158, align 4, !tbaa !19
  %162 = getelementptr inbounds %struct.edge, ptr %10, i32 0, i32 2
  %163 = load i32, ptr %5, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %164
  %166 = load i32, ptr %6, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %167
  %169 = call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %165, ptr noundef nonnull align 8 dereferenceable(16) %168)
  store i64 %169, ptr %162, align 8, !tbaa !20
  %170 = load i32, ptr @tot, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr @tot, align 4, !tbaa !5
  %172 = sext i32 %170 to i64
  %173 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %172
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %173, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %174

174:                                              ; preds = %200, %155
  %175 = load i32, ptr %11, align 4, !tbaa !5
  %176 = load i32, ptr @q, align 4, !tbaa !5
  %177 = icmp sle i32 %175, %176
  br i1 %177, label %179, label %178

178:                                              ; preds = %174
  store i32 18, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %203

179:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  %180 = getelementptr inbounds %struct.edge, ptr %12, i32 0, i32 0
  %181 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %181, ptr %180, align 8, !tbaa !17
  %182 = getelementptr inbounds %struct.edge, ptr %12, i32 0, i32 1
  %183 = load i32, ptr @n, align 4, !tbaa !5
  %184 = load i32, ptr @m, align 4, !tbaa !5
  %185 = add nsw i32 %183, %184
  %186 = load i32, ptr %11, align 4, !tbaa !5
  %187 = add nsw i32 %185, %186
  store i32 %187, ptr %182, align 4, !tbaa !19
  %188 = getelementptr inbounds %struct.edge, ptr %12, i32 0, i32 2
  %189 = load i32, ptr %5, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %190
  %192 = load i32, ptr %11, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %193
  %195 = call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %191, ptr noundef nonnull align 8 dereferenceable(16) %194)
  store i64 %195, ptr %188, align 8, !tbaa !20
  %196 = load i32, ptr @tot, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr @tot, align 4, !tbaa !5
  %198 = sext i32 %196 to i64
  %199 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %198
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %199, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  br label %200

200:                                              ; preds = %179
  %201 = load i32, ptr %11, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %11, align 4, !tbaa !5
  br label %174, !llvm.loop !23

203:                                              ; preds = %178
  br label %204

204:                                              ; preds = %203
  %205 = load i32, ptr %5, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %5, align 4, !tbaa !5
  br label %82, !llvm.loop !24

207:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %272, %207
  %209 = load i32, ptr %13, align 4, !tbaa !5
  %210 = load i32, ptr @m, align 4, !tbaa !5
  %211 = icmp sle i32 %209, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %208
  store i32 21, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %275

213:                                              ; preds = %208
  %214 = load i32, ptr %13, align 4, !tbaa !5
  %215 = icmp sgt i32 %214, 1
  br i1 %215, label %216, label %239

216:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %217 = getelementptr inbounds %struct.edge, ptr %14, i32 0, i32 0
  %218 = load i32, ptr @n, align 4, !tbaa !5
  %219 = load i32, ptr %13, align 4, !tbaa !5
  %220 = add nsw i32 %218, %219
  %221 = sub nsw i32 %220, 1
  store i32 %221, ptr %217, align 8, !tbaa !17
  %222 = getelementptr inbounds %struct.edge, ptr %14, i32 0, i32 1
  %223 = load i32, ptr @n, align 4, !tbaa !5
  %224 = load i32, ptr %13, align 4, !tbaa !5
  %225 = add nsw i32 %223, %224
  store i32 %225, ptr %222, align 4, !tbaa !19
  %226 = getelementptr inbounds %struct.edge, ptr %14, i32 0, i32 2
  %227 = load i32, ptr %13, align 4, !tbaa !5
  %228 = sub nsw i32 %227, 1
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %229
  %231 = load i32, ptr %13, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %232
  %234 = call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %230, ptr noundef nonnull align 8 dereferenceable(16) %233)
  store i64 %234, ptr %226, align 8, !tbaa !20
  %235 = load i32, ptr @tot, align 4, !tbaa !5
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr @tot, align 4, !tbaa !5
  %237 = sext i32 %235 to i64
  %238 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %237
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %238, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %239

239:                                              ; preds = %216, %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %268, %239
  %241 = load i32, ptr %15, align 4, !tbaa !5
  %242 = load i32, ptr @q, align 4, !tbaa !5
  %243 = icmp sle i32 %241, %242
  br i1 %243, label %245, label %244

244:                                              ; preds = %240
  store i32 24, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %271

245:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %246 = getelementptr inbounds %struct.edge, ptr %16, i32 0, i32 0
  %247 = load i32, ptr @n, align 4, !tbaa !5
  %248 = load i32, ptr %13, align 4, !tbaa !5
  %249 = add nsw i32 %247, %248
  store i32 %249, ptr %246, align 8, !tbaa !17
  %250 = getelementptr inbounds %struct.edge, ptr %16, i32 0, i32 1
  %251 = load i32, ptr @n, align 4, !tbaa !5
  %252 = load i32, ptr @m, align 4, !tbaa !5
  %253 = add nsw i32 %251, %252
  %254 = load i32, ptr %15, align 4, !tbaa !5
  %255 = add nsw i32 %253, %254
  store i32 %255, ptr %250, align 4, !tbaa !19
  %256 = getelementptr inbounds %struct.edge, ptr %16, i32 0, i32 2
  %257 = load i32, ptr %13, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %258
  %260 = load i32, ptr %15, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %261
  %263 = call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %259, ptr noundef nonnull align 8 dereferenceable(16) %262)
  store i64 %263, ptr %256, align 8, !tbaa !20
  %264 = load i32, ptr @tot, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr @tot, align 4, !tbaa !5
  %266 = sext i32 %264 to i64
  %267 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %266
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %267, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %268

268:                                              ; preds = %245
  %269 = load i32, ptr %15, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %15, align 4, !tbaa !5
  br label %240, !llvm.loop !25

271:                                              ; preds = %244
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %13, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %13, align 4, !tbaa !5
  br label %208, !llvm.loop !26

275:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 2, ptr %17, align 4, !tbaa !5
  br label %276

276:                                              ; preds = %308, %275
  %277 = load i32, ptr %17, align 4, !tbaa !5
  %278 = load i32, ptr @q, align 4, !tbaa !5
  %279 = icmp sle i32 %277, %278
  br i1 %279, label %281, label %280

280:                                              ; preds = %276
  store i32 27, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %311

281:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %282 = getelementptr inbounds %struct.edge, ptr %18, i32 0, i32 0
  %283 = load i32, ptr @n, align 4, !tbaa !5
  %284 = load i32, ptr @m, align 4, !tbaa !5
  %285 = add nsw i32 %283, %284
  %286 = load i32, ptr %17, align 4, !tbaa !5
  %287 = add nsw i32 %285, %286
  %288 = sub nsw i32 %287, 1
  store i32 %288, ptr %282, align 8, !tbaa !17
  %289 = getelementptr inbounds %struct.edge, ptr %18, i32 0, i32 1
  %290 = load i32, ptr @n, align 4, !tbaa !5
  %291 = load i32, ptr @m, align 4, !tbaa !5
  %292 = add nsw i32 %290, %291
  %293 = load i32, ptr %17, align 4, !tbaa !5
  %294 = add nsw i32 %292, %293
  store i32 %294, ptr %289, align 4, !tbaa !19
  %295 = getelementptr inbounds %struct.edge, ptr %18, i32 0, i32 2
  %296 = load i32, ptr %17, align 4, !tbaa !5
  %297 = sub nsw i32 %296, 1
  %298 = sext i32 %297 to i64
  %299 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %298
  %300 = load i32, ptr %17, align 4, !tbaa !5
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %301
  %303 = call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %299, ptr noundef nonnull align 8 dereferenceable(16) %302)
  store i64 %303, ptr %295, align 8, !tbaa !20
  %304 = load i32, ptr @tot, align 4, !tbaa !5
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr @tot, align 4, !tbaa !5
  %306 = sext i32 %304 to i64
  %307 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %306
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %307, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  br label %308

308:                                              ; preds = %281
  %309 = load i32, ptr %17, align 4, !tbaa !5
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %17, align 4, !tbaa !5
  br label %276, !llvm.loop !27

311:                                              ; preds = %280
  %312 = load i32, ptr @tot, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds %struct.edge, ptr @e, i64 %313
  call void @_ZSt4sortIP4edgeEvT_S2_(ptr noundef @e, ptr noundef %314)
  %315 = load i32, ptr @m, align 4, !tbaa !5
  %316 = load i32, ptr @q, align 4, !tbaa !5
  %317 = add nsw i32 %315, %316
  %318 = load i32, ptr @n, align 4, !tbaa !5
  %319 = add nsw i32 %318, %317
  store i32 %319, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %320

320:                                              ; preds = %330, %311
  %321 = load i32, ptr %19, align 4, !tbaa !5
  %322 = load i32, ptr @n, align 4, !tbaa !5
  %323 = icmp sle i32 %321, %322
  br i1 %323, label %325, label %324

324:                                              ; preds = %320
  store i32 30, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %333

325:                                              ; preds = %320
  %326 = load i32, ptr %19, align 4, !tbaa !5
  %327 = load i32, ptr %19, align 4, !tbaa !5
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [21000 x i32], ptr @fa, i64 0, i64 %328
  store i32 %326, ptr %329, align 4, !tbaa !5
  br label %330

330:                                              ; preds = %325
  %331 = load i32, ptr %19, align 4, !tbaa !5
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr %19, align 4, !tbaa !5
  br label %320, !llvm.loop !28

333:                                              ; preds = %324
  store double 0.000000e+00, ptr @ans, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %334

334:                                              ; preds = %377, %333
  %335 = load i32, ptr %20, align 4, !tbaa !5
  %336 = load i32, ptr @tot, align 4, !tbaa !5
  %337 = icmp slt i32 %335, %336
  br i1 %337, label %339, label %338

338:                                              ; preds = %334
  store i32 33, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %380

339:                                              ; preds = %334
  %340 = load i32, ptr %20, align 4, !tbaa !5
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %341
  %343 = getelementptr inbounds %struct.edge, ptr %342, i32 0, i32 0
  %344 = load i32, ptr %343, align 16, !tbaa !17
  %345 = call noundef i32 @_Z4findi(i32 noundef %344)
  %346 = load i32, ptr %20, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %347
  %349 = getelementptr inbounds %struct.edge, ptr %348, i32 0, i32 1
  %350 = load i32, ptr %349, align 4, !tbaa !19
  %351 = call noundef i32 @_Z4findi(i32 noundef %350)
  %352 = icmp ne i32 %345, %351
  br i1 %352, label %353, label %376

353:                                              ; preds = %339
  %354 = load i32, ptr %20, align 4, !tbaa !5
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %355
  %357 = getelementptr inbounds %struct.edge, ptr %356, i32 0, i32 1
  %358 = load i32, ptr %357, align 4, !tbaa !19
  %359 = call noundef i32 @_Z4findi(i32 noundef %358)
  %360 = load i32, ptr %20, align 4, !tbaa !5
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %361
  %363 = getelementptr inbounds %struct.edge, ptr %362, i32 0, i32 0
  %364 = load i32, ptr %363, align 16, !tbaa !17
  %365 = call noundef i32 @_Z4findi(i32 noundef %364)
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [21000 x i32], ptr @fa, i64 0, i64 %366
  store i32 %359, ptr %367, align 4, !tbaa !5
  %368 = load i32, ptr %20, align 4, !tbaa !5
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %369
  %371 = getelementptr inbounds %struct.edge, ptr %370, i32 0, i32 2
  %372 = load i64, ptr %371, align 8, !tbaa !20
  %373 = call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %372)
  %374 = load double, ptr @ans, align 8, !tbaa !29
  %375 = fadd double %374, %373
  store double %375, ptr @ans, align 8, !tbaa !29
  br label %376

376:                                              ; preds = %353, %339
  br label %377

377:                                              ; preds = %376
  %378 = load i32, ptr %20, align 4, !tbaa !5
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %20, align 4, !tbaa !5
  br label %334, !llvm.loop !31

380:                                              ; preds = %338
  %381 = load double, ptr @ans, align 8, !tbaa !29
  %382 = fadd double %381, 1.000000e-10
  %383 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %382)
  br label %21, !llvm.loop !32

384:                                              ; preds = %21
  ret i32 0
}

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

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

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

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4edgeEvT_S2_(ptr noundef, ptr noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) #7

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 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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #8 = { 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, !15, i64 8}
!14 = !{!"_ZTS5point", !15, i64 0, !15, i64 8}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = !{!18, !6, i64 0}
!18 = !{!"_ZTS4edge", !6, i64 0, !6, i64 4, !15, i64 8}
!19 = !{!18, !6, i64 4}
!20 = !{!18, !15, i64 8}
!21 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 8, !22}
!22 = !{!15, !15, i64 0}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = !{!30, !30, i64 0}
!30 = !{!"double", !7, i64 0}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !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 { i64, i64 }
%struct.edge = type { i32, i32, i64 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global double, align 8
@a = external dso_local global [21000 x %struct.point], align 16
@b = external dso_local global [21000 x %struct.point], align 16
@c = external dso_local global [21000 x %struct.point], align 16
@e = external dso_local global [420000 x %struct.edge], align 16
@fa = external dso_local local_unnamed_addr global [21000 x i32], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @q)
  %2 = icmp eq i32 %1, 3
  br i1 %2, label %.preheader109, label %._crit_edge151

.preheader109:                                    ; preds = %0, %._crit_edge150
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %.not110 = icmp slt i32 %3, 1
  br i1 %.not110, label %.preheader108, label %.lr.ph

.preheader108:                                    ; preds = %.lr.ph, %.preheader109
  %4 = load i32, ptr @m, align 4, !tbaa !5
  %.not96112 = icmp slt i32 %4, 1
  br i1 %.not96112, label %.preheader107, label %.lr.ph114

.lr.ph:                                           ; preds = %.preheader109, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.preheader109 ]
  %5 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %indvars.iv
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %.not.not = icmp slt i64 %indvars.iv, %9
  br i1 %.not.not, label %.lr.ph, label %.preheader108, !llvm.loop !9

.preheader107:                                    ; preds = %.lr.ph114, %.preheader108
  %10 = load i32, ptr @q, align 4, !tbaa !5
  %.not97115 = icmp slt i32 %10, 1
  br i1 %.not97115, label %._crit_edge, label %.lr.ph117

.lr.ph114:                                        ; preds = %.preheader108, %.lr.ph114
  %indvars.iv153 = phi i64 [ %indvars.iv.next154, %.lr.ph114 ], [ 1, %.preheader108 ]
  %11 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %indvars.iv153
  %12 = getelementptr inbounds i8, ptr %11, i64 8
  %13 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %14 = load i32, ptr @m, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %.not96.not = icmp slt i64 %indvars.iv153, %15
  br i1 %.not96.not, label %.lr.ph114, label %.preheader107, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph117, %.preheader107
  %16 = phi i32 [ %10, %.preheader107 ], [ %21, %.lr.ph117 ]
  store i32 0, ptr @tot, align 4, !tbaa !5
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %.not98127 = icmp slt i32 %17, 1
  br i1 %.not98127, label %.preheader106, label %.preheader

.lr.ph117:                                        ; preds = %.preheader107, %.lr.ph117
  %indvars.iv156 = phi i64 [ %indvars.iv.next157, %.lr.ph117 ], [ 1, %.preheader107 ]
  %18 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %indvars.iv156
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %18, ptr noundef nonnull %19)
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %21 = load i32, ptr @q, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %.not97.not = icmp slt i64 %indvars.iv156, %22
  br i1 %.not97.not, label %.lr.ph117, label %._crit_edge, !llvm.loop !12

.preheader106:                                    ; preds = %._crit_edge126, %._crit_edge
  %23 = phi i32 [ 0, %._crit_edge ], [ %76, %._crit_edge126 ]
  %24 = phi i32 [ %16, %._crit_edge ], [ %77, %._crit_edge126 ]
  %25 = load i32, ptr @m, align 4, !tbaa !5
  %.not99135 = icmp slt i32 %25, 1
  br i1 %.not99135, label %.preheader105, label %.lr.ph137

.preheader:                                       ; preds = %._crit_edge, %._crit_edge126
  %.pre184188 = phi i32 [ %78, %._crit_edge126 ], [ %17, %._crit_edge ]
  %indvars.iv165 = phi i64 [ %indvars.iv.next166, %._crit_edge126 ], [ 1, %._crit_edge ]
  %.092128 = phi i32 [ %.1.lcssa, %._crit_edge126 ], [ 1, %._crit_edge ]
  %26 = load i32, ptr @m, align 4, !tbaa !5
  %27 = icmp slt i32 %.092128, %26
  br i1 %27, label %.lr.ph119, label %.critedge

.lr.ph119:                                        ; preds = %.preheader
  %28 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %indvars.iv165, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !13
  %30 = sext i32 %.092128 to i64
  %31 = sext i32 %26 to i64
  br label %32

32:                                               ; preds = %.lr.ph119, %36
  %indvars.iv159 = phi i64 [ %30, %.lr.ph119 ], [ %indvars.iv.next160, %36 ]
  %33 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %indvars.iv159, i32 1
  %34 = load i64, ptr %33, align 8, !tbaa !13
  %35 = icmp slt i64 %34, %29
  br i1 %35, label %36, label %.critedge.loopexit.split.loop.exit200

36:                                               ; preds = %32
  %indvars.iv.next160 = add nsw i64 %indvars.iv159, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next160, %31
  br i1 %exitcond.not, label %.critedge, label %32, !llvm.loop !16

.critedge.loopexit.split.loop.exit200:            ; preds = %32
  %37 = trunc nsw i64 %indvars.iv159 to i32
  br label %.critedge

.critedge:                                        ; preds = %36, %.critedge.loopexit.split.loop.exit200, %.preheader
  %.1.lcssa = phi i32 [ %.092128, %.preheader ], [ %37, %.critedge.loopexit.split.loop.exit200 ], [ %26, %36 ]
  %38 = icmp ugt i64 %indvars.iv165, 1
  br i1 %38, label %39, label %50

39:                                               ; preds = %.critedge
  %40 = add nsw i64 %indvars.iv165, -1
  %41 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %40
  %42 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %indvars.iv165
  %43 = tail call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %42)
  %44 = load i32, ptr @tot, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr @tot, align 4, !tbaa !5
  %46 = sext i32 %44 to i64
  %47 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %46
  %48 = trunc nuw nsw i64 %40 to i32
  store i32 %48, ptr %47, align 16, !tbaa !5
  %.sroa.450.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 4
  %49 = trunc nuw nsw i64 %indvars.iv165 to i32
  store i32 %49, ptr %.sroa.450.0..sroa_idx, align 4, !tbaa !5
  %.sroa.551.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 8
  store i64 %43, ptr %.sroa.551.0..sroa_idx, align 8, !tbaa !17
  %.pre184.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %39, %.critedge
  %.pre184 = phi i32 [ %.pre184.pre, %39 ], [ %.pre184188, %.critedge ]
  %51 = icmp sgt i32 %.1.lcssa, 1
  br i1 %51, label %52, label %._crit_edge189

._crit_edge189:                                   ; preds = %50
  %.pre190 = trunc nuw nsw i64 %indvars.iv165 to i32
  br label %64

52:                                               ; preds = %50
  %53 = add nsw i32 %.1.lcssa, -1
  %54 = add i32 %53, %.pre184
  %55 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %indvars.iv165
  %56 = zext nneg i32 %53 to i64
  %57 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %56
  %58 = tail call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 8 dereferenceable(16) %57)
  %59 = load i32, ptr @tot, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr @tot, align 4, !tbaa !5
  %61 = sext i32 %59 to i64
  %62 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %61
  %63 = trunc nuw nsw i64 %indvars.iv165 to i32
  store i32 %63, ptr %62, align 16, !tbaa !5
  %.sroa.447.0..sroa_idx = getelementptr inbounds i8, ptr %62, i64 4
  store i32 %54, ptr %.sroa.447.0..sroa_idx, align 4, !tbaa !5
  %.sroa.548.0..sroa_idx = getelementptr inbounds i8, ptr %62, i64 8
  store i64 %58, ptr %.sroa.548.0..sroa_idx, align 8, !tbaa !17
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %._crit_edge189, %52
  %.pre-phi = phi i32 [ %.pre190, %._crit_edge189 ], [ %63, %52 ]
  %65 = phi i32 [ %.pre184, %._crit_edge189 ], [ %.pre, %52 ]
  %66 = add nsw i32 %65, %.1.lcssa
  %67 = getelementptr inbounds [21000 x %struct.point], ptr @a, i64 0, i64 %indvars.iv165
  %68 = sext i32 %.1.lcssa to i64
  %69 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %68
  %70 = tail call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 8 dereferenceable(16) %69)
  %71 = load i32, ptr @tot, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr @tot, align 4, !tbaa !5
  %73 = sext i32 %71 to i64
  %74 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %73
  store i32 %.pre-phi, ptr %74, align 16, !tbaa !5
  %.sroa.444.0..sroa_idx = getelementptr inbounds i8, ptr %74, i64 4
  store i32 %66, ptr %.sroa.444.0..sroa_idx, align 4, !tbaa !5
  %.sroa.545.0..sroa_idx = getelementptr inbounds i8, ptr %74, i64 8
  store i64 %70, ptr %.sroa.545.0..sroa_idx, align 8, !tbaa !17
  %75 = load i32, ptr @q, align 4, !tbaa !5
  %.not104122 = icmp slt i32 %75, 1
  br i1 %.not104122, label %._crit_edge126, label %.lr.ph125

._crit_edge126:                                   ; preds = %.lr.ph125, %64
  %76 = phi i32 [ %72, %64 ], [ %88, %.lr.ph125 ]
  %77 = phi i32 [ %75, %64 ], [ %91, %.lr.ph125 ]
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %.not98.not = icmp slt i64 %indvars.iv165, %79
  br i1 %.not98.not, label %.preheader, label %.preheader106, !llvm.loop !18

.lr.ph125:                                        ; preds = %64, %.lr.ph125
  %indvars.iv162 = phi i64 [ %indvars.iv.next163, %.lr.ph125 ], [ 1, %64 ]
  %80 = load i32, ptr @n, align 4, !tbaa !5
  %81 = load i32, ptr @m, align 4, !tbaa !5
  %82 = trunc nuw nsw i64 %indvars.iv162 to i32
  %83 = add i32 %80, %82
  %84 = add i32 %83, %81
  %85 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %indvars.iv162
  %86 = tail call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 8 dereferenceable(16) %85)
  %87 = load i32, ptr @tot, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr @tot, align 4, !tbaa !5
  %89 = sext i32 %87 to i64
  %90 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %89
  store i32 %.pre-phi, ptr %90, align 16, !tbaa !5
  %.sroa.437.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 4
  store i32 %84, ptr %.sroa.437.0..sroa_idx, align 4, !tbaa !5
  %.sroa.538.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 8
  store i64 %86, ptr %.sroa.538.0..sroa_idx, align 8, !tbaa !17
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %91 = load i32, ptr @q, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %.not104.not = icmp slt i64 %indvars.iv162, %92
  br i1 %.not104.not, label %.lr.ph125, label %._crit_edge126, !llvm.loop !19

.preheader105:                                    ; preds = %._crit_edge134, %.preheader106
  %93 = phi i32 [ %23, %.preheader106 ], [ %116, %._crit_edge134 ]
  %94 = phi i32 [ %24, %.preheader106 ], [ %117, %._crit_edge134 ]
  %.not100138 = icmp slt i32 %94, 2
  br i1 %.not100138, label %._crit_edge141, label %.lr.ph140

.lr.ph137:                                        ; preds = %.preheader106, %._crit_edge134
  %95 = phi i32 [ %116, %._crit_edge134 ], [ %23, %.preheader106 ]
  %96 = phi i32 [ %117, %._crit_edge134 ], [ %24, %.preheader106 ]
  %indvars.iv171 = phi i64 [ %indvars.iv.next172, %._crit_edge134 ], [ 1, %.preheader106 ]
  %97 = icmp ugt i64 %indvars.iv171, 1
  br i1 %97, label %98, label %111

98:                                               ; preds = %.lr.ph137
  %99 = load i32, ptr @n, align 4, !tbaa !5
  %100 = trunc nuw nsw i64 %indvars.iv171 to i32
  %101 = add nsw i32 %99, %100
  %102 = add nsw i32 %101, -1
  %103 = add nsw i64 %indvars.iv171, -1
  %104 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %103
  %105 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %indvars.iv171
  %106 = tail call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %104, ptr noundef nonnull align 8 dereferenceable(16) %105)
  %107 = load i32, ptr @tot, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr @tot, align 4, !tbaa !5
  %109 = sext i32 %107 to i64
  %110 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %109
  store i32 %102, ptr %110, align 16, !tbaa !5
  %.sroa.425.0..sroa_idx = getelementptr inbounds i8, ptr %110, i64 4
  store i32 %101, ptr %.sroa.425.0..sroa_idx, align 4, !tbaa !5
  %.sroa.526.0..sroa_idx = getelementptr inbounds i8, ptr %110, i64 8
  store i64 %106, ptr %.sroa.526.0..sroa_idx, align 8, !tbaa !17
  %.pre185 = load i32, ptr @q, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %98, %.lr.ph137
  %112 = phi i32 [ %108, %98 ], [ %95, %.lr.ph137 ]
  %113 = phi i32 [ %.pre185, %98 ], [ %96, %.lr.ph137 ]
  %.not103130 = icmp slt i32 %113, 1
  br i1 %.not103130, label %._crit_edge134, label %.lr.ph133

.lr.ph133:                                        ; preds = %111
  %114 = getelementptr inbounds [21000 x %struct.point], ptr @b, i64 0, i64 %indvars.iv171
  %115 = trunc nuw nsw i64 %indvars.iv171 to i32
  br label %120

._crit_edge134:                                   ; preds = %120, %111
  %116 = phi i32 [ %112, %111 ], [ %130, %120 ]
  %117 = phi i32 [ %113, %111 ], [ %133, %120 ]
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %118 = load i32, ptr @m, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %.not99.not = icmp slt i64 %indvars.iv171, %119
  br i1 %.not99.not, label %.lr.ph137, label %.preheader105, !llvm.loop !20

120:                                              ; preds = %.lr.ph133, %120
  %indvars.iv168 = phi i64 [ 1, %.lr.ph133 ], [ %indvars.iv.next169, %120 ]
  %121 = load i32, ptr @n, align 4, !tbaa !5
  %122 = add nsw i32 %121, %115
  %123 = load i32, ptr @m, align 4, !tbaa !5
  %124 = trunc nuw nsw i64 %indvars.iv168 to i32
  %125 = add i32 %121, %124
  %126 = add i32 %125, %123
  %127 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %indvars.iv168
  %128 = tail call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %114, ptr noundef nonnull align 8 dereferenceable(16) %127)
  %129 = load i32, ptr @tot, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr @tot, align 4, !tbaa !5
  %131 = sext i32 %129 to i64
  %132 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %131
  store i32 %122, ptr %132, align 16, !tbaa !5
  %.sroa.418.0..sroa_idx = getelementptr inbounds i8, ptr %132, i64 4
  store i32 %126, ptr %.sroa.418.0..sroa_idx, align 4, !tbaa !5
  %.sroa.519.0..sroa_idx = getelementptr inbounds i8, ptr %132, i64 8
  store i64 %128, ptr %.sroa.519.0..sroa_idx, align 8, !tbaa !17
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %133 = load i32, ptr @q, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %.not103.not = icmp slt i64 %indvars.iv168, %134
  br i1 %.not103.not, label %120, label %._crit_edge134, !llvm.loop !21

._crit_edge141:                                   ; preds = %.lr.ph140, %.preheader105
  %135 = phi i32 [ %93, %.preheader105 ], [ %161, %.lr.ph140 ]
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds %struct.edge, ptr @e, i64 %136
  tail call void @_ZSt4sortIP4edgeEvT_S2_(ptr noundef nonnull @e, ptr noundef nonnull %137)
  %138 = load i32, ptr @m, align 4, !tbaa !5
  %139 = load i32, ptr @q, align 4, !tbaa !5
  %140 = add nsw i32 %139, %138
  %141 = load i32, ptr @n, align 4, !tbaa !5
  %142 = add nsw i32 %140, %141
  store i32 %142, ptr @n, align 4, !tbaa !5
  %.not101142 = icmp slt i32 %142, 1
  br i1 %.not101142, label %._crit_edge146, label %.lr.ph145.preheader

.lr.ph145.preheader:                              ; preds = %._crit_edge141
  %143 = add i32 %139, 1
  %144 = add i32 %143, %141
  %145 = add i32 %144, %138
  %wide.trip.count = zext i32 %145 to i64
  %146 = add nsw i64 %wide.trip.count, -1
  %min.iters.check = icmp ult i64 %146, 8
  br i1 %min.iters.check, label %.lr.ph145.preheader213, label %vector.ph

.lr.ph145.preheader213:                           ; preds = %middle.block, %.lr.ph145.preheader
  %indvars.iv177.ph = phi i64 [ 1, %.lr.ph145.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph145

vector.ph:                                        ; preds = %.lr.ph145.preheader
  %n.vec = and i64 %146, -8
  %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 ]
  %vec.ind = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %offset.idx = or disjoint i64 %index, 1
  %147 = getelementptr inbounds [21000 x i32], ptr @fa, i64 0, i64 %offset.idx
  %148 = getelementptr inbounds i8, ptr %147, i64 16
  store <4 x i32> %vec.ind, ptr %147, align 4, !tbaa !5
  store <4 x i32> %step.add, ptr %148, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %149 = icmp eq i64 %index.next, %n.vec
  br i1 %149, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %146, %n.vec
  br i1 %cmp.n, label %._crit_edge146, label %.lr.ph145.preheader213

.lr.ph140:                                        ; preds = %.preheader105, %.lr.ph140
  %indvars.iv174 = phi i64 [ %indvars.iv.next175, %.lr.ph140 ], [ 2, %.preheader105 ]
  %150 = load i32, ptr @n, align 4, !tbaa !5
  %151 = load i32, ptr @m, align 4, !tbaa !5
  %152 = trunc nuw nsw i64 %indvars.iv174 to i32
  %153 = add i32 %150, %152
  %154 = add i32 %153, %151
  %155 = add nsw i32 %154, -1
  %156 = add nsw i64 %indvars.iv174, -1
  %157 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %156
  %158 = getelementptr inbounds [21000 x %struct.point], ptr @c, i64 0, i64 %indvars.iv174
  %159 = tail call noundef i64 @_Z4distRK5pointS1_(ptr noundef nonnull align 8 dereferenceable(16) %157, ptr noundef nonnull align 8 dereferenceable(16) %158)
  %160 = load i32, ptr @tot, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr @tot, align 4, !tbaa !5
  %162 = sext i32 %160 to i64
  %163 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %162
  store i32 %155, ptr %163, align 16, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %163, i64 4
  store i32 %154, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %163, i64 8
  store i64 %159, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !17
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %164 = load i32, ptr @q, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %.not100.not = icmp slt i64 %indvars.iv174, %165
  br i1 %.not100.not, label %.lr.ph140, label %._crit_edge141, !llvm.loop !25

._crit_edge146:                                   ; preds = %.lr.ph145, %middle.block, %._crit_edge141
  store double 0.000000e+00, ptr @ans, align 8, !tbaa !26
  %166 = load i32, ptr @tot, align 4, !tbaa !5
  %167 = icmp sgt i32 %166, 0
  br i1 %167, label %.lr.ph149, label %._crit_edge150

.lr.ph145:                                        ; preds = %.lr.ph145.preheader213, %.lr.ph145
  %indvars.iv177 = phi i64 [ %indvars.iv.next178, %.lr.ph145 ], [ %indvars.iv177.ph, %.lr.ph145.preheader213 ]
  %168 = getelementptr inbounds [21000 x i32], ptr @fa, i64 0, i64 %indvars.iv177
  %169 = trunc nuw nsw i64 %indvars.iv177 to i32
  store i32 %169, ptr %168, align 4, !tbaa !5
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %exitcond180.not = icmp eq i64 %indvars.iv.next178, %wide.trip.count
  br i1 %exitcond180.not, label %._crit_edge146, label %.lr.ph145, !llvm.loop !28

._crit_edge150.loopexit:                          ; preds = %193
  %.pre186 = load double, ptr @ans, align 8, !tbaa !26
  br label %._crit_edge150

._crit_edge150:                                   ; preds = %._crit_edge150.loopexit, %._crit_edge146
  %170 = phi double [ %.pre186, %._crit_edge150.loopexit ], [ 0.000000e+00, %._crit_edge146 ]
  %171 = fadd double %170, 1.000000e-10
  %172 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %171)
  %173 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @q)
  %174 = icmp eq i32 %173, 3
  br i1 %174, label %.preheader109, label %._crit_edge151, !llvm.loop !29

.lr.ph149:                                        ; preds = %._crit_edge146, %193
  %indvars.iv181 = phi i64 [ %indvars.iv.next182, %193 ], [ 0, %._crit_edge146 ]
  %175 = getelementptr inbounds [420000 x %struct.edge], ptr @e, i64 0, i64 %indvars.iv181
  %176 = load i32, ptr %175, align 16, !tbaa !30
  %177 = tail call noundef i32 @_Z4findi(i32 noundef %176)
  %178 = getelementptr inbounds i8, ptr %175, i64 4
  %179 = load i32, ptr %178, align 4, !tbaa !32
  %180 = tail call noundef i32 @_Z4findi(i32 noundef %179)
  %.not102 = icmp eq i32 %177, %180
  br i1 %.not102, label %193, label %181

181:                                              ; preds = %.lr.ph149
  %182 = load i32, ptr %178, align 4, !tbaa !32
  %183 = tail call noundef i32 @_Z4findi(i32 noundef %182)
  %184 = load i32, ptr %175, align 16, !tbaa !30
  %185 = tail call noundef i32 @_Z4findi(i32 noundef %184)
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [21000 x i32], ptr @fa, i64 0, i64 %186
  store i32 %183, ptr %187, align 4, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %175, i64 8
  %189 = load i64, ptr %188, align 8, !tbaa !33
  %190 = tail call noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef %189)
  %191 = load double, ptr @ans, align 8, !tbaa !26
  %192 = fadd double %190, %191
  store double %192, ptr @ans, align 8, !tbaa !26
  br label %193

193:                                              ; preds = %.lr.ph149, %181
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %194 = load i32, ptr @tot, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = icmp slt i64 %indvars.iv.next182, %195
  br i1 %196, label %.lr.ph149, label %._crit_edge150.loopexit, !llvm.loop !34

._crit_edge151:                                   ; preds = %._crit_edge150, %0
  ret i32 0
}

; 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 @_ZSt4sortIP4edgeEvT_S2_(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIxEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i64 noundef) 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 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 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 = { 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" }

!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, !15, i64 8}
!14 = !{!"_ZTS5point", !15, i64 0, !15, i64 8}
!15 = !{!"long long", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = !{!15, !15, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10, !23, !24}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !10}
!26 = !{!27, !27, i64 0}
!27 = !{!"double", !7, i64 0}
!28 = distinct !{!28, !10, !24, !23}
!29 = distinct !{!29, !10}
!30 = !{!31, !6, i64 0}
!31 = !{!"_ZTS4edge", !6, i64 0, !6, i64 4, !15, i64 8}
!32 = !{!31, !6, i64 4}
!33 = !{!31, !15, i64 8}
!34 = distinct !{!34, !10}


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