; LLVM IR from tangjz/acm-icpc :: lydsy (1091)

; 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 { double, double }
%struct.Line = type { %struct.Point, %struct.Point }

@p = external dso_local global [9 x %struct.Point], align 16
@a = external dso_local global [9 x %struct.Line], align 16
@b = external dso_local global [13 x %struct.Line], align 16
@n = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@perm = external dso_local global [9 x i32], align 16
@R = external dso_local global double, align 8
@C = external dso_local global double, align 8
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %struct.Line, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.Line, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca %struct.Point, align 8
  store i32 0, ptr %1, align 4
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @R, ptr noundef @C, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %50, %0
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = icmp slt i32 %20, 4
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %53

23:                                               ; preds = %19
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = and i32 %24, 1
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = ashr i32 %26, 1
  %28 = icmp eq i32 %25, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %23
  br label %32

30:                                               ; preds = %23
  %31 = load double, ptr @R, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %30, %29
  %33 = phi double [ 0.000000e+00, %29 ], [ %31, %30 ]
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %35
  %37 = getelementptr inbounds %struct.Point, ptr %36, i32 0, i32 0
  store double %33, ptr %37, align 16, !tbaa !11
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = ashr i32 %38, 1
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %32
  %42 = load double, ptr @C, align 8, !tbaa !9
  br label %44

43:                                               ; preds = %32
  br label %44

44:                                               ; preds = %43, %41
  %45 = phi double [ %42, %41 ], [ 0.000000e+00, %43 ]
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %47
  %49 = getelementptr inbounds %struct.Point, ptr %48, i32 0, i32 1
  store double %45, ptr %49, align 8, !tbaa !13
  br label %50

50:                                               ; preds = %44
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %2, align 4, !tbaa !5
  br label %19, !llvm.loop !14

53:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %86, %53
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = icmp slt i32 %55, 4
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %89

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #7
  %59 = getelementptr inbounds %struct.Line, ptr %4, i32 0, i32 0
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %61
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %59, ptr align 16 %62, i64 16, i1 false), !tbaa.struct !16
  %63 = getelementptr inbounds %struct.Line, ptr %4, i32 0, i32 1
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  %66 = icmp slt i32 %65, 4
  br i1 %66, label %67, label %70

67:                                               ; preds = %58
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  br label %71

70:                                               ; preds = %58
  br label %71

71:                                               ; preds = %70, %67
  %72 = phi i32 [ %69, %67 ], [ 0, %70 ]
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %73
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %76
  %78 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull align 8 dereferenceable(16) %77)
  %79 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %80 = extractvalue { double, double } %78, 0
  store double %80, ptr %79, align 8
  %81 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %82 = extractvalue { double, double } %78, 1
  store double %82, ptr %81, align 8
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [13 x %struct.Line], ptr @b, i64 0, i64 %84
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %85, ptr align 8 %4, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  br label %86

86:                                               ; preds = %71
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %3, align 4, !tbaa !5
  br label %54, !llvm.loop !18

89:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %109, %89
  %91 = load i32, ptr %5, align 4, !tbaa !5
  %92 = load i32, ptr @n, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %112

95:                                               ; preds = %90
  %96 = load i32, ptr %5, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %97
  %99 = getelementptr inbounds %struct.Point, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %5, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %101
  %103 = getelementptr inbounds %struct.Point, ptr %102, i32 0, i32 1
  %104 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %99, ptr noundef %103)
  %105 = load i32, ptr %5, align 4, !tbaa !5
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [9 x i32], ptr @perm, i64 0, i64 %107
  store i32 %105, ptr %108, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %95
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %5, align 4, !tbaa !5
  br label %90, !llvm.loop !19

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

113:                                              ; preds = %147, %112
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = load i32, ptr @n, align 4, !tbaa !5
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %150

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #7
  %119 = getelementptr inbounds %struct.Line, ptr %7, i32 0, i32 0
  %120 = load i32, ptr %6, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %121
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %119, ptr align 16 %122, i64 16, i1 false), !tbaa.struct !16
  %123 = getelementptr inbounds %struct.Line, ptr %7, i32 0, i32 1
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  %126 = load i32, ptr @n, align 4, !tbaa !5
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %128, label %131

128:                                              ; preds = %118
  %129 = load i32, ptr %6, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  br label %132

131:                                              ; preds = %118
  br label %132

132:                                              ; preds = %131, %128
  %133 = phi i32 [ %130, %128 ], [ 0, %131 ]
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %134
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %137
  %139 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %135, ptr noundef nonnull align 8 dereferenceable(16) %138)
  %140 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 0
  %141 = extractvalue { double, double } %139, 0
  store double %141, ptr %140, align 8
  %142 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 1
  %143 = extractvalue { double, double } %139, 1
  store double %143, ptr %142, align 8
  %144 = load i32, ptr %6, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [9 x %struct.Line], ptr @a, i64 0, i64 %145
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %146, ptr align 8 %7, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  br label %147

147:                                              ; preds = %132
  %148 = load i32, ptr %6, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %6, align 4, !tbaa !5
  br label %113, !llvm.loop !20

150:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store double 1.000000e+10, ptr %8, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %239, %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  store i32 4, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %229, %151
  %153 = load i32, ptr %10, align 4, !tbaa !5
  %154 = load i32, ptr @n, align 4, !tbaa !5
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  store i32 16, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %232

157:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %158 = load i32, ptr %10, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [9 x i32], ptr @perm, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [9 x %struct.Line], ptr @a, i64 0, i64 %162
  store ptr %163, ptr %12, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store double -1.000000e+10, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store double 1.000000e+10, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %212, %157
  %165 = load i32, ptr %15, align 4, !tbaa !5
  %166 = load i32, ptr @tot, align 4, !tbaa !5
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %164
  store i32 19, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %215

169:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %170 = load i32, ptr %15, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [13 x %struct.Line], ptr @b, i64 0, i64 %171
  %173 = getelementptr inbounds %struct.Line, ptr %172, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %174 = load i32, ptr %15, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [13 x %struct.Line], ptr @b, i64 0, i64 %175
  %177 = getelementptr inbounds %struct.Line, ptr %176, i32 0, i32 0
  %178 = load ptr, ptr %12, align 8, !tbaa !21
  %179 = getelementptr inbounds %struct.Line, ptr %178, i32 0, i32 0
  %180 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %177, ptr noundef nonnull align 8 dereferenceable(16) %179)
  %181 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %182 = extractvalue { double, double } %180, 0
  store double %182, ptr %181, align 8
  %183 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %184 = extractvalue { double, double } %180, 1
  store double %184, ptr %183, align 8
  %185 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %173, ptr noundef nonnull align 8 dereferenceable(16) %17)
  %186 = load i32, ptr %15, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [13 x %struct.Line], ptr @b, i64 0, i64 %187
  %189 = getelementptr inbounds %struct.Line, ptr %188, i32 0, i32 1
  %190 = load ptr, ptr %12, align 8, !tbaa !21
  %191 = getelementptr inbounds %struct.Line, ptr %190, i32 0, i32 1
  %192 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %189, ptr noundef nonnull align 8 dereferenceable(16) %191)
  %193 = fdiv double %185, %192
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  store double %193, ptr %16, align 8, !tbaa !9
  %194 = load double, ptr %16, align 8, !tbaa !9
  %195 = call noundef i32 @_Z4dcmpdd(double noundef %194, double noundef 5.000000e-01)
  %196 = icmp sgt i32 %195, 0
  br i1 %196, label %197, label %204

197:                                              ; preds = %169
  %198 = load double, ptr %16, align 8, !tbaa !9
  %199 = load double, ptr %14, align 8, !tbaa !9
  %200 = fcmp olt double %198, %199
  br i1 %200, label %201, label %203

201:                                              ; preds = %197
  %202 = load double, ptr %16, align 8, !tbaa !9
  store double %202, ptr %14, align 8, !tbaa !9
  br label %203

203:                                              ; preds = %201, %197
  br label %211

204:                                              ; preds = %169
  %205 = load double, ptr %13, align 8, !tbaa !9
  %206 = load double, ptr %16, align 8, !tbaa !9
  %207 = fcmp olt double %205, %206
  br i1 %207, label %208, label %210

208:                                              ; preds = %204
  %209 = load double, ptr %16, align 8, !tbaa !9
  store double %209, ptr %13, align 8, !tbaa !9
  br label %210

210:                                              ; preds = %208, %204
  br label %211

211:                                              ; preds = %210, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %15, align 4, !tbaa !5
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %15, align 4, !tbaa !5
  br label %164, !llvm.loop !23

215:                                              ; preds = %168
  %216 = load ptr, ptr %12, align 8, !tbaa !21
  %217 = load i32, ptr @tot, align 4, !tbaa !5
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr @tot, align 4, !tbaa !5
  %219 = sext i32 %217 to i64
  %220 = getelementptr inbounds [13 x %struct.Line], ptr @b, i64 0, i64 %219
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %220, ptr align 8 %216, i64 32, i1 false), !tbaa.struct !17
  %221 = load double, ptr %14, align 8, !tbaa !9
  %222 = load double, ptr %13, align 8, !tbaa !9
  %223 = fsub double %221, %222
  %224 = load ptr, ptr %12, align 8, !tbaa !21
  %225 = getelementptr inbounds %struct.Line, ptr %224, i32 0, i32 1
  %226 = call noundef double @_ZNK5Point4normEv(ptr noundef nonnull align 8 dereferenceable(16) %225)
  %227 = load double, ptr %9, align 8, !tbaa !9
  %228 = call double @llvm.fmuladd.f64(double %223, double %226, double %227)
  store double %228, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %229

229:                                              ; preds = %215
  %230 = load i32, ptr %10, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %10, align 4, !tbaa !5
  br label %152, !llvm.loop !24

232:                                              ; preds = %156
  %233 = load double, ptr %9, align 8, !tbaa !9
  %234 = load double, ptr %8, align 8, !tbaa !9
  %235 = fcmp olt double %233, %234
  br i1 %235, label %236, label %238

236:                                              ; preds = %232
  %237 = load double, ptr %9, align 8, !tbaa !9
  store double %237, ptr %8, align 8, !tbaa !9
  br label %238

238:                                              ; preds = %236, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr @n, align 4, !tbaa !5
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds i32, ptr @perm, i64 %241
  %243 = call noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef @perm, ptr noundef %242)
  br i1 %243, label %151, label %244, !llvm.loop !25

244:                                              ; preds = %239
  %245 = load double, ptr %8, align 8, !tbaa !9
  %246 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %245)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %247 = load i32, ptr %1, align 4
  ret i32 %247
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z4dcmpdd(double noundef, double noundef) #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef, ptr noundef) #5

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

attributes #0 = { 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 #1 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS5Point", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i64 0, i64 8, !9, i64 8, i64 8, !9}
!17 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !9}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = !{!22, !22, i64 0}
!22 = !{!"any pointer", !7, i64 0}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}


; 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 { double, double }
%struct.Line = type { %struct.Point, %struct.Point }

@p = external dso_local global [9 x %struct.Point], align 16
@a = external dso_local global [9 x %struct.Line], align 16
@b = external dso_local global [13 x %struct.Line], align 16
@n = external dso_local global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@perm = external dso_local global [9 x i32], align 16
@R = external dso_local global double, align 8
@C = external dso_local global double, align 8
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader73.preheader:
  %.sroa.038 = alloca %struct.Point, align 8
  %.sroa.0 = alloca %struct.Point, align 8
  %0 = alloca %struct.Point, align 8
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @R, ptr noundef nonnull @C, ptr noundef nonnull @n)
  %2 = load double, ptr @R, align 8
  %3 = load double, ptr @C, align 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) @p, i8 0, i64 16, i1 false)
  store double %2, ptr getelementptr inbounds (i8, ptr @p, i64 16), align 16, !tbaa !5
  store double 0.000000e+00, ptr getelementptr inbounds (i8, ptr @p, i64 24), align 8, !tbaa !10
  store double %2, ptr getelementptr inbounds (i8, ptr @p, i64 32), align 16, !tbaa !5
  store double %3, ptr getelementptr inbounds (i8, ptr @p, i64 40), align 8, !tbaa !10
  store double 0.000000e+00, ptr getelementptr inbounds (i8, ptr @p, i64 48), align 16, !tbaa !5
  store double %3, ptr getelementptr inbounds (i8, ptr @p, i64 56), align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %.sroa.038)
  %4 = tail call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 16), ptr noundef nonnull align 8 dereferenceable(16) @p)
  %5 = extractvalue { double, double } %4, 0
  %6 = extractvalue { double, double } %4, 1
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) @b, i8 0, i64 16, i1 false)
  store double %5, ptr getelementptr inbounds (i8, ptr @b, i64 16), align 16, !tbaa !11
  store double %6, ptr getelementptr inbounds (i8, ptr @b, i64 24), align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.038)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %.sroa.038)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.038, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 16), i64 16, i1 false), !tbaa.struct !12
  %7 = tail call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 32), ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 16))
  %8 = extractvalue { double, double } %7, 0
  %9 = extractvalue { double, double } %7, 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @b, i64 32), ptr noundef nonnull align 8 dereferenceable(16) %.sroa.038, i64 16, i1 false), !tbaa.struct !13
  store double %8, ptr getelementptr inbounds (i8, ptr @b, i64 48), align 16, !tbaa !11
  store double %9, ptr getelementptr inbounds (i8, ptr @b, i64 56), align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.038)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %.sroa.038)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.038, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 32), i64 16, i1 false), !tbaa.struct !12
  %10 = tail call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 48), ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 32))
  %11 = extractvalue { double, double } %10, 0
  %12 = extractvalue { double, double } %10, 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @b, i64 64), ptr noundef nonnull align 8 dereferenceable(16) %.sroa.038, i64 16, i1 false), !tbaa.struct !13
  store double %11, ptr getelementptr inbounds (i8, ptr @b, i64 80), align 16, !tbaa !11
  store double %12, ptr getelementptr inbounds (i8, ptr @b, i64 88), align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.038)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %.sroa.038)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.038, ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 48), i64 16, i1 false), !tbaa.struct !12
  %13 = tail call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) @p, ptr noundef nonnull align 8 dereferenceable(16) getelementptr inbounds (i8, ptr @p, i64 48))
  %14 = extractvalue { double, double } %13, 0
  %15 = extractvalue { double, double } %13, 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) getelementptr inbounds (i8, ptr @b, i64 96), ptr noundef nonnull align 8 dereferenceable(16) %.sroa.038, i64 16, i1 false), !tbaa.struct !13
  store double %14, ptr getelementptr inbounds (i8, ptr @b, i64 112), align 16, !tbaa !11
  store double %15, ptr getelementptr inbounds (i8, ptr @b, i64 120), align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.038)
  %16 = load i32, ptr @n, align 4, !tbaa !14
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph, label %.preheader

.preheader71:                                     ; preds = %.lr.ph
  %18 = icmp sgt i32 %24, 0
  br i1 %18, label %.lr.ph79, label %.preheader

.lr.ph:                                           ; preds = %.preheader73.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader73.preheader ]
  %19 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %19, ptr noundef nonnull %20)
  %22 = getelementptr inbounds [9 x i32], ptr @perm, i64 0, i64 %indvars.iv
  %23 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %23, ptr %22, align 4, !tbaa !14
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i32, ptr @n, align 4, !tbaa !14
  %25 = sext i32 %24 to i64
  %26 = icmp slt i64 %indvars.iv.next, %25
  br i1 %26, label %.lr.ph, label %.preheader71, !llvm.loop !16

.preheader:                                       ; preds = %.lr.ph79, %.preheader73.preheader, %.preheader71
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  br label %42

.lr.ph79:                                         ; preds = %.preheader71, %.lr.ph79
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph79 ], [ 0, %.preheader71 ]
  %28 = phi i32 [ %39, %.lr.ph79 ], [ %24, %.preheader71 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %.sroa.0)
  %29 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv99
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %.sroa.0, ptr noundef nonnull align 16 dereferenceable(16) %29, i64 16, i1 false), !tbaa.struct !12
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %30 = sext i32 %28 to i64
  %31 = icmp slt i64 %indvars.iv.next100, %30
  %32 = and i64 %indvars.iv.next100, 4294967295
  %33 = select i1 %31, i64 %32, i64 0
  %34 = getelementptr inbounds [9 x %struct.Point], ptr @p, i64 0, i64 %33
  %35 = tail call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %29)
  %36 = extractvalue { double, double } %35, 0
  %37 = extractvalue { double, double } %35, 1
  %38 = getelementptr inbounds [9 x %struct.Line], ptr @a, i64 0, i64 %indvars.iv99
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %.sroa.0, i64 16, i1 false), !tbaa.struct !13
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %38, i64 16
  store double %36, ptr %.sroa.4.0..sroa_idx, align 16, !tbaa !11
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %38, i64 24
  store double %37, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %.sroa.0)
  %39 = load i32, ptr @n, align 4, !tbaa !14
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next100, %40
  br i1 %41, label %.lr.ph79, label %.preheader, !llvm.loop !18

42:                                               ; preds = %.preheader, %._crit_edge90
  %.062 = phi double [ %.163, %._crit_edge90 ], [ 1.000000e+10, %.preheader ]
  store i32 4, ptr @tot, align 4, !tbaa !14
  %43 = load i32, ptr @n, align 4, !tbaa !14
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph89, label %.._crit_edge90_crit_edge

.._crit_edge90_crit_edge:                         ; preds = %42
  %.pre108 = sext i32 %43 to i64
  br label %._crit_edge90

._crit_edge90:                                    ; preds = %._crit_edge, %.._crit_edge90_crit_edge
  %.pre-phi109 = phi i64 [ %.pre108, %.._crit_edge90_crit_edge ], [ %63, %._crit_edge ]
  %.061.lcssa = phi double [ 0.000000e+00, %.._crit_edge90_crit_edge ], [ %61, %._crit_edge ]
  %45 = fcmp olt double %.061.lcssa, %.062
  %.163 = select i1 %45, double %.061.lcssa, double %.062
  %46 = getelementptr inbounds i32, ptr @perm, i64 %.pre-phi109
  %47 = call noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef nonnull @perm, ptr noundef nonnull %46)
  br i1 %47, label %42, label %86, !llvm.loop !19

.lr.ph89thread-pre-split:                         ; preds = %._crit_edge
  %.pr = load i32, ptr @tot, align 4, !tbaa !14
  br label %.lr.ph89

.lr.ph89:                                         ; preds = %42, %.lr.ph89thread-pre-split
  %48 = phi i32 [ %.pr, %.lr.ph89thread-pre-split ], [ 4, %42 ]
  %indvars.iv105 = phi i64 [ %indvars.iv.next106, %.lr.ph89thread-pre-split ], [ 0, %42 ]
  %.06186 = phi double [ %61, %.lr.ph89thread-pre-split ], [ 0.000000e+00, %42 ]
  %49 = getelementptr inbounds [9 x i32], ptr @perm, i64 0, i64 %indvars.iv105
  %50 = load i32, ptr %49, align 4, !tbaa !14
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [9 x %struct.Line], ptr @a, i64 0, i64 %51
  %53 = icmp sgt i32 %48, 0
  br i1 %53, label %.lr.ph83, label %.lr.ph89.._crit_edge_crit_edge

.lr.ph89.._crit_edge_crit_edge:                   ; preds = %.lr.ph89
  %.pre = sext i32 %48 to i64
  br label %._crit_edge

.lr.ph83:                                         ; preds = %.lr.ph89
  %54 = getelementptr inbounds i8, ptr %52, i64 16
  br label %65

._crit_edge.loopexit:                             ; preds = %82
  %55 = fsub double %.1, %.158
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph89.._crit_edge_crit_edge, %._crit_edge.loopexit
  %.pre-phi = phi i64 [ %.pre, %.lr.ph89.._crit_edge_crit_edge ], [ %84, %._crit_edge.loopexit ]
  %.lcssa = phi i32 [ %48, %.lr.ph89.._crit_edge_crit_edge ], [ %83, %._crit_edge.loopexit ]
  %56 = phi double [ 2.000000e+10, %.lr.ph89.._crit_edge_crit_edge ], [ %55, %._crit_edge.loopexit ]
  %57 = add nsw i32 %.lcssa, 1
  store i32 %57, ptr @tot, align 4, !tbaa !14
  %58 = getelementptr inbounds [13 x %struct.Line], ptr @b, i64 0, i64 %.pre-phi
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %58, ptr noundef nonnull align 16 dereferenceable(32) %52, i64 32, i1 false), !tbaa.struct !13
  %59 = getelementptr inbounds i8, ptr %52, i64 16
  %60 = call noundef double @_ZNK5Point4normEv(ptr noundef nonnull align 8 dereferenceable(16) %59)
  %61 = call double @llvm.fmuladd.f64(double %56, double %60, double %.06186)
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %62 = load i32, ptr @n, align 4, !tbaa !14
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next106, %63
  br i1 %64, label %.lr.ph89thread-pre-split, label %._crit_edge90, !llvm.loop !20

65:                                               ; preds = %.lr.ph83, %82
  %indvars.iv102 = phi i64 [ 0, %.lr.ph83 ], [ %indvars.iv.next103, %82 ]
  %.05681 = phi double [ 1.000000e+10, %.lr.ph83 ], [ %.1, %82 ]
  %.05780 = phi double [ -1.000000e+10, %.lr.ph83 ], [ %.158, %82 ]
  %66 = getelementptr inbounds [13 x %struct.Line], ptr @b, i64 0, i64 %indvars.iv102
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %0) #8
  %68 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 8 dereferenceable(16) %52)
  %69 = extractvalue { double, double } %68, 0
  store double %69, ptr %0, align 8
  %70 = extractvalue { double, double } %68, 1
  store double %70, ptr %27, align 8
  %71 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 8 dereferenceable(16) %0)
  %72 = call noundef double @_ZNK5Point3detERKS_(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 8 dereferenceable(16) %54)
  %73 = fdiv double %71, %72
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %0) #8
  %74 = call noundef i32 @_Z4dcmpdd(double noundef %73, double noundef 5.000000e-01)
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %76, label %79

76:                                               ; preds = %65
  %77 = fcmp olt double %73, %.05681
  br i1 %77, label %78, label %82

78:                                               ; preds = %76
  br label %82

79:                                               ; preds = %65
  %80 = fcmp olt double %.05780, %73
  br i1 %80, label %81, label %82

81:                                               ; preds = %79
  br label %82

82:                                               ; preds = %79, %81, %76, %78
  %.158 = phi double [ %.05780, %78 ], [ %.05780, %76 ], [ %73, %81 ], [ %.05780, %79 ]
  %.1 = phi double [ %73, %78 ], [ %.05681, %76 ], [ %.05681, %81 ], [ %.05681, %79 ]
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %83 = load i32, ptr @tot, align 4, !tbaa !14
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next103, %84
  br i1 %85, label %65, label %._crit_edge.loopexit, !llvm.loop !21

86:                                               ; preds = %._crit_edge90
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %.163)
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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: mustprogress 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) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z4dcmpdd(double noundef, double noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSt16next_permutationIPiEbT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 0}
!6 = !{!"_ZTS5Point", !7, i64 0, !7, i64 8}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!7, !7, i64 0}
!12 = !{i64 0, i64 8, !11, i64 8, i64 8, !11}
!13 = !{i64 0, i64 8, !11, i64 8, i64 8, !11, i64 16, i64 8, !11, i64 24, i64 8, !11}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


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