; LLVM IR from jpvt/Computer_Graphics :: Assignment #3/third_party/glm/test/gtx/gtx_fast_trigonometry.ll (ZN7fastCos4perfEb)

; 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 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7fastCos4perfEb(i1 noundef zeroext %0) #0 {
  %2 = alloca i8, align 1
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca i64, align 8
  %7 = alloca float, align 4
  %8 = alloca i64, align 8
  %9 = alloca float, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = zext i1 %0 to i8
  store i8 %13, ptr %2, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %14 = call noundef float @_ZN3glm2piIfEET_v()
  %15 = fneg float %14
  store float %15, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %16 = call noundef float @_ZN3glm2piIfEET_v()
  store float %16, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store float 0.000000e+00, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %17 = call i64 @clock() #6
  store i64 %17, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store float 0xC00921FB60000000, ptr %7, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %34, %1
  %19 = load float, ptr %7, align 4, !tbaa !9
  %20 = fcmp olt float %19, 0x400921FB60000000
  br i1 %20, label %22, label %21

21:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %36

22:                                               ; preds = %18
  %23 = load float, ptr %7, align 4, !tbaa !9
  %24 = call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef %23)
  store float %24, ptr %5, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %22
  %26 = load i8, ptr %2, align 1, !tbaa !5, !range !13, !noundef !14
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %31

28:                                               ; preds = %25
  %29 = load float, ptr %7, align 4, !tbaa !9
  %30 = call noundef float @_ZN3glm9nextFloatIfEET_S1_(float noundef %29)
  br label %34

31:                                               ; preds = %25
  %32 = load float, ptr %7, align 4, !tbaa !9
  %33 = fadd float %32, 0x3FB99999A0000000
  store float %33, ptr %7, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %31, %28
  %35 = phi float [ %30, %28 ], [ %33, %31 ]
  store float %35, ptr %7, align 4, !tbaa !9
  br label %18, !llvm.loop !15

36:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %37 = call i64 @clock() #6
  store i64 %37, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store float 0xC00921FB60000000, ptr %9, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %54, %36
  %39 = load float, ptr %9, align 4, !tbaa !9
  %40 = fcmp olt float %39, 0x400921FB60000000
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %56

42:                                               ; preds = %38
  %43 = load float, ptr %9, align 4, !tbaa !9
  %44 = call noundef float @_ZSt3cosf(float noundef %43)
  store float %44, ptr %5, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %42
  %46 = load i8, ptr %2, align 1, !tbaa !5, !range !13, !noundef !14
  %47 = trunc i8 %46 to i1
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = load float, ptr %9, align 4, !tbaa !9
  %50 = call noundef float @_ZN3glm9nextFloatIfEET_S1_(float noundef %49)
  br label %54

51:                                               ; preds = %45
  %52 = load float, ptr %9, align 4, !tbaa !9
  %53 = fadd float %52, 0x3FB99999A0000000
  store float %53, ptr %9, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %51, %48
  %55 = phi float [ %50, %48 ], [ %53, %51 ]
  store float %55, ptr %9, align 4, !tbaa !9
  br label %38, !llvm.loop !17

56:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %57 = call i64 @clock() #6
  store i64 %57, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %58 = load i64, ptr %8, align 8, !tbaa !11
  %59 = load i64, ptr %6, align 8, !tbaa !11
  %60 = sub nsw i64 %58, %59
  store i64 %60, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %61 = load i64, ptr %10, align 8, !tbaa !11
  %62 = load i64, ptr %8, align 8, !tbaa !11
  %63 = sub nsw i64 %61, %62
  store i64 %63, ptr %12, align 8, !tbaa !11
  %64 = load i64, ptr %11, align 8, !tbaa !11
  %65 = trunc i64 %64 to i32
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %65)
  %67 = load i64, ptr %12, align 8, !tbaa !11
  %68 = trunc i64 %67 to i32
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %68)
  %70 = load i64, ptr %11, align 8, !tbaa !11
  %71 = load i64, ptr %12, align 8, !tbaa !11
  %72 = icmp sle i64 %70, %71
  %73 = zext i1 %72 to i64
  %74 = select i1 %72, i32 0, i32 1
  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 %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret i32 %74
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm2piIfEET_v() #2

; Function Attrs: nounwind
declare i64 @clock() #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3glm9nextFloatIfEET_S1_(float noundef) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #2

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 #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 }

!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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN7fastCos4perfEb(i1 noundef zeroext %0) local_unnamed_addr #0 {
  %2 = tail call noundef float @_ZN3glm2piIfEET_v()
  %3 = tail call noundef float @_ZN3glm2piIfEET_v()
  %4 = tail call i64 @clock() #5
  br i1 %0, label %.split.us, label %.split20.us.thread

.split20.us.thread:                               ; preds = %1
  %5 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC00921FB60000000)
  %6 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC008552EA0000000)
  %7 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC0078861E0000000)
  %8 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC006BB9520000000)
  %9 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC005EEC860000000)
  %10 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC00521FBA0000000)
  %11 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC004552EE0000000)
  %12 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC003886220000000)
  %13 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC002BB9560000000)
  %14 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC001EEC8A0000000)
  %15 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC00121FBE0000000)
  %16 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xC000552F20000000)
  %17 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFFF10C4A0000000)
  %18 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFFD772B00000000)
  %19 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFFBDD9160000000)
  %20 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFFA43F7C0000000)
  %21 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFF8AA5E20000000)
  %22 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFF710C480000000)
  %23 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFF5772AE0000000)
  %24 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFF3DD9140000000)
  %25 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFF243F7A0000000)
  %26 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFF0AA5E00000000)
  %27 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFEE2188C0000000)
  %28 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFEAEE5580000000)
  %29 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFE7BB2240000000)
  %30 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFE487EF00000000)
  %31 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFE154BBC0000000)
  %32 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFDC431120000000)
  %33 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFD5DCAAC0000000)
  %34 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFCEEC88C0000000)
  %35 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFC21FBC00000000)
  %36 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0xBFA54BBCC0000000)
  %37 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FADE77680000000)
  %38 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FC446AA80000000)
  %39 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FD089BBA0000000)
  %40 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FD6F02200000000)
  %41 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FDD568860000000)
  %42 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FE1DE7760000000)
  %43 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FE511AAA0000000)
  %44 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FE844DDE0000000)
  %45 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FEB781120000000)
  %46 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FEEAB4460000000)
  %47 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FF0EF3BC0000000)
  %48 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FF288D560000000)
  %49 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FF4226F00000000)
  %50 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FF5BC08A0000000)
  %51 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FF755A240000000)
  %52 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FF8EF3BE0000000)
  %53 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FFA88D580000000)
  %54 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FFC226F20000000)
  %55 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FFDBC08C0000000)
  %56 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x3FFF55A260000000)
  %57 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4000779E00000000)
  %58 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4001446AC0000000)
  %59 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4002113780000000)
  %60 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4002DE0440000000)
  %61 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4003AAD100000000)
  %62 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4004779DC0000000)
  %63 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4005446A80000000)
  %64 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4006113740000000)
  %65 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4006DE0400000000)
  %66 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4007AAD0C0000000)
  %67 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef 0x4008779D80000000)
  %68 = tail call i64 @clock() #5
  br label %.split22.preheader

.split.us:                                        ; preds = %1, %.split.us
  %.018.us = phi float [ %70, %.split.us ], [ 0xC00921FB60000000, %1 ]
  %69 = tail call noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef %.018.us)
  %70 = tail call noundef float @_ZN3glm9nextFloatIfEET_S1_(float noundef %.018.us)
  %71 = fcmp olt float %70, 0x400921FB60000000
  br i1 %71, label %.split.us, label %.split20.us, !llvm.loop !5

.split20.us:                                      ; preds = %.split.us
  %72 = tail call i64 @clock() #5
  br i1 %0, label %.split22.us, label %.split22.preheader

.split22.preheader:                               ; preds = %.split20.us.thread, %.split20.us
  %73 = phi i64 [ %68, %.split20.us.thread ], [ %72, %.split20.us ]
  %74 = tail call noundef float @_ZSt3cosf(float noundef 0xC00921FB60000000)
  %75 = tail call noundef float @_ZSt3cosf(float noundef 0xC008552EA0000000)
  %76 = tail call noundef float @_ZSt3cosf(float noundef 0xC0078861E0000000)
  %77 = tail call noundef float @_ZSt3cosf(float noundef 0xC006BB9520000000)
  %78 = tail call noundef float @_ZSt3cosf(float noundef 0xC005EEC860000000)
  %79 = tail call noundef float @_ZSt3cosf(float noundef 0xC00521FBA0000000)
  %80 = tail call noundef float @_ZSt3cosf(float noundef 0xC004552EE0000000)
  %81 = tail call noundef float @_ZSt3cosf(float noundef 0xC003886220000000)
  %82 = tail call noundef float @_ZSt3cosf(float noundef 0xC002BB9560000000)
  %83 = tail call noundef float @_ZSt3cosf(float noundef 0xC001EEC8A0000000)
  %84 = tail call noundef float @_ZSt3cosf(float noundef 0xC00121FBE0000000)
  %85 = tail call noundef float @_ZSt3cosf(float noundef 0xC000552F20000000)
  %86 = tail call noundef float @_ZSt3cosf(float noundef 0xBFFF10C4A0000000)
  %87 = tail call noundef float @_ZSt3cosf(float noundef 0xBFFD772B00000000)
  %88 = tail call noundef float @_ZSt3cosf(float noundef 0xBFFBDD9160000000)
  %89 = tail call noundef float @_ZSt3cosf(float noundef 0xBFFA43F7C0000000)
  %90 = tail call noundef float @_ZSt3cosf(float noundef 0xBFF8AA5E20000000)
  %91 = tail call noundef float @_ZSt3cosf(float noundef 0xBFF710C480000000)
  %92 = tail call noundef float @_ZSt3cosf(float noundef 0xBFF5772AE0000000)
  %93 = tail call noundef float @_ZSt3cosf(float noundef 0xBFF3DD9140000000)
  %94 = tail call noundef float @_ZSt3cosf(float noundef 0xBFF243F7A0000000)
  %95 = tail call noundef float @_ZSt3cosf(float noundef 0xBFF0AA5E00000000)
  %96 = tail call noundef float @_ZSt3cosf(float noundef 0xBFEE2188C0000000)
  %97 = tail call noundef float @_ZSt3cosf(float noundef 0xBFEAEE5580000000)
  %98 = tail call noundef float @_ZSt3cosf(float noundef 0xBFE7BB2240000000)
  %99 = tail call noundef float @_ZSt3cosf(float noundef 0xBFE487EF00000000)
  %100 = tail call noundef float @_ZSt3cosf(float noundef 0xBFE154BBC0000000)
  %101 = tail call noundef float @_ZSt3cosf(float noundef 0xBFDC431120000000)
  %102 = tail call noundef float @_ZSt3cosf(float noundef 0xBFD5DCAAC0000000)
  %103 = tail call noundef float @_ZSt3cosf(float noundef 0xBFCEEC88C0000000)
  %104 = tail call noundef float @_ZSt3cosf(float noundef 0xBFC21FBC00000000)
  %105 = tail call noundef float @_ZSt3cosf(float noundef 0xBFA54BBCC0000000)
  %106 = tail call noundef float @_ZSt3cosf(float noundef 0x3FADE77680000000)
  %107 = tail call noundef float @_ZSt3cosf(float noundef 0x3FC446AA80000000)
  %108 = tail call noundef float @_ZSt3cosf(float noundef 0x3FD089BBA0000000)
  %109 = tail call noundef float @_ZSt3cosf(float noundef 0x3FD6F02200000000)
  %110 = tail call noundef float @_ZSt3cosf(float noundef 0x3FDD568860000000)
  %111 = tail call noundef float @_ZSt3cosf(float noundef 0x3FE1DE7760000000)
  %112 = tail call noundef float @_ZSt3cosf(float noundef 0x3FE511AAA0000000)
  %113 = tail call noundef float @_ZSt3cosf(float noundef 0x3FE844DDE0000000)
  %114 = tail call noundef float @_ZSt3cosf(float noundef 0x3FEB781120000000)
  %115 = tail call noundef float @_ZSt3cosf(float noundef 0x3FEEAB4460000000)
  %116 = tail call noundef float @_ZSt3cosf(float noundef 0x3FF0EF3BC0000000)
  %117 = tail call noundef float @_ZSt3cosf(float noundef 0x3FF288D560000000)
  %118 = tail call noundef float @_ZSt3cosf(float noundef 0x3FF4226F00000000)
  %119 = tail call noundef float @_ZSt3cosf(float noundef 0x3FF5BC08A0000000)
  %120 = tail call noundef float @_ZSt3cosf(float noundef 0x3FF755A240000000)
  %121 = tail call noundef float @_ZSt3cosf(float noundef 0x3FF8EF3BE0000000)
  %122 = tail call noundef float @_ZSt3cosf(float noundef 0x3FFA88D580000000)
  %123 = tail call noundef float @_ZSt3cosf(float noundef 0x3FFC226F20000000)
  %124 = tail call noundef float @_ZSt3cosf(float noundef 0x3FFDBC08C0000000)
  %125 = tail call noundef float @_ZSt3cosf(float noundef 0x3FFF55A260000000)
  %126 = tail call noundef float @_ZSt3cosf(float noundef 0x4000779E00000000)
  %127 = tail call noundef float @_ZSt3cosf(float noundef 0x4001446AC0000000)
  %128 = tail call noundef float @_ZSt3cosf(float noundef 0x4002113780000000)
  %129 = tail call noundef float @_ZSt3cosf(float noundef 0x4002DE0440000000)
  %130 = tail call noundef float @_ZSt3cosf(float noundef 0x4003AAD100000000)
  %131 = tail call noundef float @_ZSt3cosf(float noundef 0x4004779DC0000000)
  %132 = tail call noundef float @_ZSt3cosf(float noundef 0x4005446A80000000)
  %133 = tail call noundef float @_ZSt3cosf(float noundef 0x4006113740000000)
  %134 = tail call noundef float @_ZSt3cosf(float noundef 0x4006DE0400000000)
  %135 = tail call noundef float @_ZSt3cosf(float noundef 0x4007AAD0C0000000)
  %136 = tail call noundef float @_ZSt3cosf(float noundef 0x4008779D80000000)
  br label %.split24.us

.split22.us:                                      ; preds = %.split20.us, %.split22.us
  %.01721.us = phi float [ %138, %.split22.us ], [ 0xC00921FB60000000, %.split20.us ]
  %137 = tail call noundef float @_ZSt3cosf(float noundef %.01721.us)
  %138 = tail call noundef float @_ZN3glm9nextFloatIfEET_S1_(float noundef %.01721.us)
  %139 = fcmp olt float %138, 0x400921FB60000000
  br i1 %139, label %.split22.us, label %.split24.us, !llvm.loop !7

.split24.us:                                      ; preds = %.split22.us, %.split22.preheader
  %140 = phi i64 [ %73, %.split22.preheader ], [ %72, %.split22.us ]
  %141 = tail call i64 @clock() #5
  %142 = sub nsw i64 %140, %4
  %143 = sub nsw i64 %141, %140
  %144 = trunc i64 %142 to i32
  %145 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %144)
  %146 = trunc i64 %143 to i32
  %147 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %146)
  %.not = icmp sgt i64 %142, %143
  %148 = zext i1 %.not to i32
  ret i32 %148
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3glm2piIfEET_v() local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3glm7fastCosIfEET_S1_(float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZN3glm9nextFloatIfEET_S1_(float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #1

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

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 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass