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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Point = type { i32, i32 }

@_ZL2pi = external hidden global double, align 8
@n = external dso_local global i32, align 4
@ans1 = external dso_local global i64, align 8
@ans2 = external dso_local global i64, align 8
@ans3 = external dso_local global [1010 x i64], align 16
@pp = external dso_local global %struct.Point, align 4
@p = external dso_local global [1010 x %struct.Point], align 16
@s = external dso_local global [2020 x %struct.Point], align 16
@theta = external dso_local global double, align 8
@xx = external dso_local global double, align 8
@yy = external dso_local global double, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRK5PointS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0

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

21:                                               ; preds = %36, %0
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp sle i32 %22, %23
  br i1 %24, label %26, label %25

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

26:                                               ; preds = %21
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [1010 x %struct.Point], ptr @p, i64 0, i64 %28
  %30 = getelementptr inbounds %struct.Point, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [1010 x %struct.Point], ptr @p, i64 0, i64 %32
  %34 = getelementptr inbounds %struct.Point, ptr %33, i32 0, i32 1
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %30, ptr noundef %34)
  br label %36

36:                                               ; preds = %26
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %2, align 4, !tbaa !5
  br label %21, !llvm.loop !9

39:                                               ; preds = %25
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %struct.Point, ptr @p, i64 %41
  %43 = getelementptr inbounds %struct.Point, ptr %42, i64 1
  call void @_ZSt4sortIP5PointEvT_S2_(ptr noundef getelementptr inbounds (%struct.Point, ptr @p, i64 1), ptr noundef %43)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %44

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

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

49:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [1010 x %struct.Point], ptr @p, i64 0, i64 %51
  %53 = call noundef i64 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(8) @pp, ptr noundef nonnull align 4 dereferenceable(8) %52)
  store i64 %53, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  store i64 0, ptr %5, align 8, !tbaa !11
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %55 = load i64, ptr %54, align 8, !tbaa !11
  %56 = load i64, ptr @ans1, align 8, !tbaa !11
  %57 = add nsw i64 %56, %55
  store i64 %57, ptr @ans1, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = sub nsw i32 %58, 1
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %60
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [1010 x %struct.Point], ptr @p, i64 0, i64 %63
  %65 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %61, ptr noundef nonnull align 4 dereferenceable(8) %64)
  store i64 %65, ptr %6, align 4
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %67
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %68, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  br label %69

69:                                               ; preds = %49
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %3, align 4, !tbaa !5
  br label %44, !llvm.loop !14

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

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

77:                                               ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %97

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %79 = load i32, ptr @n, align 4, !tbaa !5
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = add nsw i32 %79, %80
  %82 = sub nsw i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %83
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [1010 x %struct.Point], ptr @p, i64 0, i64 %86
  %88 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %84, ptr noundef nonnull align 4 dereferenceable(8) %87)
  store i64 %88, ptr %8, align 4
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = add nsw i32 %89, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %92
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %93, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  br label %94

94:                                               ; preds = %78
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %7, align 4, !tbaa !5
  br label %73, !llvm.loop !15

97:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %128, %97
  %99 = load i32, ptr %9, align 4, !tbaa !5
  %100 = load i32, ptr @n, align 4, !tbaa !5
  %101 = icmp sle i32 %99, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %98
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %131

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %124, %103
  %105 = load i32, ptr %11, align 4, !tbaa !5
  %106 = load i32, ptr @n, align 4, !tbaa !5
  %107 = icmp sle i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %127

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = load i32, ptr %11, align 4, !tbaa !5
  %112 = add nsw i32 %110, %111
  %113 = sub nsw i32 %112, 1
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %114
  %116 = load i32, ptr %11, align 4, !tbaa !5
  %117 = sub nsw i32 %116, 1
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %118
  %120 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %115, ptr noundef nonnull align 4 dereferenceable(8) %119)
  store i64 %120, ptr %13, align 4
  %121 = call noundef i64 @_ZNK5Point5mode2Ev(ptr noundef nonnull align 4 dereferenceable(8) %13)
  store i64 %121, ptr %12, align 8, !tbaa !11
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans2, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %123 = load i64, ptr %122, align 8, !tbaa !11
  store i64 %123, ptr @ans2, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %124

124:                                              ; preds = %109
  %125 = load i32, ptr %11, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %11, align 4, !tbaa !5
  br label %104, !llvm.loop !16

127:                                              ; preds = %108
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %9, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %9, align 4, !tbaa !5
  br label %98, !llvm.loop !17

131:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %132

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

135:                                              ; preds = %132
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %179

136:                                              ; preds = %132
  %137 = load i32, ptr %14, align 4, !tbaa !5
  %138 = sitofp i32 %137 to double
  %139 = fmul double 2.000000e+00, %138
  %140 = fdiv double %139, 4.000000e+03
  %141 = load double, ptr @_ZL2pi, align 8, !tbaa !18
  %142 = fmul double %140, %141
  store double %142, ptr @theta, align 8, !tbaa !18
  %143 = load double, ptr @theta, align 8, !tbaa !18
  %144 = call double @cos(double noundef %143) #9
  %145 = fmul double 4.000000e+03, %144
  store double %145, ptr @xx, align 8, !tbaa !18
  %146 = load double, ptr @theta, align 8, !tbaa !18
  %147 = call double @sin(double noundef %146) #9
  %148 = fmul double 4.000000e+03, %147
  store double %148, ptr @yy, align 8, !tbaa !18
  %149 = load i32, ptr @n, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds %struct.Point, ptr @p, i64 %150
  %152 = getelementptr inbounds %struct.Point, ptr %151, i64 1
  call void @_ZSt4sortIP5PointPFbRKS0_S3_EEvT_S6_T0_(ptr noundef getelementptr inbounds (%struct.Point, ptr @p, i64 1), ptr noundef %152, ptr noundef @_Z3cmpRK5PointS1_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  call void @llvm.memset.p0.i64(ptr align 4 %15, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 1, ptr %16, align 4, !tbaa !5
  br label %153

153:                                              ; preds = %172, %136
  %154 = load i32, ptr %16, align 4, !tbaa !5
  %155 = load i32, ptr @n, align 4, !tbaa !5
  %156 = icmp sle i32 %154, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %153
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %175

158:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %159 = load i32, ptr %16, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [1010 x %struct.Point], ptr @p, i64 0, i64 %160
  %162 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(8) %161)
  store i64 %162, ptr %17, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  %163 = load i32, ptr %16, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [1010 x i64], ptr @ans3, i64 0, i64 %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %166 = call noundef i64 @_ZNK5Point5mode2Ev(ptr noundef nonnull align 4 dereferenceable(8) %15)
  store i64 %166, ptr %18, align 8, !tbaa !11
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %168 = load i64, ptr %167, align 8, !tbaa !11
  %169 = load i32, ptr %16, align 4, !tbaa !5
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [1010 x i64], ptr @ans3, i64 0, i64 %170
  store i64 %168, ptr %171, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %172

172:                                              ; preds = %158
  %173 = load i32, ptr %16, align 4, !tbaa !5
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %16, align 4, !tbaa !5
  br label %153, !llvm.loop !20

175:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %14, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %14, align 4, !tbaa !5
  br label %132, !llvm.loop !21

179:                                              ; preds = %135
  %180 = load i64, ptr @ans1, align 8, !tbaa !11
  %181 = load i64, ptr @ans2, align 8, !tbaa !11
  %182 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %180, i64 noundef %181)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %183

183:                                              ; preds = %201, %179
  %184 = load i32, ptr %19, align 4, !tbaa !5
  %185 = load i32, ptr @n, align 4, !tbaa !5
  %186 = icmp sle i32 %184, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  store i32 23, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %204

188:                                              ; preds = %183
  %189 = load i32, ptr %19, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [1010 x i64], ptr @ans3, i64 0, i64 %190
  %192 = load i64, ptr %191, align 8, !tbaa !11
  %193 = load i32, ptr %19, align 4, !tbaa !5
  %194 = load i32, ptr @n, align 4, !tbaa !5
  %195 = icmp eq i32 %193, %194
  %196 = zext i1 %195 to i64
  %197 = getelementptr inbounds [3 x i8], ptr @.str.4, i64 0, i64 %196
  %198 = load i8, ptr %197, align 1, !tbaa !22
  %199 = sext i8 %198 to i32
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %192, i32 noundef %199)
  br label %201

201:                                              ; preds = %188
  %202 = load i32, ptr %19, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %19, align 4, !tbaa !5
  br label %183, !llvm.loop !23

204:                                              ; preds = %187
  ret i32 0
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare double @cos(double noundef) #7

; Function Attrs: nounwind
declare double @sin(double noundef) #7

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

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

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

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

@_ZL2pi = external hidden local_unnamed_addr global double, align 8
@n = external dso_local global i32, align 4
@ans1 = external dso_local local_unnamed_addr global i64, align 8
@ans2 = external dso_local global i64, align 8
@ans3 = external dso_local global [1010 x i64], align 16
@pp = external dso_local global %struct.Point, align 4
@p = external dso_local global [1010 x %struct.Point], align 16
@s = external dso_local global [2020 x %struct.Point], align 16
@theta = external dso_local local_unnamed_addr global double, align 8
@xx = external dso_local local_unnamed_addr global double, align 8
@yy = external dso_local local_unnamed_addr global double, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRK5PointS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %struct.Point, align 8
  %5 = alloca %struct.Point, align 8
  %6 = alloca i64, align 8
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @pp, ptr noundef nonnull getelementptr inbounds (i8, ptr @pp, i64 4))
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %.not55 = icmp slt i32 %8, 1
  br i1 %.not55, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre = sext i32 %8 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %16, %.lr.ph ]
  %9 = getelementptr inbounds %struct.Point, ptr @p, i64 %.pre-phi
  %10 = getelementptr inbounds i8, ptr %9, i64 8
  tail call void @_ZSt4sortIP5PointEvT_S2_(ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 8), ptr noundef nonnull %10)
  %11 = load i32, ptr @n, align 4, !tbaa !5
  %.not4657 = icmp slt i32 %11, 1
  br i1 %.not4657, label %.preheader.preheader, label %.lr.ph60

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

.preheader54:                                     ; preds = %.lr.ph60
  %.not4761 = icmp slt i32 %27, 1
  br i1 %.not4761, label %.preheader.preheader, label %.lr.ph63

.lr.ph60:                                         ; preds = %._crit_edge, %.lr.ph60
  %indvars.iv84 = phi i64 [ %indvars.iv.next85, %.lr.ph60 ], [ 1, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  %17 = getelementptr inbounds [1010 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv84
  %18 = call noundef i64 @_ZNK5Point3dotERKS_(ptr noundef nonnull align 4 dereferenceable(8) @pp, ptr noundef nonnull align 4 dereferenceable(8) %17)
  store i64 %18, ptr %1, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  store i64 0, ptr %2, align 8, !tbaa !11
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %20 = load i64, ptr %19, align 8, !tbaa !11
  %21 = load i64, ptr @ans1, align 8, !tbaa !11
  %22 = add nsw i64 %21, %20
  store i64 %22, ptr @ans1, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  %23 = add nsw i64 %indvars.iv84, -1
  %24 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %23
  %25 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %17)
  %26 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %indvars.iv84
  store i64 %25, ptr %26, align 8
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %27 = load i32, ptr @n, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %.not46.not = icmp slt i64 %indvars.iv84, %28
  br i1 %.not46.not, label %.lr.ph60, label %.preheader54, !llvm.loop !13

.preheader53:                                     ; preds = %.lr.ph63
  %.not4868 = icmp slt i32 %37, 1
  br i1 %.not4868, label %.preheader.preheader, label %.preheader52

.preheader.preheader:                             ; preds = %._crit_edge67, %._crit_edge, %.preheader54, %.preheader53
  br label %.preheader

.lr.ph63:                                         ; preds = %.preheader54, %.lr.ph63
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %.lr.ph63 ], [ 1, %.preheader54 ]
  %29 = phi i32 [ %37, %.lr.ph63 ], [ %27, %.preheader54 ]
  %30 = trunc i64 %indvars.iv87 to i32
  %31 = add i32 %30, -1
  %32 = add i32 %31, %29
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %33
  %35 = getelementptr inbounds [1010 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv87
  %36 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %34, ptr noundef nonnull align 4 dereferenceable(8) %35)
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = trunc nuw nsw i64 %indvars.iv87 to i32
  %39 = add nsw i32 %37, %38
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %40
  store i64 %36, ptr %41, align 8
  %indvars.iv.next88 = add nuw nsw i64 %indvars.iv87, 1
  %42 = sext i32 %37 to i64
  %.not47.not = icmp slt i64 %indvars.iv87, %42
  br i1 %.not47.not, label %.lr.ph63, label %.preheader53, !llvm.loop !14

.preheader52:                                     ; preds = %.preheader53, %._crit_edge67
  %43 = phi i32 [ %45, %._crit_edge67 ], [ %37, %.preheader53 ]
  %indvars.iv93 = phi i64 [ %indvars.iv.next94, %._crit_edge67 ], [ 1, %.preheader53 ]
  %.not5164 = icmp slt i32 %43, 1
  br i1 %.not5164, label %.preheader52.._crit_edge67_crit_edge, label %.lr.ph66

.preheader52.._crit_edge67_crit_edge:             ; preds = %.preheader52
  %.pre102 = sext i32 %43 to i64
  br label %._crit_edge67

.lr.ph66:                                         ; preds = %.preheader52
  %44 = add nuw nsw i64 %indvars.iv93, 4294967295
  br label %46

._crit_edge67:                                    ; preds = %46, %.preheader52.._crit_edge67_crit_edge
  %.pre-phi103 = phi i64 [ %.pre102, %.preheader52.._crit_edge67_crit_edge ], [ %57, %46 ]
  %45 = phi i32 [ %43, %.preheader52.._crit_edge67_crit_edge ], [ %56, %46 ]
  %indvars.iv.next94 = add nuw nsw i64 %indvars.iv93, 1
  %.not48.not = icmp slt i64 %indvars.iv93, %.pre-phi103
  br i1 %.not48.not, label %.preheader52, label %.preheader.preheader, !llvm.loop !15

46:                                               ; preds = %.lr.ph66, %46
  %indvars.iv90 = phi i64 [ 1, %.lr.ph66 ], [ %indvars.iv.next91, %46 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %47 = add nuw i64 %44, %indvars.iv90
  %sext = shl i64 %47, 32
  %48 = ashr exact i64 %sext, 32
  %49 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %48
  %50 = add nsw i64 %indvars.iv90, -1
  %51 = getelementptr inbounds [2020 x %struct.Point], ptr @s, i64 0, i64 %50
  %52 = call i64 @_ZNK5PointmiERKS_(ptr noundef nonnull align 4 dereferenceable(8) %49, ptr noundef nonnull align 4 dereferenceable(8) %51)
  store i64 %52, ptr %4, align 8
  %53 = call noundef i64 @_ZNK5Point5mode2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4)
  store i64 %53, ptr %3, align 8, !tbaa !11
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @ans2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %55 = load i64, ptr %54, align 8, !tbaa !11
  store i64 %55, ptr @ans2, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %indvars.iv.next91 = add nuw nsw i64 %indvars.iv90, 1
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %.not51.not = icmp slt i64 %indvars.iv90, %57
  br i1 %.not51.not, label %46, label %._crit_edge67, !llvm.loop !17

58:                                               ; preds = %._crit_edge74
  %59 = load i64, ptr @ans1, align 8, !tbaa !11
  %60 = load i64, ptr @ans2, align 8, !tbaa !11
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %59, i64 noundef %60)
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %.not4976 = icmp slt i32 %62, 1
  br i1 %.not4976, label %._crit_edge80, label %.lr.ph79

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge74
  %.03875 = phi i32 [ %76, %._crit_edge74 ], [ 0, %.preheader.preheader ]
  %63 = shl nuw nsw i32 %.03875, 1
  %64 = uitofp nneg i32 %63 to double
  %65 = fdiv double %64, 4.000000e+03
  %66 = load double, ptr @_ZL2pi, align 8, !tbaa !18
  %67 = fmul double %65, %66
  store double %67, ptr @theta, align 8, !tbaa !18
  %68 = call double @cos(double noundef %67) #7
  %69 = fmul double %68, 4.000000e+03
  store double %69, ptr @xx, align 8, !tbaa !18
  %70 = load double, ptr @theta, align 8, !tbaa !18
  %71 = call double @sin(double noundef %70) #7
  %72 = fmul double %71, 4.000000e+03
  store double %72, ptr @yy, align 8, !tbaa !18
  %73 = load i32, ptr @n, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %gep = getelementptr %struct.Point, ptr getelementptr inbounds (i8, ptr @p, i64 8), i64 %74
  call void @_ZSt4sortIP5PointPFbRKS0_S3_EEvT_S6_T0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @p, i64 8), ptr noundef nonnull %gep, ptr noundef nonnull @_Z3cmpRK5PointS1_)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store i64 0, ptr %5, align 8
  %75 = load i32, ptr @n, align 4, !tbaa !5
  %.not5070 = icmp slt i32 %75, 1
  br i1 %.not5070, label %._crit_edge74, label %.lr.ph73

._crit_edge74:                                    ; preds = %.lr.ph73, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %76 = add nuw nsw i32 %.03875, 1
  %exitcond.not = icmp eq i32 %76, 4000
  br i1 %exitcond.not, label %58, label %.preheader, !llvm.loop !20

.lr.ph73:                                         ; preds = %.preheader, %.lr.ph73
  %indvars.iv96 = phi i64 [ %indvars.iv.next97, %.lr.ph73 ], [ 1, %.preheader ]
  %77 = getelementptr inbounds [1010 x %struct.Point], ptr @p, i64 0, i64 %indvars.iv96
  %78 = call i64 @_ZNK5PointplERKS_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(8) %77)
  store i64 %78, ptr %5, align 8
  %79 = getelementptr inbounds [1010 x i64], ptr @ans3, i64 0, i64 %indvars.iv96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %80 = call noundef i64 @_ZNK5Point5mode2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5)
  store i64 %80, ptr %6, align 8, !tbaa !11
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %82 = load i64, ptr %81, align 8, !tbaa !11
  store i64 %82, ptr %79, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %83 = load i32, ptr @n, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %.not50.not = icmp slt i64 %indvars.iv96, %84
  br i1 %.not50.not, label %.lr.ph73, label %._crit_edge74, !llvm.loop !21

._crit_edge80:                                    ; preds = %.lr.ph79, %58
  ret i32 0

.lr.ph79:                                         ; preds = %58, %.lr.ph79
  %indvars.iv99 = phi i64 [ %indvars.iv.next100, %.lr.ph79 ], [ 1, %58 ]
  %85 = phi i32 [ %95, %.lr.ph79 ], [ %62, %58 ]
  %86 = getelementptr inbounds [1010 x i64], ptr @ans3, i64 0, i64 %indvars.iv99
  %87 = load i64, ptr %86, align 8, !tbaa !11
  %88 = zext i32 %85 to i64
  %89 = icmp eq i64 %indvars.iv99, %88
  %90 = zext i1 %89 to i64
  %91 = getelementptr inbounds [3 x i8], ptr @.str.4, i64 0, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !22
  %93 = sext i8 %92 to i32
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %87, i32 noundef %93)
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %95 = load i32, ptr @n, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %.not49.not = icmp slt i64 %indvars.iv99, %96
  br i1 %.not49.not, label %.lr.ph79, label %._crit_edge80, !llvm.loop !23
}

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #6

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !16}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = distinct !{!17, !10}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !10}


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