; LLVM IR from sp-nitech/SPTK :: third_party/REAPER/core/track.ll (ZN4sptk6reaper5Track16SetCombinedTrackERKS1_S3_)

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

@stderr = external global ptr, align 8
@.str.24 = external hidden unnamed_addr constant [40 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4sptk6reaper5Track12num_channelsEv(ptr noundef nonnull align 8 dereferenceable(72)) #1 align 2

; 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk6reaper5Track6resizeEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4sptk6reaper5Track5set_vEib(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk6reaper5Track16SetCombinedTrackERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(72) %2) #4 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %16)
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %18)
  %20 = icmp ne i32 %17, %19
  br i1 %20, label %21, label %28

21:                                               ; preds = %3
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %23)
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %25)
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.24, i32 noundef %24, i32 noundef %26) #5
  store i1 false, ptr %4, align 1
  br label %95

28:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %29)
  store i32 %30, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call noundef i32 @_ZNK4sptk6reaper5Track12num_channelsEv(ptr noundef nonnull align 8 dereferenceable(72) %31)
  store i32 %32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = call noundef i32 @_ZNK4sptk6reaper5Track12num_channelsEv(ptr noundef nonnull align 8 dereferenceable(72) %33)
  store i32 %34, ptr %10, align 4, !tbaa !9
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = add nsw i32 %36, %37
  call void @_ZN4sptk6reaper5Track6resizeEii(ptr noundef nonnull align 8 dereferenceable(72) %15, i32 noundef %35, i32 noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %91, %28
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %94

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %58, %44
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %61

50:                                               ; preds = %45
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = call noundef float @_ZNK4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %51, i32 noundef %52, i32 noundef %53)
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %15, i32 noundef %55, i32 noundef %56)
  store float %54, ptr %57, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %50
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %13, align 4, !tbaa !9
  br label %45, !llvm.loop !13

61:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %77, %61
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = load i32, ptr %10, align 4, !tbaa !9
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %80

67:                                               ; preds = %62
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = call noundef float @_ZNK4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %68, i32 noundef %69, i32 noundef %70)
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = add nsw i32 %73, %74
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %15, i32 noundef %72, i32 noundef %75)
  store float %71, ptr %76, align 4, !tbaa !11
  br label %77

77:                                               ; preds = %67
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %14, align 4, !tbaa !9
  br label %62, !llvm.loop !15

80:                                               ; preds = %66
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %82, i32 noundef %83)
  br i1 %84, label %85, label %89

85:                                               ; preds = %80
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %86, i32 noundef %87)
  br label %89

89:                                               ; preds = %85, %80
  %90 = phi i1 [ false, %80 ], [ %88, %85 ]
  call void @_ZN4sptk6reaper5Track5set_vEib(ptr noundef nonnull align 8 dereferenceable(72) %15, i32 noundef %81, i1 noundef zeroext %90)
  br label %91

91:                                               ; preds = %89
  %92 = load i32, ptr %11, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %11, align 4, !tbaa !9
  br label %39, !llvm.loop !16

94:                                               ; preds = %43
  store i1 true, ptr %4, align 1
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %95

95:                                               ; preds = %94, %21
  %96 = load i1, ptr %4, align 1
  ret i1 %96
}

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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.24 = external hidden unnamed_addr constant [40 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4sptk6reaper5Track12num_channelsEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4sptk6reaper5Track6resizeEii(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4sptk6reaper5Track5set_vEib(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk6reaper5Track16SetCombinedTrackERKS1_S3_(ptr noundef nonnull align 8 dereferenceable(72) %0, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(72) %2) local_unnamed_addr #3 align 2 {
  %4 = tail call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %1)
  %5 = tail call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %.not = icmp eq i32 %4, %5
  br i1 %.not, label %11, label %6

6:                                                ; preds = %3
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = tail call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %1)
  %9 = tail call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.24, i32 noundef %8, i32 noundef %9) #4
  br label %.loopexit

11:                                               ; preds = %3
  %12 = tail call noundef i32 @_ZNK4sptk6reaper5Track10num_framesEv(ptr noundef nonnull align 8 dereferenceable(72) %1)
  %13 = tail call noundef i32 @_ZNK4sptk6reaper5Track12num_channelsEv(ptr noundef nonnull align 8 dereferenceable(72) %1)
  %14 = tail call noundef i32 @_ZNK4sptk6reaper5Track12num_channelsEv(ptr noundef nonnull align 8 dereferenceable(72) %2)
  %15 = add nsw i32 %14, %13
  tail call void @_ZN4sptk6reaper5Track6resizeEii(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %12, i32 noundef %15)
  %16 = icmp sgt i32 %12, 0
  br i1 %16, label %.preheader40.lr.ph, label %.loopexit

.preheader40.lr.ph:                               ; preds = %11
  %17 = icmp sgt i32 %13, 0
  %18 = icmp sgt i32 %14, 0
  br i1 %18, label %.preheader40.lr.ph.split.us, label %.preheader40.lr.ph.split

.preheader40.lr.ph.split.us:                      ; preds = %.preheader40.lr.ph
  br i1 %17, label %.preheader40.us.us, label %.preheader40.us

.preheader40.us.us:                               ; preds = %.preheader40.lr.ph.split.us, %21
  %.03744.us.us = phi i32 [ %23, %21 ], [ 0, %.preheader40.lr.ph.split.us ]
  br label %28

19:                                               ; preds = %._crit_edge.us.us
  %20 = tail call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %2, i32 noundef %.03744.us.us)
  br label %21

21:                                               ; preds = %._crit_edge.us.us, %19
  %22 = phi i1 [ false, %._crit_edge.us.us ], [ %20, %19 ]
  tail call void @_ZN4sptk6reaper5Track5set_vEib(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.03744.us.us, i1 noundef zeroext %22)
  %23 = add nuw nsw i32 %.03744.us.us, 1
  %exitcond60.not = icmp eq i32 %23, %12
  br i1 %exitcond60.not, label %.loopexit, label %.preheader40.us.us, !llvm.loop !9

..preheader_crit_edge.us.us:                      ; preds = %28, %..preheader_crit_edge.us.us
  %.042.us.us = phi i32 [ %27, %..preheader_crit_edge.us.us ], [ 0, %28 ]
  %24 = tail call noundef float @_ZNK4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %2, i32 noundef %.03744.us.us, i32 noundef %.042.us.us)
  %25 = add nuw nsw i32 %.042.us.us, %13
  %26 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.03744.us.us, i32 noundef %25)
  store float %24, ptr %26, align 4, !tbaa !11
  %27 = add nuw nsw i32 %.042.us.us, 1
  %exitcond59.not = icmp eq i32 %27, %14
  br i1 %exitcond59.not, label %._crit_edge.us.us, label %..preheader_crit_edge.us.us, !llvm.loop !13

28:                                               ; preds = %.preheader40.us.us, %28
  %.03641.us.us = phi i32 [ 0, %.preheader40.us.us ], [ %31, %28 ]
  %29 = tail call noundef float @_ZNK4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %1, i32 noundef %.03744.us.us, i32 noundef %.03641.us.us)
  %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.03744.us.us, i32 noundef %.03641.us.us)
  store float %29, ptr %30, align 4, !tbaa !11
  %31 = add nuw nsw i32 %.03641.us.us, 1
  %exitcond58.not = icmp eq i32 %31, %13
  br i1 %exitcond58.not, label %..preheader_crit_edge.us.us, label %28, !llvm.loop !14

._crit_edge.us.us:                                ; preds = %..preheader_crit_edge.us.us
  %32 = tail call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %1, i32 noundef %.03744.us.us)
  br i1 %32, label %19, label %21

.preheader40.us:                                  ; preds = %.preheader40.lr.ph.split.us, %35
  %.03744.us = phi i32 [ %37, %35 ], [ 0, %.preheader40.lr.ph.split.us ]
  br label %38

33:                                               ; preds = %._crit_edge.us
  %34 = tail call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %2, i32 noundef %.03744.us)
  br label %35

35:                                               ; preds = %33, %._crit_edge.us
  %36 = phi i1 [ false, %._crit_edge.us ], [ %34, %33 ]
  tail call void @_ZN4sptk6reaper5Track5set_vEib(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.03744.us, i1 noundef zeroext %36)
  %37 = add nuw nsw i32 %.03744.us, 1
  %exitcond57.not = icmp eq i32 %37, %12
  br i1 %exitcond57.not, label %.loopexit, label %.preheader40.us, !llvm.loop !9

38:                                               ; preds = %.preheader40.us, %38
  %.042.us = phi i32 [ 0, %.preheader40.us ], [ %42, %38 ]
  %39 = tail call noundef float @_ZNK4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %2, i32 noundef %.03744.us, i32 noundef %.042.us)
  %40 = add nsw i32 %.042.us, %13
  %41 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.03744.us, i32 noundef %40)
  store float %39, ptr %41, align 4, !tbaa !11
  %42 = add nuw nsw i32 %.042.us, 1
  %exitcond56.not = icmp eq i32 %42, %14
  br i1 %exitcond56.not, label %._crit_edge.us, label %38, !llvm.loop !13

._crit_edge.us:                                   ; preds = %38
  %43 = tail call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %1, i32 noundef %.03744.us)
  br i1 %43, label %33, label %35

.preheader40.lr.ph.split:                         ; preds = %.preheader40.lr.ph
  br i1 %17, label %.preheader40.us45, label %.preheader40

.preheader40.us45:                                ; preds = %.preheader40.lr.ph.split, %46
  %.03744.us46 = phi i32 [ %48, %46 ], [ 0, %.preheader40.lr.ph.split ]
  br label %49

44:                                               ; preds = %..preheader_crit_edge.us50
  %45 = tail call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %2, i32 noundef %.03744.us46)
  br label %46

46:                                               ; preds = %..preheader_crit_edge.us50, %44
  %47 = phi i1 [ false, %..preheader_crit_edge.us50 ], [ %45, %44 ]
  tail call void @_ZN4sptk6reaper5Track5set_vEib(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.03744.us46, i1 noundef zeroext %47)
  %48 = add nuw nsw i32 %.03744.us46, 1
  %exitcond55.not = icmp eq i32 %48, %12
  br i1 %exitcond55.not, label %.loopexit, label %.preheader40.us45, !llvm.loop !9

49:                                               ; preds = %.preheader40.us45, %49
  %.03641.us47 = phi i32 [ 0, %.preheader40.us45 ], [ %52, %49 ]
  %50 = tail call noundef float @_ZNK4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %1, i32 noundef %.03744.us46, i32 noundef %.03641.us47)
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4sptk6reaper5Track1aEii(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.03744.us46, i32 noundef %.03641.us47)
  store float %50, ptr %51, align 4, !tbaa !11
  %52 = add nuw nsw i32 %.03641.us47, 1
  %exitcond54.not = icmp eq i32 %52, %13
  br i1 %exitcond54.not, label %..preheader_crit_edge.us50, label %49, !llvm.loop !14

..preheader_crit_edge.us50:                       ; preds = %49
  %53 = tail call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %1, i32 noundef %.03744.us46)
  br i1 %53, label %44, label %46

.preheader40:                                     ; preds = %.preheader40.lr.ph.split, %57
  %.03744 = phi i32 [ %59, %57 ], [ 0, %.preheader40.lr.ph.split ]
  %54 = tail call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %1, i32 noundef %.03744)
  br i1 %54, label %55, label %57

55:                                               ; preds = %.preheader40
  %56 = tail call noundef zeroext i1 @_ZNK4sptk6reaper5Track1vEi(ptr noundef nonnull align 8 dereferenceable(72) %2, i32 noundef %.03744)
  br label %57

57:                                               ; preds = %55, %.preheader40
  %58 = phi i1 [ false, %.preheader40 ], [ %56, %55 ]
  tail call void @_ZN4sptk6reaper5Track5set_vEib(ptr noundef nonnull align 8 dereferenceable(72) %0, i32 noundef %.03744, i1 noundef zeroext %58)
  %59 = add nuw nsw i32 %.03744, 1
  %exitcond.not = icmp eq i32 %59, %12
  br i1 %exitcond.not, label %.loopexit, label %.preheader40, !llvm.loop !9

.loopexit:                                        ; preds = %57, %46, %35, %21, %11, %6
  ret i1 %.not
}

attributes #0 = { 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 #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 = { 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 #3 = { 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 = { cold 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++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


; Effective O3 passes: GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass