; LLVM IR from tangjz/acm-icpc :: codeforces/gym (101174A)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { i8 }

@_ZL2pi = external hidden global double, align 8
@_ZZ4mainE1a = external hidden global [21 x double], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.std::vector", align 8
  %19 = alloca %"class.std::allocator", align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %class.anon, align 1
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i8, align 1
  %28 = alloca i32, align 4
  %29 = alloca double, align 8
  %30 = alloca i32, align 4
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca i32, align 4
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  %39 = call noundef i32 @_Z6getIntv()
  store i32 %39, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  store double 0.000000e+00, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  br label %40

40:                                               ; preds = %59, %0
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %62

45:                                               ; preds = %40
  %46 = call noundef i32 @_Z6getIntv()
  %47 = sitofp i32 %46 to double
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %49
  store double %47, ptr %50, align 8, !tbaa !9
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %50)
  %52 = load double, ptr %51, align 8, !tbaa !9
  store double %52, ptr %3, align 8, !tbaa !9
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !9
  %57 = load double, ptr %4, align 8, !tbaa !9
  %58 = fadd double %57, %56
  store double %58, ptr %4, align 8, !tbaa !9
  br label %59

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

62:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %63 = call noundef i32 @_Z6getIntv()
  %64 = sitofp i32 %63 to double
  store double %64, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %65 = call noundef i32 @_Z6getIntv()
  %66 = sitofp i32 %65 to double
  store double %66, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %67 = load double, ptr %7, align 8, !tbaa !9
  %68 = load double, ptr %7, align 8, !tbaa !9
  %69 = load double, ptr %8, align 8, !tbaa !9
  %70 = load double, ptr %8, align 8, !tbaa !9
  %71 = fmul double %69, %70
  %72 = call double @llvm.fmuladd.f64(double %67, double %68, double %71)
  store double %72, ptr %9, align 8, !tbaa !9
  %73 = load double, ptr %9, align 8, !tbaa !9
  %74 = fpext double %73 to x86_fp80
  %75 = call x86_fp80 @sqrtl(x86_fp80 noundef %74) #9
  %76 = fptrunc x86_fp80 %75 to double
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %78
  store double %76, ptr %79, align 8, !tbaa !9
  %80 = load double, ptr %4, align 8, !tbaa !9
  %81 = load double, ptr %4, align 8, !tbaa !9
  %82 = fmul double %80, %81
  %83 = load double, ptr %9, align 8, !tbaa !9
  %84 = fcmp ole double %82, %83
  br i1 %84, label %85, label %121

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

86:                                               ; preds = %117, %85
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %120

91:                                               ; preds = %86
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !9
  %96 = load double, ptr %4, align 8, !tbaa !9
  %97 = fadd double %96, %95
  store double %97, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %98 = load double, ptr %7, align 8, !tbaa !9
  %99 = load double, ptr %4, align 8, !tbaa !9
  %100 = fmul double %98, %99
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !9
  %105 = fdiv double %100, %104
  store double %105, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %106 = load double, ptr %8, align 8, !tbaa !9
  %107 = load double, ptr %4, align 8, !tbaa !9
  %108 = fmul double %106, %107
  %109 = load i32, ptr %2, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !9
  %113 = fdiv double %108, %112
  store double %113, ptr %12, align 8, !tbaa !9
  %114 = load double, ptr %11, align 8, !tbaa !9
  %115 = load double, ptr %12, align 8, !tbaa !9
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %114, double noundef %115)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %117

117:                                              ; preds = %91
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %10, align 4, !tbaa !5
  br label %86, !llvm.loop !13

120:                                              ; preds = %90
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  br label %454

121:                                              ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %122 = load double, ptr %3, align 8, !tbaa !9
  %123 = load double, ptr %3, align 8, !tbaa !9
  %124 = fadd double %122, %123
  %125 = load double, ptr %4, align 8, !tbaa !9
  %126 = fsub double %124, %125
  store double %126, ptr %14, align 8, !tbaa !9
  %127 = load double, ptr %3, align 8, !tbaa !9
  %128 = load double, ptr %3, align 8, !tbaa !9
  %129 = fmul double %127, %128
  %130 = load double, ptr %9, align 8, !tbaa !9
  %131 = fcmp oge double %129, %130
  br i1 %131, label %132, label %198

132:                                              ; preds = %121
  %133 = load double, ptr %14, align 8, !tbaa !9
  %134 = fcmp oge double %133, 0.000000e+00
  br i1 %134, label %135, label %198

135:                                              ; preds = %132
  %136 = load double, ptr %9, align 8, !tbaa !9
  %137 = load double, ptr %14, align 8, !tbaa !9
  %138 = load double, ptr %14, align 8, !tbaa !9
  %139 = fmul double %137, %138
  %140 = fcmp ole double %136, %139
  br i1 %140, label %141, label %198

141:                                              ; preds = %135
  store double 0.000000e+00, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %194, %141
  %143 = load i32, ptr %15, align 4, !tbaa !5
  %144 = load i32, ptr %2, align 4, !tbaa !5
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %197

147:                                              ; preds = %142
  %148 = load i32, ptr %15, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !9
  %152 = load double, ptr %3, align 8, !tbaa !9
  %153 = fcmp oeq double %151, %152
  br i1 %153, label %154, label %161

154:                                              ; preds = %147
  %155 = load i32, ptr %15, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = load double, ptr %4, align 8, !tbaa !9
  %160 = fadd double %159, %158
  store double %160, ptr %4, align 8, !tbaa !9
  store double -1.000000e+00, ptr %3, align 8, !tbaa !9
  br label %168

161:                                              ; preds = %147
  %162 = load i32, ptr %15, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = load double, ptr %4, align 8, !tbaa !9
  %167 = fsub double %166, %165
  store double %167, ptr %4, align 8, !tbaa !9
  br label %168

168:                                              ; preds = %161, %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %169 = load double, ptr %9, align 8, !tbaa !9
  %170 = fcmp ogt double %169, 0.000000e+00
  br i1 %170, label %171, label %188

171:                                              ; preds = %168
  %172 = load double, ptr %7, align 8, !tbaa !9
  %173 = load double, ptr %4, align 8, !tbaa !9
  %174 = fmul double %172, %173
  %175 = load i32, ptr %2, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !9
  %179 = fdiv double %174, %178
  store double %179, ptr %16, align 8, !tbaa !9
  %180 = load double, ptr %8, align 8, !tbaa !9
  %181 = load double, ptr %4, align 8, !tbaa !9
  %182 = fmul double %180, %181
  %183 = load i32, ptr %2, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %184
  %186 = load double, ptr %185, align 8, !tbaa !9
  %187 = fdiv double %182, %186
  store double %187, ptr %17, align 8, !tbaa !9
  br label %190

188:                                              ; preds = %168
  %189 = load double, ptr %4, align 8, !tbaa !9
  store double %189, ptr %16, align 8, !tbaa !9
  store double 0.000000e+00, ptr %17, align 8, !tbaa !9
  br label %190

190:                                              ; preds = %188, %171
  %191 = load double, ptr %16, align 8, !tbaa !9
  %192 = load double, ptr %17, align 8, !tbaa !9
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %191, double noundef %192)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  br label %194

194:                                              ; preds = %190
  %195 = load i32, ptr %15, align 4, !tbaa !5
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %15, align 4, !tbaa !5
  br label %142, !llvm.loop !14

197:                                              ; preds = %146
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  br label %453

198:                                              ; preds = %135, %132, %121
  %199 = load i32, ptr %2, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !9
  %203 = load double, ptr %4, align 8, !tbaa !9
  %204 = fadd double %203, %202
  store double %204, ptr %4, align 8, !tbaa !9
  %205 = load i32, ptr %2, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %206
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %207)
  %209 = load double, ptr %208, align 8, !tbaa !9
  store double %209, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #9
  %210 = load i32, ptr %2, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds double, ptr @_ZZ4mainE1a, i64 %211
  %213 = getelementptr inbounds double, ptr %212, i64 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #9
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #9
  invoke void @_ZNSt6vectorIdSaIdEEC2IPdvEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef @_ZZ4mainE1a, ptr noundef %213, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %214 unwind label %239

214:                                              ; preds = %198
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #9
  %215 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %216 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %215, ptr %216, align 8
  %217 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  %218 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %217, ptr %218, align 8
  %219 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8
  %221 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr %220, ptr %222)
          to label %223 unwind label %243

223:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %224 = load double, ptr %3, align 8, !tbaa !9
  %225 = fdiv double %224, 2.000000e+00
  store double %225, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #9
  %226 = load double, ptr %25, align 8, !tbaa !9
  %227 = invoke noundef double @"_ZZ4mainENK3$_0clERSt6vectorIdSaIdEEd"(ptr noundef nonnull align 1 dereferenceable(1) %24, ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef %226)
          to label %228 unwind label %247

228:                                              ; preds = %223
  %229 = load double, ptr @_ZL2pi, align 8, !tbaa !9
  %230 = fcmp olt double %227, %229
  %231 = zext i1 %230 to i8
  store i8 %231, ptr %27, align 1, !tbaa !15
  %232 = load i8, ptr %27, align 1, !tbaa !15, !range !17, !noundef !18
  %233 = trunc i8 %232 to i1
  br i1 %233, label %234, label %280

234:                                              ; preds = %228
  call void @_ZNSt6vectorIdSaIdEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  store double 1.000000e+09, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 0, ptr %28, align 4, !tbaa !5
  br label %235

235:                                              ; preds = %276, %234
  %236 = load i32, ptr %28, align 4, !tbaa !5
  %237 = icmp slt i32 %236, 101
  br i1 %237, label %251, label %238

238:                                              ; preds = %235
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %279

239:                                              ; preds = %198
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %20, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %21, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #9
  br label %452

243:                                              ; preds = %214
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %20, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %21, align 4
  br label %451

247:                                              ; preds = %223
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %20, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %21, align 4
  br label %450

251:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %252 = load double, ptr %25, align 8, !tbaa !9
  %253 = load double, ptr %26, align 8, !tbaa !9
  %254 = load double, ptr %25, align 8, !tbaa !9
  %255 = fsub double %253, %254
  %256 = fdiv double %255, 2.000000e+00
  %257 = fadd double %252, %256
  store double %257, ptr %29, align 8, !tbaa !9
  %258 = load double, ptr %29, align 8, !tbaa !9
  %259 = invoke noundef double @"_ZZ4mainENK3$_0clERSt6vectorIdSaIdEEd"(ptr noundef nonnull align 1 dereferenceable(1) %24, ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef %258)
          to label %260 unwind label %269

260:                                              ; preds = %251
  %261 = load double, ptr %3, align 8, !tbaa !9
  %262 = fdiv double %261, 2.000000e+00
  %263 = load double, ptr %29, align 8, !tbaa !9
  %264 = fdiv double %262, %263
  %265 = call double @asin(double noundef %264) #9
  %266 = fcmp olt double %259, %265
  br i1 %266, label %267, label %273

267:                                              ; preds = %260
  %268 = load double, ptr %29, align 8, !tbaa !9
  store double %268, ptr %25, align 8, !tbaa !9
  br label %275

269:                                              ; preds = %251
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %20, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %450

273:                                              ; preds = %260
  %274 = load double, ptr %29, align 8, !tbaa !9
  store double %274, ptr %26, align 8, !tbaa !9
  br label %275

275:                                              ; preds = %273, %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %28, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %28, align 4, !tbaa !5
  br label %235, !llvm.loop !19

279:                                              ; preds = %238
  br label %312

280:                                              ; preds = %228
  %281 = load double, ptr %4, align 8, !tbaa !9
  %282 = fdiv double %281, 2.000000e+00
  store double %282, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %283

283:                                              ; preds = %308, %280
  %284 = load i32, ptr %30, align 4, !tbaa !5
  %285 = icmp slt i32 %284, 101
  br i1 %285, label %287, label %286

286:                                              ; preds = %283
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %311

287:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %288 = load double, ptr %25, align 8, !tbaa !9
  %289 = load double, ptr %26, align 8, !tbaa !9
  %290 = load double, ptr %25, align 8, !tbaa !9
  %291 = fsub double %289, %290
  %292 = fdiv double %291, 2.000000e+00
  %293 = fadd double %288, %292
  store double %293, ptr %31, align 8, !tbaa !9
  %294 = load double, ptr %31, align 8, !tbaa !9
  %295 = invoke noundef double @"_ZZ4mainENK3$_0clERSt6vectorIdSaIdEEd"(ptr noundef nonnull align 1 dereferenceable(1) %24, ptr noundef nonnull align 8 dereferenceable(24) %18, double noundef %294)
          to label %296 unwind label %301

296:                                              ; preds = %287
  %297 = load double, ptr @_ZL2pi, align 8, !tbaa !9
  %298 = fcmp olt double %295, %297
  br i1 %298, label %299, label %305

299:                                              ; preds = %296
  %300 = load double, ptr %31, align 8, !tbaa !9
  store double %300, ptr %26, align 8, !tbaa !9
  br label %307

301:                                              ; preds = %287
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %20, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %450

305:                                              ; preds = %296
  %306 = load double, ptr %31, align 8, !tbaa !9
  store double %306, ptr %25, align 8, !tbaa !9
  br label %307

307:                                              ; preds = %305, %299
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %308

308:                                              ; preds = %307
  %309 = load i32, ptr %30, align 4, !tbaa !5
  %310 = add nsw i32 %309, 1
  store i32 %310, ptr %30, align 4, !tbaa !5
  br label %283, !llvm.loop !20

311:                                              ; preds = %286
  br label %312

312:                                              ; preds = %311, %279
  %313 = load double, ptr %25, align 8, !tbaa !9
  %314 = load double, ptr %25, align 8, !tbaa !9
  %315 = load double, ptr %9, align 8, !tbaa !9
  %316 = fdiv double %315, 4.000000e+00
  %317 = fneg double %316
  %318 = call double @llvm.fmuladd.f64(double %313, double %314, double %317)
  %319 = fpext double %318 to x86_fp80
  %320 = call x86_fp80 @sqrtl(x86_fp80 noundef %319) #9
  %321 = fptrunc x86_fp80 %320 to double
  store double %321, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  %322 = load double, ptr %9, align 8, !tbaa !9
  %323 = fcmp ogt double %322, 0.000000e+00
  br i1 %323, label %324, label %347

324:                                              ; preds = %312
  %325 = load double, ptr %7, align 8, !tbaa !9
  %326 = fdiv double %325, 2.000000e+00
  %327 = load double, ptr %8, align 8, !tbaa !9
  %328 = load double, ptr %14, align 8, !tbaa !9
  %329 = fmul double %327, %328
  %330 = load i32, ptr %2, align 4, !tbaa !5
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %331
  %333 = load double, ptr %332, align 8, !tbaa !9
  %334 = fdiv double %329, %333
  %335 = fsub double %326, %334
  store double %335, ptr %32, align 8, !tbaa !9
  %336 = load double, ptr %8, align 8, !tbaa !9
  %337 = fdiv double %336, 2.000000e+00
  %338 = load double, ptr %7, align 8, !tbaa !9
  %339 = load double, ptr %14, align 8, !tbaa !9
  %340 = fmul double %338, %339
  %341 = load i32, ptr %2, align 4, !tbaa !5
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %342
  %344 = load double, ptr %343, align 8, !tbaa !9
  %345 = fdiv double %340, %344
  %346 = fadd double %337, %345
  store double %346, ptr %33, align 8, !tbaa !9
  br label %349

347:                                              ; preds = %312
  store double 0.000000e+00, ptr %32, align 8, !tbaa !9
  %348 = load double, ptr %25, align 8, !tbaa !9
  store double %348, ptr %33, align 8, !tbaa !9
  br label %349

349:                                              ; preds = %347, %324
  %350 = load double, ptr %3, align 8, !tbaa !9
  %351 = load i32, ptr %2, align 4, !tbaa !5
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %352
  %354 = load double, ptr %353, align 8, !tbaa !9
  %355 = fsub double %350, %354
  %356 = call double @llvm.fabs.f64(double %355)
  %357 = fcmp olt double %356, 1.000000e-09
  br i1 %357, label %358, label %385

358:                                              ; preds = %349
  store double -1.000000e+00, ptr %3, align 8, !tbaa !9
  %359 = load i8, ptr %27, align 1, !tbaa !15, !range !17, !noundef !18
  %360 = trunc i8 %359 to i1
  br i1 %360, label %361, label %384

361:                                              ; preds = %358
  %362 = load double, ptr %7, align 8, !tbaa !9
  %363 = fdiv double %362, 2.000000e+00
  %364 = load double, ptr %8, align 8, !tbaa !9
  %365 = load double, ptr %14, align 8, !tbaa !9
  %366 = fmul double %364, %365
  %367 = load i32, ptr %2, align 4, !tbaa !5
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %368
  %370 = load double, ptr %369, align 8, !tbaa !9
  %371 = fdiv double %366, %370
  %372 = fadd double %363, %371
  store double %372, ptr %32, align 8, !tbaa !9
  %373 = load double, ptr %8, align 8, !tbaa !9
  %374 = fdiv double %373, 2.000000e+00
  %375 = load double, ptr %7, align 8, !tbaa !9
  %376 = load double, ptr %14, align 8, !tbaa !9
  %377 = fmul double %375, %376
  %378 = load i32, ptr %2, align 4, !tbaa !5
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %379
  %381 = load double, ptr %380, align 8, !tbaa !9
  %382 = fdiv double %377, %381
  %383 = fsub double %374, %382
  store double %383, ptr %33, align 8, !tbaa !9
  br label %384

384:                                              ; preds = %361, %358
  br label %385

385:                                              ; preds = %384, %349
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #9
  %386 = load double, ptr %33, align 8, !tbaa !9
  %387 = fneg double %386
  %388 = load double, ptr %32, align 8, !tbaa !9
  %389 = fneg double %388
  %390 = call double @atan2(double noundef %387, double noundef %389) #9
  store double %390, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %391

391:                                              ; preds = %442, %385
  %392 = load i32, ptr %35, align 4, !tbaa !5
  %393 = load i32, ptr %2, align 4, !tbaa !5
  %394 = icmp slt i32 %392, %393
  br i1 %394, label %396, label %395

395:                                              ; preds = %391
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  br label %449

396:                                              ; preds = %391
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %397 = load i32, ptr %35, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %398
  %400 = load double, ptr %399, align 8, !tbaa !9
  %401 = fdiv double %400, 2.000000e+00
  %402 = load double, ptr %25, align 8, !tbaa !9
  %403 = fdiv double %401, %402
  %404 = call double @asin(double noundef %403) #9
  %405 = fmul double 2.000000e+00, %404
  store double %405, ptr %36, align 8, !tbaa !9
  %406 = load double, ptr %3, align 8, !tbaa !9
  %407 = load i32, ptr %35, align 4, !tbaa !5
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %408
  %410 = load double, ptr %409, align 8, !tbaa !9
  %411 = fsub double %406, %410
  %412 = call double @llvm.fabs.f64(double %411)
  %413 = fcmp olt double %412, 1.000000e-09
  br i1 %413, label %414, label %424

414:                                              ; preds = %396
  store double -1.000000e+00, ptr %3, align 8, !tbaa !9
  %415 = load i8, ptr %27, align 1, !tbaa !15, !range !17, !noundef !18
  %416 = trunc i8 %415 to i1
  br i1 %416, label %417, label %423

417:                                              ; preds = %414
  %418 = load double, ptr @_ZL2pi, align 8, !tbaa !9
  %419 = load double, ptr @_ZL2pi, align 8, !tbaa !9
  %420 = fadd double %418, %419
  %421 = load double, ptr %36, align 8, !tbaa !9
  %422 = fsub double %420, %421
  store double %422, ptr %36, align 8, !tbaa !9
  br label %423

423:                                              ; preds = %417, %414
  br label %424

424:                                              ; preds = %423, %396
  %425 = load double, ptr %36, align 8, !tbaa !9
  %426 = load double, ptr %34, align 8, !tbaa !9
  %427 = fsub double %426, %425
  store double %427, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %428 = load double, ptr %32, align 8, !tbaa !9
  %429 = load double, ptr %25, align 8, !tbaa !9
  %430 = load double, ptr %34, align 8, !tbaa !9
  %431 = call double @cos(double noundef %430) #9
  %432 = call double @llvm.fmuladd.f64(double %429, double %431, double %428)
  store double %432, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %433 = load double, ptr %33, align 8, !tbaa !9
  %434 = load double, ptr %25, align 8, !tbaa !9
  %435 = load double, ptr %34, align 8, !tbaa !9
  %436 = call double @sin(double noundef %435) #9
  %437 = call double @llvm.fmuladd.f64(double %434, double %436, double %433)
  store double %437, ptr %38, align 8, !tbaa !9
  %438 = load double, ptr %37, align 8, !tbaa !9
  %439 = load double, ptr %38, align 8, !tbaa !9
  %440 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %438, double noundef %439)
          to label %441 unwind label %445

441:                                              ; preds = %424
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  br label %442

442:                                              ; preds = %441
  %443 = load i32, ptr %35, align 4, !tbaa !5
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %35, align 4, !tbaa !5
  br label %391, !llvm.loop !21

445:                                              ; preds = %424
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %20, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  br label %450

449:                                              ; preds = %395
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #9
  br label %453

450:                                              ; preds = %445, %301, %269, %247
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #9
  br label %451

451:                                              ; preds = %450, %243
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  br label %452

452:                                              ; preds = %451, %239
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %456

453:                                              ; preds = %449, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %454

454:                                              ; preds = %453, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %455 = load i32, ptr %1, align 4
  ret i32 %455

456:                                              ; preds = %452
  %457 = load ptr, ptr %20, align 8
  %458 = load i32, ptr %21, align 4
  %459 = insertvalue { ptr, i32 } poison, ptr %457, 0
  %460 = insertvalue { ptr, i32 } %459, i32 %458, 1
  resume { ptr, i32 } %460
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z6getIntv() #2

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: nounwind
declare x86_fp80 @sqrtl(x86_fp80 noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2IPdvEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #8 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr, ptr) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @"_ZZ4mainENK3$_0clERSt6vectorIdSaIdEEd"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24), double noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24)) #7 align 2

; Function Attrs: nounwind
declare double @asin(double noundef) #5

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

; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #7 align 2

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%class.anon = type { i8 }

@_ZL2pi = external hidden local_unnamed_addr global double, align 8
@_ZZ4mainE1a = external hidden global [21 x double], align 16
@.str = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca double, align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %class.anon, align 1
  %5 = tail call noundef i32 @_Z6getIntv()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #10
  store double 0.000000e+00, ptr %1, align 8, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = zext nneg i32 %5 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.0123.lcssa = phi double [ 0.000000e+00, %0 ], [ %28, %.lr.ph ]
  %7 = call noundef i32 @_Z6getIntv()
  %8 = call noundef i32 @_Z6getIntv()
  %9 = insertelement <2 x i32> poison, i32 %7, i64 0
  %10 = insertelement <2 x i32> %9, i32 %8, i64 1
  %11 = sitofp <2 x i32> %10 to <2 x double>
  %12 = extractelement <2 x double> %11, i64 1
  %13 = fmul double %12, %12
  %14 = extractelement <2 x double> %11, i64 0
  %15 = call double @llvm.fmuladd.f64(double %14, double %14, double %13)
  %16 = fpext double %15 to x86_fp80
  %sqrt = call x86_fp80 @llvm.sqrt.f80(x86_fp80 %16)
  %17 = fptrunc x86_fp80 %sqrt to double
  %18 = sext i32 %5 to i64
  %19 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %18
  store double %17, ptr %19, align 8, !tbaa !5
  %20 = fmul double %.0123.lcssa, %.0123.lcssa
  %21 = fcmp ugt double %20, %15
  br i1 %21, label %38, label %.preheader159

.preheader159:                                    ; preds = %._crit_edge
  br i1 %6, label %.lr.ph165.preheader, label %.loopexit158

.lr.ph165.preheader:                              ; preds = %.preheader159
  %wide.trip.count187 = zext nneg i32 %5 to i64
  br label %.lr.ph165

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.0123162 = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %28, %.lr.ph ]
  %22 = call noundef i32 @_Z6getIntv()
  %23 = sitofp i32 %22 to double
  %24 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %indvars.iv
  store double %23, ptr %24, align 8, !tbaa !5
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %26 = load double, ptr %25, align 8, !tbaa !5
  store double %26, ptr %1, align 8, !tbaa !5
  %27 = load double, ptr %24, align 8, !tbaa !5
  %28 = fadd double %.0123162, %27
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

.lr.ph165:                                        ; preds = %.lr.ph165.preheader, %.lr.ph165
  %indvars.iv184 = phi i64 [ 0, %.lr.ph165.preheader ], [ %indvars.iv.next185, %.lr.ph165 ]
  %.1124164 = phi double [ 0.000000e+00, %.lr.ph165.preheader ], [ %31, %.lr.ph165 ]
  %29 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %indvars.iv184
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = fadd double %.1124164, %30
  %32 = fmul double %31, %14
  %33 = load double, ptr %19, align 8, !tbaa !5
  %34 = fdiv double %32, %33
  %35 = fmul double %31, %12
  %36 = fdiv double %35, %33
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %34, double noundef %36)
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %wide.trip.count187
  br i1 %exitcond188.not, label %.loopexit158, label %.lr.ph165, !llvm.loop !11

38:                                               ; preds = %._crit_edge
  %39 = load double, ptr %1, align 8, !tbaa !5
  %40 = fadd double %39, %39
  %41 = fsub double %40, %.0123.lcssa
  %42 = fmul double %39, %39
  %43 = fcmp ult double %42, %15
  %44 = fcmp ult double %41, 0.000000e+00
  %45 = fmul double %41, %41
  %46 = fcmp ugt double %15, %45
  %47 = or i1 %44, %46
  %or.cond154 = select i1 %43, i1 true, i1 %47
  br i1 %or.cond154, label %74, label %.preheader

.preheader:                                       ; preds = %38
  br i1 %6, label %.lr.ph168, label %.loopexit158

.lr.ph168:                                        ; preds = %.preheader
  %48 = fcmp ogt double %15, 0.000000e+00
  %wide.trip.count197 = zext nneg i32 %5 to i64
  br i1 %48, label %.lr.ph168.split.us, label %.lr.ph168.split

.lr.ph168.split.us:                               ; preds = %.lr.ph168, %57
  %indvars.iv194 = phi i64 [ %indvars.iv.next195, %57 ], [ 0, %.lr.ph168 ]
  %.2167.us = phi double [ %.3.us, %57 ], [ 0.000000e+00, %.lr.ph168 ]
  %49 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %indvars.iv194
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = load double, ptr %1, align 8, !tbaa !5
  %52 = fcmp oeq double %50, %51
  br i1 %52, label %55, label %53

53:                                               ; preds = %.lr.ph168.split.us
  %54 = fsub double %.2167.us, %50
  br label %57

55:                                               ; preds = %.lr.ph168.split.us
  %56 = fadd double %.2167.us, %50
  store double -1.000000e+00, ptr %1, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %55, %53
  %.3.us = phi double [ %56, %55 ], [ %54, %53 ]
  %58 = fmul double %.3.us, %14
  %59 = load double, ptr %19, align 8, !tbaa !5
  %60 = fdiv double %58, %59
  %61 = fmul double %.3.us, %12
  %62 = fdiv double %61, %59
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %60, double noundef %62)
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %.loopexit158, label %.lr.ph168.split.us, !llvm.loop !12

.lr.ph168.split:                                  ; preds = %.lr.ph168, %72
  %indvars.iv189 = phi i64 [ %indvars.iv.next190, %72 ], [ 0, %.lr.ph168 ]
  %.2167 = phi double [ %.3, %72 ], [ 0.000000e+00, %.lr.ph168 ]
  %64 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %indvars.iv189
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = load double, ptr %1, align 8, !tbaa !5
  %67 = fcmp oeq double %65, %66
  br i1 %67, label %68, label %70

68:                                               ; preds = %.lr.ph168.split
  %69 = fadd double %.2167, %65
  store double -1.000000e+00, ptr %1, align 8, !tbaa !5
  br label %72

70:                                               ; preds = %.lr.ph168.split
  %71 = fsub double %.2167, %65
  br label %72

72:                                               ; preds = %70, %68
  %.3 = phi double [ %69, %68 ], [ %71, %70 ]
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %.3, double noundef 0.000000e+00)
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %wide.trip.count197
  br i1 %exitcond193.not, label %.loopexit158, label %.lr.ph168.split, !llvm.loop !12

74:                                               ; preds = %38
  %75 = fadd double %.0123.lcssa, %17
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %77 = load double, ptr %76, align 8, !tbaa !5
  store double %77, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #10
  %78 = getelementptr inbounds i8, ptr %19, i64 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #10
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #10
  invoke void @_ZNSt6vectorIdSaIdEEC2IPdvEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull @_ZZ4mainE1a, ptr noundef nonnull %78, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %79 unwind label %89

79:                                               ; preds = %74
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  %80 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #10
  %81 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #10
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr %80, ptr %81)
          to label %82 unwind label %91

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #10
  %83 = load double, ptr %1, align 8, !tbaa !5
  %84 = fmul double %83, 5.000000e-01
  %85 = call noundef double @"_ZZ4mainENK3$_0clERSt6vectorIdSaIdEEd"(ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %84)
  %86 = load double, ptr @_ZL2pi, align 8, !tbaa !5
  %87 = fcmp olt double %85, %86
  br i1 %87, label %88, label %104

88:                                               ; preds = %82
  call void @_ZNSt6vectorIdSaIdEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #10
  br label %93

89:                                               ; preds = %74
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  br label %182

91:                                               ; preds = %79
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #10
  br label %182

93:                                               ; preds = %88, %93
  %.0135174 = phi i32 [ 0, %88 ], [ %103, %93 ]
  %.0136173 = phi double [ 1.000000e+09, %88 ], [ %.0136., %93 ]
  %.0140172 = phi double [ %84, %88 ], [ %..0140, %93 ]
  %94 = fsub double %.0136173, %.0140172
  %95 = fmul double %94, 5.000000e-01
  %96 = fadd double %.0140172, %95
  %97 = call noundef double @"_ZZ4mainENK3$_0clERSt6vectorIdSaIdEEd"(ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %96)
  %98 = load double, ptr %1, align 8, !tbaa !5
  %99 = fmul double %98, 5.000000e-01
  %100 = fdiv double %99, %96
  %101 = call double @asin(double noundef %100) #10
  %102 = fcmp olt double %97, %101
  %..0140 = select i1 %102, double %96, double %.0140172
  %.0136. = select i1 %102, double %.0136173, double %96
  %103 = add nuw nsw i32 %.0135174, 1
  %exitcond200.not = icmp eq i32 %103, 101
  br i1 %exitcond200.not, label %.loopexit, label %93, !llvm.loop !13

104:                                              ; preds = %82
  %105 = fmul double %75, 5.000000e-01
  br label %106

106:                                              ; preds = %104, %106
  %.0133171 = phi i32 [ 0, %104 ], [ %113, %106 ]
  %.2138170 = phi double [ %105, %104 ], [ %..2138, %106 ]
  %.2142169 = phi double [ %84, %104 ], [ %.2142., %106 ]
  %107 = fsub double %.2138170, %.2142169
  %108 = fmul double %107, 5.000000e-01
  %109 = fadd double %.2142169, %108
  %110 = call noundef double @"_ZZ4mainENK3$_0clERSt6vectorIdSaIdEEd"(ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef %109)
  %111 = load double, ptr @_ZL2pi, align 8, !tbaa !5
  %112 = fcmp olt double %110, %111
  %.2142. = select i1 %112, double %.2142169, double %109
  %..2138 = select i1 %112, double %109, double %.2138170
  %113 = add nuw nsw i32 %.0133171, 1
  %exitcond199.not = icmp eq i32 %113, 101
  br i1 %exitcond199.not, label %.loopexit, label %106, !llvm.loop !14

.loopexit:                                        ; preds = %106, %93
  %.4 = phi double [ %..0140, %93 ], [ %.2142., %106 ]
  %114 = fmul double %15, -2.500000e-01
  %115 = call double @llvm.fmuladd.f64(double %.4, double %.4, double %114)
  %116 = fpext double %115 to x86_fp80
  %117 = call x86_fp80 @sqrtl(x86_fp80 noundef %116) #10
  %118 = fptrunc x86_fp80 %117 to double
  %119 = fcmp ogt double %15, 0.000000e+00
  %.pre = load double, ptr %19, align 8, !tbaa !5
  %120 = insertelement <2 x double> <double 0.000000e+00, double poison>, double %.4, i64 1
  br i1 %119, label %121, label %133

121:                                              ; preds = %.loopexit
  %122 = fmul <2 x double> %11, <double 5.000000e-01, double 5.000000e-01>
  %123 = insertelement <2 x double> poison, double %118, i64 0
  %124 = shufflevector <2 x double> %123, <2 x double> poison, <2 x i32> zeroinitializer
  %125 = fmul <2 x double> %124, %11
  %126 = insertelement <2 x double> poison, double %.pre, i64 0
  %127 = shufflevector <2 x double> %126, <2 x double> poison, <2 x i32> zeroinitializer
  %128 = fdiv <2 x double> %125, %127
  %129 = shufflevector <2 x double> %128, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %130 = fsub <2 x double> %122, %129
  %131 = fadd <2 x double> %122, %129
  %132 = shufflevector <2 x double> %130, <2 x double> %131, <2 x i32> <i32 0, i32 3>
  br label %133

133:                                              ; preds = %.loopexit, %121
  %134 = phi <2 x double> [ %132, %121 ], [ %120, %.loopexit ]
  %135 = load double, ptr %1, align 8, !tbaa !5
  %136 = fsub double %135, %.pre
  %137 = call double @llvm.fabs.f64(double %136)
  %138 = fcmp olt double %137, 1.000000e-09
  br i1 %138, label %139, label %152

139:                                              ; preds = %133
  store double -1.000000e+00, ptr %1, align 8, !tbaa !5
  br i1 %87, label %140, label %152

140:                                              ; preds = %139
  %141 = fmul <2 x double> %11, <double 5.000000e-01, double 5.000000e-01>
  %142 = insertelement <2 x double> poison, double %118, i64 0
  %143 = shufflevector <2 x double> %142, <2 x double> poison, <2 x i32> zeroinitializer
  %144 = fmul <2 x double> %143, %11
  %145 = insertelement <2 x double> poison, double %.pre, i64 0
  %146 = shufflevector <2 x double> %145, <2 x double> poison, <2 x i32> zeroinitializer
  %147 = fdiv <2 x double> %144, %146
  %148 = shufflevector <2 x double> %147, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %149 = fadd <2 x double> %141, %148
  %150 = fsub <2 x double> %141, %148
  %151 = shufflevector <2 x double> %149, <2 x double> %150, <2 x i32> <i32 0, i32 3>
  br label %152

152:                                              ; preds = %139, %140, %133
  %153 = phi <2 x double> [ %151, %140 ], [ %134, %139 ], [ %134, %133 ]
  %154 = extractelement <2 x double> %153, i64 1
  %155 = fneg double %154
  %156 = extractelement <2 x double> %153, i64 0
  %157 = fneg double %156
  %158 = call double @atan2(double noundef %155, double noundef %157) #10
  br i1 %6, label %.lr.ph178.preheader, label %._crit_edge179

.lr.ph178.preheader:                              ; preds = %152
  %wide.trip.count204 = zext nneg i32 %5 to i64
  br label %.lr.ph178

._crit_edge179:                                   ; preds = %175, %152
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #10
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #10
  br label %.loopexit158

.lr.ph178:                                        ; preds = %.lr.ph178.preheader, %175
  %indvars.iv201 = phi i64 [ 0, %.lr.ph178.preheader ], [ %indvars.iv.next202, %175 ]
  %.0127175 = phi double [ %158, %.lr.ph178.preheader ], [ %176, %175 ]
  %159 = getelementptr inbounds [21 x double], ptr @_ZZ4mainE1a, i64 0, i64 %indvars.iv201
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = fmul double %160, 5.000000e-01
  %162 = fdiv double %161, %.4
  %163 = call double @asin(double noundef %162) #10
  %164 = fmul double %163, 2.000000e+00
  %165 = load double, ptr %1, align 8, !tbaa !5
  %166 = load double, ptr %159, align 8, !tbaa !5
  %167 = fsub double %165, %166
  %168 = call double @llvm.fabs.f64(double %167)
  %169 = fcmp olt double %168, 1.000000e-09
  br i1 %169, label %170, label %175

170:                                              ; preds = %.lr.ph178
  store double -1.000000e+00, ptr %1, align 8, !tbaa !5
  br i1 %87, label %171, label %175

171:                                              ; preds = %170
  %172 = load double, ptr @_ZL2pi, align 8, !tbaa !5
  %173 = fadd double %172, %172
  %174 = fsub double %173, %164
  br label %175

175:                                              ; preds = %170, %171, %.lr.ph178
  %.0125 = phi double [ %174, %171 ], [ %164, %170 ], [ %164, %.lr.ph178 ]
  %176 = fsub double %.0127175, %.0125
  %177 = call double @cos(double noundef %176) #10
  %178 = call double @llvm.fmuladd.f64(double %.4, double %177, double %156)
  %179 = call double @sin(double noundef %176) #10
  %180 = call double @llvm.fmuladd.f64(double %.4, double %179, double %154)
  %181 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %178, double noundef %180)
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %exitcond205.not = icmp eq i64 %indvars.iv.next202, %wide.trip.count204
  br i1 %exitcond205.not, label %._crit_edge179, label %.lr.ph178, !llvm.loop !15

182:                                              ; preds = %91, %89
  %.pn = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #10
  resume { ptr, i32 } %.pn

.loopexit158:                                     ; preds = %.lr.ph165, %72, %57, %.preheader159, %.preheader, %._crit_edge179
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #10
  ret i32 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: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z6getIntv() local_unnamed_addr #2

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare x86_fp80 @sqrtl(x86_fp80 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2IPdvEET_S4_RKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #8 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @"_ZZ4mainENK3$_0clERSt6vectorIdSaIdEEd"(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(24), double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #7 align 2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @atan2(double noundef, double noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #7 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.sqrt.f80(x86_fp80) #9

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

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

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


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass