; LLVM IR from aap/librw :: src/hanim.ll (ZN2rw14HAnimHierarchy14updateMatricesEv)

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

%"struct.rw::Matrix" = type { %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32 }
%"struct.rw::V3d" = type { float, float, float }
%"struct.rw::HAnimHierarchy" = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.rw::AnimInterpolator" = type { ptr, float, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr }
%"struct.rw::HAnimNodeInfo" = type { i32, i32, i32, ptr }

@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN2rw14HAnimHierarchy14updateMatricesEv = external hidden unnamed_addr constant [42 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw14HAnimHierarchy14updateMatricesEv(ptr noundef nonnull align 8 dereferenceable(56) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.rw::Matrix", align 4
  %4 = alloca %"struct.rw::Matrix", align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [64 x ptr], align 16
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 512, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %15 = getelementptr inbounds %"struct.rw::HAnimHierarchy", ptr %14, i32 0, i32 7
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  store ptr %16, ptr %12, align 8, !tbaa !5
  %17 = getelementptr inbounds [64 x ptr], ptr %8, i64 0, i64 0
  store ptr %17, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.rw::HAnimHierarchy", ptr %14, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  store ptr %19, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.rw::HAnimHierarchy", ptr %14, i32 0, i32 5
  %21 = load ptr, ptr %20, align 8, !tbaa !13
  store ptr %21, ptr %9, align 8, !tbaa !5
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %36

24:                                               ; preds = %1
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNK2rw5Frame9getParentEv(ptr noundef nonnull align 8 dereferenceable(200) %25)
  store ptr %26, ptr %10, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %36

28:                                               ; preds = %24
  %29 = getelementptr inbounds %"struct.rw::HAnimHierarchy", ptr %14, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !14
  %31 = and i32 %30, 16384
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %36, label %33

33:                                               ; preds = %28
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = call noundef ptr @_ZN2rw5Frame6getLTMEv(ptr noundef nonnull align 8 dereferenceable(200) %34)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %35, i64 64, i1 false), !tbaa.struct !15
  br label %37

36:                                               ; preds = %28, %24, %1
  call void @_ZN2rw6Matrix11setIdentityEv(ptr noundef nonnull align 4 dereferenceable(64) %3)
  br label %37

37:                                               ; preds = %36, %33
  store ptr %3, ptr %6, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds ptr, ptr %39, i32 1
  store ptr %40, ptr %7, align 8, !tbaa !5
  store ptr %38, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %41 = getelementptr inbounds %"struct.rw::HAnimHierarchy", ptr %14, i32 0, i32 4
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  store ptr %42, ptr %13, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !18
  br label %43

43:                                               ; preds = %97, %37
  %44 = load i32, ptr %11, align 4, !tbaa !18
  %45 = getelementptr inbounds %"struct.rw::HAnimHierarchy", ptr %14, i32 0, i32 1
  %46 = load i32, ptr %45, align 4, !tbaa !20
  %47 = icmp slt i32 %44, %46
  br i1 %47, label %48, label %100

48:                                               ; preds = %43
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.rw::AnimInterpolator", ptr %49, i32 0, i32 7
  %51 = load ptr, ptr %50, align 8, !tbaa !21
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = load i32, ptr %11, align 4, !tbaa !18
  %54 = call noundef ptr @_ZN2rw16AnimInterpolator14getInterpFrameEi(ptr noundef nonnull align 8 dereferenceable(72) %52, i32 noundef %53)
  call void %51(ptr noundef %4, ptr noundef %54)
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = call noundef ptr @_ZN2rw6Matrix4multEPS0_PKS0_S3_(ptr noundef %55, ptr noundef %4, ptr noundef %56)
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.rw::HAnimNodeInfo", ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 8, !tbaa !23
  %61 = and i32 %60, 2
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %67

63:                                               ; preds = %48
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds ptr, ptr %65, i32 1
  store ptr %66, ptr %7, align 8, !tbaa !5
  store ptr %64, ptr %65, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %63, %48
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %68, ptr %6, align 8, !tbaa !5
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.rw::HAnimNodeInfo", ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 8, !tbaa !23
  %72 = and i32 %71, 1
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %78

74:                                               ; preds = %67
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds ptr, ptr %75, i32 -1
  store ptr %76, ptr %7, align 8, !tbaa !5
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  store ptr %77, ptr %6, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %74, %67
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds [64 x ptr], ptr %8, i64 0, i64 0
  %81 = icmp uge ptr %79, %80
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  br label %85

83:                                               ; preds = %78
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 188, ptr noundef @__PRETTY_FUNCTION__._ZN2rw14HAnimHierarchy14updateMatricesEv) #7
  unreachable

84:                                               ; No predecessors!
  br label %85

85:                                               ; preds = %84, %82
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds [64 x ptr], ptr %8, i64 0, i64 64
  %88 = icmp ule ptr %86, %87
  br i1 %88, label %89, label %90

89:                                               ; preds = %85
  br label %92

90:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 189, ptr noundef @__PRETTY_FUNCTION__._ZN2rw14HAnimHierarchy14updateMatricesEv) #7
  unreachable

91:                                               ; No predecessors!
  br label %92

92:                                               ; preds = %91, %89
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.rw::HAnimNodeInfo", ptr %93, i32 1
  store ptr %94, ptr %13, align 8, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.rw::Matrix", ptr %95, i32 1
  store ptr %96, ptr %5, align 8, !tbaa !5
  br label %97

97:                                               ; preds = %92
  %98 = load i32, ptr %11, align 4, !tbaa !18
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %11, align 4, !tbaa !18
  br label %43, !llvm.loop !25

100:                                              ; preds = %43
  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 4, 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 512, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2rw5Frame9getParentEv(ptr noundef nonnull align 8 dereferenceable(200)) #2 align 2

declare noundef ptr @_ZN2rw5Frame6getLTMEv(ptr noundef nonnull align 8 dereferenceable(200)) #3

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

declare void @_ZN2rw6Matrix11setIdentityEv(ptr noundef nonnull align 4 dereferenceable(64)) #3

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

declare noundef ptr @_ZN2rw6Matrix4multEPS0_PKS0_S3_(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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++ TBAA"}
!9 = !{!10, !6, i64 48}
!10 = !{!"_ZTSN2rw14HAnimHierarchyE", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 32}
!14 = !{!10, !11, i64 0}
!15 = !{i64 0, i64 4, !16, i64 4, i64 4, !16, i64 8, i64 4, !16, i64 12, i64 4, !18, i64 16, i64 4, !16, i64 20, i64 4, !16, i64 24, i64 4, !16, i64 28, i64 4, !18, i64 32, i64 4, !16, i64 36, i64 4, !16, i64 40, i64 4, !16, i64 44, i64 4, !18, i64 48, i64 4, !16, i64 52, i64 4, !16, i64 56, i64 4, !16, i64 60, i64 4, !18}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!11, !11, i64 0}
!19 = !{!10, !6, i64 24}
!20 = !{!10, !11, i64 4}
!21 = !{!22, !6, i64 40}
!22 = !{!"_ZTSN2rw16AnimInterpolatorE", !6, i64 0, !17, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!23 = !{!24, !11, i64 8}
!24 = !{!"_ZTSN2rw13HAnimNodeInfoE", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"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"

%"struct.rw::Matrix" = type { %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32 }
%"struct.rw::V3d" = type { float, float, float }

@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__._ZN2rw14HAnimHierarchy14updateMatricesEv = external hidden unnamed_addr constant [42 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw14HAnimHierarchy14updateMatricesEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(56) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"struct.rw::Matrix", align 4
  %3 = alloca %"struct.rw::Matrix", align 4
  %4 = alloca [64 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %4) #6
  %5 = getelementptr inbounds i8, ptr %0, i64 48
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %18, label %11

11:                                               ; preds = %1
  %12 = tail call noundef ptr @_ZNK2rw5Frame9getParentEv(ptr noundef nonnull align 8 dereferenceable(200) %10)
  %.not30 = icmp eq ptr %12, null
  br i1 %.not30, label %18, label %13

13:                                               ; preds = %11
  %14 = load i32, ptr %0, align 8, !tbaa !13
  %15 = and i32 %14, 16384
  %.not31 = icmp eq i32 %15, 0
  br i1 %.not31, label %16, label %18

16:                                               ; preds = %13
  %17 = tail call noundef ptr @_ZN2rw5Frame6getLTMEv(ptr noundef nonnull align 8 dereferenceable(200) %12)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(64) %17, i64 64, i1 false), !tbaa.struct !14
  br label %19

18:                                               ; preds = %13, %11, %1
  call void @_ZN2rw6Matrix11setIdentityEv(ptr noundef nonnull align 4 dereferenceable(64) %2)
  br label %19

19:                                               ; preds = %18, %16
  store ptr %2, ptr %4, align 16, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %0, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !19
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19
  %.025.ptr49 = getelementptr inbounds i8, ptr %4, i64 8
  %23 = getelementptr inbounds i8, ptr %0, i64 24
  %24 = load ptr, ptr %23, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %6, i64 40
  br label %26

26:                                               ; preds = %.lr.ph, %.thread43
  %.025.ptr55 = phi ptr [ %.025.ptr49, %.lr.ph ], [ %.025.ptr, %.thread43 ]
  %.054 = phi ptr [ %24, %.lr.ph ], [ %41, %.thread43 ]
  %.02253 = phi ptr [ %8, %.lr.ph ], [ %42, %.thread43 ]
  %.02352 = phi i32 [ 0, %.lr.ph ], [ %43, %.thread43 ]
  %.02451 = phi ptr [ %2, %.lr.ph ], [ %.14247, %.thread43 ]
  %.025.idx50 = phi i64 [ 8, %.lr.ph ], [ %.2.idx4148, %.thread43 ]
  %27 = load ptr, ptr %25, align 8, !tbaa !21
  %28 = call noundef ptr @_ZN2rw16AnimInterpolator14getInterpFrameEi(ptr noundef nonnull align 8 dereferenceable(72) %6, i32 noundef %.02352)
  call void %27(ptr noundef nonnull %3, ptr noundef %28)
  %29 = call noundef ptr @_ZN2rw6Matrix4multEPS0_PKS0_S3_(ptr noundef %.02253, ptr noundef nonnull %3, ptr noundef %.02451)
  %30 = getelementptr inbounds i8, ptr %.054, i64 8
  %31 = load i32, ptr %30, align 8, !tbaa !23
  %32 = and i32 %31, 2
  %.not32 = icmp eq i32 %32, 0
  br i1 %.not32, label %34, label %33

33:                                               ; preds = %26
  %.025.add = add nuw nsw i64 %.025.idx50, 8
  store ptr %.02451, ptr %.025.ptr55, align 8, !tbaa !18
  br label %34

34:                                               ; preds = %33, %26
  %.126.idx = phi i64 [ %.025.add, %33 ], [ %.025.idx50, %26 ]
  %35 = and i32 %31, 1
  %.not33 = icmp eq i32 %35, 0
  br i1 %.not33, label %39, label %36

36:                                               ; preds = %34
  %.126.add = add nsw i64 %.126.idx, -8
  %.ptr = getelementptr inbounds i8, ptr %4, i64 %.126.add
  %37 = load ptr, ptr %.ptr, align 8, !tbaa !18
  %.not34 = icmp slt i64 %.126.idx, 8
  br i1 %.not34, label %38, label %.thread43

38:                                               ; preds = %36
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 188, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN2rw14HAnimHierarchy14updateMatricesEv) #7
  unreachable

39:                                               ; preds = %34
  %.not35 = icmp ugt i64 %.126.idx, 512
  br i1 %.not35, label %40, label %.thread43

40:                                               ; preds = %39
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 189, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN2rw14HAnimHierarchy14updateMatricesEv) #7
  unreachable

.thread43:                                        ; preds = %36, %39
  %.2.idx4148 = phi i64 [ %.126.idx, %39 ], [ %.126.add, %36 ]
  %.14247 = phi ptr [ %.02253, %39 ], [ %37, %36 ]
  %41 = getelementptr inbounds i8, ptr %.054, i64 24
  %42 = getelementptr inbounds i8, ptr %.02253, i64 64
  %43 = add nuw nsw i32 %.02352, 1
  %.025.ptr = getelementptr inbounds i8, ptr %4, i64 %.2.idx4148
  %44 = load i32, ptr %20, align 4, !tbaa !19
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %26, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %.thread43, %19
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2rw5Frame9getParentEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #2 align 2

declare noundef ptr @_ZN2rw5Frame6getLTMEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #3

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

declare void @_ZN2rw6Matrix11setIdentityEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3

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

declare noundef ptr @_ZN2rw6Matrix4multEPS0_PKS0_S3_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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, !10, i64 48}
!6 = !{!"_ZTSN2rw14HAnimHierarchyE", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 32}
!13 = !{!6, !7, i64 0}
!14 = !{i64 0, i64 4, !15, i64 4, i64 4, !15, i64 8, i64 4, !15, i64 12, i64 4, !17, i64 16, i64 4, !15, i64 20, i64 4, !15, i64 24, i64 4, !15, i64 28, i64 4, !17, i64 32, i64 4, !15, i64 36, i64 4, !15, i64 40, i64 4, !15, i64 44, i64 4, !17, i64 48, i64 4, !15, i64 52, i64 4, !15, i64 56, i64 4, !15, i64 60, i64 4, !17}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !8, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!10, !10, i64 0}
!19 = !{!6, !7, i64 4}
!20 = !{!6, !10, i64 24}
!21 = !{!22, !10, i64 40}
!22 = !{!"_ZTSN2rw16AnimInterpolatorE", !10, i64 0, !16, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64}
!23 = !{!24, !7, i64 8}
!24 = !{!"_ZTSN2rw13HAnimNodeInfoE", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass