; LLVM IR from tangjz/acm-icpc :: codeforces/complete (1C)

; 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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@x = external dso_local global [3 x double], align 16
@y = external dso_local global [3 x double], align 16
@d = external dso_local global [3 x double], align 16
@angle = external dso_local global [4 x double], align 16
@r = external dso_local global double, align 8
@p = external dso_local global double, align 8
@s = external dso_local global double, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %2 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @x)
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(8) @y)
  %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) getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 1))
  %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) getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 1))
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 2))
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 2))
  %9 = load double, ptr @x, align 16, !tbaa !5
  %10 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 1), align 8, !tbaa !5
  %11 = fsub double %9, %10
  %12 = load double, ptr @x, align 16, !tbaa !5
  %13 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 1), align 8, !tbaa !5
  %14 = fsub double %12, %13
  %15 = load double, ptr @y, align 16, !tbaa !5
  %16 = load double, ptr getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 1), align 8, !tbaa !5
  %17 = fsub double %15, %16
  %18 = load double, ptr @y, align 16, !tbaa !5
  %19 = load double, ptr getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 1), align 8, !tbaa !5
  %20 = fsub double %18, %19
  %21 = fmul double %17, %20
  %22 = call double @llvm.fmuladd.f64(double %11, double %14, double %21)
  %23 = call double @sqrt(double noundef %22) #7
  store double %23, ptr @d, align 16, !tbaa !5
  %24 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 1), align 8, !tbaa !5
  %25 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 2), align 16, !tbaa !5
  %26 = fsub double %24, %25
  %27 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 1), align 8, !tbaa !5
  %28 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 2), align 16, !tbaa !5
  %29 = fsub double %27, %28
  %30 = load double, ptr getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 1), align 8, !tbaa !5
  %31 = load double, ptr getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 2), align 16, !tbaa !5
  %32 = fsub double %30, %31
  %33 = load double, ptr getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 1), align 8, !tbaa !5
  %34 = load double, ptr getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 2), align 16, !tbaa !5
  %35 = fsub double %33, %34
  %36 = fmul double %32, %35
  %37 = call double @llvm.fmuladd.f64(double %26, double %29, double %36)
  %38 = call double @sqrt(double noundef %37) #7
  store double %38, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 1), align 8, !tbaa !5
  %39 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 2), align 16, !tbaa !5
  %40 = load double, ptr @x, align 16, !tbaa !5
  %41 = fsub double %39, %40
  %42 = load double, ptr getelementptr inbounds ([3 x double], ptr @x, i64 0, i64 2), align 16, !tbaa !5
  %43 = load double, ptr @x, align 16, !tbaa !5
  %44 = fsub double %42, %43
  %45 = load double, ptr getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 2), align 16, !tbaa !5
  %46 = load double, ptr @y, align 16, !tbaa !5
  %47 = fsub double %45, %46
  %48 = load double, ptr getelementptr inbounds ([3 x double], ptr @y, i64 0, i64 2), align 16, !tbaa !5
  %49 = load double, ptr @y, align 16, !tbaa !5
  %50 = fsub double %48, %49
  %51 = fmul double %47, %50
  %52 = call double @llvm.fmuladd.f64(double %41, double %44, double %51)
  %53 = call double @sqrt(double noundef %52) #7
  store double %53, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 2), align 16, !tbaa !5
  %54 = load double, ptr @d, align 16, !tbaa !5
  %55 = load double, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 1), align 8, !tbaa !5
  %56 = fadd double %54, %55
  %57 = load double, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 2), align 16, !tbaa !5
  %58 = fadd double %56, %57
  %59 = fdiv double %58, 2.000000e+00
  store double %59, ptr @p, align 8, !tbaa !5
  %60 = load double, ptr @p, align 8, !tbaa !5
  %61 = load double, ptr @p, align 8, !tbaa !5
  %62 = load double, ptr @d, align 16, !tbaa !5
  %63 = fsub double %61, %62
  %64 = fmul double %60, %63
  %65 = load double, ptr @p, align 8, !tbaa !5
  %66 = load double, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 1), align 8, !tbaa !5
  %67 = fsub double %65, %66
  %68 = fmul double %64, %67
  %69 = load double, ptr @p, align 8, !tbaa !5
  %70 = load double, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 2), align 16, !tbaa !5
  %71 = fsub double %69, %70
  %72 = fmul double %68, %71
  %73 = call double @sqrt(double noundef %72) #7
  store double %73, ptr @s, align 8, !tbaa !5
  %74 = load double, ptr @d, align 16, !tbaa !5
  %75 = load double, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 1), align 8, !tbaa !5
  %76 = fmul double %74, %75
  %77 = load double, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 2), align 16, !tbaa !5
  %78 = fmul double %76, %77
  %79 = load double, ptr @s, align 8, !tbaa !5
  %80 = fmul double 4.000000e+00, %79
  %81 = fdiv double %78, %80
  store double %81, ptr @r, align 8, !tbaa !5
  %82 = load double, ptr @d, align 16, !tbaa !5
  %83 = load double, ptr @d, align 16, !tbaa !5
  %84 = fmul double %82, %83
  %85 = load double, ptr @r, align 8, !tbaa !5
  %86 = fmul double 2.000000e+00, %85
  %87 = load double, ptr @r, align 8, !tbaa !5
  %88 = fmul double %86, %87
  %89 = fdiv double %84, %88
  %90 = fsub double 1.000000e+00, %89
  %91 = call double @acos(double noundef %90) #7
  store double %91, ptr @angle, align 16, !tbaa !5
  %92 = load double, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 1), align 8, !tbaa !5
  %93 = load double, ptr getelementptr inbounds ([3 x double], ptr @d, i64 0, i64 1), align 8, !tbaa !5
  %94 = fmul double %92, %93
  %95 = load double, ptr @r, align 8, !tbaa !5
  %96 = fmul double 2.000000e+00, %95
  %97 = load double, ptr @r, align 8, !tbaa !5
  %98 = fmul double %96, %97
  %99 = fdiv double %94, %98
  %100 = fsub double 1.000000e+00, %99
  %101 = call double @acos(double noundef %100) #7
  store double %101, ptr getelementptr inbounds ([4 x double], ptr @angle, i64 0, i64 1), align 8, !tbaa !5
  %102 = call double @acos(double noundef -1.000000e+00) #7
  %103 = load double, ptr @angle, align 16, !tbaa !5
  %104 = fneg double %103
  %105 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %102, double %104)
  %106 = load double, ptr getelementptr inbounds ([4 x double], ptr @angle, i64 0, i64 1), align 8, !tbaa !5
  %107 = fsub double %105, %106
  store double %107, ptr getelementptr inbounds ([4 x double], ptr @angle, i64 0, i64 2), align 16, !tbaa !5
  %108 = load double, ptr @angle, align 16, !tbaa !5
  %109 = load double, ptr getelementptr inbounds ([4 x double], ptr @angle, i64 0, i64 1), align 8, !tbaa !5
  %110 = load double, ptr getelementptr inbounds ([4 x double], ptr @angle, i64 0, i64 2), align 16, !tbaa !5
  %111 = call noundef double @_Z4fgcddd(double noundef %109, double noundef %110)
  %112 = call noundef double @_Z4fgcddd(double noundef %108, double noundef %111)
  store double %112, ptr getelementptr inbounds ([4 x double], ptr @angle, i64 0, i64 3), align 8, !tbaa !5
  %113 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !9
  %114 = getelementptr i8, ptr %113, i64 -24
  %115 = load i64, ptr %114, align 8
  %116 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %115
  %117 = call noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216) %116, i32 noundef 4)
  %118 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !9
  %119 = getelementptr i8, ptr %118, i64 -24
  %120 = load i64, ptr %119, align 8
  %121 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %120
  %122 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %121, i64 noundef 6)
  %123 = load double, ptr @r, align 8, !tbaa !5
  %124 = load double, ptr @r, align 8, !tbaa !5
  %125 = fmul double %123, %124
  %126 = load double, ptr getelementptr inbounds ([4 x double], ptr @angle, i64 0, i64 3), align 8, !tbaa !5
  %127 = call double @sin(double noundef %126) #7
  %128 = fmul double %125, %127
  %129 = fdiv double %128, 2.000000e+00
  %130 = call double @acos(double noundef -1.000000e+00) #7
  %131 = fmul double 2.000000e+00, %130
  %132 = load double, ptr getelementptr inbounds ([4 x double], ptr @angle, i64 0, i64 3), align 8, !tbaa !5
  %133 = fdiv double %131, %132
  %134 = fmul double %129, %133
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %134)
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %135, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

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

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

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

; Function Attrs: nounwind
declare double @acos(double noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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


; 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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@x = external dso_local global [3 x double], align 16
@y = external dso_local global [3 x double], align 16
@d = external dso_local local_unnamed_addr global [3 x double], align 16
@angle = external dso_local local_unnamed_addr global [4 x double], align 16
@r = external dso_local local_unnamed_addr global double, align 8
@p = external dso_local local_unnamed_addr global double, align 8
@s = external dso_local local_unnamed_addr global double, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @x)
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) @y)
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @x, i64 8))
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @y, i64 8))
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @x, i64 16))
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @y, i64 16))
  %8 = load double, ptr getelementptr inbounds (i8, ptr @x, i64 16), align 16, !tbaa !5
  %9 = load double, ptr getelementptr inbounds (i8, ptr @y, i64 16), align 16, !tbaa !5
  %10 = load <2 x double>, ptr @x, align 16, !tbaa !5
  %11 = load <2 x double>, ptr @y, align 16, !tbaa !5
  %12 = shufflevector <2 x double> %10, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %13 = insertelement <2 x double> %12, double %8, i64 1
  %14 = fsub <2 x double> %10, %13
  %15 = shufflevector <2 x double> %11, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %16 = insertelement <2 x double> %15, double %9, i64 1
  %17 = fsub <2 x double> %11, %16
  %18 = fmul <2 x double> %17, %17
  %19 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %14, <2 x double> %14, <2 x double> %18)
  %20 = tail call <2 x double> @llvm.sqrt.v2f64(<2 x double> %19)
  store <2 x double> %20, ptr @d, align 16, !tbaa !5
  %21 = extractelement <2 x double> %10, i64 0
  %22 = fsub double %8, %21
  %23 = extractelement <2 x double> %11, i64 0
  %24 = fsub double %9, %23
  %25 = fmul double %24, %24
  %26 = tail call double @llvm.fmuladd.f64(double %22, double %22, double %25)
  %sqrt = tail call double @llvm.sqrt.f64(double %26)
  store double %sqrt, ptr getelementptr inbounds (i8, ptr @d, i64 16), align 16, !tbaa !5
  %27 = extractelement <2 x double> %20, i64 0
  %28 = extractelement <2 x double> %20, i64 1
  %29 = fadd double %27, %28
  %30 = fadd double %29, %sqrt
  %31 = fmul double %30, 5.000000e-01
  store double %31, ptr @p, align 8, !tbaa !5
  %32 = fsub double %31, %27
  %33 = fmul double %31, %32
  %34 = fsub double %31, %28
  %35 = fmul double %34, %33
  %36 = fsub double %31, %sqrt
  %37 = fmul double %36, %35
  %38 = tail call double @sqrt(double noundef %37) #8
  store double %38, ptr @s, align 8, !tbaa !5
  %39 = load double, ptr @d, align 16, !tbaa !5
  %40 = load double, ptr getelementptr inbounds (i8, ptr @d, i64 8), align 8, !tbaa !5
  %41 = fmul double %39, %40
  %42 = load double, ptr getelementptr inbounds (i8, ptr @d, i64 16), align 16, !tbaa !5
  %43 = fmul double %41, %42
  %44 = fmul double %38, 4.000000e+00
  %45 = fdiv double %43, %44
  store double %45, ptr @r, align 8, !tbaa !5
  %46 = fmul double %39, %39
  %47 = fmul double %45, 2.000000e+00
  %48 = fmul double %45, %47
  %49 = fdiv double %46, %48
  %50 = fsub double 1.000000e+00, %49
  %51 = tail call double @acos(double noundef %50) #8
  store double %51, ptr @angle, align 16, !tbaa !5
  %52 = load double, ptr getelementptr inbounds (i8, ptr @d, i64 8), align 8, !tbaa !5
  %53 = fmul double %52, %52
  %54 = load double, ptr @r, align 8, !tbaa !5
  %55 = fmul double %54, 2.000000e+00
  %56 = fmul double %54, %55
  %57 = fdiv double %53, %56
  %58 = fsub double 1.000000e+00, %57
  %59 = tail call double @acos(double noundef %58) #8
  store double %59, ptr getelementptr inbounds (i8, ptr @angle, i64 8), align 8, !tbaa !5
  %60 = load double, ptr @angle, align 16, !tbaa !5
  %61 = fsub double 0x401921FB54442D18, %60
  %62 = fsub double %61, %59
  store double %62, ptr getelementptr inbounds (i8, ptr @angle, i64 16), align 16, !tbaa !5
  %63 = tail call noundef double @_Z4fgcddd(double noundef %59, double noundef %62)
  %64 = tail call noundef double @_Z4fgcddd(double noundef %60, double noundef %63)
  store double %64, ptr getelementptr inbounds (i8, ptr @angle, i64 24), align 8, !tbaa !5
  %65 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !9
  %66 = getelementptr i8, ptr %65, i64 -24
  %67 = load i64, ptr %66, align 8
  %68 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %67
  %69 = tail call noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216) %68, i32 noundef 4)
  %70 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !9
  %71 = getelementptr i8, ptr %70, i64 -24
  %72 = load i64, ptr %71, align 8
  %73 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %72
  %74 = tail call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %73, i64 noundef 6)
  %75 = load double, ptr @r, align 8, !tbaa !5
  %76 = fmul double %75, %75
  %77 = load double, ptr getelementptr inbounds (i8, ptr @angle, i64 24), align 8, !tbaa !5
  %78 = tail call double @sin(double noundef %77) #8
  %79 = fmul double %76, %78
  %80 = fmul double %79, 5.000000e-01
  %81 = load double, ptr getelementptr inbounds (i8, ptr @angle, i64 24), align 8, !tbaa !5
  %82 = fdiv double 0x401921FB54442D18, %81
  %83 = fmul double %80, %82
  %84 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %83)
  %85 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

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

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

; 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 double @acos(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt8ios_base5flagsESt13_Ios_Fmtflags(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.sqrt.v2f64(<2 x double>) #7

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


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,TailCallElimPass