; LLVM IR from tangjz/acm-icpc :: projecteuler (607)

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

@_ZL5sqrt2 = external hidden global x86_fp80, align 16
@v = external dso_local global [7 x i32], align 16
@r = external dso_local global [7 x x86_fp80], align 16
@dx = external dso_local global [7 x x86_fp80], align 16
@dy = external dso_local global x86_fp80, align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca x86_fp80, align 16
  %4 = alloca x86_fp80, align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca x86_fp80, align 16
  %8 = alloca x86_fp80, align 16
  %9 = alloca i32, align 4
  %10 = alloca x86_fp80, align 16
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  store i32 10, ptr getelementptr inbounds ([7 x i32], ptr @v, i64 0, i64 6), align 8, !tbaa !5
  store i32 10, ptr @v, align 16, !tbaa !5
  store x86_fp80 0xK3FFF8000000000000000, ptr getelementptr inbounds ([7 x x86_fp80], ptr @r, i64 0, i64 6), align 16, !tbaa !9
  store x86_fp80 0xK3FFF8000000000000000, ptr @r, align 16, !tbaa !9
  %12 = load x86_fp80, ptr @_ZL5sqrt2, align 16, !tbaa !9
  %13 = fsub x86_fp80 %12, 0xK3FFF8000000000000000
  %14 = fmul x86_fp80 0xK4003C800000000000000, %13
  store x86_fp80 %14, ptr getelementptr inbounds ([7 x x86_fp80], ptr @dx, i64 0, i64 6), align 16, !tbaa !9
  store x86_fp80 %14, ptr @dx, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %39, %0
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = icmp slt i32 %16, 6
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %42

19:                                               ; preds = %15
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sub nsw i32 10, %20
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [7 x i32], ptr @v, i64 0, i64 %23
  store i32 %21, ptr %24, align 4, !tbaa !5
  %25 = load i32, ptr @v, align 16, !tbaa !5
  %26 = sitofp i32 %25 to x86_fp80
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [7 x i32], ptr @v, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = sitofp i32 %30 to x86_fp80
  %32 = fdiv x86_fp80 %26, %31
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [7 x x86_fp80], ptr @r, i64 0, i64 %34
  store x86_fp80 %32, ptr %35, align 16, !tbaa !9
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [7 x x86_fp80], ptr @dx, i64 0, i64 %37
  store x86_fp80 0xK4002A000000000000000, ptr %38, align 16, !tbaa !9
  br label %39

39:                                               ; preds = %19
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %2, align 4, !tbaa !5
  br label %15, !llvm.loop !11

42:                                               ; preds = %18
  %43 = load x86_fp80, ptr @_ZL5sqrt2, align 16, !tbaa !9
  %44 = fmul x86_fp80 0xK4004C800000000000000, %43
  store x86_fp80 %44, ptr @dy, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #5
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  store x86_fp80 0xK3FFF8000000000000000, ptr %4, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %95, %42
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 100
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %98

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  %50 = load x86_fp80, ptr %3, align 16, !tbaa !9
  %51 = load x86_fp80, ptr %4, align 16, !tbaa !9
  %52 = load x86_fp80, ptr %3, align 16, !tbaa !9
  %53 = fsub x86_fp80 %51, %52
  %54 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %53, x86_fp80 0xK3FFE8000000000000000, x86_fp80 %50)
  store x86_fp80 %54, ptr %7, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  store x86_fp80 0xK00000000000000000000, ptr %8, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %83, %49
  %56 = load i32, ptr %9, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 7
  br i1 %57, label %59, label %58

58:                                               ; preds = %55
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %86

59:                                               ; preds = %55
  %60 = load i32, ptr %9, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [7 x x86_fp80], ptr @dx, i64 0, i64 %61
  %63 = load x86_fp80, ptr %62, align 16, !tbaa !9
  %64 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %65 = fmul x86_fp80 %63, %64
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [7 x x86_fp80], ptr @r, i64 0, i64 %67
  %69 = load x86_fp80, ptr %68, align 16, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [7 x x86_fp80], ptr @r, i64 0, i64 %71
  %73 = load x86_fp80, ptr %72, align 16, !tbaa !9
  %74 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %75 = load x86_fp80, ptr %7, align 16, !tbaa !9
  %76 = fmul x86_fp80 %74, %75
  %77 = fneg x86_fp80 %76
  %78 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %69, x86_fp80 %73, x86_fp80 %77)
  %79 = call x86_fp80 @sqrtl(x86_fp80 noundef %78) #5
  %80 = fdiv x86_fp80 %65, %79
  %81 = load x86_fp80, ptr %8, align 16, !tbaa !9
  %82 = fadd x86_fp80 %81, %80
  store x86_fp80 %82, ptr %8, align 16, !tbaa !9
  br label %83

83:                                               ; preds = %59
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %9, align 4, !tbaa !5
  br label %55, !llvm.loop !13

86:                                               ; preds = %58
  %87 = load x86_fp80, ptr %8, align 16, !tbaa !9
  %88 = load x86_fp80, ptr @dy, align 16, !tbaa !9
  %89 = fcmp olt x86_fp80 %87, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = load x86_fp80, ptr %7, align 16, !tbaa !9
  store x86_fp80 %91, ptr %3, align 16, !tbaa !9
  br label %94

92:                                               ; preds = %86
  %93 = load x86_fp80, ptr %7, align 16, !tbaa !9
  store x86_fp80 %93, ptr %4, align 16, !tbaa !9
  br label %94

94:                                               ; preds = %92, %90
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %5, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %5, align 4, !tbaa !5
  br label %45, !llvm.loop !14

98:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  store x86_fp80 0xK00000000000000000000, ptr %10, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %140, %98
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = icmp slt i32 %100, 7
  br i1 %101, label %103, label %102

102:                                              ; preds = %99
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %143

103:                                              ; preds = %99
  %104 = load i32, ptr %11, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [7 x x86_fp80], ptr @dx, i64 0, i64 %105
  %107 = load x86_fp80, ptr %106, align 16, !tbaa !9
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [7 x x86_fp80], ptr @r, i64 0, i64 %109
  %111 = load x86_fp80, ptr %110, align 16, !tbaa !9
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [7 x x86_fp80], ptr @r, i64 0, i64 %113
  %115 = load x86_fp80, ptr %114, align 16, !tbaa !9
  %116 = load x86_fp80, ptr %3, align 16, !tbaa !9
  %117 = load x86_fp80, ptr %3, align 16, !tbaa !9
  %118 = fmul x86_fp80 %116, %117
  %119 = fneg x86_fp80 %118
  %120 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %111, x86_fp80 %115, x86_fp80 %119)
  %121 = call x86_fp80 @sqrtl(x86_fp80 noundef %120) #5
  %122 = fdiv x86_fp80 %107, %121
  %123 = load i32, ptr @v, align 16, !tbaa !5
  %124 = sitofp i32 %123 to x86_fp80
  %125 = fmul x86_fp80 %122, %124
  %126 = load i32, ptr %11, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [7 x i32], ptr @v, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = sitofp i32 %129 to x86_fp80
  %131 = fdiv x86_fp80 %125, %130
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [7 x i32], ptr @v, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = sitofp i32 %135 to x86_fp80
  %137 = fdiv x86_fp80 %131, %136
  %138 = load x86_fp80, ptr %10, align 16, !tbaa !9
  %139 = fadd x86_fp80 %138, %137
  store x86_fp80 %139, ptr %10, align 16, !tbaa !9
  br label %140

140:                                              ; preds = %103
  %141 = load i32, ptr %11, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %11, align 4, !tbaa !5
  br label %99, !llvm.loop !15

143:                                              ; preds = %102
  %144 = load x86_fp80, ptr %10, align 16, !tbaa !9
  %145 = fptrunc x86_fp80 %144 to double
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %145)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  %147 = load i32, ptr %1, align 4
  ret i32 %147
}

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

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

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

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

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@_ZL5sqrt2 = external hidden local_unnamed_addr global x86_fp80, align 16
@v = external dso_local local_unnamed_addr global [7 x i32], align 16
@r = external dso_local local_unnamed_addr global [7 x x86_fp80], align 16
@dx = external dso_local local_unnamed_addr global [7 x x86_fp80], align 16
@dy = external dso_local local_unnamed_addr global x86_fp80, align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1

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

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  store i32 10, ptr getelementptr inbounds (i8, ptr @v, i64 24), align 8, !tbaa !5
  store x86_fp80 0xK3FFF8000000000000000, ptr getelementptr inbounds (i8, ptr @r, i64 96), align 16, !tbaa !9
  store x86_fp80 0xK3FFF8000000000000000, ptr @r, align 16, !tbaa !9
  %1 = load x86_fp80, ptr @_ZL5sqrt2, align 16, !tbaa !9
  %2 = fadd x86_fp80 %1, 0xKBFFF8000000000000000
  %3 = fmul x86_fp80 %2, 0xK4003C800000000000000
  store x86_fp80 %3, ptr getelementptr inbounds (i8, ptr @dx, i64 96), align 16, !tbaa !9
  store x86_fp80 %3, ptr @dx, align 16, !tbaa !9
  store x86_fp80 0xK3FFF8E38E38E38E38E39, ptr getelementptr inbounds (i8, ptr @r, i64 16), align 16, !tbaa !9
  store x86_fp80 0xK4002A000000000000000, ptr getelementptr inbounds (i8, ptr @dx, i64 16), align 16, !tbaa !9
  store x86_fp80 0xK3FFFA000000000000000, ptr getelementptr inbounds (i8, ptr @r, i64 32), align 16, !tbaa !9
  store x86_fp80 0xK4002A000000000000000, ptr getelementptr inbounds (i8, ptr @dx, i64 32), align 16, !tbaa !9
  store <4 x i32> <i32 10, i32 9, i32 8, i32 7>, ptr @v, align 16, !tbaa !5
  store x86_fp80 0xK3FFFB6DB6DB6DB6DB6DB, ptr getelementptr inbounds (i8, ptr @r, i64 48), align 16, !tbaa !9
  store x86_fp80 0xK4002A000000000000000, ptr getelementptr inbounds (i8, ptr @dx, i64 48), align 16, !tbaa !9
  store i32 6, ptr getelementptr inbounds (i8, ptr @v, i64 16), align 16, !tbaa !5
  store x86_fp80 0xK3FFFD555555555555555, ptr getelementptr inbounds (i8, ptr @r, i64 64), align 16, !tbaa !9
  store x86_fp80 0xK4002A000000000000000, ptr getelementptr inbounds (i8, ptr @dx, i64 64), align 16, !tbaa !9
  store i32 5, ptr getelementptr inbounds (i8, ptr @v, i64 20), align 4, !tbaa !5
  store x86_fp80 0xK40008000000000000000, ptr getelementptr inbounds (i8, ptr @r, i64 80), align 16, !tbaa !9
  store x86_fp80 0xK4002A000000000000000, ptr getelementptr inbounds (i8, ptr @dx, i64 80), align 16, !tbaa !9
  %4 = fmul x86_fp80 %1, 0xK4004C800000000000000
  store x86_fp80 %4, ptr @dy, align 16, !tbaa !9
  br label %98

.preheader:                                       ; preds = %98
  %5 = fneg x86_fp80 %..041
  %6 = fmul x86_fp80 %..041, %5
  %7 = load x86_fp80, ptr @dx, align 16, !tbaa !9
  %8 = load x86_fp80, ptr @r, align 16, !tbaa !9
  %9 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %8, x86_fp80 %8, x86_fp80 %6)
  %10 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %9) #4
  %11 = fdiv x86_fp80 %7, %10
  %12 = load i32, ptr @v, align 16, !tbaa !5
  %13 = sitofp i32 %12 to x86_fp80
  %14 = fmul x86_fp80 %11, %13
  %15 = fdiv x86_fp80 %14, %13
  %16 = fdiv x86_fp80 %15, %13
  %17 = fadd x86_fp80 %16, 0xK00000000000000000000
  %18 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 16), align 16, !tbaa !9
  %19 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 16), align 16, !tbaa !9
  %20 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %19, x86_fp80 %19, x86_fp80 %6)
  %21 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %20) #4
  %22 = fdiv x86_fp80 %18, %21
  %23 = load i32, ptr @v, align 16, !tbaa !5
  %24 = sitofp i32 %23 to x86_fp80
  %25 = fmul x86_fp80 %22, %24
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @v, i64 4), align 4, !tbaa !5
  %27 = sitofp i32 %26 to x86_fp80
  %28 = fdiv x86_fp80 %25, %27
  %29 = fdiv x86_fp80 %28, %27
  %30 = fadd x86_fp80 %17, %29
  %31 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 32), align 16, !tbaa !9
  %32 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 32), align 16, !tbaa !9
  %33 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %32, x86_fp80 %32, x86_fp80 %6)
  %34 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %33) #4
  %35 = fdiv x86_fp80 %31, %34
  %36 = load i32, ptr @v, align 16, !tbaa !5
  %37 = sitofp i32 %36 to x86_fp80
  %38 = fmul x86_fp80 %35, %37
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @v, i64 8), align 8, !tbaa !5
  %40 = sitofp i32 %39 to x86_fp80
  %41 = fdiv x86_fp80 %38, %40
  %42 = fdiv x86_fp80 %41, %40
  %43 = fadd x86_fp80 %30, %42
  %44 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 48), align 16, !tbaa !9
  %45 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 48), align 16, !tbaa !9
  %46 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %45, x86_fp80 %45, x86_fp80 %6)
  %47 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %46) #4
  %48 = fdiv x86_fp80 %44, %47
  %49 = load i32, ptr @v, align 16, !tbaa !5
  %50 = sitofp i32 %49 to x86_fp80
  %51 = fmul x86_fp80 %48, %50
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @v, i64 12), align 4, !tbaa !5
  %53 = sitofp i32 %52 to x86_fp80
  %54 = fdiv x86_fp80 %51, %53
  %55 = fdiv x86_fp80 %54, %53
  %56 = fadd x86_fp80 %43, %55
  %57 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 64), align 16, !tbaa !9
  %58 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 64), align 16, !tbaa !9
  %59 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %58, x86_fp80 %58, x86_fp80 %6)
  %60 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %59) #4
  %61 = fdiv x86_fp80 %57, %60
  %62 = load i32, ptr @v, align 16, !tbaa !5
  %63 = sitofp i32 %62 to x86_fp80
  %64 = fmul x86_fp80 %61, %63
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @v, i64 16), align 16, !tbaa !5
  %66 = sitofp i32 %65 to x86_fp80
  %67 = fdiv x86_fp80 %64, %66
  %68 = fdiv x86_fp80 %67, %66
  %69 = fadd x86_fp80 %56, %68
  %70 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 80), align 16, !tbaa !9
  %71 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 80), align 16, !tbaa !9
  %72 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %71, x86_fp80 %71, x86_fp80 %6)
  %73 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %72) #4
  %74 = fdiv x86_fp80 %70, %73
  %75 = load i32, ptr @v, align 16, !tbaa !5
  %76 = sitofp i32 %75 to x86_fp80
  %77 = fmul x86_fp80 %74, %76
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @v, i64 20), align 4, !tbaa !5
  %79 = sitofp i32 %78 to x86_fp80
  %80 = fdiv x86_fp80 %77, %79
  %81 = fdiv x86_fp80 %80, %79
  %82 = fadd x86_fp80 %69, %81
  %83 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 96), align 16, !tbaa !9
  %84 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 96), align 16, !tbaa !9
  %85 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %84, x86_fp80 %84, x86_fp80 %6)
  %86 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %85) #4
  %87 = fdiv x86_fp80 %83, %86
  %88 = load i32, ptr @v, align 16, !tbaa !5
  %89 = sitofp i32 %88 to x86_fp80
  %90 = fmul x86_fp80 %87, %89
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @v, i64 24), align 8, !tbaa !5
  %92 = sitofp i32 %91 to x86_fp80
  %93 = fdiv x86_fp80 %90, %92
  %94 = fdiv x86_fp80 %93, %92
  %95 = fadd x86_fp80 %82, %94
  %96 = fptrunc x86_fp80 %95 to double
  %97 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %96)
  ret i32 0

98:                                               ; preds = %0, %98
  %.04150 = phi x86_fp80 [ 0xK00000000000000000000, %0 ], [ %..041, %98 ]
  %.04249 = phi x86_fp80 [ 0xK3FFF8000000000000000, %0 ], [ %.042., %98 ]
  %.04448 = phi i32 [ 0, %0 ], [ %154, %98 ]
  %99 = fsub x86_fp80 %.04249, %.04150
  %100 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %99, x86_fp80 0xK3FFE8000000000000000, x86_fp80 %.04150)
  %101 = fneg x86_fp80 %100
  %102 = fmul x86_fp80 %100, %101
  %103 = load x86_fp80, ptr @dx, align 16, !tbaa !9
  %104 = fmul x86_fp80 %100, %103
  %105 = load x86_fp80, ptr @r, align 16, !tbaa !9
  %106 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %105, x86_fp80 %105, x86_fp80 %102)
  %107 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %106) #4
  %108 = fdiv x86_fp80 %104, %107
  %109 = fadd x86_fp80 %108, 0xK00000000000000000000
  %110 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 16), align 16, !tbaa !9
  %111 = fmul x86_fp80 %100, %110
  %112 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 16), align 16, !tbaa !9
  %113 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %112, x86_fp80 %112, x86_fp80 %102)
  %114 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %113) #4
  %115 = fdiv x86_fp80 %111, %114
  %116 = fadd x86_fp80 %109, %115
  %117 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 32), align 16, !tbaa !9
  %118 = fmul x86_fp80 %100, %117
  %119 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 32), align 16, !tbaa !9
  %120 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %119, x86_fp80 %119, x86_fp80 %102)
  %121 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %120) #4
  %122 = fdiv x86_fp80 %118, %121
  %123 = fadd x86_fp80 %116, %122
  %124 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 48), align 16, !tbaa !9
  %125 = fmul x86_fp80 %100, %124
  %126 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 48), align 16, !tbaa !9
  %127 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %126, x86_fp80 %126, x86_fp80 %102)
  %128 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %127) #4
  %129 = fdiv x86_fp80 %125, %128
  %130 = fadd x86_fp80 %123, %129
  %131 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 64), align 16, !tbaa !9
  %132 = fmul x86_fp80 %100, %131
  %133 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 64), align 16, !tbaa !9
  %134 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %133, x86_fp80 %133, x86_fp80 %102)
  %135 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %134) #4
  %136 = fdiv x86_fp80 %132, %135
  %137 = fadd x86_fp80 %130, %136
  %138 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 80), align 16, !tbaa !9
  %139 = fmul x86_fp80 %100, %138
  %140 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 80), align 16, !tbaa !9
  %141 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %140, x86_fp80 %140, x86_fp80 %102)
  %142 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %141) #4
  %143 = fdiv x86_fp80 %139, %142
  %144 = fadd x86_fp80 %137, %143
  %145 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @dx, i64 96), align 16, !tbaa !9
  %146 = fmul x86_fp80 %100, %145
  %147 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @r, i64 96), align 16, !tbaa !9
  %148 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %147, x86_fp80 %147, x86_fp80 %102)
  %149 = tail call x86_fp80 @sqrtl(x86_fp80 noundef %148) #4
  %150 = fdiv x86_fp80 %146, %149
  %151 = fadd x86_fp80 %144, %150
  %152 = load x86_fp80, ptr @dy, align 16, !tbaa !9
  %153 = fcmp olt x86_fp80 %151, %152
  %.042. = select i1 %153, x86_fp80 %.04249, x86_fp80 %100
  %..041 = select i1 %153, x86_fp80 %100, x86_fp80 %.04150
  %154 = add nuw nsw i32 %.04448, 1
  %exitcond.not = icmp eq i32 %154, 100
  br i1 %exitcond.not, label %.preheader, label %98, !llvm.loop !11
}

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

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

attributes #0 = { 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 #1 = { mustprogress nofree norecurse 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass