; LLVM IR from PyCee/NUS_library :: src/model (NUS_frame)

; 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.NUS_keyframe = type { ptr }
%struct.NUS_frame = type { ptr, %struct.NUS_skeleton_pose, float, i32 }
%struct.NUS_skeleton_pose = type { ptr, ptr }
%struct.NUS_animation = type { ptr, [64 x i8], float, i32, ptr, ptr }
%struct.NUS_skeleton = type { i32, ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @nus_frame_update(ptr noundef %0, float noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca %struct.NUS_keyframe, align 8
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.NUS_keyframe, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %9 = load float, ptr %4, align 4, !tbaa !9
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.NUS_frame, ptr %10, i32 0, i32 0
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = getelementptr inbounds %struct.NUS_animation, ptr %12, i32 0, i32 2
  %14 = load float, ptr %13, align 8, !tbaa !15
  %15 = fdiv float %9, %14
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.NUS_frame, ptr %16, i32 0, i32 2
  %18 = load float, ptr %17, align 8, !tbaa !17
  %19 = fadd float %18, %15
  store float %19, ptr %17, align 8, !tbaa !17
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.NUS_frame, ptr %20, i32 0, i32 2
  %22 = load float, ptr %21, align 8, !tbaa !17
  %23 = fcmp ogt float %22, 1.000000e+00
  br i1 %23, label %24, label %38

24:                                               ; preds = %2
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.NUS_frame, ptr %25, i32 0, i32 3
  %27 = load i32, ptr %26, align 4, !tbaa !18
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %34

29:                                               ; preds = %24
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.NUS_frame, ptr %30, i32 0, i32 2
  %32 = load float, ptr %31, align 8, !tbaa !17
  %33 = fsub float %32, 1.000000e+00
  store float %33, ptr %31, align 8, !tbaa !17
  br label %37

34:                                               ; preds = %24
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.NUS_frame, ptr %35, i32 0, i32 2
  store float 1.000000e+00, ptr %36, align 8, !tbaa !17
  br label %37

37:                                               ; preds = %34, %29
  br label %38

38:                                               ; preds = %37, %2
  store i32 0, ptr %7, align 4, !tbaa !19
  br label %39

39:                                               ; preds = %79, %38
  %40 = load i32, ptr %7, align 4, !tbaa !19
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.NUS_frame, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.NUS_animation, ptr %43, i32 0, i32 3
  %45 = load i32, ptr %44, align 4, !tbaa !20
  %46 = sub i32 %45, 1
  %47 = icmp ult i32 %40, %46
  br i1 %47, label %48, label %82

48:                                               ; preds = %39
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.NUS_frame, ptr %49, i32 0, i32 2
  %51 = load float, ptr %50, align 8, !tbaa !17
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.NUS_frame, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.NUS_animation, ptr %54, i32 0, i32 4
  %56 = load ptr, ptr %55, align 8, !tbaa !21
  %57 = load i32, ptr %7, align 4, !tbaa !19
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds float, ptr %56, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = fcmp oge float %51, %60
  br i1 %61, label %62, label %78

62:                                               ; preds = %48
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.NUS_frame, ptr %63, i32 0, i32 2
  %65 = load float, ptr %64, align 8, !tbaa !17
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.NUS_frame, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = getelementptr inbounds %struct.NUS_animation, ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !21
  %71 = load i32, ptr %7, align 4, !tbaa !19
  %72 = add nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds float, ptr %70, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = fcmp ole float %65, %75
  br i1 %76, label %77, label %78

77:                                               ; preds = %62
  br label %82

78:                                               ; preds = %62, %48
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %7, align 4, !tbaa !19
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %7, align 4, !tbaa !19
  br label %39, !llvm.loop !22

82:                                               ; preds = %77, %39
  %83 = load i32, ptr %7, align 4, !tbaa !19
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.NUS_frame, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = getelementptr inbounds %struct.NUS_animation, ptr %86, i32 0, i32 3
  %88 = load i32, ptr %87, align 4, !tbaa !20
  %89 = sub i32 %88, 1
  %90 = icmp eq i32 %83, %89
  br i1 %90, label %91, label %95

91:                                               ; preds = %82
  %92 = load i32, ptr %7, align 4, !tbaa !19
  %93 = add nsw i32 %92, -1
  store i32 %93, ptr %7, align 4, !tbaa !19
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  br label %95

95:                                               ; preds = %91, %82
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.NUS_frame, ptr %96, i32 0, i32 2
  %98 = load float, ptr %97, align 8, !tbaa !17
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.NUS_frame, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !11
  %102 = getelementptr inbounds %struct.NUS_animation, ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !21
  %104 = load i32, ptr %7, align 4, !tbaa !19
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds float, ptr %103, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !9
  %108 = fsub float %98, %107
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.NUS_frame, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !11
  %112 = getelementptr inbounds %struct.NUS_animation, ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !21
  %114 = load i32, ptr %7, align 4, !tbaa !19
  %115 = add nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds float, ptr %113, i64 %116
  %118 = load float, ptr %117, align 4, !tbaa !9
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.NUS_frame, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !11
  %122 = getelementptr inbounds %struct.NUS_animation, ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !21
  %124 = load i32, ptr %7, align 4, !tbaa !19
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds float, ptr %123, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !9
  %128 = fsub float %118, %127
  %129 = fdiv float %108, %128
  store float %129, ptr %6, align 4, !tbaa !9
  %130 = load float, ptr %6, align 4, !tbaa !9
  %131 = fcmp olt float %130, 0.000000e+00
  br i1 %131, label %135, label %132

132:                                              ; preds = %95
  %133 = load float, ptr %6, align 4, !tbaa !9
  %134 = fcmp ogt float %133, 1.000000e+00
  br i1 %134, label %135, label %139

135:                                              ; preds = %132, %95
  %136 = load float, ptr %6, align 4, !tbaa !9
  %137 = fpext float %136 to double
  %138 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %137)
  br label %139

139:                                              ; preds = %135, %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.NUS_frame, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !11
  %143 = getelementptr inbounds %struct.NUS_animation, ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8, !tbaa !24
  %145 = getelementptr inbounds %struct.NUS_skeleton, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 8, !tbaa !25
  %147 = call ptr @nus_keyframe_build(i32 noundef %146)
  %148 = getelementptr inbounds %struct.NUS_keyframe, ptr %8, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %8, i64 8, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.NUS_frame, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !11
  %152 = getelementptr inbounds %struct.NUS_animation, ptr %151, i32 0, i32 5
  %153 = load ptr, ptr %152, align 8, !tbaa !28
  %154 = load i32, ptr %7, align 4, !tbaa !19
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds %struct.NUS_keyframe, ptr %153, i64 %155
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.NUS_frame, ptr %157, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8, !tbaa !11
  %160 = getelementptr inbounds %struct.NUS_animation, ptr %159, i32 0, i32 5
  %161 = load ptr, ptr %160, align 8, !tbaa !28
  %162 = load i32, ptr %7, align 4, !tbaa !19
  %163 = add nsw i32 %162, 1
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds %struct.NUS_keyframe, ptr %161, i64 %164
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.NUS_frame, ptr %166, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8, !tbaa !11
  %169 = getelementptr inbounds %struct.NUS_animation, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !24
  %171 = getelementptr inbounds %struct.NUS_skeleton, ptr %170, i32 0, i32 0
  %172 = load i32, ptr %171, align 8, !tbaa !25
  %173 = load float, ptr %6, align 4, !tbaa !9
  %174 = getelementptr inbounds %struct.NUS_keyframe, ptr %156, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8
  %176 = getelementptr inbounds %struct.NUS_keyframe, ptr %165, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8
  call void @nus_keyframe_lerp(ptr noundef %5, ptr %175, ptr %177, i32 noundef %172, float noundef %173)
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.NUS_frame, ptr %178, i32 0, i32 1
  %180 = getelementptr inbounds %struct.NUS_keyframe, ptr %5, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8
  call void @nus_skeleton_pose_update(ptr noundef %179, ptr %181)
  call void @nus_keyframe_free(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

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

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

declare ptr @nus_keyframe_build(i32 noundef) #2

; 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) #3

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

declare void @nus_keyframe_lerp(ptr noundef, ptr, ptr, i32 noundef, float noundef) #2

declare void @nus_skeleton_pose_update(ptr noundef, ptr) #2

declare void @nus_keyframe_free(ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"NUS_frame", !6, i64 0, !13, i64 8, !10, i64 24, !14, i64 28}
!13 = !{!"NUS_skeleton_pose", !6, i64 0, !6, i64 8}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !10, i64 72}
!16 = !{!"NUS_animation", !6, i64 0, !7, i64 8, !10, i64 72, !14, i64 76, !6, i64 80, !6, i64 88}
!17 = !{!12, !10, i64 24}
!18 = !{!12, !14, i64 28}
!19 = !{!14, !14, i64 0}
!20 = !{!16, !14, i64 76}
!21 = !{!16, !6, i64 80}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!16, !6, i64 0}
!25 = !{!26, !14, i64 0}
!26 = !{!"NUS_skeleton", !14, i64 0, !6, i64 8}
!27 = !{i64 0, i64 8, !5}
!28 = !{!16, !6, i64 88}


; 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.NUS_keyframe = type { ptr }

@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @nus_frame_update(ptr noundef %0, float noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.NUS_keyframe, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 72
  %6 = load float, ptr %5, align 8, !tbaa !13
  %7 = fdiv float %1, %6
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load float, ptr %8, align 8, !tbaa !15
  %10 = fadd float %9, %7
  store float %10, ptr %8, align 8, !tbaa !15
  %11 = fcmp ogt float %10, 1.000000e+00
  br i1 %11, label %.sink.split, label %15

.sink.split:                                      ; preds = %2
  %12 = getelementptr inbounds i8, ptr %0, i64 28
  %13 = load i32, ptr %12, align 4, !tbaa !16
  %.not = icmp eq i32 %13, 0
  %14 = fadd float %10, -1.000000e+00
  %.sink = select i1 %.not, float 1.000000e+00, float %14
  store float %.sink, ptr %8, align 8, !tbaa !15
  br label %15

15:                                               ; preds = %.sink.split, %2
  %16 = phi float [ %10, %2 ], [ %.sink, %.sink.split ]
  %17 = getelementptr inbounds i8, ptr %4, i64 76
  %18 = load i32, ptr %17, align 4, !tbaa !17
  %19 = add i32 %18, -1
  %.not44 = icmp eq i32 %19, 0
  br i1 %.not44, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %15
  %20 = getelementptr inbounds i8, ptr %4, i64 80
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %wide.trip.count = zext i32 %19 to i64
  br label %22

22:                                               ; preds = %.lr.ph, %30
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %30 ]
  %23 = getelementptr inbounds float, ptr %21, i64 %indvars.iv
  %24 = load float, ptr %23, align 4, !tbaa !19
  %25 = fcmp ult float %16, %24
  br i1 %25, label %30, label %26

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %23, i64 4
  %28 = load float, ptr %27, align 4, !tbaa !19
  %29 = fcmp ugt float %16, %28
  br i1 %29, label %30, label %._crit_edge.loopexit

30:                                               ; preds = %22, %26
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.thread, label %22, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %26
  %31 = trunc nuw nsw i64 %indvars.iv to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %15
  %.0.lcssa = phi i32 [ 0, %15 ], [ %31, %._crit_edge.loopexit ]
  %32 = icmp eq i32 %.0.lcssa, %19
  br i1 %32, label %._crit_edge.thread, label %35

._crit_edge.thread:                               ; preds = %30, %._crit_edge
  %33 = add i32 %18, -2
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %.pre = load float, ptr %8, align 8, !tbaa !15
  %.pre46 = load ptr, ptr %0, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %36 = phi ptr [ %.pre46, %._crit_edge.thread ], [ %4, %._crit_edge ]
  %37 = phi float [ %.pre, %._crit_edge.thread ], [ %16, %._crit_edge ]
  %.1 = phi i32 [ %33, %._crit_edge.thread ], [ %.0.lcssa, %._crit_edge ]
  %38 = getelementptr inbounds i8, ptr %36, i64 80
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %40 = sext i32 %.1 to i64
  %41 = getelementptr inbounds float, ptr %39, i64 %40
  %42 = load float, ptr %41, align 4, !tbaa !19
  %43 = fsub float %37, %42
  %44 = add nsw i32 %.1, 1
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds float, ptr %39, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !19
  %48 = fsub float %47, %42
  %49 = fdiv float %43, %48
  %50 = fcmp olt float %49, 0.000000e+00
  %51 = fcmp ogt float %49, 1.000000e+00
  %or.cond = or i1 %50, %51
  br i1 %or.cond, label %52, label %55

52:                                               ; preds = %35
  %53 = fpext float %49 to double
  %54 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %53)
  %.pre47 = load ptr, ptr %0, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %35, %52
  %56 = phi ptr [ %36, %35 ], [ %.pre47, %52 ]
  %57 = load ptr, ptr %56, align 8, !tbaa !22
  %58 = load i32, ptr %57, align 8, !tbaa !23
  %59 = tail call ptr @nus_keyframe_build(i32 noundef %58) #4
  store ptr %59, ptr %3, align 8, !tbaa !25
  %60 = load ptr, ptr %0, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 88
  %62 = load ptr, ptr %61, align 8, !tbaa !26
  %63 = getelementptr inbounds %struct.NUS_keyframe, ptr %62, i64 %40
  %64 = getelementptr inbounds %struct.NUS_keyframe, ptr %62, i64 %45
  %65 = load ptr, ptr %60, align 8, !tbaa !22
  %66 = load i32, ptr %65, align 8, !tbaa !23
  %67 = load ptr, ptr %63, align 8
  %68 = load ptr, ptr %64, align 8
  call void @nus_keyframe_lerp(ptr noundef nonnull %3, ptr %67, ptr %68, i32 noundef %66, float noundef %49) #4
  %69 = getelementptr inbounds i8, ptr %0, i64 8
  %70 = load ptr, ptr %3, align 8
  call void @nus_skeleton_pose_update(ptr noundef nonnull %69, ptr %70) #4
  call void @nus_keyframe_free(ptr noundef nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret void
}

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

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

declare ptr @nus_keyframe_build(i32 noundef) local_unnamed_addr #3

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

declare void @nus_keyframe_lerp(ptr noundef, ptr, ptr, i32 noundef, float noundef) local_unnamed_addr #3

declare void @nus_skeleton_pose_update(ptr noundef, ptr) local_unnamed_addr #3

declare void @nus_keyframe_free(ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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, !7, i64 0}
!6 = !{!"NUS_frame", !7, i64 0, !10, i64 8, !11, i64 24, !12, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"NUS_skeleton_pose", !7, i64 0, !7, i64 8}
!11 = !{!"float", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !11, i64 72}
!14 = !{!"NUS_animation", !7, i64 0, !8, i64 8, !11, i64 72, !12, i64 76, !7, i64 80, !7, i64 88}
!15 = !{!6, !11, i64 24}
!16 = !{!6, !12, i64 28}
!17 = !{!14, !12, i64 76}
!18 = !{!14, !7, i64 80}
!19 = !{!11, !11, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !7, i64 0}
!23 = !{!24, !12, i64 0}
!24 = !{!"NUS_skeleton", !12, i64 0, !7, i64 8}
!25 = !{!7, !7, i64 0}
!26 = !{!14, !7, i64 88}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass