; LLVM IR from jingweizhanghuai/Morn :: src/util (morn_chain)

; 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.MHandle = type { i32, i32, ptr, ptr }
%struct.HandleChainReorder = type { ptr }
%struct.MObject = type { i32, %union.anon }
%union.anon = type { ptr }
%struct.MList = type { i32, ptr }
%struct.MChainNode = type { ptr, ptr, ptr }

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

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

; 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

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

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

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

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

17:                                               ; preds = %13, %10
  %18 = phi i1 [ true, %10 ], [ %16, %13 ]
  %19 = zext i1 %18 to i32
  store i32 %19, ptr %3, align 4, !tbaa !9
  %20 = load i32, ptr %3, align 4, !tbaa !9
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %24

22:                                               ; preds = %17
  %23 = load i32, ptr %3, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %23, i32 noundef -1, ptr noundef @.str, i32 noundef 137, ptr noundef @__FUNCTION__.mChainReorder, ptr noundef @.str.3)
  br label %24

24:                                               ; preds = %22, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %25

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = call ptr @GetHandle(ptr noundef %26, i32 noundef 8, i32 noundef 1838154425, ptr noundef @endChainReorder)
  store ptr %27, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.MHandle, ptr %28, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  store ptr %30, ptr %5, align 8, !tbaa !5
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.MHandle, ptr %31, i32 0, i32 1
  %33 = load volatile i32, ptr %32, align 4, !tbaa !13
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %47

35:                                               ; preds = %25
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.HandleChainReorder, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !14
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %44

40:                                               ; preds = %35
  %41 = call ptr @ListCreate(i32 noundef 32, ptr noundef null)
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.HandleChainReorder, ptr %42, i32 0, i32 0
  store ptr %41, ptr %43, align 8, !tbaa !14
  br label %44

44:                                               ; preds = %40, %35
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.MHandle, ptr %45, i32 0, i32 1
  store volatile i32 1, ptr %46, align 4, !tbaa !13
  br label %47

47:                                               ; preds = %44, %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.HandleChainReorder, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  store ptr %50, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.MObject, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %52, align 8, !tbaa !16
  store ptr %53, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %112, %47
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.MList, ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !17
  %59 = icmp sge i32 %55, %58
  br i1 %59, label %60, label %89

60:                                               ; preds = %54
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.MList, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !17
  %66 = mul nsw i32 %65, 2
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.MList, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !17
  %70 = add nsw i32 %69, 1024
  %71 = icmp slt i32 %66, %70
  br i1 %71, label %72, label %77

72:                                               ; preds = %61
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.MList, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !17
  %76 = mul nsw i32 %75, 2
  br label %82

77:                                               ; preds = %61
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.MList, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !17
  %81 = add nsw i32 %80, 1024
  br label %82

82:                                               ; preds = %77, %72
  %83 = phi i32 [ %76, %72 ], [ %81, %77 ]
  %84 = add nsw i32 %83, 0
  %85 = sext i32 %84 to i64
  %86 = trunc i64 %85 to i32
  call void @m_ListAppend(ptr noundef %62, ptr noundef null, i32 noundef %86)
  br label %87

87:                                               ; preds = %82
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88, %54
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.MChainNode, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !19
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.MList, ptr %93, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !21
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %95, i64 %97
  store ptr %92, ptr %98, align 8, !tbaa !5
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.MChainNode, ptr %99, i32 0, i32 2
  %101 = load ptr, ptr %100, align 8, !tbaa !22
  store ptr %101, ptr %7, align 8, !tbaa !5
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.MObject, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = icmp eq ptr %102, %105
  br i1 %106, label %107, label %111

107:                                              ; preds = %89
  %108 = load i32, ptr %8, align 4, !tbaa !9
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.MList, ptr %109, i32 0, i32 0
  store i32 %108, ptr %110, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %115

111:                                              ; preds = %89
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %8, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %8, align 4, !tbaa !9
  br label %54

115:                                              ; preds = %107
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  call void @mListReorder(ptr noundef %116)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %137, %115
  %118 = load i32, ptr %9, align 4, !tbaa !9
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.MList, ptr %119, i32 0, i32 0
  %121 = load i32, ptr %120, align 8, !tbaa !17
  %122 = icmp slt i32 %118, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %140

124:                                              ; preds = %117
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.MList, ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !21
  %128 = load i32, ptr %9, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds ptr, ptr %127, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.MChainNode, ptr %132, i32 0, i32 0
  store ptr %131, ptr %133, align 8, !tbaa !19
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.MChainNode, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !22
  store ptr %136, ptr %7, align 8, !tbaa !5
  br label %137

137:                                              ; preds = %124
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %9, align 4, !tbaa !9
  br label %117, !llvm.loop !23

140:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  ret void
}

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

declare void @m_ListAppend(ptr noundef, ptr noundef, i32 noundef) #1

declare void @mListReorder(ptr noundef) #1

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 = { 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, !6, i64 16}
!12 = !{!"MHandle", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16}
!13 = !{!12, !10, i64 4}
!14 = !{!15, !6, i64 0}
!15 = !{!"HandleChainReorder", !6, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"MList", !10, i64 0, !6, i64 8}
!19 = !{!20, !6, i64 0}
!20 = !{!"MChainNode", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!18, !6, i64 8}
!22 = !{!20, !6, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"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 [77 x i8], align 1
@__FUNCTION__.mChainReorder = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [27 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @mChainReorder(ptr noundef %0) local_unnamed_addr #1 {
  %magicptr = ptrtoint ptr %0 to i64
  switch i64 %magicptr, label %7 [
    i64 -1, label %2
    i64 0, label %2
  ]

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

7:                                                ; preds = %1, %2
  %8 = tail call ptr @GetHandle(ptr noundef %0, i32 noundef 8, i32 noundef 1838154425, ptr noundef nonnull @endChainReorder) #3
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %8, i64 4
  %12 = load volatile i32, ptr %11, align 4, !tbaa !11
  %13 = icmp eq i32 %12, 0
  %.pre = load ptr, ptr %10, align 8, !tbaa !12
  br i1 %13, label %14, label %20

14:                                               ; preds = %7
  %15 = icmp eq ptr %.pre, null
  br i1 %15, label %16, label %18

16:                                               ; preds = %14
  %17 = tail call ptr @ListCreate(i32 noundef 32, ptr noundef null) #3
  store ptr %17, ptr %10, align 8, !tbaa !12
  br label %18

18:                                               ; preds = %16, %14
  %19 = phi ptr [ %17, %16 ], [ %.pre, %14 ]
  store volatile i32 1, ptr %11, align 4, !tbaa !11
  br label %20

20:                                               ; preds = %18, %7
  %21 = phi ptr [ %19, %18 ], [ %.pre, %7 ]
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %21, i64 8
  br label %25

25:                                               ; preds = %31, %20
  %indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %20 ]
  %.036 = phi ptr [ %36, %31 ], [ %23, %20 ]
  %26 = load i32, ptr %21, align 8, !tbaa !15
  %27 = sext i32 %26 to i64
  %.not = icmp slt i64 %indvars.iv, %27
  br i1 %.not, label %31, label %28

28:                                               ; preds = %25
  %29 = shl nsw i32 %26, 1
  %30 = add nsw i32 %26, 1024
  %. = tail call i32 @llvm.smin.i32(i32 %29, i32 %30)
  tail call void @m_ListAppend(ptr noundef nonnull %21, ptr noundef null, i32 noundef %.) #3
  br label %31

31:                                               ; preds = %28, %25
  %32 = load ptr, ptr %.036, align 8, !tbaa !17
  %33 = load ptr, ptr %24, align 8, !tbaa !19
  %34 = getelementptr inbounds ptr, ptr %33, i64 %indvars.iv
  store ptr %32, ptr %34, align 8, !tbaa !20
  %35 = getelementptr inbounds i8, ptr %.036, i64 16
  %36 = load ptr, ptr %35, align 8, !tbaa !21
  %37 = load ptr, ptr %22, align 8, !tbaa !14
  %38 = icmp eq ptr %36, %37
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %38, label %39, label %25

39:                                               ; preds = %31
  %40 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %40, ptr %21, align 8, !tbaa !15
  tail call void @mListReorder(ptr noundef nonnull %21) #3
  %41 = load i32, ptr %21, align 8, !tbaa !15
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %39
  %43 = load ptr, ptr %24, align 8, !tbaa !19
  %wide.trip.count = zext nneg i32 %41 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %44 = icmp ult i32 %41, 4
  br i1 %44, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

._crit_edge.loopexit.unr-lcssa:                   ; preds = %49, %.lr.ph
  %indvars.iv46.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next47.3, %49 ]
  %.143.unr = phi ptr [ %36, %.lr.ph ], [ %65, %49 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv46.epil = phi i64 [ %indvars.iv.next47.epil, %.epil.preheader ], [ %indvars.iv46.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.143.epil = phi ptr [ %48, %.epil.preheader ], [ %.143.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %45 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv46.epil
  %46 = load ptr, ptr %45, align 8, !tbaa !20
  store ptr %46, ptr %.143.epil, align 8, !tbaa !17
  %47 = getelementptr inbounds i8, ptr %.143.epil, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !21
  %indvars.iv.next47.epil = add nuw nsw i64 %indvars.iv46.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 %._crit_edge, label %.epil.preheader, !llvm.loop !22

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader, %39
  ret void

49:                                               ; preds = %49, %.lr.ph.new
  %indvars.iv46 = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next47.3, %49 ]
  %.143 = phi ptr [ %36, %.lr.ph.new ], [ %65, %49 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %49 ]
  %50 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv46
  %51 = load ptr, ptr %50, align 8, !tbaa !20
  store ptr %51, ptr %.143, align 8, !tbaa !17
  %52 = getelementptr inbounds i8, ptr %.143, i64 16
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %indvars.iv.next47 = or disjoint i64 %indvars.iv46, 1
  %54 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv.next47
  %55 = load ptr, ptr %54, align 8, !tbaa !20
  store ptr %55, ptr %53, align 8, !tbaa !17
  %56 = getelementptr inbounds i8, ptr %53, i64 16
  %57 = load ptr, ptr %56, align 8, !tbaa !21
  %indvars.iv.next47.1 = or disjoint i64 %indvars.iv46, 2
  %58 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv.next47.1
  %59 = load ptr, ptr %58, align 8, !tbaa !20
  store ptr %59, ptr %57, align 8, !tbaa !17
  %60 = getelementptr inbounds i8, ptr %57, i64 16
  %61 = load ptr, ptr %60, align 8, !tbaa !21
  %indvars.iv.next47.2 = or disjoint i64 %indvars.iv46, 3
  %62 = getelementptr inbounds ptr, ptr %43, i64 %indvars.iv.next47.2
  %63 = load ptr, ptr %62, align 8, !tbaa !20
  store ptr %63, ptr %61, align 8, !tbaa !17
  %64 = getelementptr inbounds i8, ptr %61, i64 16
  %65 = load ptr, ptr %64, align 8, !tbaa !21
  %indvars.iv.next47.3 = add nuw nsw i64 %indvars.iv46, 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 %._crit_edge.loopexit.unr-lcssa, label %49, !llvm.loop !24
}

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

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

declare void @mListReorder(ptr noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 16}
!6 = !{!"MHandle", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!13, !10, i64 0}
!13 = !{!"HandleChainReorder", !10, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"MList", !7, i64 0, !10, i64 8}
!17 = !{!18, !10, i64 0}
!18 = !{!"MChainNode", !10, i64 0, !10, i64 8, !10, i64 16}
!19 = !{!16, !10, i64 8}
!20 = !{!10, !10, i64 0}
!21 = !{!18, !10, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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