; LLVM IR from jingweizhanghuai/Morn :: src/math (morn_math_common)

; 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.MList = type { i32, ptr }
%struct.MHandle = type { i32, i32, ptr, ptr }
%struct.HandleCombination = type { ptr, i32, i32, ptr, ptr }

@.str = external hidden unnamed_addr constant [83 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@__FUNCTION__.m_Permutation = external hidden unnamed_addr constant [14 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

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1

declare ptr @m_Malloc(i32 noundef) #1

declare void @m_Free(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @endCombination(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @mCombination(ptr noundef, i32 noundef) #2

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @_Permutation(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @m_Permutation(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp eq ptr %12, null
  br i1 %13, label %18, label %14

14:                                               ; preds = %11
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = ptrtoint ptr %15 to i64
  %17 = icmp eq i64 %16, -1
  br label %18

18:                                               ; preds = %14, %11
  %19 = phi i1 [ true, %11 ], [ %17, %14 ]
  %20 = zext i1 %19 to i32
  store i32 %20, ptr %6, align 4, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %18
  %24 = load i32, ptr %6, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %24, i32 noundef -1, ptr noundef @.str, i32 noundef 622, ptr noundef @__FUNCTION__.m_Permutation, ptr noundef @.str.1)
  br label %25

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

26:                                               ; preds = %25
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %29, label %33

29:                                               ; preds = %26
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.MList, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !11
  store i32 %32, ptr %5, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %29, %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = call ptr @GetHandle(ptr noundef %34, i32 noundef 32, i32 noundef 285362668, ptr noundef @endCombination)
  store ptr %35, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.MHandle, ptr %36, i32 0, i32 3
  %38 = load ptr, ptr %37, align 8, !tbaa !13
  store ptr %38, ptr %8, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.MHandle, ptr %39, i32 0, i32 1
  %41 = load volatile i32, ptr %40, align 4, !tbaa !15
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %49, label %43

43:                                               ; preds = %33
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.HandleCombination, ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 8, !tbaa !16
  %47 = load i32, ptr %5, align 4, !tbaa !9
  %48 = icmp ne i32 %46, %47
  br i1 %48, label %49, label %81

49:                                               ; preds = %43, %33
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = call ptr @mCombination(ptr noundef %50, i32 noundef %51)
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.HandleCombination, ptr %53, i32 0, i32 4
  %55 = load ptr, ptr %54, align 8, !tbaa !18
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %61

57:                                               ; preds = %49
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.HandleCombination, ptr %58, i32 0, i32 4
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  call void @m_Free(ptr noundef %60)
  br label %61

61:                                               ; preds = %57, %49
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = mul i64 %63, 4
  %65 = trunc i64 %64 to i32
  %66 = call ptr @m_Malloc(i32 noundef %65)
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.HandleCombination, ptr %67, i32 0, i32 4
  store ptr %66, ptr %68, align 8, !tbaa !18
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.HandleCombination, ptr %69, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.HandleCombination, ptr %72, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = load i32, ptr %5, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = mul i64 %76, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 4 %74, i64 %77, i1 false)
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.HandleCombination, ptr %78, i32 0, i32 3
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  store ptr %80, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %142

81:                                               ; preds = %43
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.HandleCombination, ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !18
  %85 = load i32, ptr %5, align 4, !tbaa !9
  %86 = call i32 @_Permutation(ptr noundef %84, i32 noundef %85)
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %88, label %123

88:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %116, %88
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = load i32, ptr %5, align 4, !tbaa !9
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i32 4, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %119

94:                                               ; preds = %89
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.MList, ptr %95, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !21
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.HandleCombination, ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !18
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %100, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds ptr, ptr %97, i64 %105
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.HandleCombination, ptr %108, i32 0, i32 3
  %110 = load ptr, ptr %109, align 8, !tbaa !20
  %111 = getelementptr inbounds %struct.MList, ptr %110, i32 0, i32 1
  %112 = load ptr, ptr %111, align 8, !tbaa !21
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds ptr, ptr %112, i64 %114
  store ptr %107, ptr %115, align 8, !tbaa !5
  br label %116

116:                                              ; preds = %94
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %10, align 4, !tbaa !9
  br label %89, !llvm.loop !22

119:                                              ; preds = %93
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.HandleCombination, ptr %120, i32 0, i32 3
  %122 = load ptr, ptr %121, align 8, !tbaa !20
  store ptr %122, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %142

123:                                              ; preds = %81
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = load i32, ptr %5, align 4, !tbaa !9
  %126 = call ptr @mCombination(ptr noundef %124, i32 noundef %125)
  %127 = icmp ugt ptr %126, null
  br i1 %127, label %128, label %141

128:                                              ; preds = %123
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.HandleCombination, ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !18
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.HandleCombination, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !19
  %135 = load i32, ptr %5, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = mul i64 %136, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %131, ptr align 4 %134, i64 %137, i1 false)
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.HandleCombination, ptr %138, i32 0, i32 3
  %140 = load ptr, ptr %139, align 8, !tbaa !20
  store ptr %140, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %142

141:                                              ; preds = %123
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %142

142:                                              ; preds = %141, %128, %119, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %143 = load ptr, ptr %3, align 8
  ret ptr %143
}

; 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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind 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 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"MList", !10, i64 0, !6, i64 8}
!13 = !{!14, !6, i64 16}
!14 = !{!"MHandle", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!15 = !{!14, !10, i64 4}
!16 = !{!17, !10, i64 8}
!17 = !{!"HandleCombination", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24}
!18 = !{!17, !6, i64 24}
!19 = !{!17, !6, i64 0}
!20 = !{!17, !6, i64 16}
!21 = !{!12, !6, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"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"

@.str = external hidden unnamed_addr constant [83 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@__FUNCTION__.m_Permutation = external hidden unnamed_addr constant [14 x i8], align 1

declare void @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) local_unnamed_addr #0

declare ptr @m_Malloc(i32 noundef) local_unnamed_addr #0

declare void @m_Free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @endCombination(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @mCombination(ptr noundef, i32 noundef) local_unnamed_addr #1

declare ptr @GetHandle(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @_Permutation(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @m_Permutation(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %magicptr = ptrtoint ptr %0 to i64
  switch i64 %magicptr, label %8 [
    i64 -1, label %3
    i64 0, label %3
  ]

3:                                                ; preds = %2, %2
  %4 = icmp eq ptr %0, null
  %5 = icmp eq ptr %0, inttoptr (i64 -1 to ptr)
  %6 = or i1 %4, %5
  %7 = zext i1 %6 to i32
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %7, i32 noundef -1, ptr noundef nonnull @.str, i32 noundef 622, ptr noundef nonnull @__FUNCTION__.m_Permutation, ptr noundef nonnull @.str.1) #3
  br label %8

8:                                                ; preds = %2, %3
  %9 = icmp slt i32 %1, 0
  br i1 %9, label %10, label %12

10:                                               ; preds = %8
  %11 = load i32, ptr %0, align 8, !tbaa !5
  br label %12

12:                                               ; preds = %10, %8
  %.039 = phi i32 [ %11, %10 ], [ %1, %8 ]
  %13 = tail call ptr @GetHandle(ptr noundef %0, i32 noundef 32, i32 noundef 285362668, ptr noundef nonnull @endCombination) #3
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = getelementptr inbounds i8, ptr %13, i64 4
  %17 = load volatile i32, ptr %16, align 4, !tbaa !13
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %22, label %19

19:                                               ; preds = %12
  %20 = getelementptr inbounds i8, ptr %15, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !14
  %.not = icmp eq i32 %21, %.039
  br i1 %.not, label %33, label %22

22:                                               ; preds = %19, %12
  %23 = tail call ptr @mCombination(ptr noundef %0, i32 noundef %.039)
  %24 = getelementptr inbounds i8, ptr %15, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %.not43 = icmp eq ptr %25, null
  br i1 %.not43, label %27, label %26

26:                                               ; preds = %22
  tail call void @m_Free(ptr noundef nonnull %25) #3
  br label %27

27:                                               ; preds = %26, %22
  %28 = sext i32 %.039 to i64
  %29 = shl nsw i64 %28, 2
  %30 = trunc i64 %29 to i32
  %31 = tail call ptr @m_Malloc(i32 noundef %30) #3
  store ptr %31, ptr %24, align 8, !tbaa !16
  %32 = load ptr, ptr %15, align 8, !tbaa !17
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %32, i64 %29, i1 false)
  br label %.sink.split

33:                                               ; preds = %19
  %34 = getelementptr inbounds i8, ptr %15, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !16
  %36 = tail call i32 @_Permutation(ptr noundef %35, i32 noundef %.039)
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.preheader, label %65

.preheader:                                       ; preds = %33
  %38 = icmp sgt i32 %.039, 0
  br i1 %38, label %.lr.ph, label %.sink.split

.lr.ph:                                           ; preds = %.preheader
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  %40 = getelementptr inbounds i8, ptr %15, i64 16
  %wide.trip.count = zext nneg i32 %.039 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %41 = icmp eq i32 %.039, 1
  br i1 %41, label %.sink.split.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %42

42:                                               ; preds = %42, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %42 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %42 ]
  %43 = load ptr, ptr %39, align 8, !tbaa !18
  %44 = load ptr, ptr %34, align 8, !tbaa !16
  %45 = getelementptr inbounds i32, ptr %44, i64 %indvars.iv
  %46 = load i32, ptr %45, align 4, !tbaa !19
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds ptr, ptr %43, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  %50 = load ptr, ptr %40, align 8, !tbaa !21
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !18
  %53 = getelementptr inbounds ptr, ptr %52, i64 %indvars.iv
  store ptr %49, ptr %53, align 8, !tbaa !20
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %54 = load ptr, ptr %39, align 8, !tbaa !18
  %55 = load ptr, ptr %34, align 8, !tbaa !16
  %56 = getelementptr inbounds i32, ptr %55, i64 %indvars.iv.next
  %57 = load i32, ptr %56, align 4, !tbaa !19
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds ptr, ptr %54, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !20
  %61 = load ptr, ptr %40, align 8, !tbaa !21
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  %63 = load ptr, ptr %62, align 8, !tbaa !18
  %64 = getelementptr inbounds ptr, ptr %63, i64 %indvars.iv.next
  store ptr %60, ptr %64, align 8, !tbaa !20
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.sink.split.loopexit.unr-lcssa, label %42, !llvm.loop !22

65:                                               ; preds = %33
  %66 = tail call ptr @mCombination(ptr noundef %0, i32 noundef %.039)
  %.not42 = icmp eq ptr %66, null
  br i1 %.not42, label %85, label %67

67:                                               ; preds = %65
  %68 = load ptr, ptr %34, align 8, !tbaa !16
  %69 = load ptr, ptr %15, align 8, !tbaa !17
  %70 = sext i32 %.039 to i64
  %71 = shl nsw i64 %70, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %69, i64 %71, i1 false)
  br label %.sink.split

.sink.split.loopexit.unr-lcssa:                   ; preds = %42, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %42 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.sink.split, label %.sink.split.loopexit.epilog-lcssa

.sink.split.loopexit.epilog-lcssa:                ; preds = %.sink.split.loopexit.unr-lcssa
  %72 = load ptr, ptr %39, align 8, !tbaa !18
  %73 = load ptr, ptr %34, align 8, !tbaa !16
  %74 = getelementptr inbounds i32, ptr %73, i64 %indvars.iv.unr
  %75 = load i32, ptr %74, align 4, !tbaa !19
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds ptr, ptr %72, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !20
  %79 = load ptr, ptr %40, align 8, !tbaa !21
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load ptr, ptr %80, align 8, !tbaa !18
  %82 = getelementptr inbounds ptr, ptr %81, i64 %indvars.iv.unr
  store ptr %78, ptr %82, align 8, !tbaa !20
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.loopexit.epilog-lcssa, %.sink.split.loopexit.unr-lcssa, %.preheader, %27, %67
  %83 = getelementptr inbounds i8, ptr %15, i64 16
  %84 = load ptr, ptr %83, align 8, !tbaa !21
  br label %85

85:                                               ; preds = %.sink.split, %65
  %.038 = phi ptr [ null, %65 ], [ %84, %.sink.split ]
  ret ptr %.038
}

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

attributes #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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = !{!"MList", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"MHandle", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!13 = !{!12, !7, i64 4}
!14 = !{!15, !7, i64 8}
!15 = !{!"HandleCombination", !10, i64 0, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24}
!16 = !{!15, !10, i64 24}
!17 = !{!15, !10, i64 0}
!18 = !{!6, !10, i64 8}
!19 = !{!7, !7, i64 0}
!20 = !{!10, !10, i64 0}
!21 = !{!15, !10, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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