; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/172 Division 1/Problem A (A)

; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4distdddd(double noundef, double noundef, double noundef, double noundef) #0

; Function Attrs: nounwind
declare double @sqrt(double noundef) #1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %36 = load double, ptr %4, align 8, !tbaa !5
  %37 = fcmp oeq double %36, 0.000000e+00
  br i1 %37, label %41, label %38

38:                                               ; preds = %0
  %39 = load double, ptr %4, align 8, !tbaa !5
  %40 = fcmp oeq double %39, 1.800000e+02
  br i1 %40, label %41, label %46

41:                                               ; preds = %38, %0
  %42 = load double, ptr %2, align 8, !tbaa !5
  %43 = load double, ptr %3, align 8, !tbaa !5
  %44 = fmul double %42, %43
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %44)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %20, align 4
  br label %301

46:                                               ; preds = %38
  %47 = load double, ptr %4, align 8, !tbaa !5
  %48 = fcmp oeq double %47, 9.000000e+01
  br i1 %48, label %49, label %56

49:                                               ; preds = %46
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %51 = load double, ptr %50, align 8, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = fmul double %51, %53
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %54)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %20, align 4
  br label %301

56:                                               ; preds = %46
  %57 = load double, ptr %4, align 8, !tbaa !5
  %58 = fcmp oge double %57, 9.000000e+01
  br i1 %58, label %59, label %62

59:                                               ; preds = %56
  %60 = load double, ptr %4, align 8, !tbaa !5
  %61 = fsub double 1.800000e+02, %60
  store double %61, ptr %4, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %59, %56
  %63 = load double, ptr %2, align 8, !tbaa !5
  %64 = load double, ptr %3, align 8, !tbaa !5
  %65 = fcmp olt double %63, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %62
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #8
  br label %67

67:                                               ; preds = %66, %62
  %68 = call noundef double @_ZSt4acosIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef -1)
  store double %68, ptr %16, align 8, !tbaa !5
  %69 = load double, ptr %3, align 8, !tbaa !5
  %70 = load double, ptr %2, align 8, !tbaa !5
  %71 = call double @atan2(double noundef %69, double noundef %70) #8
  %72 = fmul double %71, 2.000000e+00
  store double %72, ptr %17, align 8, !tbaa !5
  %73 = load double, ptr %2, align 8, !tbaa !5
  %74 = load double, ptr %3, align 8, !tbaa !5
  %75 = fmul double %73, %74
  store double %75, ptr %18, align 8, !tbaa !5
  %76 = load double, ptr %2, align 8, !tbaa !5
  %77 = load double, ptr %2, align 8, !tbaa !5
  %78 = fmul double %76, %77
  %79 = fdiv double %78, 4.000000e+00
  %80 = load double, ptr %3, align 8, !tbaa !5
  %81 = load double, ptr %3, align 8, !tbaa !5
  %82 = fmul double %80, %81
  %83 = fdiv double %82, 4.000000e+00
  %84 = fadd double %79, %83
  %85 = call double @sqrt(double noundef %84) #8
  store double %85, ptr %5, align 8, !tbaa !5
  %86 = load double, ptr %3, align 8, !tbaa !5
  %87 = load double, ptr %2, align 8, !tbaa !5
  %88 = call double @atan2(double noundef %86, double noundef %87) #8
  %89 = fmul double %88, 1.800000e+02
  %90 = load double, ptr %16, align 8, !tbaa !5
  %91 = fdiv double %89, %90
  store double %91, ptr %19, align 8, !tbaa !5
  %92 = load double, ptr %5, align 8, !tbaa !5
  %93 = load double, ptr %19, align 8, !tbaa !5
  %94 = load double, ptr %4, align 8, !tbaa !5
  %95 = fadd double %93, %94
  %96 = load double, ptr %16, align 8, !tbaa !5
  %97 = fmul double %95, %96
  %98 = fdiv double %97, 1.800000e+02
  %99 = call double @cos(double noundef %98) #8
  %100 = fmul double %92, %99
  store double %100, ptr %6, align 8, !tbaa !5
  %101 = load double, ptr %5, align 8, !tbaa !5
  %102 = load double, ptr %19, align 8, !tbaa !5
  %103 = load double, ptr %4, align 8, !tbaa !5
  %104 = fadd double %102, %103
  %105 = load double, ptr %16, align 8, !tbaa !5
  %106 = fmul double %104, %105
  %107 = fdiv double %106, 1.800000e+02
  %108 = call double @sin(double noundef %107) #8
  %109 = fmul double %101, %108
  store double %109, ptr %7, align 8, !tbaa !5
  %110 = load double, ptr %5, align 8, !tbaa !5
  %111 = load double, ptr %19, align 8, !tbaa !5
  %112 = fneg double %111
  %113 = load double, ptr %4, align 8, !tbaa !5
  %114 = fadd double %112, %113
  %115 = load double, ptr %16, align 8, !tbaa !5
  %116 = fmul double %114, %115
  %117 = fdiv double %116, 1.800000e+02
  %118 = call double @cos(double noundef %117) #8
  %119 = fmul double %110, %118
  store double %119, ptr %9, align 8, !tbaa !5
  %120 = load double, ptr %5, align 8, !tbaa !5
  %121 = load double, ptr %19, align 8, !tbaa !5
  %122 = fneg double %121
  %123 = load double, ptr %4, align 8, !tbaa !5
  %124 = fadd double %122, %123
  %125 = load double, ptr %16, align 8, !tbaa !5
  %126 = fmul double %124, %125
  %127 = fdiv double %126, 1.800000e+02
  %128 = call double @sin(double noundef %127) #8
  %129 = fmul double %120, %128
  store double %129, ptr %10, align 8, !tbaa !5
  %130 = load double, ptr %5, align 8, !tbaa !5
  %131 = load double, ptr %19, align 8, !tbaa !5
  %132 = fsub double 1.800000e+02, %131
  %133 = load double, ptr %4, align 8, !tbaa !5
  %134 = fadd double %132, %133
  %135 = load double, ptr %16, align 8, !tbaa !5
  %136 = fmul double %134, %135
  %137 = fdiv double %136, 1.800000e+02
  %138 = call double @cos(double noundef %137) #8
  %139 = fmul double %130, %138
  store double %139, ptr %11, align 8, !tbaa !5
  %140 = load double, ptr %5, align 8, !tbaa !5
  %141 = load double, ptr %19, align 8, !tbaa !5
  %142 = fsub double 1.800000e+02, %141
  %143 = load double, ptr %4, align 8, !tbaa !5
  %144 = fadd double %142, %143
  %145 = load double, ptr %16, align 8, !tbaa !5
  %146 = fmul double %144, %145
  %147 = fdiv double %146, 1.800000e+02
  %148 = call double @sin(double noundef %147) #8
  %149 = fmul double %140, %148
  store double %149, ptr %13, align 8, !tbaa !5
  %150 = load double, ptr %5, align 8, !tbaa !5
  %151 = load double, ptr %19, align 8, !tbaa !5
  %152 = fadd double 1.800000e+02, %151
  %153 = load double, ptr %4, align 8, !tbaa !5
  %154 = fadd double %152, %153
  %155 = load double, ptr %16, align 8, !tbaa !5
  %156 = fmul double %154, %155
  %157 = fdiv double %156, 1.800000e+02
  %158 = call double @cos(double noundef %157) #8
  %159 = fmul double %150, %158
  store double %159, ptr %12, align 8, !tbaa !5
  %160 = load double, ptr %5, align 8, !tbaa !5
  %161 = load double, ptr %19, align 8, !tbaa !5
  %162 = fadd double 1.800000e+02, %161
  %163 = load double, ptr %4, align 8, !tbaa !5
  %164 = fadd double %162, %163
  %165 = load double, ptr %16, align 8, !tbaa !5
  %166 = fmul double %164, %165
  %167 = fdiv double %166, 1.800000e+02
  %168 = call double @sin(double noundef %167) #8
  %169 = fmul double %160, %168
  store double %169, ptr %14, align 8, !tbaa !5
  %170 = load double, ptr %4, align 8, !tbaa !5
  %171 = load double, ptr %16, align 8, !tbaa !5
  %172 = fmul double %170, %171
  %173 = fdiv double %172, 1.800000e+02
  %174 = load double, ptr %17, align 8, !tbaa !5
  %175 = fcmp ole double %173, %174
  br i1 %175, label %176, label %261

176:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %177 = load double, ptr %3, align 8, !tbaa !5
  %178 = fdiv double %177, 2.000000e+00
  store double %178, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %179 = load double, ptr %6, align 8, !tbaa !5
  %180 = load double, ptr %11, align 8, !tbaa !5
  %181 = fsub double %179, %180
  %182 = load double, ptr %21, align 8, !tbaa !5
  %183 = load double, ptr %7, align 8, !tbaa !5
  %184 = fsub double %182, %183
  %185 = fmul double %181, %184
  %186 = load double, ptr %7, align 8, !tbaa !5
  %187 = load double, ptr %13, align 8, !tbaa !5
  %188 = fsub double %186, %187
  %189 = fdiv double %185, %188
  %190 = load double, ptr %6, align 8, !tbaa !5
  %191 = fadd double %189, %190
  store double %191, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %192 = load double, ptr %3, align 8, !tbaa !5
  %193 = fdiv double %192, 2.000000e+00
  store double %193, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %194 = load double, ptr %6, align 8, !tbaa !5
  %195 = load double, ptr %9, align 8, !tbaa !5
  %196 = fsub double %194, %195
  %197 = load double, ptr %23, align 8, !tbaa !5
  %198 = load double, ptr %7, align 8, !tbaa !5
  %199 = fsub double %197, %198
  %200 = fmul double %196, %199
  %201 = load double, ptr %7, align 8, !tbaa !5
  %202 = load double, ptr %10, align 8, !tbaa !5
  %203 = fsub double %201, %202
  %204 = fdiv double %200, %203
  %205 = load double, ptr %6, align 8, !tbaa !5
  %206 = fadd double %204, %205
  store double %206, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %207 = load double, ptr %2, align 8, !tbaa !5
  %208 = fdiv double %207, 2.000000e+00
  store double %208, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %209 = load double, ptr %7, align 8, !tbaa !5
  %210 = load double, ptr %10, align 8, !tbaa !5
  %211 = fsub double %209, %210
  %212 = load double, ptr %6, align 8, !tbaa !5
  %213 = load double, ptr %9, align 8, !tbaa !5
  %214 = fsub double %212, %213
  %215 = fdiv double %211, %214
  %216 = load double, ptr %25, align 8, !tbaa !5
  %217 = load double, ptr %6, align 8, !tbaa !5
  %218 = fsub double %216, %217
  %219 = load double, ptr %7, align 8, !tbaa !5
  %220 = call double @llvm.fmuladd.f64(double %215, double %218, double %219)
  store double %220, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %221 = load double, ptr %2, align 8, !tbaa !5
  %222 = fdiv double %221, 2.000000e+00
  store double %222, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %223 = load double, ptr %10, align 8, !tbaa !5
  %224 = load double, ptr %14, align 8, !tbaa !5
  %225 = fsub double %223, %224
  %226 = load double, ptr %9, align 8, !tbaa !5
  %227 = load double, ptr %12, align 8, !tbaa !5
  %228 = fsub double %226, %227
  %229 = fdiv double %225, %228
  %230 = load double, ptr %27, align 8, !tbaa !5
  %231 = load double, ptr %9, align 8, !tbaa !5
  %232 = fsub double %230, %231
  %233 = load double, ptr %10, align 8, !tbaa !5
  %234 = call double @llvm.fmuladd.f64(double %229, double %232, double %233)
  store double %234, ptr %28, align 8, !tbaa !5
  %235 = load double, ptr %18, align 8, !tbaa !5
  %236 = load double, ptr %6, align 8, !tbaa !5
  %237 = load double, ptr %7, align 8, !tbaa !5
  %238 = load double, ptr %22, align 8, !tbaa !5
  %239 = load double, ptr %21, align 8, !tbaa !5
  %240 = call noundef double @_Z4distdddd(double noundef %236, double noundef %237, double noundef %238, double noundef %239)
  %241 = load double, ptr %6, align 8, !tbaa !5
  %242 = load double, ptr %7, align 8, !tbaa !5
  %243 = load double, ptr %24, align 8, !tbaa !5
  %244 = load double, ptr %23, align 8, !tbaa !5
  %245 = call noundef double @_Z4distdddd(double noundef %241, double noundef %242, double noundef %243, double noundef %244)
  %246 = load double, ptr %9, align 8, !tbaa !5
  %247 = load double, ptr %10, align 8, !tbaa !5
  %248 = load double, ptr %25, align 8, !tbaa !5
  %249 = load double, ptr %26, align 8, !tbaa !5
  %250 = call noundef double @_Z4distdddd(double noundef %246, double noundef %247, double noundef %248, double noundef %249)
  %251 = load double, ptr %9, align 8, !tbaa !5
  %252 = load double, ptr %10, align 8, !tbaa !5
  %253 = load double, ptr %27, align 8, !tbaa !5
  %254 = load double, ptr %28, align 8, !tbaa !5
  %255 = call noundef double @_Z4distdddd(double noundef %251, double noundef %252, double noundef %253, double noundef %254)
  %256 = fmul double %250, %255
  %257 = call double @llvm.fmuladd.f64(double %240, double %245, double %256)
  %258 = fsub double %235, %257
  store double %258, ptr %18, align 8, !tbaa !5
  %259 = load double, ptr %18, align 8, !tbaa !5
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %259)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %300

261:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %262 = load double, ptr %3, align 8, !tbaa !5
  %263 = fdiv double %262, 2.000000e+00
  store double %263, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %264 = load double, ptr %6, align 8, !tbaa !5
  %265 = load double, ptr %11, align 8, !tbaa !5
  %266 = fsub double %264, %265
  %267 = load double, ptr %29, align 8, !tbaa !5
  %268 = load double, ptr %7, align 8, !tbaa !5
  %269 = fsub double %267, %268
  %270 = fmul double %266, %269
  %271 = load double, ptr %7, align 8, !tbaa !5
  %272 = load double, ptr %13, align 8, !tbaa !5
  %273 = fsub double %271, %272
  %274 = fdiv double %270, %273
  %275 = load double, ptr %6, align 8, !tbaa !5
  %276 = fadd double %274, %275
  store double %276, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %277 = load double, ptr %3, align 8, !tbaa !5
  %278 = fdiv double %277, 2.000000e+00
  store double %278, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %279 = load double, ptr %9, align 8, !tbaa !5
  %280 = load double, ptr %12, align 8, !tbaa !5
  %281 = fsub double %279, %280
  %282 = load double, ptr %31, align 8, !tbaa !5
  %283 = load double, ptr %10, align 8, !tbaa !5
  %284 = fsub double %282, %283
  %285 = fmul double %281, %284
  %286 = load double, ptr %10, align 8, !tbaa !5
  %287 = load double, ptr %14, align 8, !tbaa !5
  %288 = fsub double %286, %287
  %289 = fdiv double %285, %288
  %290 = load double, ptr %9, align 8, !tbaa !5
  %291 = fadd double %289, %290
  store double %291, ptr %32, align 8, !tbaa !5
  %292 = load double, ptr %30, align 8, !tbaa !5
  %293 = load double, ptr %32, align 8, !tbaa !5
  %294 = fsub double %292, %293
  %295 = call double @llvm.fabs.f64(double %294)
  %296 = load double, ptr %3, align 8, !tbaa !5
  %297 = fmul double %295, %296
  store double %297, ptr %18, align 8, !tbaa !5
  %298 = load double, ptr %18, align 8, !tbaa !5
  %299 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %298)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %300

300:                                              ; preds = %261, %176
  store i32 0, ptr %1, align 4
  store i32 1, ptr %20, align 4
  br label %301

301:                                              ; preds = %300, %49, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  %302 = load i32, ptr %1, align 4
  ret i32 %302
}

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 = { 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 #8 = { nounwind }

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

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


; 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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %7 = load double, ptr %3, align 8
  %8 = fcmp oeq double %7, 0.000000e+00
  %9 = fcmp oeq double %7, 1.800000e+02
  %or.cond = or i1 %8, %9
  br i1 %or.cond, label %10, label %14

10:                                               ; preds = %0
  %11 = load double, ptr %1, align 8, !tbaa !5
  %12 = load double, ptr %2, align 8, !tbaa !5
  %13 = fmul double %11, %12
  br label %166

14:                                               ; preds = %0
  %15 = fcmp oeq double %7, 9.000000e+01
  br i1 %15, label %16, label %22

16:                                               ; preds = %14
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %18 = load double, ptr %17, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %20 = load double, ptr %19, align 8, !tbaa !5
  %21 = fmul double %18, %20
  br label %166

22:                                               ; preds = %14
  %23 = fcmp ult double %7, 9.000000e+01
  br i1 %23, label %26, label %24

24:                                               ; preds = %22
  %25 = fsub double 1.800000e+02, %7
  store double %25, ptr %3, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %24, %22
  %27 = load double, ptr %1, align 8, !tbaa !5
  %28 = load double, ptr %2, align 8, !tbaa !5
  %29 = fcmp olt double %27, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %26
  call void @_ZSt4swapIdENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #8
  br label %31

31:                                               ; preds = %30, %26
  %32 = call noundef double @_ZSt4acosIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef -1)
  %33 = load double, ptr %2, align 8, !tbaa !5
  %34 = load double, ptr %1, align 8, !tbaa !5
  %35 = call double @atan2(double noundef %33, double noundef %34) #8
  %36 = fmul double %35, 2.000000e+00
  %37 = load double, ptr %1, align 8, !tbaa !5
  %38 = load double, ptr %2, align 8, !tbaa !5
  %39 = insertelement <2 x double> poison, double %37, i64 0
  %40 = insertelement <2 x double> %39, double %38, i64 1
  %41 = fmul <2 x double> %40, %40
  %42 = fmul <2 x double> %41, <double 2.500000e-01, double 2.500000e-01>
  %shift = shufflevector <2 x double> %42, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %43 = fadd <2 x double> %42, %shift
  %44 = extractelement <2 x double> %43, i64 0
  %45 = call double @sqrt(double noundef %44) #8
  %46 = load double, ptr %2, align 8, !tbaa !5
  %47 = load double, ptr %1, align 8, !tbaa !5
  %48 = call double @atan2(double noundef %46, double noundef %47) #8
  %49 = fmul double %48, 1.800000e+02
  %50 = fdiv double %49, %32
  %51 = load double, ptr %3, align 8, !tbaa !5
  %52 = fadd double %51, %50
  %53 = fmul double %32, %52
  %54 = fdiv double %53, 1.800000e+02
  %55 = call double @cos(double noundef %54) #8
  %56 = load double, ptr %3, align 8, !tbaa !5
  %57 = fadd double %50, %56
  %58 = fmul double %32, %57
  %59 = fdiv double %58, 1.800000e+02
  %60 = call double @sin(double noundef %59) #8
  %61 = load double, ptr %3, align 8, !tbaa !5
  %62 = fsub double %61, %50
  %63 = fmul double %32, %62
  %64 = fdiv double %63, 1.800000e+02
  %65 = call double @cos(double noundef %64) #8
  %66 = insertelement <2 x double> poison, double %45, i64 0
  %67 = shufflevector <2 x double> %66, <2 x double> poison, <2 x i32> zeroinitializer
  %68 = insertelement <2 x double> poison, double %55, i64 0
  %69 = insertelement <2 x double> %68, double %65, i64 1
  %70 = fmul <2 x double> %67, %69
  %71 = load double, ptr %3, align 8, !tbaa !5
  %72 = fsub double %71, %50
  %73 = fmul double %32, %72
  %74 = fdiv double %73, 1.800000e+02
  %75 = call double @sin(double noundef %74) #8
  %76 = insertelement <2 x double> poison, double %60, i64 0
  %77 = insertelement <2 x double> %76, double %75, i64 1
  %78 = fmul <2 x double> %67, %77
  %79 = fsub double 1.800000e+02, %50
  %80 = load double, ptr %3, align 8, !tbaa !5
  %81 = fadd double %79, %80
  %82 = fmul double %32, %81
  %83 = fdiv double %82, 1.800000e+02
  %84 = call double @cos(double noundef %83) #8
  %85 = load double, ptr %3, align 8, !tbaa !5
  %86 = fadd double %79, %85
  %87 = fmul double %32, %86
  %88 = fdiv double %87, 1.800000e+02
  %89 = call double @sin(double noundef %88) #8
  %90 = fadd double %50, 1.800000e+02
  %91 = load double, ptr %3, align 8, !tbaa !5
  %92 = fadd double %90, %91
  %93 = fmul double %32, %92
  %94 = fdiv double %93, 1.800000e+02
  %95 = call double @cos(double noundef %94) #8
  %96 = insertelement <2 x double> poison, double %84, i64 0
  %97 = insertelement <2 x double> %96, double %95, i64 1
  %98 = fmul <2 x double> %67, %97
  %99 = load double, ptr %3, align 8, !tbaa !5
  %100 = fadd double %90, %99
  %101 = fmul double %32, %100
  %102 = fdiv double %101, 1.800000e+02
  %103 = call double @sin(double noundef %102) #8
  %104 = insertelement <2 x double> poison, double %89, i64 0
  %105 = insertelement <2 x double> %104, double %103, i64 1
  %106 = fmul <2 x double> %67, %105
  %107 = load double, ptr %3, align 8, !tbaa !5
  %108 = fmul double %32, %107
  %109 = fdiv double %108, 1.800000e+02
  %110 = fcmp ugt double %109, %36
  br i1 %110, label %151, label %111

111:                                              ; preds = %31
  %112 = fmul double %37, %38
  %113 = load double, ptr %2, align 8, !tbaa !5
  %114 = fmul double %113, 5.000000e-01
  %115 = extractelement <2 x double> %70, i64 0
  %116 = fsub <2 x double> %70, %98
  %117 = extractelement <2 x double> %116, i64 0
  %118 = extractelement <2 x double> %78, i64 0
  %119 = fsub double %114, %118
  %120 = fmul double %117, %119
  %121 = fsub <2 x double> %78, %106
  %122 = extractelement <2 x double> %121, i64 0
  %123 = fdiv double %120, %122
  %124 = fadd double %115, %123
  %125 = extractelement <2 x double> %70, i64 1
  %126 = fsub double %115, %125
  %127 = fmul double %126, %119
  %128 = extractelement <2 x double> %78, i64 1
  %129 = fsub double %118, %128
  %130 = fdiv double %127, %129
  %131 = fadd double %115, %130
  %132 = load double, ptr %1, align 8, !tbaa !5
  %133 = fmul double %132, 5.000000e-01
  %134 = fdiv double %129, %126
  %135 = fsub double %133, %115
  %136 = call double @llvm.fmuladd.f64(double %134, double %135, double %118)
  %137 = fsub <2 x double> %78, %106
  %138 = extractelement <2 x double> %137, i64 1
  %139 = fsub <2 x double> %70, %98
  %140 = extractelement <2 x double> %139, i64 1
  %141 = fdiv double %138, %140
  %142 = fsub double %133, %125
  %143 = call double @llvm.fmuladd.f64(double %141, double %142, double %128)
  %144 = call noundef double @_Z4distdddd(double noundef %115, double noundef %118, double noundef %124, double noundef %114)
  %145 = call noundef double @_Z4distdddd(double noundef %115, double noundef %118, double noundef %131, double noundef %114)
  %146 = call noundef double @_Z4distdddd(double noundef %125, double noundef %128, double noundef %133, double noundef %136)
  %147 = call noundef double @_Z4distdddd(double noundef %125, double noundef %128, double noundef %133, double noundef %143)
  %148 = fmul double %146, %147
  %149 = call double @llvm.fmuladd.f64(double %144, double %145, double %148)
  %150 = fsub double %112, %149
  br label %166

151:                                              ; preds = %31
  %152 = load double, ptr %2, align 8, !tbaa !5
  %153 = fmul double %152, 5.000000e-01
  %154 = fsub <2 x double> %70, %98
  %155 = fsub <2 x double> %78, %106
  %156 = insertelement <2 x double> poison, double %153, i64 0
  %157 = shufflevector <2 x double> %156, <2 x double> poison, <2 x i32> zeroinitializer
  %158 = fsub <2 x double> %157, %78
  %159 = fmul <2 x double> %154, %158
  %160 = fdiv <2 x double> %159, %155
  %161 = fadd <2 x double> %70, %160
  %shift91 = shufflevector <2 x double> %161, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %162 = fsub <2 x double> %161, %shift91
  %163 = extractelement <2 x double> %162, i64 0
  %164 = call double @llvm.fabs.f64(double %163)
  %165 = fmul double %152, %164
  br label %166

166:                                              ; preds = %111, %151, %16, %10
  %.sink = phi double [ %150, %111 ], [ %165, %151 ], [ %21, %16 ], [ %13, %10 ]
  %167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %.sink)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #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 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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 #8 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass