; LLVM IR from tangjz/acm-icpc :: hdu (4785)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@sz = external dso_local global [41 x i32], align 16
@ans = external dso_local global double, align 8
@p = external dso_local global [41 x [41 x %struct.Point]], align 16
@pL = external dso_local global %struct.Point, align 8
@pH = external dso_local global %struct.Point, align 8
@qL = external dso_local global %struct.Point, align 8
@qH = external dso_local global %struct.Point, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z5solvev() #0

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

; 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)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) #3

; 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) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mergeRiP5PointiS1_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #5 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %struct.Point, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.Point, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca %struct.Point, align 8
  %14 = alloca %struct.Point, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.Point, align 8
  %18 = alloca %struct.Point, align 8
  %19 = alloca %struct.Point, align 8
  %20 = alloca %struct.Point, align 8
  %21 = alloca %struct.Point, align 8
  %22 = alloca %struct.Point, align 8
  %23 = alloca %struct.Point, align 8
  %24 = alloca %struct.Point, align 8
  %25 = alloca %struct.Point, align 8
  %26 = alloca %struct.Point, align 8
  %27 = alloca %struct.Point, align 8
  %28 = alloca %struct.Point, align 8
  %29 = alloca %struct.Point, align 8
  %30 = alloca %struct.Point, align 8
  %31 = alloca %struct.Point, align 8
  %32 = alloca %struct.Point, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %35 = call noundef i32 @_Z7readIntv()
  store i32 %35, ptr @t, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %36

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

40:                                               ; preds = %36
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %469

41:                                               ; preds = %36
  %42 = call noundef i32 @_Z7readIntv()
  store i32 %42, ptr @n, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %72, %41
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = icmp sle i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  br label %75

48:                                               ; preds = %43
  %49 = call noundef i32 @_Z7readIntv()
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %51
  store i32 %49, ptr %52, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %68, %48
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp slt i32 %54, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %53
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %71

61:                                               ; preds = %53
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %63
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [41 x %struct.Point], ptr %64, i64 0, i64 %66
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) %67)
  br label %68

68:                                               ; preds = %61
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %5, align 4, !tbaa !5
  br label %53, !llvm.loop !9

71:                                               ; preds = %60
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %4, align 4, !tbaa !5
  br label %43, !llvm.loop !11

75:                                               ; preds = %47
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) @pL)
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) @pH)
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #9
  %76 = getelementptr inbounds %struct.Point, ptr %6, i32 0, i32 0
  store double 0.000000e+00, ptr %76, align 8, !tbaa !12
  %77 = getelementptr inbounds %struct.Point, ptr %6, i32 0, i32 1
  store double 0.000000e+00, ptr %77, align 8, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @qH, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @qL, ptr align 8 @qH, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %78 = load i32, ptr @n, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = sub nsw i32 %81, 1
  store i32 %82, ptr %7, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %153, %75
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = icmp sge i32 %84, 0
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %156

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #9
  %88 = load i32, ptr @n, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %89
  %91 = getelementptr inbounds [41 x %struct.Point], ptr %90, i64 0, i64 0
  %92 = load i32, ptr @n, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %93
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [41 x %struct.Point], ptr %94, i64 0, i64 %96
  %98 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %91, ptr noundef nonnull align 8 dereferenceable(16) %97)
  %99 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %100 = extractvalue { double, double } %98, 0
  store double %100, ptr %99, align 8
  %101 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %102 = extractvalue { double, double } %98, 1
  store double %102, ptr %101, align 8
  %103 = load i32, ptr @n, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %104
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [41 x %struct.Point], ptr %105, i64 0, i64 %107
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %108, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %109 = load i32, ptr @n, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %110
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [41 x %struct.Point], ptr %111, i64 0, i64 %113
  %115 = getelementptr inbounds %struct.Point, ptr %114, i32 0, i32 0
  %116 = load double, ptr %115, align 16, !tbaa !12
  %117 = fneg double %116
  store double %117, ptr %9, align 8, !tbaa !17
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @qL, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %119 = load double, ptr %118, align 8, !tbaa !17
  store double %119, ptr @qL, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %120 = load i32, ptr @n, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %121
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [41 x %struct.Point], ptr %122, i64 0, i64 %124
  %126 = getelementptr inbounds %struct.Point, ptr %125, i32 0, i32 1
  %127 = load double, ptr %126, align 8, !tbaa !15
  %128 = fneg double %127
  store double %128, ptr %10, align 8, !tbaa !17
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (%struct.Point, ptr @qL, i32 0, i32 1), ptr noundef nonnull align 8 dereferenceable(8) %10)
  %130 = load double, ptr %129, align 8, !tbaa !17
  store double %130, ptr getelementptr inbounds (%struct.Point, ptr @qL, i32 0, i32 1), align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %131 = load i32, ptr @n, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %132
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [41 x %struct.Point], ptr %133, i64 0, i64 %135
  %137 = getelementptr inbounds %struct.Point, ptr %136, i32 0, i32 0
  %138 = load double, ptr %137, align 16, !tbaa !12
  %139 = fneg double %138
  store double %139, ptr %11, align 8, !tbaa !17
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @qH, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %141 = load double, ptr %140, align 8, !tbaa !17
  store double %141, ptr @qH, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %142 = load i32, ptr @n, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %143
  %145 = load i32, ptr %7, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [41 x %struct.Point], ptr %144, i64 0, i64 %146
  %148 = getelementptr inbounds %struct.Point, ptr %147, i32 0, i32 1
  %149 = load double, ptr %148, align 8, !tbaa !15
  %150 = fneg double %149
  store double %150, ptr %12, align 8, !tbaa !17
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (%struct.Point, ptr @qH, i32 0, i32 1), ptr noundef nonnull align 8 dereferenceable(8) %12)
  %152 = load double, ptr %151, align 8, !tbaa !17
  store double %152, ptr getelementptr inbounds (%struct.Point, ptr @qH, i32 0, i32 1), align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %153

153:                                              ; preds = %87
  %154 = load i32, ptr %7, align 4, !tbaa !5
  %155 = add nsw i32 %154, -1
  store i32 %155, ptr %7, align 4, !tbaa !5
  br label %83, !llvm.loop !18

156:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #9
  %157 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) @pL, ptr noundef nonnull align 8 dereferenceable(16) @qL)
  %158 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %159 = extractvalue { double, double } %157, 0
  store double %159, ptr %158, align 8
  %160 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %161 = extractvalue { double, double } %157, 1
  store double %161, ptr %160, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @qL, ptr align 8 %13, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %162 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) @pH, ptr noundef nonnull align 8 dereferenceable(16) @qH)
  %163 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %164 = extractvalue { double, double } %162, 0
  store double %164, ptr %163, align 8
  %165 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %166 = extractvalue { double, double } %162, 1
  store double %166, ptr %165, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @qH, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %167

167:                                              ; preds = %237, %156
  %168 = load i32, ptr %15, align 4, !tbaa !5
  %169 = load i32, ptr @n, align 4, !tbaa !5
  %170 = icmp slt i32 %168, %169
  br i1 %170, label %172, label %171

171:                                              ; preds = %167
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %240

172:                                              ; preds = %167
  %173 = load i32, ptr %15, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %174
  %176 = load i32, ptr %15, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %177
  %179 = getelementptr inbounds [41 x %struct.Point], ptr %178, i64 0, i64 0
  %180 = load i32, ptr @n, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = load i32, ptr @n, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %185
  %187 = getelementptr inbounds [41 x %struct.Point], ptr %186, i64 0, i64 0
  call void @_Z5mergeRiP5PointiS1_(ptr noundef nonnull align 4 dereferenceable(4) %175, ptr noundef %179, i32 noundef %183, ptr noundef %187)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %188

188:                                              ; preds = %233, %172
  %189 = load i32, ptr %16, align 4, !tbaa !5
  %190 = load i32, ptr %15, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = icmp slt i32 %189, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %188
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %236

196:                                              ; preds = %188
  %197 = load i32, ptr %15, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %198
  %200 = load i32, ptr %16, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [41 x %struct.Point], ptr %199, i64 0, i64 %201
  %203 = getelementptr inbounds %struct.Point, ptr %202, i32 0, i32 0
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @pL, ptr noundef nonnull align 8 dereferenceable(8) %203)
  %205 = load double, ptr %204, align 8, !tbaa !17
  store double %205, ptr @pL, align 8, !tbaa !12
  %206 = load i32, ptr %15, align 4, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %207
  %209 = load i32, ptr %16, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [41 x %struct.Point], ptr %208, i64 0, i64 %210
  %212 = getelementptr inbounds %struct.Point, ptr %211, i32 0, i32 1
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), ptr noundef nonnull align 8 dereferenceable(8) %212)
  %214 = load double, ptr %213, align 8, !tbaa !17
  store double %214, ptr getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), align 8, !tbaa !15
  %215 = load i32, ptr %15, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %216
  %218 = load i32, ptr %16, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [41 x %struct.Point], ptr %217, i64 0, i64 %219
  %221 = getelementptr inbounds %struct.Point, ptr %220, i32 0, i32 0
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @pH, ptr noundef nonnull align 8 dereferenceable(8) %221)
  %223 = load double, ptr %222, align 8, !tbaa !17
  store double %223, ptr @pH, align 8, !tbaa !12
  %224 = load i32, ptr %15, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %225
  %227 = load i32, ptr %16, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [41 x %struct.Point], ptr %226, i64 0, i64 %228
  %230 = getelementptr inbounds %struct.Point, ptr %229, i32 0, i32 1
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), ptr noundef nonnull align 8 dereferenceable(8) %230)
  %232 = load double, ptr %231, align 8, !tbaa !17
  store double %232, ptr getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), align 8, !tbaa !15
  br label %233

233:                                              ; preds = %196
  %234 = load i32, ptr %16, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %16, align 4, !tbaa !5
  br label %188, !llvm.loop !19

236:                                              ; preds = %195
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %15, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %15, align 4, !tbaa !5
  br label %167, !llvm.loop !20

240:                                              ; preds = %171
  %241 = load double, ptr @pL, align 8, !tbaa !12
  %242 = load double, ptr @qL, align 8, !tbaa !12
  %243 = fsub double %241, %242
  %244 = call noundef i32 @_Z3sgnd(double noundef %243)
  %245 = icmp slt i32 %244, 0
  br i1 %245, label %246, label %283

246:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #9
  %247 = getelementptr inbounds %struct.Point, ptr %17, i32 0, i32 0
  %248 = load double, ptr @pL, align 8, !tbaa !12
  store double %248, ptr %247, align 8, !tbaa !12
  %249 = getelementptr inbounds %struct.Point, ptr %17, i32 0, i32 1
  %250 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), align 8, !tbaa !15
  store double %250, ptr %249, align 8, !tbaa !15
  %251 = load i32, ptr @n, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %252
  %254 = getelementptr inbounds [41 x %struct.Point], ptr %253, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %254, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #9
  %255 = getelementptr inbounds %struct.Point, ptr %18, i32 0, i32 0
  %256 = load double, ptr @qL, align 8, !tbaa !12
  store double %256, ptr %255, align 8, !tbaa !12
  %257 = getelementptr inbounds %struct.Point, ptr %18, i32 0, i32 1
  %258 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), align 8, !tbaa !15
  store double %258, ptr %257, align 8, !tbaa !15
  %259 = load i32, ptr @n, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %260
  %262 = getelementptr inbounds [41 x %struct.Point], ptr %261, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %262, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  %263 = getelementptr inbounds %struct.Point, ptr %19, i32 0, i32 0
  %264 = load double, ptr @qL, align 8, !tbaa !12
  store double %264, ptr %263, align 8, !tbaa !12
  %265 = getelementptr inbounds %struct.Point, ptr %19, i32 0, i32 1
  %266 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), align 8, !tbaa !15
  store double %266, ptr %265, align 8, !tbaa !15
  %267 = load i32, ptr @n, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %268
  %270 = getelementptr inbounds [41 x %struct.Point], ptr %269, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %270, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #9
  %271 = getelementptr inbounds %struct.Point, ptr %20, i32 0, i32 0
  %272 = load double, ptr @pL, align 8, !tbaa !12
  store double %272, ptr %271, align 8, !tbaa !12
  %273 = getelementptr inbounds %struct.Point, ptr %20, i32 0, i32 1
  %274 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), align 8, !tbaa !15
  store double %274, ptr %273, align 8, !tbaa !15
  %275 = load i32, ptr @n, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %276
  %278 = getelementptr inbounds [41 x %struct.Point], ptr %277, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %278, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #9
  %279 = load i32, ptr @n, align 4, !tbaa !5
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr @n, align 4, !tbaa !5
  %281 = sext i32 %279 to i64
  %282 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %281
  store i32 4, ptr %282, align 4, !tbaa !5
  br label %283

283:                                              ; preds = %246, %240
  %284 = load double, ptr @qH, align 8, !tbaa !12
  %285 = load double, ptr @pH, align 8, !tbaa !12
  %286 = fsub double %284, %285
  %287 = call noundef i32 @_Z3sgnd(double noundef %286)
  %288 = icmp slt i32 %287, 0
  br i1 %288, label %289, label %326

289:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #9
  %290 = getelementptr inbounds %struct.Point, ptr %21, i32 0, i32 0
  %291 = load double, ptr @qH, align 8, !tbaa !12
  store double %291, ptr %290, align 8, !tbaa !12
  %292 = getelementptr inbounds %struct.Point, ptr %21, i32 0, i32 1
  %293 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), align 8, !tbaa !15
  store double %293, ptr %292, align 8, !tbaa !15
  %294 = load i32, ptr @n, align 4, !tbaa !5
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %295
  %297 = getelementptr inbounds [41 x %struct.Point], ptr %296, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %297, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  %298 = getelementptr inbounds %struct.Point, ptr %22, i32 0, i32 0
  %299 = load double, ptr @pH, align 8, !tbaa !12
  store double %299, ptr %298, align 8, !tbaa !12
  %300 = getelementptr inbounds %struct.Point, ptr %22, i32 0, i32 1
  %301 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), align 8, !tbaa !15
  store double %301, ptr %300, align 8, !tbaa !15
  %302 = load i32, ptr @n, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %303
  %305 = getelementptr inbounds [41 x %struct.Point], ptr %304, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %305, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  %306 = getelementptr inbounds %struct.Point, ptr %23, i32 0, i32 0
  %307 = load double, ptr @pH, align 8, !tbaa !12
  store double %307, ptr %306, align 8, !tbaa !12
  %308 = getelementptr inbounds %struct.Point, ptr %23, i32 0, i32 1
  %309 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), align 8, !tbaa !15
  store double %309, ptr %308, align 8, !tbaa !15
  %310 = load i32, ptr @n, align 4, !tbaa !5
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %311
  %313 = getelementptr inbounds [41 x %struct.Point], ptr %312, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %313, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #9
  %314 = getelementptr inbounds %struct.Point, ptr %24, i32 0, i32 0
  %315 = load double, ptr @qH, align 8, !tbaa !12
  store double %315, ptr %314, align 8, !tbaa !12
  %316 = getelementptr inbounds %struct.Point, ptr %24, i32 0, i32 1
  %317 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), align 8, !tbaa !15
  store double %317, ptr %316, align 8, !tbaa !15
  %318 = load i32, ptr @n, align 4, !tbaa !5
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %319
  %321 = getelementptr inbounds [41 x %struct.Point], ptr %320, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %321, ptr align 8 %24, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  %322 = load i32, ptr @n, align 4, !tbaa !5
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr @n, align 4, !tbaa !5
  %324 = sext i32 %322 to i64
  %325 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %324
  store i32 4, ptr %325, align 4, !tbaa !5
  br label %326

326:                                              ; preds = %289, %283
  %327 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), align 8, !tbaa !15
  %328 = load double, ptr getelementptr inbounds (%struct.Point, ptr @qL, i32 0, i32 1), align 8, !tbaa !15
  %329 = fsub double %327, %328
  %330 = call noundef i32 @_Z3sgnd(double noundef %329)
  %331 = icmp slt i32 %330, 0
  br i1 %331, label %332, label %369

332:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #9
  %333 = getelementptr inbounds %struct.Point, ptr %25, i32 0, i32 0
  %334 = load double, ptr @pL, align 8, !tbaa !12
  store double %334, ptr %333, align 8, !tbaa !12
  %335 = getelementptr inbounds %struct.Point, ptr %25, i32 0, i32 1
  %336 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), align 8, !tbaa !15
  store double %336, ptr %335, align 8, !tbaa !15
  %337 = load i32, ptr @n, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %338
  %340 = getelementptr inbounds [41 x %struct.Point], ptr %339, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %340, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #9
  %341 = getelementptr inbounds %struct.Point, ptr %26, i32 0, i32 0
  %342 = load double, ptr @pH, align 8, !tbaa !12
  store double %342, ptr %341, align 8, !tbaa !12
  %343 = getelementptr inbounds %struct.Point, ptr %26, i32 0, i32 1
  %344 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), align 8, !tbaa !15
  store double %344, ptr %343, align 8, !tbaa !15
  %345 = load i32, ptr @n, align 4, !tbaa !5
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %346
  %348 = getelementptr inbounds [41 x %struct.Point], ptr %347, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %348, ptr align 8 %26, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %349 = getelementptr inbounds %struct.Point, ptr %27, i32 0, i32 0
  %350 = load double, ptr @pH, align 8, !tbaa !12
  store double %350, ptr %349, align 8, !tbaa !12
  %351 = getelementptr inbounds %struct.Point, ptr %27, i32 0, i32 1
  %352 = load double, ptr getelementptr inbounds (%struct.Point, ptr @qL, i32 0, i32 1), align 8, !tbaa !15
  store double %352, ptr %351, align 8, !tbaa !15
  %353 = load i32, ptr @n, align 4, !tbaa !5
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %354
  %356 = getelementptr inbounds [41 x %struct.Point], ptr %355, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %356, ptr align 8 %27, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #9
  %357 = getelementptr inbounds %struct.Point, ptr %28, i32 0, i32 0
  %358 = load double, ptr @pL, align 8, !tbaa !12
  store double %358, ptr %357, align 8, !tbaa !12
  %359 = getelementptr inbounds %struct.Point, ptr %28, i32 0, i32 1
  %360 = load double, ptr getelementptr inbounds (%struct.Point, ptr @qL, i32 0, i32 1), align 8, !tbaa !15
  store double %360, ptr %359, align 8, !tbaa !15
  %361 = load i32, ptr @n, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %362
  %364 = getelementptr inbounds [41 x %struct.Point], ptr %363, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %364, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #9
  %365 = load i32, ptr @n, align 4, !tbaa !5
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr @n, align 4, !tbaa !5
  %367 = sext i32 %365 to i64
  %368 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %367
  store i32 4, ptr %368, align 4, !tbaa !5
  br label %369

369:                                              ; preds = %332, %326
  %370 = load double, ptr getelementptr inbounds (%struct.Point, ptr @qH, i32 0, i32 1), align 8, !tbaa !15
  %371 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), align 8, !tbaa !15
  %372 = fsub double %370, %371
  %373 = call noundef i32 @_Z3sgnd(double noundef %372)
  %374 = icmp slt i32 %373, 0
  br i1 %374, label %375, label %412

375:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #9
  %376 = getelementptr inbounds %struct.Point, ptr %29, i32 0, i32 0
  %377 = load double, ptr @pL, align 8, !tbaa !12
  store double %377, ptr %376, align 8, !tbaa !12
  %378 = getelementptr inbounds %struct.Point, ptr %29, i32 0, i32 1
  %379 = load double, ptr getelementptr inbounds (%struct.Point, ptr @qH, i32 0, i32 1), align 8, !tbaa !15
  store double %379, ptr %378, align 8, !tbaa !15
  %380 = load i32, ptr @n, align 4, !tbaa !5
  %381 = sext i32 %380 to i64
  %382 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %381
  %383 = getelementptr inbounds [41 x %struct.Point], ptr %382, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %383, ptr align 8 %29, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #9
  %384 = getelementptr inbounds %struct.Point, ptr %30, i32 0, i32 0
  %385 = load double, ptr @pH, align 8, !tbaa !12
  store double %385, ptr %384, align 8, !tbaa !12
  %386 = getelementptr inbounds %struct.Point, ptr %30, i32 0, i32 1
  %387 = load double, ptr getelementptr inbounds (%struct.Point, ptr @qH, i32 0, i32 1), align 8, !tbaa !15
  store double %387, ptr %386, align 8, !tbaa !15
  %388 = load i32, ptr @n, align 4, !tbaa !5
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %389
  %391 = getelementptr inbounds [41 x %struct.Point], ptr %390, i64 0, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %391, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #9
  %392 = getelementptr inbounds %struct.Point, ptr %31, i32 0, i32 0
  %393 = load double, ptr @pH, align 8, !tbaa !12
  store double %393, ptr %392, align 8, !tbaa !12
  %394 = getelementptr inbounds %struct.Point, ptr %31, i32 0, i32 1
  %395 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), align 8, !tbaa !15
  store double %395, ptr %394, align 8, !tbaa !15
  %396 = load i32, ptr @n, align 4, !tbaa !5
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %397
  %399 = getelementptr inbounds [41 x %struct.Point], ptr %398, i64 0, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %399, ptr align 8 %31, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #9
  %400 = getelementptr inbounds %struct.Point, ptr %32, i32 0, i32 0
  %401 = load double, ptr @pL, align 8, !tbaa !12
  store double %401, ptr %400, align 8, !tbaa !12
  %402 = getelementptr inbounds %struct.Point, ptr %32, i32 0, i32 1
  %403 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), align 8, !tbaa !15
  store double %403, ptr %402, align 8, !tbaa !15
  %404 = load i32, ptr @n, align 4, !tbaa !5
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %405
  %407 = getelementptr inbounds [41 x %struct.Point], ptr %406, i64 0, i64 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %407, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #9
  %408 = load i32, ptr @n, align 4, !tbaa !5
  %409 = add nsw i32 %408, 1
  store i32 %409, ptr @n, align 4, !tbaa !5
  %410 = sext i32 %408 to i64
  %411 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %410
  store i32 4, ptr %411, align 4, !tbaa !5
  br label %412

412:                                              ; preds = %375, %369
  %413 = load double, ptr @pH, align 8, !tbaa !12
  %414 = load double, ptr @pL, align 8, !tbaa !12
  %415 = fsub double %413, %414
  %416 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pH, i32 0, i32 1), align 8, !tbaa !15
  %417 = load double, ptr getelementptr inbounds (%struct.Point, ptr @pL, i32 0, i32 1), align 8, !tbaa !15
  %418 = fsub double %416, %417
  %419 = call noundef double @_Z5solvev()
  %420 = call double @llvm.fmuladd.f64(double %415, double %418, double %419)
  store double %420, ptr @ans, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %421

421:                                              ; preds = %456, %412
  %422 = load i32, ptr %33, align 4, !tbaa !5
  %423 = load i32, ptr @n, align 4, !tbaa !5
  %424 = icmp slt i32 %422, %423
  br i1 %424, label %426, label %425

425:                                              ; preds = %421
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  br label %459

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

427:                                              ; preds = %452, %426
  %428 = load i32, ptr %34, align 4, !tbaa !5
  %429 = load i32, ptr %33, align 4, !tbaa !5
  %430 = sext i32 %429 to i64
  %431 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %430
  %432 = load i32, ptr %431, align 4, !tbaa !5
  %433 = icmp slt i32 %428, %432
  br i1 %433, label %435, label %434

434:                                              ; preds = %427
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  br label %455

435:                                              ; preds = %427
  %436 = load i32, ptr %33, align 4, !tbaa !5
  %437 = sext i32 %436 to i64
  %438 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %437
  %439 = load i32, ptr %34, align 4, !tbaa !5
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [41 x %struct.Point], ptr %438, i64 0, i64 %440
  %442 = getelementptr inbounds %struct.Point, ptr %441, i32 0, i32 0
  %443 = load double, ptr %442, align 16, !tbaa !12
  %444 = fneg double %443
  %445 = load i32, ptr %33, align 4, !tbaa !5
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %446
  %448 = load i32, ptr %34, align 4, !tbaa !5
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [41 x %struct.Point], ptr %447, i64 0, i64 %449
  %451 = getelementptr inbounds %struct.Point, ptr %450, i32 0, i32 0
  store double %444, ptr %451, align 16, !tbaa !12
  br label %452

452:                                              ; preds = %435
  %453 = load i32, ptr %34, align 4, !tbaa !5
  %454 = add nsw i32 %453, 1
  store i32 %454, ptr %34, align 4, !tbaa !5
  br label %427, !llvm.loop !21

455:                                              ; preds = %434
  br label %456

456:                                              ; preds = %455
  %457 = load i32, ptr %33, align 4, !tbaa !5
  %458 = add nsw i32 %457, 1
  store i32 %458, ptr %33, align 4, !tbaa !5
  br label %421, !llvm.loop !22

459:                                              ; preds = %425
  %460 = call noundef double @_Z5solvev()
  %461 = load double, ptr @ans, align 8, !tbaa !17
  %462 = fsub double %461, %460
  store double %462, ptr @ans, align 8, !tbaa !17
  %463 = load i32, ptr %2, align 4, !tbaa !5
  %464 = load double, ptr @ans, align 8, !tbaa !17
  %465 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %463, double noundef %464)
  br label %466

466:                                              ; preds = %459
  %467 = load i32, ptr %2, align 4, !tbaa !5
  %468 = add nsw i32 %467, 1
  store i32 %468, ptr %2, align 4, !tbaa !5
  br label %36, !llvm.loop !23

469:                                              ; preds = %40
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z7readIntv() #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { "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 #9 = { 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, !14, i64 0}
!13 = !{!"_ZTS5Point", !14, i64 0, !14, i64 8}
!14 = !{!"double", !7, i64 0}
!15 = !{!13, !14, i64 8}
!16 = !{i64 0, i64 8, !17, i64 8, i64 8, !17}
!17 = !{!14, !14, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Point = type { double, double }

@t = external dso_local local_unnamed_addr global i32, align 4
@n = external dso_local local_unnamed_addr global i32, align 4
@sz = external dso_local global [41 x i32], align 16
@ans = external dso_local local_unnamed_addr global double, align 8
@p = external dso_local global [41 x [41 x %struct.Point]], align 16
@pL = external dso_local global %struct.Point, align 8
@pH = external dso_local global %struct.Point, align 8
@qL = external dso_local global %struct.Point, align 8
@qH = external dso_local global %struct.Point, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z5solvev() local_unnamed_addr #0

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

; Function Attrs: mustprogress 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 #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnd(double noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5mergeRiP5PointiS1_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = tail call noundef i32 @_Z7readIntv()
  store i32 %5, ptr @t, align 4, !tbaa !5
  %.not113 = icmp slt i32 %5, 1
  br i1 %.not113, label %._crit_edge117, label %.lr.ph116

._crit_edge117:                                   ; preds = %._crit_edge112, %0
  ret i32 0

.lr.ph116:                                        ; preds = %0, %._crit_edge112
  %.082114 = phi i32 [ %184, %._crit_edge112 ], [ 1, %0 ]
  %6 = call noundef i32 @_Z7readIntv()
  store i32 %6, ptr @n, align 4, !tbaa !5
  %.not8991 = icmp slt i32 %6, 0
  br i1 %.not8991, label %._crit_edge95, label %.lr.ph94

._crit_edge95:                                    ; preds = %._crit_edge, %.lr.ph116
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) @pL)
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) @pH)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) @qH, i8 0, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) @qL, i8 0, i64 16, i1 false)
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %8
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph98.preheader, label %._crit_edge99

.lr.ph98.preheader:                               ; preds = %._crit_edge95
  %12 = zext nneg i32 %10 to i64
  br label %.lr.ph98

.lr.ph94:                                         ; preds = %.lr.ph116, %._crit_edge
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %._crit_edge ], [ 0, %.lr.ph116 ]
  %13 = call noundef i32 @_Z7readIntv()
  %14 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %indvars.iv119
  store i32 %13, ptr %14, align 4, !tbaa !5
  %15 = icmp sgt i32 %13, 0
  br i1 %15, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph94
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %.not89.not = icmp slt i64 %indvars.iv119, %17
  br i1 %.not89.not, label %.lr.ph94, label %._crit_edge95, !llvm.loop !9

.lr.ph:                                           ; preds = %.lr.ph94, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph94 ]
  %18 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %indvars.iv119, i64 %indvars.iv
  call void @_ZN5Point4readEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %19 = load i32, ptr %14, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = icmp slt i64 %indvars.iv.next, %20
  br i1 %21, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge99:                                    ; preds = %.lr.ph98, %._crit_edge95
  %22 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) @pL, ptr noundef nonnull align 8 dereferenceable(16) @qL)
  %23 = extractvalue { double, double } %22, 0
  %24 = extractvalue { double, double } %22, 1
  store double %23, ptr @qL, align 8, !tbaa !12
  store double %24, ptr getelementptr inbounds (i8, ptr @qL, i64 8), align 8, !tbaa !12
  %25 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) @pH, ptr noundef nonnull align 8 dereferenceable(16) @qH)
  %26 = extractvalue { double, double } %25, 0
  %27 = extractvalue { double, double } %25, 1
  store double %26, ptr @qH, align 8, !tbaa !12
  store double %27, ptr getelementptr inbounds (i8, ptr @qH, i64 8), align 8, !tbaa !12
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.lr.ph106, label %._crit_edge107

.lr.ph98:                                         ; preds = %.lr.ph98.preheader, %.lr.ph98
  %indvars.iv122 = phi i64 [ %12, %.lr.ph98.preheader ], [ %indvars.iv.next123, %.lr.ph98 ]
  %indvars.iv.next123 = add nsw i64 %indvars.iv122, -1
  %30 = load i32, ptr @n, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %31
  %33 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %31, i64 %indvars.iv.next123
  %34 = call { double, double } @_ZNK5PointmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %33)
  %35 = extractvalue { double, double } %34, 0
  %36 = extractvalue { double, double } %34, 1
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %38, i64 %indvars.iv.next123
  store double %35, ptr %39, align 16, !tbaa !12
  %.sroa.459.0..sroa_idx = getelementptr inbounds i8, ptr %39, i64 8
  store double %36, ptr %.sroa.459.0..sroa_idx, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  %40 = fneg double %35
  store double %40, ptr %1, align 8, !tbaa !12
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @qL, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %42 = load double, ptr %41, align 8, !tbaa !12
  store double %42, ptr @qL, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %43 = load i32, ptr @n, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %44, i64 %indvars.iv.next123, i32 1
  %46 = load double, ptr %45, align 8, !tbaa !16
  %47 = fneg double %46
  store double %47, ptr %2, align 8, !tbaa !12
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @qL, i64 8), ptr noundef nonnull align 8 dereferenceable(8) %2)
  %49 = load double, ptr %48, align 8, !tbaa !12
  store double %49, ptr getelementptr inbounds (i8, ptr @qL, i64 8), align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  %50 = load i32, ptr @n, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %51, i64 %indvars.iv.next123
  %53 = load double, ptr %52, align 16, !tbaa !14
  %54 = fneg double %53
  store double %54, ptr %3, align 8, !tbaa !12
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @qH, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %56 = load double, ptr %55, align 8, !tbaa !12
  store double %56, ptr @qH, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %57 = load i32, ptr @n, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %58, i64 %indvars.iv.next123, i32 1
  %60 = load double, ptr %59, align 8, !tbaa !16
  %61 = fneg double %60
  store double %61, ptr %4, align 8, !tbaa !12
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @qH, i64 8), ptr noundef nonnull align 8 dereferenceable(8) %4)
  %63 = load double, ptr %62, align 8, !tbaa !12
  store double %63, ptr getelementptr inbounds (i8, ptr @qH, i64 8), align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  %64 = icmp ugt i64 %indvars.iv122, 1
  br i1 %64, label %.lr.ph98, label %._crit_edge99, !llvm.loop !17

._crit_edge107:                                   ; preds = %._crit_edge103, %._crit_edge99
  %65 = load double, ptr @pL, align 8, !tbaa !14
  %66 = load double, ptr @qL, align 8, !tbaa !14
  %67 = fsub double %65, %66
  %68 = call noundef i32 @_Z3sgnd(double noundef %67)
  %69 = icmp slt i32 %68, 0
  br i1 %69, label %95, label %109

.lr.ph106:                                        ; preds = %._crit_edge99, %._crit_edge103
  %indvars.iv128 = phi i64 [ %indvars.iv.next129, %._crit_edge103 ], [ 0, %._crit_edge99 ]
  %70 = phi i32 [ %79, %._crit_edge103 ], [ %28, %._crit_edge99 ]
  %71 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %indvars.iv128
  %72 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %indvars.iv128
  %73 = sext i32 %70 to i64
  %74 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %73
  call void @_Z5mergeRiP5PointiS1_(ptr noundef nonnull align 4 dereferenceable(4) %71, ptr noundef nonnull %72, i32 noundef %75, ptr noundef nonnull %76)
  %77 = load i32, ptr %71, align 4, !tbaa !5
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.lr.ph102, label %._crit_edge103

._crit_edge103:                                   ; preds = %.lr.ph102, %.lr.ph106
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %79 = load i32, ptr @n, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = icmp slt i64 %indvars.iv.next129, %80
  br i1 %81, label %.lr.ph106, label %._crit_edge107, !llvm.loop !18

.lr.ph102:                                        ; preds = %.lr.ph106, %.lr.ph102
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %.lr.ph102 ], [ 0, %.lr.ph106 ]
  %82 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %indvars.iv128, i64 %indvars.iv125
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @pL, ptr noundef nonnull align 8 dereferenceable(8) %82)
  %84 = load double, ptr %83, align 8, !tbaa !12
  store double %84, ptr @pL, align 8, !tbaa !14
  %85 = getelementptr inbounds i8, ptr %82, i64 8
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @pL, i64 8), ptr noundef nonnull align 8 dereferenceable(8) %85)
  %87 = load double, ptr %86, align 8, !tbaa !12
  store double %87, ptr getelementptr inbounds (i8, ptr @pL, i64 8), align 8, !tbaa !16
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @pH, ptr noundef nonnull align 8 dereferenceable(8) %82)
  %89 = load double, ptr %88, align 8, !tbaa !12
  store double %89, ptr @pH, align 8, !tbaa !14
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @pH, i64 8), ptr noundef nonnull align 8 dereferenceable(8) %85)
  %91 = load double, ptr %90, align 8, !tbaa !12
  store double %91, ptr getelementptr inbounds (i8, ptr @pH, i64 8), align 8, !tbaa !16
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %92 = load i32, ptr %71, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %indvars.iv.next126, %93
  br i1 %94, label %.lr.ph102, label %._crit_edge103, !llvm.loop !19

95:                                               ; preds = %._crit_edge107
  %96 = load i32, ptr @n, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %97
  %99 = load <2 x double>, ptr @pL, align 8, !tbaa !12
  store <2 x double> %99, ptr %98, align 16, !tbaa !12
  %100 = load double, ptr @qL, align 8, !tbaa !14
  %101 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %97, i64 1
  store double %100, ptr %101, align 16, !tbaa !12
  %.sroa.436.0..sroa_idx = getelementptr inbounds i8, ptr %101, i64 8
  %102 = extractelement <2 x double> %99, i64 1
  store double %102, ptr %.sroa.436.0..sroa_idx, align 8, !tbaa !12
  %103 = load double, ptr getelementptr inbounds (i8, ptr @pH, i64 8), align 8, !tbaa !16
  %104 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %97, i64 2
  store double %100, ptr %104, align 16, !tbaa !12
  %.sroa.434.0..sroa_idx = getelementptr inbounds i8, ptr %104, i64 8
  store double %103, ptr %.sroa.434.0..sroa_idx, align 8, !tbaa !12
  %105 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %97, i64 3
  %106 = extractelement <2 x double> %99, i64 0
  store double %106, ptr %105, align 16, !tbaa !12
  %.sroa.432.0..sroa_idx = getelementptr inbounds i8, ptr %105, i64 8
  store double %103, ptr %.sroa.432.0..sroa_idx, align 8, !tbaa !12
  %107 = add nsw i32 %96, 1
  store i32 %107, ptr @n, align 4, !tbaa !5
  %108 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %97
  store i32 4, ptr %108, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %95, %._crit_edge107
  %110 = load double, ptr @qH, align 8, !tbaa !14
  %111 = load double, ptr @pH, align 8, !tbaa !14
  %112 = fsub double %110, %111
  %113 = call noundef i32 @_Z3sgnd(double noundef %112)
  %114 = icmp slt i32 %113, 0
  %.pre = load double, ptr getelementptr inbounds (i8, ptr @pL, i64 8), align 8, !tbaa !16
  br i1 %114, label %115, label %128

115:                                              ; preds = %109
  %116 = load double, ptr @qH, align 8, !tbaa !14
  %117 = load i32, ptr @n, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %118
  store double %116, ptr %119, align 16, !tbaa !12
  %.sroa.430.0..sroa_idx = getelementptr inbounds i8, ptr %119, i64 8
  store double %.pre, ptr %.sroa.430.0..sroa_idx, align 8, !tbaa !12
  %120 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %118, i64 1
  %.sroa.428.0..sroa_idx = getelementptr inbounds i8, ptr %120, i64 8
  store double %.pre, ptr %.sroa.428.0..sroa_idx, align 8, !tbaa !12
  %121 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %118, i64 2
  %122 = load <2 x double>, ptr @pH, align 8, !tbaa !12
  %123 = extractelement <2 x double> %122, i64 0
  store double %123, ptr %120, align 16, !tbaa !12
  store <2 x double> %122, ptr %121, align 16, !tbaa !12
  %124 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %118, i64 3
  store double %116, ptr %124, align 16, !tbaa !12
  %.sroa.424.0..sroa_idx = getelementptr inbounds i8, ptr %124, i64 8
  %125 = extractelement <2 x double> %122, i64 1
  store double %125, ptr %.sroa.424.0..sroa_idx, align 8, !tbaa !12
  %126 = add nsw i32 %117, 1
  store i32 %126, ptr @n, align 4, !tbaa !5
  %127 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %118
  store i32 4, ptr %127, align 4, !tbaa !5
  br label %128

128:                                              ; preds = %115, %109
  %129 = load double, ptr getelementptr inbounds (i8, ptr @qL, i64 8), align 8, !tbaa !16
  %130 = fsub double %.pre, %129
  %131 = call noundef i32 @_Z3sgnd(double noundef %130)
  %132 = icmp slt i32 %131, 0
  br i1 %132, label %133, label %147

133:                                              ; preds = %128
  %134 = load i32, ptr @n, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %135
  %137 = load <2 x double>, ptr @pL, align 8, !tbaa !12
  store <2 x double> %137, ptr %136, align 16, !tbaa !12
  %138 = load double, ptr @pH, align 8, !tbaa !14
  %139 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %135, i64 1
  store double %138, ptr %139, align 16, !tbaa !12
  %.sroa.420.0..sroa_idx = getelementptr inbounds i8, ptr %139, i64 8
  %140 = extractelement <2 x double> %137, i64 1
  store double %140, ptr %.sroa.420.0..sroa_idx, align 8, !tbaa !12
  %141 = load double, ptr getelementptr inbounds (i8, ptr @qL, i64 8), align 8, !tbaa !16
  %142 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %135, i64 2
  store double %138, ptr %142, align 16, !tbaa !12
  %.sroa.418.0..sroa_idx = getelementptr inbounds i8, ptr %142, i64 8
  store double %141, ptr %.sroa.418.0..sroa_idx, align 8, !tbaa !12
  %143 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %135, i64 3
  %144 = extractelement <2 x double> %137, i64 0
  store double %144, ptr %143, align 16, !tbaa !12
  %.sroa.416.0..sroa_idx = getelementptr inbounds i8, ptr %143, i64 8
  store double %141, ptr %.sroa.416.0..sroa_idx, align 8, !tbaa !12
  %145 = add nsw i32 %134, 1
  store i32 %145, ptr @n, align 4, !tbaa !5
  %146 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %135
  store i32 4, ptr %146, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %133, %128
  %148 = load double, ptr getelementptr inbounds (i8, ptr @qH, i64 8), align 8, !tbaa !16
  %149 = load double, ptr getelementptr inbounds (i8, ptr @pH, i64 8), align 8, !tbaa !16
  %150 = fsub double %148, %149
  %151 = call noundef i32 @_Z3sgnd(double noundef %150)
  %152 = icmp slt i32 %151, 0
  %.pre140 = load double, ptr @pL, align 8, !tbaa !14
  %153 = load <2 x double>, ptr @pH, align 8, !tbaa !12
  br i1 %152, label %154, label %166

154:                                              ; preds = %147
  %155 = load double, ptr getelementptr inbounds (i8, ptr @qH, i64 8), align 8, !tbaa !16
  %156 = load i32, ptr @n, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %157
  store double %.pre140, ptr %158, align 16, !tbaa !12
  %.sroa.414.0..sroa_idx = getelementptr inbounds i8, ptr %158, i64 8
  store double %155, ptr %.sroa.414.0..sroa_idx, align 8, !tbaa !12
  %159 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %157, i64 1
  %160 = extractelement <2 x double> %153, i64 0
  store double %160, ptr %159, align 16, !tbaa !12
  %.sroa.412.0..sroa_idx = getelementptr inbounds i8, ptr %159, i64 8
  store double %155, ptr %.sroa.412.0..sroa_idx, align 8, !tbaa !12
  %161 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %157, i64 2
  store <2 x double> %153, ptr %161, align 16, !tbaa !12
  %162 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %157, i64 3
  store double %.pre140, ptr %162, align 16, !tbaa !12
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %162, i64 8
  %163 = extractelement <2 x double> %153, i64 1
  store double %163, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !12
  %164 = add nsw i32 %156, 1
  store i32 %164, ptr @n, align 4, !tbaa !5
  %165 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %157
  store i32 4, ptr %165, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %154, %147
  %167 = extractelement <2 x double> %153, i64 0
  %168 = fsub double %167, %.pre140
  %169 = load double, ptr getelementptr inbounds (i8, ptr @pL, i64 8), align 8, !tbaa !16
  %170 = extractelement <2 x double> %153, i64 1
  %171 = fsub double %170, %169
  %172 = call noundef double @_Z5solvev()
  %173 = call double @llvm.fmuladd.f64(double %168, double %171, double %172)
  store double %173, ptr @ans, align 8, !tbaa !12
  %174 = load i32, ptr @n, align 4, !tbaa !5
  %175 = icmp sgt i32 %174, 0
  br i1 %175, label %.preheader.preheader, label %._crit_edge112

.preheader.preheader:                             ; preds = %166
  %wide.trip.count137 = zext nneg i32 %174 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge110
  %indvars.iv134 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next135, %._crit_edge110 ]
  %176 = getelementptr inbounds [41 x i32], ptr @sz, i64 0, i64 %indvars.iv134
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = icmp sgt i32 %177, 0
  br i1 %178, label %.lr.ph109.preheader, label %._crit_edge110

.lr.ph109.preheader:                              ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %177 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %179 = icmp ult i32 %177, 4
  br i1 %179, label %._crit_edge110.loopexit.unr-lcssa, label %.lr.ph109.preheader.new

.lr.ph109.preheader.new:                          ; preds = %.lr.ph109.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph109

._crit_edge112:                                   ; preds = %._crit_edge110, %166
  %180 = call noundef double @_Z5solvev()
  %181 = load double, ptr @ans, align 8, !tbaa !12
  %182 = fsub double %181, %180
  store double %182, ptr @ans, align 8, !tbaa !12
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.082114, double noundef %182)
  %184 = add nuw nsw i32 %.082114, 1
  %185 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.082114, %185
  br i1 %.not.not, label %.lr.ph116, label %._crit_edge117, !llvm.loop !20

._crit_edge110.loopexit.unr-lcssa:                ; preds = %.lr.ph109, %.lr.ph109.preheader
  %indvars.iv131.unr = phi i64 [ 0, %.lr.ph109.preheader ], [ %indvars.iv.next132.3, %.lr.ph109 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge110, label %.lr.ph109.epil

.lr.ph109.epil:                                   ; preds = %._crit_edge110.loopexit.unr-lcssa, %.lr.ph109.epil
  %indvars.iv131.epil = phi i64 [ %indvars.iv.next132.epil, %.lr.ph109.epil ], [ %indvars.iv131.unr, %._crit_edge110.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph109.epil ], [ 0, %._crit_edge110.loopexit.unr-lcssa ]
  %186 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %indvars.iv134, i64 %indvars.iv131.epil
  %187 = load double, ptr %186, align 16, !tbaa !14
  %188 = fneg double %187
  store double %188, ptr %186, align 16, !tbaa !14
  %indvars.iv.next132.epil = add nuw nsw i64 %indvars.iv131.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge110, label %.lr.ph109.epil, !llvm.loop !21

._crit_edge110:                                   ; preds = %._crit_edge110.loopexit.unr-lcssa, %.lr.ph109.epil, %.preheader
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %exitcond138.not = icmp eq i64 %indvars.iv.next135, %wide.trip.count137
  br i1 %exitcond138.not, label %._crit_edge112, label %.preheader, !llvm.loop !23

.lr.ph109:                                        ; preds = %.lr.ph109, %.lr.ph109.preheader.new
  %indvars.iv131 = phi i64 [ 0, %.lr.ph109.preheader.new ], [ %indvars.iv.next132.3, %.lr.ph109 ]
  %niter = phi i64 [ 0, %.lr.ph109.preheader.new ], [ %niter.next.3, %.lr.ph109 ]
  %189 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %indvars.iv134, i64 %indvars.iv131
  %190 = load double, ptr %189, align 16, !tbaa !14
  %191 = fneg double %190
  store double %191, ptr %189, align 16, !tbaa !14
  %indvars.iv.next132 = or disjoint i64 %indvars.iv131, 1
  %192 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %indvars.iv134, i64 %indvars.iv.next132
  %193 = load double, ptr %192, align 16, !tbaa !14
  %194 = fneg double %193
  store double %194, ptr %192, align 16, !tbaa !14
  %indvars.iv.next132.1 = or disjoint i64 %indvars.iv131, 2
  %195 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %indvars.iv134, i64 %indvars.iv.next132.1
  %196 = load double, ptr %195, align 16, !tbaa !14
  %197 = fneg double %196
  store double %197, ptr %195, align 16, !tbaa !14
  %indvars.iv.next132.2 = or disjoint i64 %indvars.iv131, 3
  %198 = getelementptr inbounds [41 x [41 x %struct.Point]], ptr @p, i64 0, i64 %indvars.iv134, i64 %indvars.iv.next132.2
  %199 = load double, ptr %198, align 16, !tbaa !14
  %200 = fneg double %199
  store double %200, ptr %198, align 16, !tbaa !14
  %indvars.iv.next132.3 = add nuw nsw i64 %indvars.iv131, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge110.loopexit.unr-lcssa, label %.lr.ph109, !llvm.loop !24
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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 = { 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 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 = !{!"double", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTS5Point", !13, i64 0, !13, i64 8}
!16 = !{!15, !13, i64 8}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}


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