; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ (1798)

; 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 }
%struct.circle = type { double, double, double }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4dist6circleS_(ptr noundef byval(%struct.circle) align 8, ptr noundef byval(%struct.circle) align 8) #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 %struct.circle, align 8
  %3 = alloca %struct.circle, 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 %struct.circle, align 8
  %13 = alloca %struct.circle, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  br label %16

16:                                               ; preds = %151, %0
  %17 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 0
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %19 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 1
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
  %21 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %23 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 0
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %25 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 1
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %27 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr i8, ptr %29, i64 -24
  %31 = load i64, ptr %30, align 8
  %32 = getelementptr inbounds i8, ptr %28, i64 %31
  %33 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %32)
  br i1 %33, label %34, label %154

34:                                               ; preds = %16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %2, i64 24, i1 false), !tbaa.struct !8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %3, i64 24, i1 false), !tbaa.struct !8
  %35 = call noundef double @_Z4dist6circleS_(ptr noundef byval(%struct.circle) align 8 %12, ptr noundef byval(%struct.circle) align 8 %13)
  store double %35, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %36 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %37 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37)
  %39 = load double, ptr %38, align 8, !tbaa !9
  store double %39, ptr %14, align 8, !tbaa !9
  %40 = load double, ptr %4, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %42 = load double, ptr %41, align 8, !tbaa !12
  %43 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %44 = load double, ptr %43, align 8, !tbaa !12
  %45 = fsub double %42, %44
  %46 = call noundef double @_ZSt3absd(double noundef %45)
  %47 = fcmp ole double %40, %46
  br i1 %47, label %48, label %54

48:                                               ; preds = %34
  %49 = call double @acos(double noundef -1.000000e+00) #9
  %50 = load double, ptr %14, align 8, !tbaa !9
  %51 = fmul double %49, %50
  %52 = load double, ptr %14, align 8, !tbaa !9
  %53 = fmul double %51, %52
  store double %53, ptr %6, align 8, !tbaa !9
  br label %151

54:                                               ; preds = %34
  %55 = load double, ptr %4, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %57 = load double, ptr %56, align 8, !tbaa !12
  %58 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %59 = load double, ptr %58, align 8, !tbaa !12
  %60 = fadd double %57, %59
  %61 = fcmp oge double %55, %60
  br i1 %61, label %62, label %63

62:                                               ; preds = %54
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  br label %150

63:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %64 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %65 = load double, ptr %64, align 8, !tbaa !12
  %66 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %67 = load double, ptr %66, align 8, !tbaa !12
  %68 = fadd double %65, %67
  %69 = load double, ptr %4, align 8, !tbaa !9
  %70 = fadd double %68, %69
  %71 = fdiv double %70, 2.000000e+00
  store double %71, ptr %15, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %73 = load double, ptr %72, align 8, !tbaa !12
  %74 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %75 = load double, ptr %74, align 8, !tbaa !12
  %76 = load double, ptr %4, align 8, !tbaa !9
  %77 = load double, ptr %4, align 8, !tbaa !9
  %78 = fmul double %76, %77
  %79 = call double @llvm.fmuladd.f64(double %73, double %75, double %78)
  %80 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %81 = load double, ptr %80, align 8, !tbaa !12
  %82 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %83 = load double, ptr %82, align 8, !tbaa !12
  %84 = fneg double %81
  %85 = call double @llvm.fmuladd.f64(double %84, double %83, double %79)
  %86 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %87 = load double, ptr %86, align 8, !tbaa !12
  %88 = fmul double 2.000000e+00, %87
  %89 = load double, ptr %4, align 8, !tbaa !9
  %90 = fmul double %88, %89
  %91 = fdiv double %85, %90
  %92 = call double @acos(double noundef %91) #9
  store double %92, ptr %7, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %94 = load double, ptr %93, align 8, !tbaa !12
  %95 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %96 = load double, ptr %95, align 8, !tbaa !12
  %97 = load double, ptr %4, align 8, !tbaa !9
  %98 = load double, ptr %4, align 8, !tbaa !9
  %99 = fmul double %97, %98
  %100 = call double @llvm.fmuladd.f64(double %94, double %96, double %99)
  %101 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %102 = load double, ptr %101, align 8, !tbaa !12
  %103 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %104 = load double, ptr %103, align 8, !tbaa !12
  %105 = fneg double %102
  %106 = call double @llvm.fmuladd.f64(double %105, double %104, double %100)
  %107 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %108 = load double, ptr %107, align 8, !tbaa !12
  %109 = fmul double 2.000000e+00, %108
  %110 = load double, ptr %4, align 8, !tbaa !9
  %111 = fmul double %109, %110
  %112 = fdiv double %106, %111
  %113 = call double @acos(double noundef %112) #9
  store double %113, ptr %8, align 8, !tbaa !9
  %114 = load double, ptr %7, align 8, !tbaa !9
  %115 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %116 = load double, ptr %115, align 8, !tbaa !12
  %117 = fmul double %114, %116
  %118 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %119 = load double, ptr %118, align 8, !tbaa !12
  %120 = fmul double %117, %119
  store double %120, ptr %9, align 8, !tbaa !9
  %121 = load double, ptr %8, align 8, !tbaa !9
  %122 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %123 = load double, ptr %122, align 8, !tbaa !12
  %124 = fmul double %121, %123
  %125 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %126 = load double, ptr %125, align 8, !tbaa !12
  %127 = fmul double %124, %126
  store double %127, ptr %10, align 8, !tbaa !9
  %128 = load double, ptr %15, align 8, !tbaa !9
  %129 = load double, ptr %15, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.circle, ptr %2, i32 0, i32 2
  %131 = load double, ptr %130, align 8, !tbaa !12
  %132 = fsub double %129, %131
  %133 = fmul double %128, %132
  %134 = load double, ptr %15, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.circle, ptr %3, i32 0, i32 2
  %136 = load double, ptr %135, align 8, !tbaa !12
  %137 = fsub double %134, %136
  %138 = fmul double %133, %137
  %139 = load double, ptr %15, align 8, !tbaa !9
  %140 = load double, ptr %4, align 8, !tbaa !9
  %141 = fsub double %139, %140
  %142 = fmul double %138, %141
  %143 = call double @sqrt(double noundef %142) #9
  %144 = fmul double 2.000000e+00, %143
  store double %144, ptr %11, align 8, !tbaa !9
  %145 = load double, ptr %9, align 8, !tbaa !9
  %146 = load double, ptr %10, align 8, !tbaa !9
  %147 = fadd double %145, %146
  %148 = load double, ptr %11, align 8, !tbaa !9
  %149 = fsub double %147, %148
  store double %149, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %150

150:                                              ; preds = %63, %62
  br label %151

151:                                              ; preds = %150, %48
  %152 = load double, ptr %6, align 8, !tbaa !9
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %152)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %16, !llvm.loop !14

154:                                              ; preds = %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #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 %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #9
  ret i32 0
}

; 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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #5 align 2

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

; Function Attrs: 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 noundef double @_ZSt3absd(double noundef) #7

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

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{i64 0, i64 8, !9, i64 8, i64 8, !9, i64 16, i64 8, !9}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!13, !10, i64 16}
!13 = !{!"_ZTS6circle", !10, i64 0, !10, i64 8, !10, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; 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 }
%struct.circle = type { double, double, double }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4dist6circleS_(ptr noundef byval(%struct.circle) align 8, ptr noundef byval(%struct.circle) align 8) 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 %struct.circle, align 8
  %2 = alloca %struct.circle, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  %3 = getelementptr inbounds i8, ptr %1, i64 8
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = getelementptr inbounds i8, ptr %2, i64 8
  %6 = getelementptr inbounds i8, ptr %2, i64 16
  br label %7

7:                                                ; preds = %72, %0
  %8 = 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)
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERd(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr i8, ptr %14, i64 -24
  %16 = load i64, ptr %15, align 8
  %17 = getelementptr inbounds i8, ptr %13, i64 %16
  %18 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %17)
  br i1 %18, label %19, label %74

19:                                               ; preds = %7
  %20 = call noundef double @_Z4dist6circleS_(ptr noundef nonnull byval(%struct.circle) align 8 %1, ptr noundef nonnull byval(%struct.circle) align 8 %2)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %22 = load double, ptr %21, align 8, !tbaa !8
  %23 = load double, ptr %4, align 8, !tbaa !11
  %24 = load double, ptr %6, align 8, !tbaa !11
  %25 = fsub double %23, %24
  %26 = call noundef double @_ZSt3absd(double noundef %25)
  %27 = fcmp ugt double %20, %26
  br i1 %27, label %31, label %28

28:                                               ; preds = %19
  %29 = fmul double %22, 0x400921FB54442D18
  %30 = fmul double %22, %29
  br label %72

31:                                               ; preds = %19
  %32 = load double, ptr %4, align 8, !tbaa !11
  %33 = load double, ptr %6, align 8, !tbaa !11
  %34 = fadd double %32, %33
  %35 = fcmp ult double %20, %34
  br i1 %35, label %36, label %72

36:                                               ; preds = %31
  %37 = fadd double %20, %34
  %38 = fmul double %37, 5.000000e-01
  %39 = fmul double %20, %20
  %40 = call double @llvm.fmuladd.f64(double %32, double %32, double %39)
  %41 = fneg double %33
  %42 = call double @llvm.fmuladd.f64(double %41, double %33, double %40)
  %43 = fmul double %32, 2.000000e+00
  %44 = fmul double %20, %43
  %45 = fdiv double %42, %44
  %46 = call double @acos(double noundef %45) #8
  %47 = load double, ptr %6, align 8, !tbaa !11
  %48 = call double @llvm.fmuladd.f64(double %47, double %47, double %39)
  %49 = load double, ptr %4, align 8, !tbaa !11
  %50 = fneg double %49
  %51 = call double @llvm.fmuladd.f64(double %50, double %49, double %48)
  %52 = fmul double %47, 2.000000e+00
  %53 = fmul double %20, %52
  %54 = fdiv double %51, %53
  %55 = call double @acos(double noundef %54) #8
  %56 = load double, ptr %4, align 8, !tbaa !11
  %57 = fmul double %46, %56
  %58 = fmul double %56, %57
  %59 = load double, ptr %6, align 8, !tbaa !11
  %60 = fmul double %55, %59
  %61 = fmul double %59, %60
  %62 = fsub double %38, %56
  %63 = fmul double %38, %62
  %64 = fsub double %38, %59
  %65 = fmul double %63, %64
  %66 = fsub double %38, %20
  %67 = fmul double %66, %65
  %68 = call double @sqrt(double noundef %67) #8
  %69 = fmul double %68, 2.000000e+00
  %70 = fadd double %58, %61
  %71 = fsub double %70, %69
  br label %72

72:                                               ; preds = %31, %36, %28
  %.0 = phi double [ %30, %28 ], [ %71, %36 ], [ 0.000000e+00, %31 ]
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %.0)
  br label %7, !llvm.loop !13

74:                                               ; preds = %7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 24, 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: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @acos(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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #7

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 = { 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 #7 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 16}
!12 = !{!"_ZTS6circle", !9, i64 0, !9, i64 8, !9, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass