; LLVM IR from tangjz/acm-icpc :: codeforces/gym (103957K)

; 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.Point2D = type { x86_fp80, x86_fp80 }
%struct.Point3D = type { x86_fp80, x86_fp80, x86_fp80 }

@ori = external dso_local global %struct.Point2D, align 16
@p = external dso_local global [51 x %struct.Point2D], align 16
@a = external dso_local global [51 x %struct.Point3D], align 16
@f = external dso_local global [103 x %struct.Point3D], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@ord = external dso_local global [51 x i32], align 16
@vis = external dso_local global [51 x [51 x [51 x i8]]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRK7Point2DS1_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgne(x86_fp80 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: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK7Point2D3detERKS_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %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.Point3D, align 16
  %9 = alloca %struct.Point3D, align 16
  %10 = alloca %struct.Point3D, align 16
  %11 = alloca %struct.Point3D, align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.Point3D, align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.Point3D, align 16
  %20 = alloca %struct.Point3D, align 16
  %21 = alloca %struct.Point3D, align 16
  %22 = alloca i32, align 4
  %23 = alloca %struct.Point2D, align 16
  %24 = alloca x86_fp80, align 16
  %25 = alloca i32, align 4
  %26 = alloca %struct.Point3D, align 16
  %27 = alloca x86_fp80, align 16
  %28 = alloca i32, align 4
  %29 = alloca %struct.Point3D, align 16
  %30 = alloca %struct.Point3D, align 16
  %31 = alloca i32, align 4
  %32 = alloca %struct.Point3D, align 16
  %33 = alloca x86_fp80, align 16
  store i32 0, ptr %1, align 4
  %34 = call i64 @time(ptr noundef null) #10
  %35 = trunc i64 %34 to i32
  call void @srand(i32 noundef %35) #10
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #10
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %340, %0
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = load i32, ptr @t, align 4, !tbaa !5
  %40 = icmp sle i32 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #10
  br label %343

42:                                               ; preds = %37
  %43 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #10
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %53, %42
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = load i32, ptr @n, align 4, !tbaa !5
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  br label %56

49:                                               ; preds = %44
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %51
  call void @_ZN7Point3D4readEv(ptr noundef nonnull align 16 dereferenceable(48) %52)
  br label %53

53:                                               ; preds = %49
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %4, align 4, !tbaa !5
  br label %44, !llvm.loop !9

56:                                               ; preds = %48
  store i32 0, ptr @m, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @vis, i8 0, i64 132651, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %294, %56
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = load i32, ptr @n, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  br label %297

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %6, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %290, %62
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = load i32, ptr @n, align 4, !tbaa !5
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  br label %293

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %7, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %286, %70
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = load i32, ptr @n, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %289

78:                                               ; preds = %73
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [51 x [51 x [51 x i8]]], ptr @vis, i64 0, i64 %80
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [51 x [51 x i8]], ptr %81, i64 0, i64 %83
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [51 x i8], ptr %84, i64 0, i64 %86
  %88 = load i8, ptr %87, align 1, !tbaa !11, !range !13, !noundef !14
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %91

90:                                               ; preds = %78
  br label %286

91:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #10
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %93
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %96
  call void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %10, ptr noundef nonnull align 16 dereferenceable(48) %94, ptr noundef nonnull align 16 dereferenceable(48) %97)
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #10
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %99
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %102
  call void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %11, ptr noundef nonnull align 16 dereferenceable(48) %100, ptr noundef nonnull align 16 dereferenceable(48) %103)
  call void @_ZNK7Point3D3detERKS_(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %9, ptr noundef nonnull align 16 dereferenceable(48) %10, ptr noundef nonnull align 16 dereferenceable(48) %11)
  call void @_ZNK7Point3D4normEv(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %8, ptr noundef nonnull align 16 dereferenceable(48) %9)
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  store i32 0, ptr %12, align 4, !tbaa !5
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %142, %91
  %105 = load i32, ptr %13, align 4, !tbaa !5
  %106 = load i32, ptr @n, align 4, !tbaa !5
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 17, ptr %3, align 4
  br label %145

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #10
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %111
  %113 = load i32, ptr %5, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %114
  call void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %15, ptr noundef nonnull align 16 dereferenceable(48) %112, ptr noundef nonnull align 16 dereferenceable(48) %115)
  %116 = call noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48) %8, ptr noundef nonnull align 16 dereferenceable(48) %15)
  %117 = call noundef i32 @_Z3sgne(x86_fp80 noundef %116)
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #10
  store i32 %117, ptr %14, align 4, !tbaa !5
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %126, label %120

120:                                              ; preds = %109
  %121 = load i32, ptr %13, align 4, !tbaa !5
  %122 = load i32, ptr @tot, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr @tot, align 4, !tbaa !5
  %124 = sext i32 %122 to i64
  %125 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %124
  store i32 %121, ptr %125, align 4, !tbaa !5
  br label %138

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

129:                                              ; preds = %126
  %130 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %130, ptr %12, align 4, !tbaa !5
  br label %137

131:                                              ; preds = %126
  %132 = load i32, ptr %12, align 4, !tbaa !5
  %133 = load i32, ptr %14, align 4, !tbaa !5
  %134 = icmp ne i32 %132, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %131
  store i32 0, ptr %12, align 4, !tbaa !5
  store i32 17, ptr %3, align 4
  br label %139

136:                                              ; preds = %131
  br label %137

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

138:                                              ; preds = %137, %120
  store i32 0, ptr %3, align 4
  br label %139

139:                                              ; preds = %138, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  %140 = load i32, ptr %3, align 4
  switch i32 %140, label %145 [
    i32 0, label %141
  ]

141:                                              ; preds = %139
  br label %142

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

145:                                              ; preds = %139, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %12, align 4, !tbaa !5
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %150, label %149

149:                                              ; preds = %146
  store i32 16, ptr %3, align 4
  br label %283

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %199, %150
  %152 = load i32, ptr %16, align 4, !tbaa !5
  %153 = load i32, ptr @tot, align 4, !tbaa !5
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %202

156:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  %157 = load i32, ptr %16, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %17, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %195, %156
  %160 = load i32, ptr %17, align 4, !tbaa !5
  %161 = load i32, ptr @tot, align 4, !tbaa !5
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %159
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  br label %198

164:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  %165 = load i32, ptr %17, align 4, !tbaa !5
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %18, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %191, %164
  %168 = load i32, ptr %18, align 4, !tbaa !5
  %169 = load i32, ptr @tot, align 4, !tbaa !5
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %172, label %171

171:                                              ; preds = %167
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %194

172:                                              ; preds = %167
  %173 = load i32, ptr %16, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [51 x [51 x [51 x i8]]], ptr @vis, i64 0, i64 %177
  %179 = load i32, ptr %17, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [51 x [51 x i8]], ptr %178, i64 0, i64 %183
  %185 = load i32, ptr %18, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [51 x i8], ptr %184, i64 0, i64 %189
  store i8 1, ptr %190, align 1, !tbaa !11
  br label %191

191:                                              ; preds = %172
  %192 = load i32, ptr %18, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %18, align 4, !tbaa !5
  br label %167, !llvm.loop !16

194:                                              ; preds = %171
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %17, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %17, align 4, !tbaa !5
  br label %159, !llvm.loop !17

198:                                              ; preds = %163
  br label %199

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

202:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #10
  %203 = load i32, ptr %6, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %204
  %206 = load i32, ptr %5, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %207
  call void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %20, ptr noundef nonnull align 16 dereferenceable(48) %205, ptr noundef nonnull align 16 dereferenceable(48) %208)
  call void @_ZNK7Point3D4normEv(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %19, ptr noundef nonnull align 16 dereferenceable(48) %20)
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr %21) #10
  call void @_ZNK7Point3D3detERKS_(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %21, ptr noundef nonnull align 16 dereferenceable(48) %8, ptr noundef nonnull align 16 dereferenceable(48) %19)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %209

209:                                              ; preds = %243, %202
  %210 = load i32, ptr %22, align 4, !tbaa !5
  %211 = load i32, ptr @tot, align 4, !tbaa !5
  %212 = icmp slt i32 %210, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %209
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %246

214:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #10
  %215 = getelementptr inbounds %struct.Point2D, ptr %23, i32 0, i32 0
  %216 = load i32, ptr %22, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %220
  %222 = call noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48) %19, ptr noundef nonnull align 16 dereferenceable(48) %221)
  store x86_fp80 %222, ptr %215, align 16, !tbaa !19
  %223 = getelementptr inbounds %struct.Point2D, ptr %23, i32 0, i32 1
  %224 = load i32, ptr %22, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %228
  %230 = call noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48) %21, ptr noundef nonnull align 16 dereferenceable(48) %229)
  store x86_fp80 %230, ptr %223, align 16, !tbaa !22
  %231 = load i32, ptr %22, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %232
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %233, ptr align 16 %23, i64 32, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #10
  %234 = load i32, ptr %22, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %235
  %237 = call noundef zeroext i1 @_ZNK7Point2DltERKS_(ptr noundef nonnull align 16 dereferenceable(32) %236, ptr noundef nonnull align 16 dereferenceable(32) @p)
  br i1 %237, label %238, label %242

238:                                              ; preds = %214
  %239 = load i32, ptr %22, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %240
  call void @_ZSt4swapI7Point2DENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 16 dereferenceable(32) %241, ptr noundef nonnull align 16 dereferenceable(32) @p) #10
  br label %242

242:                                              ; preds = %238, %214
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %22, align 4, !tbaa !5
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %22, align 4, !tbaa !5
  br label %209, !llvm.loop !25

246:                                              ; preds = %213
  %247 = load i32, ptr @tot, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %248
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %249, ptr align 16 @p, i64 32, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @ori, ptr align 16 %249, i64 32, i1 false), !tbaa.struct !23
  %250 = load i32, ptr @tot, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds %struct.Point2D, ptr @p, i64 %251
  call void @_ZSt4sortIP7Point2DPFbRKS0_S3_EEvT_S6_T0_(ptr noundef getelementptr inbounds (%struct.Point2D, ptr @p, i64 1), ptr noundef %252, ptr noundef @_Z3cmpRK7Point2DS1_)
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #10
  store x86_fp80 0xK00000000000000000000, ptr %24, align 16, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #10
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %253

253:                                              ; preds = %269, %246
  %254 = load i32, ptr %25, align 4, !tbaa !5
  %255 = load i32, ptr @tot, align 4, !tbaa !5
  %256 = icmp slt i32 %254, %255
  br i1 %256, label %258, label %257

257:                                              ; preds = %253
  store i32 32, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #10
  br label %272

258:                                              ; preds = %253
  %259 = load i32, ptr %25, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %260
  %262 = load i32, ptr %25, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %264
  %266 = call noundef x86_fp80 @_ZNK7Point2D3detERKS_(ptr noundef nonnull align 16 dereferenceable(32) %261, ptr noundef nonnull align 16 dereferenceable(32) %265)
  %267 = load x86_fp80, ptr %24, align 16, !tbaa !24
  %268 = fadd x86_fp80 %267, %266
  store x86_fp80 %268, ptr %24, align 16, !tbaa !24
  br label %269

269:                                              ; preds = %258
  %270 = load i32, ptr %25, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %25, align 4, !tbaa !5
  br label %253, !llvm.loop !26

272:                                              ; preds = %257
  %273 = load i32, ptr %12, align 4, !tbaa !5
  %274 = sitofp i32 %273 to double
  %275 = fmul double -5.000000e-01, %274
  %276 = fpext double %275 to x86_fp80
  %277 = load x86_fp80, ptr %24, align 16, !tbaa !24
  %278 = fmul x86_fp80 %277, %276
  store x86_fp80 %278, ptr %24, align 16, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 48, ptr %26) #10
  call void @_ZNK7Point3DmlERKe(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %26, ptr noundef nonnull align 16 dereferenceable(48) %8, ptr noundef nonnull align 16 dereferenceable(16) %24)
  %279 = load i32, ptr @m, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr @m, align 4, !tbaa !5
  %281 = sext i32 %279 to i64
  %282 = getelementptr inbounds [103 x %struct.Point3D], ptr @f, i64 0, i64 %281
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %282, ptr align 16 %26, i64 48, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #10
  store i32 0, ptr %3, align 4
  br label %283

283:                                              ; preds = %272, %149
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #10
  %284 = load i32, ptr %3, align 4
  switch i32 %284, label %344 [
    i32 0, label %285
    i32 16, label %286
  ]

285:                                              ; preds = %283
  br label %286

286:                                              ; preds = %285, %283, %90
  %287 = load i32, ptr %7, align 4, !tbaa !5
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %7, align 4, !tbaa !5
  br label %73, !llvm.loop !28

289:                                              ; preds = %77
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %6, align 4, !tbaa !5
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %6, align 4, !tbaa !5
  br label %65, !llvm.loop !29

293:                                              ; preds = %69
  br label %294

294:                                              ; preds = %293
  %295 = load i32, ptr %5, align 4, !tbaa !5
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %5, align 4, !tbaa !5
  br label %57, !llvm.loop !30

297:                                              ; preds = %61
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #10
  store x86_fp80 0xK00000000000000000000, ptr %27, align 16, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %298

298:                                              ; preds = %332, %297
  %299 = load i32, ptr %28, align 4, !tbaa !5
  %300 = icmp slt i32 %299, 2501
  br i1 %300, label %302, label %301

301:                                              ; preds = %298
  store i32 35, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %335

302:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 48, ptr %29) #10
  %303 = getelementptr inbounds %struct.Point3D, ptr %29, i32 0, i32 0
  %304 = call noundef x86_fp80 @_Z12rand_uniformv()
  store x86_fp80 %304, ptr %303, align 16, !tbaa !31
  %305 = getelementptr inbounds %struct.Point3D, ptr %29, i32 0, i32 1
  %306 = call noundef x86_fp80 @_Z12rand_uniformv()
  store x86_fp80 %306, ptr %305, align 16, !tbaa !33
  %307 = getelementptr inbounds %struct.Point3D, ptr %29, i32 0, i32 2
  %308 = call noundef x86_fp80 @_Z12rand_uniformv()
  store x86_fp80 %308, ptr %307, align 16, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 48, ptr %30) #10
  call void @llvm.memset.p0.i64(ptr align 16 %30, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #10
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %309

309:                                              ; preds = %325, %302
  %310 = load i32, ptr %31, align 4, !tbaa !5
  %311 = load i32, ptr @m, align 4, !tbaa !5
  %312 = icmp slt i32 %310, %311
  br i1 %312, label %314, label %313

313:                                              ; preds = %309
  store i32 38, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #10
  br label %328

314:                                              ; preds = %309
  %315 = load i32, ptr %31, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [103 x %struct.Point3D], ptr @f, i64 0, i64 %316
  %318 = call noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48) %29, ptr noundef nonnull align 16 dereferenceable(48) %317)
  %319 = fcmp ogt x86_fp80 %318, 0xK00000000000000000000
  br i1 %319, label %320, label %324

320:                                              ; preds = %314
  call void @llvm.lifetime.start.p0(i64 48, ptr %32) #10
  %321 = load i32, ptr %31, align 4, !tbaa !5
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds [103 x %struct.Point3D], ptr @f, i64 0, i64 %322
  call void @_ZNK7Point3DplERKS_(ptr dead_on_unwind writable sret(%struct.Point3D) align 16 %32, ptr noundef nonnull align 16 dereferenceable(48) %30, ptr noundef nonnull align 16 dereferenceable(48) %323)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %32, i64 48, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 48, ptr %32) #10
  br label %324

324:                                              ; preds = %320, %314
  br label %325

325:                                              ; preds = %324
  %326 = load i32, ptr %31, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %31, align 4, !tbaa !5
  br label %309, !llvm.loop !35

328:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #10
  %329 = call noundef x86_fp80 @_ZNK7Point3D3absEv(ptr noundef nonnull align 16 dereferenceable(48) %30)
  store x86_fp80 %329, ptr %33, align 16, !tbaa !24
  %330 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %27, ptr noundef nonnull align 16 dereferenceable(16) %33)
  %331 = load x86_fp80, ptr %330, align 16, !tbaa !24
  store x86_fp80 %331, ptr %27, align 16, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #10
  br label %332

332:                                              ; preds = %328
  %333 = load i32, ptr %28, align 4, !tbaa !5
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %28, align 4, !tbaa !5
  br label %298, !llvm.loop !36

335:                                              ; preds = %301
  %336 = load i32, ptr %2, align 4, !tbaa !5
  %337 = load x86_fp80, ptr %27, align 16, !tbaa !24
  %338 = fptrunc x86_fp80 %337 to double
  %339 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %336, double noundef %338)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #10
  br label %340

340:                                              ; preds = %335
  %341 = load i32, ptr %2, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %2, align 4, !tbaa !5
  br label %37, !llvm.loop !37

343:                                              ; preds = %41
  ret i32 0

344:                                              ; preds = %283
  unreachable
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) #5

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Point3D4readEv(ptr noundef nonnull align 16 dereferenceable(48)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Point3D3detERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Point3D4normEv(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(48)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7Point2DltERKS_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapI7Point2DENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Point3DmlERKe(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_Z12rand_uniformv() #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Point3DplERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(48)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK7Point3D3absEv(ptr noundef nonnull align 16 dereferenceable(48)) #3 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 #10 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTS7Point2D", !21, i64 0, !21, i64 16}
!21 = !{!"long double", !7, i64 0}
!22 = !{!20, !21, i64 16}
!23 = !{i64 0, i64 16, !24, i64 16, i64 16, !24}
!24 = !{!21, !21, i64 0}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = !{i64 0, i64 16, !24, i64 16, i64 16, !24, i64 32, i64 16, !24}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10}
!31 = !{!32, !21, i64 0}
!32 = !{!"_ZTS7Point3D", !21, i64 0, !21, i64 16, !21, i64 32}
!33 = !{!32, !21, i64 16}
!34 = !{!32, !21, i64 32}
!35 = distinct !{!35, !10}
!36 = distinct !{!36, !10}
!37 = distinct !{!37, !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.Point2D = type { x86_fp80, x86_fp80 }
%struct.Point3D = type { x86_fp80, x86_fp80, x86_fp80 }

@ori = external dso_local local_unnamed_addr global %struct.Point2D, align 16
@p = external dso_local global [51 x %struct.Point2D], align 16
@a = external dso_local global [51 x %struct.Point3D], align 16
@f = external dso_local global [103 x %struct.Point3D], align 16
@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@ord = external dso_local local_unnamed_addr global [51 x i32], align 16
@vis = external dso_local local_unnamed_addr global [51 x [51 x [51 x i8]]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRK7Point2DS1_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgne(x86_fp80 noundef) 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 nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK7Point2D3detERKS_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca %struct.Point3D, align 16
  %2 = alloca %struct.Point3D, align 16
  %3 = alloca %struct.Point3D, align 16
  %4 = alloca %struct.Point3D, align 16
  %5 = alloca %struct.Point3D, align 16
  %6 = alloca %struct.Point3D, align 16
  %7 = alloca %struct.Point3D, align 16
  %8 = alloca %struct.Point3D, align 16
  %9 = alloca x86_fp80, align 16
  %10 = alloca %struct.Point3D, align 16
  %11 = alloca x86_fp80, align 16
  %12 = alloca %struct.Point3D, align 16
  %13 = alloca %struct.Point3D, align 16
  %14 = alloca %struct.Point3D, align 16
  %15 = alloca x86_fp80, align 16
  %16 = tail call i64 @time(ptr noundef null) #10
  %17 = trunc i64 %16 to i32
  tail call void @srand(i32 noundef %17) #10
  %18 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %19 = load i32, ptr @t, align 4, !tbaa !5
  %.not134 = icmp slt i32 %19, 1
  br i1 %.not134, label %._crit_edge138, label %.lr.ph137

.lr.ph137:                                        ; preds = %0
  %20 = getelementptr inbounds i8, ptr %12, i64 16
  %21 = getelementptr inbounds i8, ptr %12, i64 32
  br label %22

._crit_edge138:                                   ; preds = %134, %0
  ret i32 0

22:                                               ; preds = %.lr.ph137, %134
  %.067135 = phi i32 [ 1, %.lr.ph137 ], [ %137, %134 ]
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %24 = load i32, ptr @n, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %22
  store i32 0, ptr @m, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(132651) @vis, i8 0, i64 132651, i1 false)
  br label %._crit_edge128

._crit_edge:                                      ; preds = %.lr.ph
  store i32 0, ptr @m, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(132651) @vis, i8 0, i64 132651, i1 false)
  %26 = icmp sgt i32 %28, 0
  br i1 %26, label %.lr.ph127, label %._crit_edge128

.lr.ph:                                           ; preds = %22, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %22 ]
  %27 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %indvars.iv
  call void @_ZN7Point3D4readEv(ptr noundef nonnull align 16 dereferenceable(48) %27)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = icmp slt i64 %indvars.iv.next, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.loopexit91.loopexit:                             ; preds = %.loopexit90
  %.pre187 = sext i32 %37 to i64
  br label %.loopexit91

.loopexit91:                                      ; preds = %.loopexit91.loopexit, %.lr.ph127
  %.pre-phi = phi i64 [ %.pre187, %.loopexit91.loopexit ], [ %34, %.lr.ph127 ]
  %31 = phi i32 [ %37, %.loopexit91.loopexit ], [ %33, %.lr.ph127 ]
  %32 = icmp slt i64 %indvars.iv.next181, %.pre-phi
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  br i1 %32, label %.lr.ph127, label %._crit_edge128, !llvm.loop !11

._crit_edge128:                                   ; preds = %.loopexit91, %._crit_edge.thread, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #10
  store x86_fp80 0xK00000000000000000000, ptr %11, align 16, !tbaa !12
  br label %139

.lr.ph127:                                        ; preds = %._crit_edge, %.loopexit91
  %33 = phi i32 [ %31, %.loopexit91 ], [ %28, %._crit_edge ]
  %indvars.iv180 = phi i64 [ %indvars.iv.next181, %.loopexit91 ], [ 0, %._crit_edge ]
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %.loopexit91 ], [ 1, %._crit_edge ]
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %.loopexit91 ], [ 2, %._crit_edge ]
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %34 = sext i32 %33 to i64
  %35 = icmp slt i64 %indvars.iv.next181, %34
  br i1 %35, label %.lr.ph124, label %.loopexit91

.lr.ph124:                                        ; preds = %.lr.ph127
  %36 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %indvars.iv180
  br label %40

.loopexit90:                                      ; preds = %128, %40
  %37 = phi i32 [ %41, %40 ], [ %129, %128 ]
  %38 = phi i32 [ %42, %40 ], [ %130, %128 ]
  %39 = icmp sgt i32 %38, %43
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  br i1 %39, label %40, label %.loopexit91.loopexit, !llvm.loop !14

40:                                               ; preds = %.lr.ph124, %.loopexit90
  %41 = phi i32 [ %33, %.lr.ph124 ], [ %37, %.loopexit90 ]
  %42 = phi i32 [ %33, %.lr.ph124 ], [ %38, %.loopexit90 ]
  %indvars.iv177 = phi i64 [ %indvars.iv175, %.lr.ph124 ], [ %indvars.iv.next178, %.loopexit90 ]
  %indvars.iv170 = phi i64 [ %indvars.iv168, %.lr.ph124 ], [ %indvars.iv.next171, %.loopexit90 ]
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %43 = trunc nuw i64 %indvars.iv.next178 to i32
  %44 = icmp sgt i32 %42, %43
  br i1 %44, label %.lr.ph121, label %.loopexit90

.lr.ph121:                                        ; preds = %40
  %45 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %indvars.iv177
  br label %46

46:                                               ; preds = %.lr.ph121, %128
  %47 = phi i32 [ %41, %.lr.ph121 ], [ %129, %128 ]
  %48 = phi i32 [ %42, %.lr.ph121 ], [ %130, %128 ]
  %49 = phi i32 [ %42, %.lr.ph121 ], [ %131, %128 ]
  %indvars.iv172 = phi i64 [ %indvars.iv170, %.lr.ph121 ], [ %indvars.iv.next173, %128 ]
  %50 = getelementptr inbounds [51 x [51 x [51 x i8]]], ptr @vis, i64 0, i64 %indvars.iv180, i64 %indvars.iv177, i64 %indvars.iv172
  %51 = load i8, ptr %50, align 1, !tbaa !15, !range !17, !noundef !18
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %128, label %53

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #10
  call void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %3, ptr noundef nonnull align 16 dereferenceable(48) %45, ptr noundef nonnull align 16 dereferenceable(48) %36)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #10
  %54 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %indvars.iv172
  call void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %4, ptr noundef nonnull align 16 dereferenceable(48) %54, ptr noundef nonnull align 16 dereferenceable(48) %36)
  call void @_ZNK7Point3D3detERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %2, ptr noundef nonnull align 16 dereferenceable(48) %3, ptr noundef nonnull align 16 dereferenceable(48) %4)
  call void @_ZNK7Point3D4normEv(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %1, ptr noundef nonnull align 16 dereferenceable(48) %2)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #10
  store i32 0, ptr @tot, align 4, !tbaa !5
  %55 = load i32, ptr @n, align 4, !tbaa !5
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph96, label %._crit_edge97.thread

.lr.ph96:                                         ; preds = %53, %.thread
  %indvars.iv142 = phi i64 [ %indvars.iv.next143, %.thread ], [ 0, %53 ]
  %.07593 = phi i32 [ %.288, %.thread ], [ 0, %53 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #10
  %57 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %indvars.iv142
  call void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %5, ptr noundef nonnull align 16 dereferenceable(48) %57, ptr noundef nonnull align 16 dereferenceable(48) %36)
  %58 = call noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48) %1, ptr noundef nonnull align 16 dereferenceable(48) %5)
  %59 = call noundef i32 @_Z3sgne(x86_fp80 noundef %58)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #10
  %.not81 = icmp eq i32 %59, 0
  br i1 %.not81, label %60, label %66

60:                                               ; preds = %.lr.ph96
  %61 = load i32, ptr @tot, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr @tot, align 4, !tbaa !5
  %63 = sext i32 %61 to i64
  %64 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %63
  %65 = trunc nuw nsw i64 %indvars.iv142 to i32
  store i32 %65, ptr %64, align 4, !tbaa !5
  br label %.thread

66:                                               ; preds = %.lr.ph96
  %.not82 = icmp eq i32 %.07593, 0
  br i1 %.not82, label %.thread, label %67

67:                                               ; preds = %66
  %.not83 = icmp eq i32 %.07593, %59
  br i1 %.not83, label %.thread, label %._crit_edge97.thread

.thread:                                          ; preds = %60, %66, %67
  %.288 = phi i32 [ %.07593, %67 ], [ %59, %66 ], [ %.07593, %60 ]
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %68 = load i32, ptr @n, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = icmp slt i64 %indvars.iv.next143, %69
  br i1 %70, label %.lr.ph96, label %._crit_edge97, !llvm.loop !19

._crit_edge97:                                    ; preds = %.thread
  %.not84 = icmp eq i32 %.288, 0
  br i1 %.not84, label %._crit_edge97.thread, label %.preheader

.preheader:                                       ; preds = %._crit_edge97
  %71 = load i32, ptr @tot, align 4, !tbaa !5
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %.lr.ph107.preheader, label %._crit_edge108

.lr.ph107.preheader:                              ; preds = %.preheader
  %73 = zext nneg i32 %71 to i64
  %wide.trip.count160 = zext nneg i32 %71 to i64
  br label %.lr.ph107

.loopexit89:                                      ; preds = %.loopexit, %.lr.ph107
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %exitcond161.not = icmp eq i64 %indvars.iv.next158, %wide.trip.count160
  br i1 %exitcond161.not, label %._crit_edge108, label %.lr.ph107, !llvm.loop !20

._crit_edge108:                                   ; preds = %.loopexit89, %.preheader
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #10
  call void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %7, ptr noundef nonnull align 16 dereferenceable(48) %45, ptr noundef nonnull align 16 dereferenceable(48) %36)
  call void @_ZNK7Point3D4normEv(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %6, ptr noundef nonnull align 16 dereferenceable(48) %7)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #10
  call void @_ZNK7Point3D3detERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %8, ptr noundef nonnull align 16 dereferenceable(48) %1, ptr noundef nonnull align 16 dereferenceable(48) %6)
  %74 = load i32, ptr @tot, align 4, !tbaa !5
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %.lr.ph111, label %._crit_edge108.._crit_edge112_crit_edge

._crit_edge108.._crit_edge112_crit_edge:          ; preds = %._crit_edge108
  %.pre188 = sext i32 %74 to i64
  br label %._crit_edge112

.lr.ph107:                                        ; preds = %.lr.ph107.preheader, %.loopexit89
  %indvars.iv157 = phi i64 [ 0, %.lr.ph107.preheader ], [ %indvars.iv.next158, %.loopexit89 ]
  %indvars.iv152 = phi i64 [ 1, %.lr.ph107.preheader ], [ %indvars.iv.next153, %.loopexit89 ]
  %indvars.iv145 = phi i64 [ 2, %.lr.ph107.preheader ], [ %indvars.iv.next146, %.loopexit89 ]
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %76 = icmp ult i64 %indvars.iv.next158, %73
  br i1 %76, label %.lr.ph105, label %.loopexit89

.lr.ph105:                                        ; preds = %.lr.ph107
  %77 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %indvars.iv157
  br label %78

.loopexit:                                        ; preds = %86, %78
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next155, %wide.trip.count160
  br i1 %exitcond.not, label %.loopexit89, label %78, !llvm.loop !21

78:                                               ; preds = %.lr.ph105, %.loopexit
  %indvars.iv154 = phi i64 [ %indvars.iv152, %.lr.ph105 ], [ %indvars.iv.next155, %.loopexit ]
  %indvars.iv147 = phi i64 [ %indvars.iv145, %.lr.ph105 ], [ %indvars.iv.next148, %.loopexit ]
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %79 = trunc nuw i64 %indvars.iv.next155 to i32
  %80 = icmp sgt i32 %71, %79
  br i1 %80, label %.lr.ph102, label %.loopexit

.lr.ph102:                                        ; preds = %78
  %81 = load i32, ptr %77, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %indvars.iv154
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  br label %86

86:                                               ; preds = %.lr.ph102, %86
  %indvars.iv149 = phi i64 [ %indvars.iv147, %.lr.ph102 ], [ %indvars.iv.next150, %86 ]
  %87 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %indvars.iv149
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [51 x [51 x [51 x i8]]], ptr @vis, i64 0, i64 %82, i64 %85, i64 %89
  store i8 1, ptr %90, align 1, !tbaa !15
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %91 = trunc nuw i64 %indvars.iv.next150 to i32
  %92 = icmp sgt i32 %71, %91
  br i1 %92, label %86, label %.loopexit, !llvm.loop !22

._crit_edge112:                                   ; preds = %108, %._crit_edge108.._crit_edge112_crit_edge
  %.pre-phi189 = phi i64 [ %.pre188, %._crit_edge108.._crit_edge112_crit_edge ], [ %110, %108 ]
  %93 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %.pre-phi189
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %93, ptr noundef nonnull align 16 dereferenceable(32) @p, i64 32, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) @ori, ptr noundef nonnull align 16 dereferenceable(32) @p, i64 32, i1 false)
  call void @_ZSt4sortIP7Point2DPFbRKS0_S3_EEvT_S6_T0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 32), ptr noundef nonnull %93, ptr noundef nonnull @_Z3cmpRK7Point2DS1_)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #10
  store x86_fp80 0xK00000000000000000000, ptr %9, align 16, !tbaa !12
  %94 = load i32, ptr @tot, align 4, !tbaa !5
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %.lr.ph116, label %._crit_edge117

.lr.ph111:                                        ; preds = %._crit_edge108, %108
  %indvars.iv162 = phi i64 [ %indvars.iv.next163, %108 ], [ 0, %._crit_edge108 ]
  %96 = getelementptr inbounds [51 x i32], ptr @ord, i64 0, i64 %indvars.iv162
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %98
  %100 = call noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48) %6, ptr noundef nonnull align 16 dereferenceable(48) %99)
  %101 = load i32, ptr %96, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [51 x %struct.Point3D], ptr @a, i64 0, i64 %102
  %104 = call noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48) %8, ptr noundef nonnull align 16 dereferenceable(48) %103)
  %105 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %indvars.iv162
  store x86_fp80 %100, ptr %105, align 16
  %.sroa.410.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 16
  store x86_fp80 %104, ptr %.sroa.410.0..sroa_idx, align 16
  %106 = call noundef zeroext i1 @_ZNK7Point2DltERKS_(ptr noundef nonnull align 16 dereferenceable(32) %105, ptr noundef nonnull align 16 dereferenceable(32) @p)
  br i1 %106, label %107, label %108

107:                                              ; preds = %.lr.ph111
  call void @_ZSt4swapI7Point2DENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 16 dereferenceable(32) %105, ptr noundef nonnull align 16 dereferenceable(32) @p) #10
  br label %108

108:                                              ; preds = %.lr.ph111, %107
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %109 = load i32, ptr @tot, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = icmp slt i64 %indvars.iv.next163, %110
  br i1 %111, label %.lr.ph111, label %._crit_edge112, !llvm.loop !24

._crit_edge117:                                   ; preds = %.lr.ph116, %._crit_edge112
  %storemerge.lcssa = phi x86_fp80 [ 0xK00000000000000000000, %._crit_edge112 ], [ %124, %.lr.ph116 ]
  %112 = sitofp i32 %.288 to double
  %113 = fmul double %112, -5.000000e-01
  %114 = fpext double %113 to x86_fp80
  %115 = fmul x86_fp80 %storemerge.lcssa, %114
  store x86_fp80 %115, ptr %9, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #10
  call void @_ZNK7Point3DmlERKe(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %10, ptr noundef nonnull align 16 dereferenceable(48) %1, ptr noundef nonnull align 16 dereferenceable(16) %9)
  %116 = load i32, ptr @m, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr @m, align 4, !tbaa !5
  %118 = sext i32 %116 to i64
  %119 = getelementptr inbounds [103 x %struct.Point3D], ptr @f, i64 0, i64 %118
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %119, ptr noundef nonnull align 16 dereferenceable(48) %10, i64 48, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #10
  br label %._crit_edge97.thread

.lr.ph116:                                        ; preds = %._crit_edge112, %.lr.ph116
  %indvars.iv165 = phi i64 [ %indvars.iv.next166, %.lr.ph116 ], [ 0, %._crit_edge112 ]
  %120 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %indvars.iv165
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %121 = getelementptr inbounds [51 x %struct.Point2D], ptr @p, i64 0, i64 %indvars.iv.next166
  %122 = call noundef x86_fp80 @_ZNK7Point2D3detERKS_(ptr noundef nonnull align 16 dereferenceable(32) %120, ptr noundef nonnull align 16 dereferenceable(32) %121)
  %123 = load x86_fp80, ptr %9, align 16, !tbaa !12
  %124 = fadd x86_fp80 %122, %123
  store x86_fp80 %124, ptr %9, align 16, !tbaa !12
  %125 = load i32, ptr @tot, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next166, %126
  br i1 %127, label %.lr.ph116, label %._crit_edge117, !llvm.loop !26

._crit_edge97.thread:                             ; preds = %67, %53, %._crit_edge97, %._crit_edge117
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #10
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %._crit_edge97.thread, %46
  %129 = phi i32 [ %.pre, %._crit_edge97.thread ], [ %47, %46 ]
  %130 = phi i32 [ %.pre, %._crit_edge97.thread ], [ %48, %46 ]
  %131 = phi i32 [ %.pre, %._crit_edge97.thread ], [ %49, %46 ]
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %132 = trunc nuw i64 %indvars.iv.next173 to i32
  %133 = icmp sgt i32 %131, %132
  br i1 %133, label %46, label %.loopexit90, !llvm.loop !27

134:                                              ; preds = %._crit_edge132
  %135 = fptrunc x86_fp80 %147 to double
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.067135, double noundef %135)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  %137 = add nuw nsw i32 %.067135, 1
  %138 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.067135, %138
  br i1 %.not.not, label %22, label %._crit_edge138, !llvm.loop !28

139:                                              ; preds = %._crit_edge128, %._crit_edge132
  %.065133 = phi i32 [ 0, %._crit_edge128 ], [ %148, %._crit_edge132 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #10
  %140 = call noundef x86_fp80 @_Z12rand_uniformv()
  store x86_fp80 %140, ptr %12, align 16, !tbaa !29
  %141 = call noundef x86_fp80 @_Z12rand_uniformv()
  store x86_fp80 %141, ptr %20, align 16, !tbaa !31
  %142 = call noundef x86_fp80 @_Z12rand_uniformv()
  store x86_fp80 %142, ptr %21, align 16, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %13, i8 0, i64 48, i1 false)
  %143 = load i32, ptr @m, align 4, !tbaa !5
  %144 = icmp sgt i32 %143, 0
  br i1 %144, label %.lr.ph131, label %._crit_edge132

._crit_edge132:                                   ; preds = %153, %139
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #10
  %145 = call noundef x86_fp80 @_ZNK7Point3D3absEv(ptr noundef nonnull align 16 dereferenceable(48) %13)
  store x86_fp80 %145, ptr %15, align 16, !tbaa !12
  %146 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %15)
  %147 = load x86_fp80, ptr %146, align 16, !tbaa !12
  store x86_fp80 %147, ptr %11, align 16, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #10
  %148 = add nuw nsw i32 %.065133, 1
  %exitcond186.not = icmp eq i32 %148, 2501
  br i1 %exitcond186.not, label %134, label %139, !llvm.loop !33

.lr.ph131:                                        ; preds = %139, %153
  %indvars.iv183 = phi i64 [ %indvars.iv.next184, %153 ], [ 0, %139 ]
  %149 = getelementptr inbounds [103 x %struct.Point3D], ptr @f, i64 0, i64 %indvars.iv183
  %150 = call noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48) %12, ptr noundef nonnull align 16 dereferenceable(48) %149)
  %151 = fcmp ogt x86_fp80 %150, 0xK00000000000000000000
  br i1 %151, label %152, label %153

152:                                              ; preds = %.lr.ph131
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #10
  call void @_ZNK7Point3DplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.Point3D) align 16 %14, ptr noundef nonnull align 16 dereferenceable(48) %13, ptr noundef nonnull align 16 dereferenceable(48) %149)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %13, ptr noundef nonnull align 16 dereferenceable(48) %14, i64 48, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #10
  br label %153

153:                                              ; preds = %.lr.ph131, %152
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %154 = load i32, ptr @m, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = icmp slt i64 %indvars.iv.next184, %155
  br i1 %156, label %.lr.ph131, label %._crit_edge132, !llvm.loop !34
}

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Point3D4readEv(ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Point3DmiERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Point3D3detERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Point3D4normEv(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK7Point3D3dotERKS_(ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #3 align 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) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK7Point2DltERKS_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapI7Point2DENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS4_ESt18is_move_assignableIS4_EEE5valueEvE4typeERS4_SD_(ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Point3DmlERKe(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_Z12rand_uniformv() local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK7Point3DplERKS_(ptr dead_on_unwind noalias writable sret(%struct.Point3D) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZNK7Point3D3absEv(ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 #10 = { 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 = !{!13, !13, i64 0}
!13 = !{!"long double", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = !{i64 0, i64 16, !12, i64 16, i64 16, !12}
!24 = distinct !{!24, !10}
!25 = !{i64 0, i64 16, !12, i64 16, i64 16, !12, i64 32, i64 16, !12}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = !{!30, !13, i64 0}
!30 = !{!"_ZTS7Point3D", !13, i64 0, !13, i64 16, !13, i64 32}
!31 = !{!30, !13, i64 16}
!32 = !{!30, !13, i64 32}
!33 = distinct !{!33, !10}
!34 = distinct !{!34, !10}


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