; LLVM IR from tfhe/spqlios-arithmetic :: spqlios (commons)

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

@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @abort() #0

; Function Attrs: nounwind uwtable
define dso_local void @internal_accurate_sincos(ptr noundef %0, ptr noundef %1, double noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i64, 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 i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store double %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %15 = load double, ptr %6, align 8, !tbaa !9
  %16 = fmul double 4.000000e+00, %15
  %17 = fdiv double %16, 0x400921FB54442D18
  store double %17, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %18 = load double, ptr %7, align 8, !tbaa !9
  %19 = call double @llvm.rint.f64(double %18)
  %20 = fptosi double %19 to i64
  %21 = and i64 %20, 7
  store i64 %21, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %22 = load double, ptr %7, align 8, !tbaa !9
  %23 = load i64, ptr %8, align 8, !tbaa !11
  %24 = sitofp i64 %23 to double
  %25 = fsub double %22, %24
  store double %25, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %26 = load double, ptr %9, align 8, !tbaa !9
  %27 = fmul double 0x400921FB54442D18, %26
  %28 = fdiv double %27, 4.000000e+00
  store double %28, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store double 1.000000e+00, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store double 0.000000e+00, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store double 1.000000e+00, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 0, ptr %14, align 8, !tbaa !11
  br label %29

29:                                               ; preds = %61, %3
  %30 = load double, ptr %13, align 8, !tbaa !9
  %31 = call double @llvm.fabs.f64(double %30)
  %32 = fcmp ogt double %31, 0x3BC79CA10C924223
  br i1 %32, label %33, label %62

33:                                               ; preds = %29
  %34 = load i64, ptr %14, align 8, !tbaa !11
  %35 = add nsw i64 %34, 1
  store i64 %35, ptr %14, align 8, !tbaa !11
  %36 = load double, ptr %13, align 8, !tbaa !9
  %37 = load double, ptr %10, align 8, !tbaa !9
  %38 = fmul double %36, %37
  %39 = load i64, ptr %14, align 8, !tbaa !11
  %40 = sitofp i64 %39 to double
  %41 = fdiv double %38, %40
  store double %41, ptr %13, align 8, !tbaa !9
  %42 = load i64, ptr %14, align 8, !tbaa !11
  %43 = and i64 %42, 3
  switch i64 %43, label %60 [
    i64 0, label %44
    i64 1, label %48
    i64 2, label %52
    i64 3, label %56
  ]

44:                                               ; preds = %33
  %45 = load double, ptr %13, align 8, !tbaa !9
  %46 = load double, ptr %11, align 8, !tbaa !9
  %47 = fadd double %46, %45
  store double %47, ptr %11, align 8, !tbaa !9
  br label %61

48:                                               ; preds = %33
  %49 = load double, ptr %13, align 8, !tbaa !9
  %50 = load double, ptr %12, align 8, !tbaa !9
  %51 = fadd double %50, %49
  store double %51, ptr %12, align 8, !tbaa !9
  br label %61

52:                                               ; preds = %33
  %53 = load double, ptr %13, align 8, !tbaa !9
  %54 = load double, ptr %11, align 8, !tbaa !9
  %55 = fsub double %54, %53
  store double %55, ptr %11, align 8, !tbaa !9
  br label %61

56:                                               ; preds = %33
  %57 = load double, ptr %13, align 8, !tbaa !9
  %58 = load double, ptr %12, align 8, !tbaa !9
  %59 = fsub double %58, %57
  store double %59, ptr %12, align 8, !tbaa !9
  br label %61

60:                                               ; preds = %33
  call void @abort() #7
  unreachable

61:                                               ; preds = %56, %52, %48, %44
  br label %29, !llvm.loop !13

62:                                               ; preds = %29
  %63 = load i64, ptr %8, align 8, !tbaa !11
  switch i64 %63, label %132 [
    i64 0, label %64
    i64 1, label %69
    i64 2, label %80
    i64 3, label %86
    i64 4, label %97
    i64 5, label %104
    i64 6, label %115
    i64 7, label %121
  ]

64:                                               ; preds = %62
  %65 = load double, ptr %11, align 8, !tbaa !9
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  store double %65, ptr %66, align 8, !tbaa !9
  %67 = load double, ptr %12, align 8, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  store double %67, ptr %68, align 8, !tbaa !9
  br label %133

69:                                               ; preds = %62
  %70 = load double, ptr %11, align 8, !tbaa !9
  %71 = load double, ptr %12, align 8, !tbaa !9
  %72 = fsub double %70, %71
  %73 = fmul double 0x3FE6A09E667F3BCD, %72
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  store double %73, ptr %74, align 8, !tbaa !9
  %75 = load double, ptr %11, align 8, !tbaa !9
  %76 = load double, ptr %12, align 8, !tbaa !9
  %77 = fadd double %75, %76
  %78 = fmul double 0x3FE6A09E667F3BCD, %77
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  store double %78, ptr %79, align 8, !tbaa !9
  br label %133

80:                                               ; preds = %62
  %81 = load double, ptr %12, align 8, !tbaa !9
  %82 = fneg double %81
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  store double %82, ptr %83, align 8, !tbaa !9
  %84 = load double, ptr %11, align 8, !tbaa !9
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  store double %84, ptr %85, align 8, !tbaa !9
  br label %133

86:                                               ; preds = %62
  %87 = load double, ptr %11, align 8, !tbaa !9
  %88 = load double, ptr %12, align 8, !tbaa !9
  %89 = fadd double %87, %88
  %90 = fmul double 0xBFE6A09E667F3BCD, %89
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  store double %90, ptr %91, align 8, !tbaa !9
  %92 = load double, ptr %11, align 8, !tbaa !9
  %93 = load double, ptr %12, align 8, !tbaa !9
  %94 = fsub double %92, %93
  %95 = fmul double 0x3FE6A09E667F3BCD, %94
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  store double %95, ptr %96, align 8, !tbaa !9
  br label %133

97:                                               ; preds = %62
  %98 = load double, ptr %11, align 8, !tbaa !9
  %99 = fneg double %98
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  store double %99, ptr %100, align 8, !tbaa !9
  %101 = load double, ptr %12, align 8, !tbaa !9
  %102 = fneg double %101
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  store double %102, ptr %103, align 8, !tbaa !9
  br label %133

104:                                              ; preds = %62
  %105 = load double, ptr %11, align 8, !tbaa !9
  %106 = load double, ptr %12, align 8, !tbaa !9
  %107 = fsub double %105, %106
  %108 = fmul double 0xBFE6A09E667F3BCD, %107
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  store double %108, ptr %109, align 8, !tbaa !9
  %110 = load double, ptr %11, align 8, !tbaa !9
  %111 = load double, ptr %12, align 8, !tbaa !9
  %112 = fadd double %110, %111
  %113 = fmul double 0xBFE6A09E667F3BCD, %112
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  store double %113, ptr %114, align 8, !tbaa !9
  br label %133

115:                                              ; preds = %62
  %116 = load double, ptr %12, align 8, !tbaa !9
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  store double %116, ptr %117, align 8, !tbaa !9
  %118 = load double, ptr %11, align 8, !tbaa !9
  %119 = fneg double %118
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  store double %119, ptr %120, align 8, !tbaa !9
  br label %133

121:                                              ; preds = %62
  %122 = load double, ptr %11, align 8, !tbaa !9
  %123 = load double, ptr %12, align 8, !tbaa !9
  %124 = fadd double %122, %123
  %125 = fmul double 0x3FE6A09E667F3BCD, %124
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  store double %125, ptr %126, align 8, !tbaa !9
  %127 = load double, ptr %11, align 8, !tbaa !9
  %128 = load double, ptr %12, align 8, !tbaa !9
  %129 = fsub double %127, %128
  %130 = fmul double 0xBFE6A09E667F3BCD, %129
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  store double %130, ptr %131, align 8, !tbaa !9
  br label %133

132:                                              ; preds = %62
  call void @abort() #7
  unreachable

133:                                              ; preds = %121, %115, %104, %97, %86, %80, %69, %64
  %134 = load double, ptr %6, align 8, !tbaa !9
  %135 = call double @cos(double noundef %134) #6
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = fsub double %135, %137
  %139 = call double @llvm.fabs.f64(double %138)
  %140 = fcmp ogt double %139, 1.000000e-10
  br i1 %140, label %149, label %141

141:                                              ; preds = %133
  %142 = load double, ptr %6, align 8, !tbaa !9
  %143 = call double @sin(double noundef %142) #6
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = load double, ptr %144, align 8, !tbaa !9
  %146 = fsub double %143, %145
  %147 = call double @llvm.fabs.f64(double %146)
  %148 = fcmp ogt double %147, 1.000000e-10
  br i1 %148, label %149, label %171

149:                                              ; preds = %141, %133
  %150 = load double, ptr %6, align 8, !tbaa !9
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = load double, ptr %151, align 8, !tbaa !9
  %153 = load double, ptr %6, align 8, !tbaa !9
  %154 = call double @cos(double noundef %153) #6
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %150, double noundef %152, double noundef %154)
  %156 = load double, ptr %6, align 8, !tbaa !9
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = load double, ptr %6, align 8, !tbaa !9
  %160 = call double @sin(double noundef %159) #6
  %161 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %156, double noundef %158, double noundef %160)
  %162 = load double, ptr %10, align 8, !tbaa !9
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %162)
  %164 = load double, ptr %11, align 8, !tbaa !9
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %164)
  %166 = load double, ptr %12, align 8, !tbaa !9
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %166)
  %168 = load i64, ptr %14, align 8, !tbaa !11
  %169 = trunc i64 %168 to i32
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %169)
  br label %171

171:                                              ; preds = %149, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  ret void
}

; 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 speculatable willreturn memory(none)
declare double @llvm.rint.f64(double) #3

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

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

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

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

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

attributes #0 = { noreturn 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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { "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 = { nounwind }
attributes #7 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"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"

@.str.2 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local void @internal_accurate_sincos(ptr nocapture noundef %0, ptr nocapture noundef %1, double noundef %2) local_unnamed_addr #0 {
  %4 = fmul double %2, 4.000000e+00
  %5 = fdiv double %4, 0x400921FB54442D18
  %6 = tail call double @llvm.rint.f64(double %5)
  %7 = fptosi double %6 to i64
  %8 = and i64 %7, 7
  %9 = uitofp nneg i64 %8 to double
  %10 = fsub double %5, %9
  %11 = fmul double %10, 0x400921FB54442D18
  %12 = fmul double %11, 2.500000e-01
  br label %13

13:                                               ; preds = %3, %27
  %.083 = phi i64 [ 0, %3 ], [ %14, %27 ]
  %.07382 = phi double [ 1.000000e+00, %3 ], [ %17, %27 ]
  %.07481 = phi double [ 0.000000e+00, %3 ], [ %.1, %27 ]
  %.07580 = phi double [ 1.000000e+00, %3 ], [ %.176, %27 ]
  %14 = add nuw nsw i64 %.083, 1
  %15 = fmul double %12, %.07382
  %16 = uitofp nneg i64 %14 to double
  %17 = fdiv double %15, %16
  %18 = and i64 %14, 3
  switch i64 %18, label %.unreachabledefault [
    i64 0, label %19
    i64 1, label %21
    i64 2, label %23
    i64 3, label %25
  ]

19:                                               ; preds = %13
  %20 = fadd double %.07580, %17
  br label %27

21:                                               ; preds = %13
  %22 = fadd double %.07481, %17
  br label %27

23:                                               ; preds = %13
  %24 = fsub double %.07580, %17
  br label %27

25:                                               ; preds = %13
  %26 = fsub double %.07481, %17
  br label %27

.unreachabledefault:                              ; preds = %13
  unreachable

default.unreachable85:                            ; preds = %30
  unreachable

27:                                               ; preds = %25, %23, %21, %19
  %.176 = phi double [ %.07580, %25 ], [ %24, %23 ], [ %.07580, %21 ], [ %20, %19 ]
  %.1 = phi double [ %26, %25 ], [ %.07481, %23 ], [ %22, %21 ], [ %.07481, %19 ]
  %28 = tail call double @llvm.fabs.f64(double %17)
  %29 = fcmp ogt double %28, 0x3BC79CA10C924223
  br i1 %29, label %13, label %30, !llvm.loop !5

30:                                               ; preds = %27
  switch i64 %8, label %default.unreachable85 [
    i64 0, label %31
    i64 1, label %32
    i64 2, label %37
    i64 3, label %39
    i64 4, label %44
    i64 5, label %47
    i64 6, label %52
    i64 7, label %54
  ]

31:                                               ; preds = %30
  store double %.176, ptr %0, align 8, !tbaa !7
  br label %59

32:                                               ; preds = %30
  %33 = fsub double %.176, %.1
  %34 = fmul double %33, 0x3FE6A09E667F3BCD
  store double %34, ptr %0, align 8, !tbaa !7
  %35 = fadd double %.176, %.1
  %36 = fmul double %35, 0x3FE6A09E667F3BCD
  br label %59

37:                                               ; preds = %30
  %38 = fneg double %.1
  store double %38, ptr %0, align 8, !tbaa !7
  br label %59

39:                                               ; preds = %30
  %40 = fadd double %.176, %.1
  %41 = fmul double %40, 0xBFE6A09E667F3BCD
  store double %41, ptr %0, align 8, !tbaa !7
  %42 = fsub double %.176, %.1
  %43 = fmul double %42, 0x3FE6A09E667F3BCD
  br label %59

44:                                               ; preds = %30
  %45 = fneg double %.176
  store double %45, ptr %0, align 8, !tbaa !7
  %46 = fneg double %.1
  br label %59

47:                                               ; preds = %30
  %48 = fsub double %.176, %.1
  %49 = fmul double %48, 0xBFE6A09E667F3BCD
  store double %49, ptr %0, align 8, !tbaa !7
  %50 = fadd double %.176, %.1
  %51 = fmul double %50, 0xBFE6A09E667F3BCD
  br label %59

52:                                               ; preds = %30
  store double %.1, ptr %0, align 8, !tbaa !7
  %53 = fneg double %.176
  br label %59

54:                                               ; preds = %30
  %55 = fadd double %.176, %.1
  %56 = fmul double %55, 0x3FE6A09E667F3BCD
  store double %56, ptr %0, align 8, !tbaa !7
  %57 = fsub double %.176, %.1
  %58 = fmul double %57, 0xBFE6A09E667F3BCD
  br label %59

59:                                               ; preds = %54, %52, %47, %44, %39, %37, %32, %31
  %.sink = phi double [ %58, %54 ], [ %53, %52 ], [ %51, %47 ], [ %46, %44 ], [ %43, %39 ], [ %.176, %37 ], [ %36, %32 ], [ %.1, %31 ]
  store double %.sink, ptr %1, align 8, !tbaa !7
  %60 = tail call double @cos(double noundef %2) #4
  %61 = load double, ptr %0, align 8, !tbaa !7
  %62 = fsub double %60, %61
  %63 = tail call double @llvm.fabs.f64(double %62)
  %64 = fcmp ogt double %63, 1.000000e-10
  br i1 %64, label %71, label %65

65:                                               ; preds = %59
  %66 = tail call double @sin(double noundef %2) #4
  %67 = load double, ptr %1, align 8, !tbaa !7
  %68 = fsub double %66, %67
  %69 = tail call double @llvm.fabs.f64(double %68)
  %70 = fcmp ogt double %69, 1.000000e-10
  br i1 %70, label %._crit_edge, label %83

._crit_edge:                                      ; preds = %65
  %.pre = load double, ptr %0, align 8, !tbaa !7
  br label %71

71:                                               ; preds = %._crit_edge, %59
  %72 = phi double [ %.pre, %._crit_edge ], [ %61, %59 ]
  %73 = tail call double @cos(double noundef %2) #4
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %2, double noundef %72, double noundef %73)
  %75 = load double, ptr %1, align 8, !tbaa !7
  %76 = tail call double @sin(double noundef %2) #4
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %2, double noundef %75, double noundef %76)
  %78 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %12)
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %.176)
  %80 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %.1)
  %81 = trunc i64 %14 to i32
  %82 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %81)
  br label %83

83:                                               ; preds = %71, %65
  ret void
}

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

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

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

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

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

attributes #0 = { nofree 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass