; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/Common/scene.ll (ZN6aiNode11addChildrenEjPPS_)

; 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.aiNode = type { %struct.aiString, %class.aiMatrix4x4t, ptr, i32, ptr, i32, ptr, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%class.aiMatrix4x4t = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }

; 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: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6aiNode11addChildrenEjPPS_(ptr noundef nonnull align 8 dereferenceable(1144) %0, i32 noundef %1, ptr noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  %12 = load ptr, ptr %6, align 8, !tbaa !5
  %13 = icmp eq ptr null, %12
  br i1 %13, label %17, label %14

14:                                               ; preds = %3
  %15 = load i32, ptr %5, align 4, !tbaa !9
  %16 = icmp eq i32 0, %15
  br i1 %16, label %17, label %18

17:                                               ; preds = %14, %3
  br label %131

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %36, %18
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = icmp ult i32 %20, %21
  br i1 %22, label %24, label %23

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

24:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds ptr, ptr %25, i64 %27
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  store ptr %29, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = icmp ne ptr null, %30
  br i1 %31, label %32, label %35

32:                                               ; preds = %24
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.aiNode, ptr %33, i32 0, i32 2
  store ptr %11, ptr %34, align 8, !tbaa !11
  br label %35

35:                                               ; preds = %32, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %36

36:                                               ; preds = %35
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = add i32 %37, 1
  store i32 %38, ptr %7, align 4, !tbaa !9
  br label %19, !llvm.loop !16

39:                                               ; preds = %23
  %40 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !18
  %42 = icmp ugt i32 %41, 0
  br i1 %42, label %43, label %100

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %44 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 3
  %45 = load i32, ptr %44, align 8, !tbaa !18
  %46 = zext i32 %45 to i64
  %47 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %46, i64 8)
  %48 = extractvalue { i64, i1 } %47, 1
  %49 = extractvalue { i64, i1 } %47, 0
  %50 = select i1 %48, i64 -1, i64 %49
  %51 = call noalias noundef nonnull ptr @_Znam(i64 noundef %50) #7
  store ptr %51, ptr %9, align 8, !tbaa !5
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !19
  %55 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 3
  %56 = load i32, ptr %55, align 8, !tbaa !18
  %57 = zext i32 %56 to i64
  %58 = mul i64 8, %57
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 8 %54, i64 %58, i1 false)
  %59 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %61 = icmp eq ptr %60, null
  br i1 %61, label %63, label %62

62:                                               ; preds = %43
  call void @_ZdaPv(ptr noundef %60) #8
  br label %63

63:                                               ; preds = %62, %43
  %64 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 3
  %65 = load i32, ptr %64, align 8, !tbaa !18
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = add i32 %65, %66
  %68 = zext i32 %67 to i64
  %69 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %68, i64 8)
  %70 = extractvalue { i64, i1 } %69, 1
  %71 = extractvalue { i64, i1 } %69, 0
  %72 = select i1 %70, i64 -1, i64 %71
  %73 = call noalias noundef nonnull ptr @_Znam(i64 noundef %72) #7
  %74 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 4
  store ptr %73, ptr %74, align 8, !tbaa !19
  %75 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 4
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 3
  %79 = load i32, ptr %78, align 8, !tbaa !18
  %80 = zext i32 %79 to i64
  %81 = mul i64 8, %80
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %76, ptr align 8 %77, i64 %81, i1 false)
  %82 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !19
  %84 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 3
  %85 = load i32, ptr %84, align 8, !tbaa !18
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %83, i64 %86
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load i32, ptr %5, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = mul i64 8, %90
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %87, ptr align 8 %88, i64 %91, i1 false)
  %92 = load i32, ptr %5, align 4, !tbaa !9
  %93 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 3
  %94 = load i32, ptr %93, align 8, !tbaa !18
  %95 = add i32 %94, %92
  store i32 %95, ptr %93, align 8, !tbaa !18
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = icmp eq ptr %96, null
  br i1 %97, label %99, label %98

98:                                               ; preds = %63
  call void @_ZdaPv(ptr noundef %96) #8
  br label %99

99:                                               ; preds = %98, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %131

100:                                              ; preds = %39
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %102, i64 8)
  %104 = extractvalue { i64, i1 } %103, 1
  %105 = extractvalue { i64, i1 } %103, 0
  %106 = select i1 %104, i64 -1, i64 %105
  %107 = call noalias noundef nonnull ptr @_Znam(i64 noundef %106) #7
  %108 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 4
  store ptr %107, ptr %108, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %125, %100
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = load i32, ptr %5, align 4, !tbaa !9
  %112 = icmp ult i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %128

114:                                              ; preds = %109
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !19
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %121, i64 %123
  store ptr %119, ptr %124, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %114
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = add i32 %126, 1
  store i32 %127, ptr %10, align 4, !tbaa !9
  br label %109, !llvm.loop !20

128:                                              ; preds = %113
  %129 = load i32, ptr %5, align 4, !tbaa !9
  %130 = getelementptr inbounds %struct.aiNode, ptr %11, i32 0, i32 3
  store i32 %129, ptr %130, align 8, !tbaa !18
  br label %131

131:                                              ; preds = %128, %99, %17
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin 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 #2 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !6, i64 1096}
!12 = !{!"_ZTS6aiNode", !13, i64 0, !14, i64 1028, !6, i64 1096, !10, i64 1104, !6, i64 1112, !10, i64 1120, !6, i64 1128, !6, i64 1136}
!13 = !{!"_ZTS8aiString", !10, i64 0, !7, i64 4}
!14 = !{!"_ZTS12aiMatrix4x4tIfE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!12, !10, i64 1104}
!19 = !{!12, !6, i64 1112}
!20 = distinct !{!20, !17}


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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6aiNode11addChildrenEjPPS_(ptr noundef nonnull align 8 dereferenceable(1144) %0, i32 noundef %1, ptr noundef readonly %2) local_unnamed_addr #1 align 2 {
  %4 = icmp eq ptr %2, null
  %5 = icmp eq i32 %1, 0
  %or.cond = or i1 %5, %4
  br i1 %or.cond, label %72, label %.preheader.preheader

.preheader.preheader:                             ; preds = %3
  %wide.trip.count = zext i32 %1 to i64
  %6 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 3
  %7 = icmp ult i64 %6, 3
  br i1 %7, label %.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %.preheader

.unr-lcssa:                                       ; preds = %31, %.preheader.preheader
  %indvars.iv.unr = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next.3, %31 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.epilog-lcssa, label %.preheader.epil

.preheader.epil:                                  ; preds = %.unr-lcssa, %12
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %12 ], [ %indvars.iv.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %12 ], [ 0, %.unr-lcssa ]
  %8 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.epil
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %.not31.epil = icmp eq ptr %9, null
  br i1 %.not31.epil, label %12, label %10

10:                                               ; preds = %.preheader.epil
  %11 = getelementptr inbounds i8, ptr %9, i64 1096
  store ptr %0, ptr %11, align 8, !tbaa !9
  br label %12

12:                                               ; preds = %10, %.preheader.epil
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.epilog-lcssa, label %.preheader.epil, !llvm.loop !15

.epilog-lcssa:                                    ; preds = %12, %.unr-lcssa
  %13 = getelementptr inbounds i8, ptr %0, i64 1104
  %14 = load i32, ptr %13, align 8, !tbaa !17
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %.lr.ph.preheader, label %32

.preheader:                                       ; preds = %31, %.preheader.preheader.new
  %indvars.iv = phi i64 [ 0, %.preheader.preheader.new ], [ %indvars.iv.next.3, %31 ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.3, %31 ]
  %15 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %.not31 = icmp eq ptr %16, null
  br i1 %.not31, label %.preheader.1, label %17

17:                                               ; preds = %.preheader
  %18 = getelementptr inbounds i8, ptr %16, i64 1096
  store ptr %0, ptr %18, align 8, !tbaa !9
  br label %.preheader.1

.preheader.1:                                     ; preds = %17, %.preheader
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %19 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %.not31.1 = icmp eq ptr %20, null
  br i1 %.not31.1, label %.preheader.2, label %21

21:                                               ; preds = %.preheader.1
  %22 = getelementptr inbounds i8, ptr %20, i64 1096
  store ptr %0, ptr %22, align 8, !tbaa !9
  br label %.preheader.2

.preheader.2:                                     ; preds = %21, %.preheader.1
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %23 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next.1
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %.not31.2 = icmp eq ptr %24, null
  br i1 %.not31.2, label %.preheader.3, label %25

25:                                               ; preds = %.preheader.2
  %26 = getelementptr inbounds i8, ptr %24, i64 1096
  store ptr %0, ptr %26, align 8, !tbaa !9
  br label %.preheader.3

.preheader.3:                                     ; preds = %25, %.preheader.2
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %27 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next.2
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %.not31.3 = icmp eq ptr %28, null
  br i1 %.not31.3, label %31, label %29

29:                                               ; preds = %.preheader.3
  %30 = getelementptr inbounds i8, ptr %28, i64 1096
  store ptr %0, ptr %30, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %29, %.preheader.3
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.unr-lcssa, label %.preheader, !llvm.loop !18

32:                                               ; preds = %.epilog-lcssa
  %33 = zext i32 %14 to i64
  %34 = shl nuw nsw i64 %33, 3
  %35 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %34) #4
  %36 = getelementptr inbounds i8, ptr %0, i64 1112
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %35, ptr align 8 %37, i64 %34, i1 false)
  %38 = icmp eq ptr %37, null
  br i1 %38, label %40, label %39

39:                                               ; preds = %32
  tail call void @_ZdaPv(ptr noundef nonnull %37) #5
  %.pre = load i32, ptr %13, align 8, !tbaa !17
  %.pre41 = zext i32 %.pre to i64
  %.pre42 = shl nuw nsw i64 %.pre41, 3
  br label %40

40:                                               ; preds = %39, %32
  %.pre-phi43 = phi i64 [ %.pre42, %39 ], [ %34, %32 ]
  %.pre-phi = phi i64 [ %.pre41, %39 ], [ %33, %32 ]
  %41 = phi i32 [ %.pre, %39 ], [ %14, %32 ]
  %42 = add i32 %41, %1
  %43 = zext i32 %42 to i64
  %44 = shl nuw nsw i64 %43, 3
  %45 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %44) #4
  store ptr %45, ptr %36, align 8, !tbaa !20
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %45, ptr nonnull align 8 %35, i64 %.pre-phi43, i1 false)
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.pre-phi
  %47 = shl nuw nsw i64 %wide.trip.count, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %46, ptr nonnull align 8 %2, i64 %47, i1 false)
  store i32 %42, ptr %13, align 8, !tbaa !17
  tail call void @_ZdaPv(ptr noundef nonnull %35) #5
  br label %72

.lr.ph.preheader:                                 ; preds = %.epilog-lcssa
  %48 = shl nuw nsw i64 %wide.trip.count, 3
  %49 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #4
  %50 = getelementptr inbounds i8, ptr %0, i64 1112
  store ptr %49, ptr %50, align 8, !tbaa !20
  %xtraiter44 = and i64 %wide.trip.count, 3
  %51 = icmp ult i64 %6, 3
  br i1 %51, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter47 = and i64 %wide.trip.count, 4294967292
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv36.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next37.3, %.lr.ph ]
  %lcmp.mod46.not = icmp eq i64 %xtraiter44, 0
  br i1 %lcmp.mod46.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %indvars.iv36.epil = phi i64 [ %indvars.iv.next37.epil, %.lr.ph.epil ], [ %indvars.iv36.unr, %._crit_edge.unr-lcssa ]
  %epil.iter45 = phi i64 [ %epil.iter45.next, %.lr.ph.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %52 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv36.epil
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = load ptr, ptr %50, align 8, !tbaa !20
  %55 = getelementptr inbounds ptr, ptr %54, i64 %indvars.iv36.epil
  store ptr %53, ptr %55, align 8, !tbaa !5
  %indvars.iv.next37.epil = add nuw nsw i64 %indvars.iv36.epil, 1
  %epil.iter45.next = add i64 %epil.iter45, 1
  %epil.iter45.cmp.not = icmp eq i64 %epil.iter45.next, %xtraiter44
  br i1 %epil.iter45.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !21

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.unr-lcssa
  store i32 %1, ptr %13, align 8, !tbaa !17
  br label %72

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv36 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next37.3, %.lr.ph ]
  %niter48 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter48.next.3, %.lr.ph ]
  %56 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv36
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = load ptr, ptr %50, align 8, !tbaa !20
  %59 = getelementptr inbounds ptr, ptr %58, i64 %indvars.iv36
  store ptr %57, ptr %59, align 8, !tbaa !5
  %indvars.iv.next37 = or disjoint i64 %indvars.iv36, 1
  %60 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next37
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load ptr, ptr %50, align 8, !tbaa !20
  %63 = getelementptr inbounds ptr, ptr %62, i64 %indvars.iv.next37
  store ptr %61, ptr %63, align 8, !tbaa !5
  %indvars.iv.next37.1 = or disjoint i64 %indvars.iv36, 2
  %64 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next37.1
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = load ptr, ptr %50, align 8, !tbaa !20
  %67 = getelementptr inbounds ptr, ptr %66, i64 %indvars.iv.next37.1
  store ptr %65, ptr %67, align 8, !tbaa !5
  %indvars.iv.next37.2 = or disjoint i64 %indvars.iv36, 3
  %68 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next37.2
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = load ptr, ptr %50, align 8, !tbaa !20
  %71 = getelementptr inbounds ptr, ptr %70, i64 %indvars.iv.next37.2
  store ptr %69, ptr %71, align 8, !tbaa !5
  %indvars.iv.next37.3 = add nuw nsw i64 %indvars.iv36, 4
  %niter48.next.3 = add i64 %niter48, 4
  %niter48.ncmp.3 = icmp eq i64 %niter48.next.3, %unroll_iter47
  br i1 %niter48.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !22

72:                                               ; preds = %3, %._crit_edge, %40
  ret void
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

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

attributes #0 = { nobuiltin 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 = { 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 = { nobuiltin allocsize(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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { builtin allocsize(0) }
attributes #5 = { builtin 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 1096}
!10 = !{!"_ZTS6aiNode", !11, i64 0, !13, i64 1028, !6, i64 1096, !12, i64 1104, !6, i64 1112, !12, i64 1120, !6, i64 1128, !6, i64 1136}
!11 = !{!"_ZTS8aiString", !12, i64 0, !7, i64 4}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS12aiMatrix4x4tIfE", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = !{!10, !12, i64 1104}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !6, i64 1112}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !19}


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