; LLVM IR from mitdbg/deneva :: system/manager.ll (ZN7Manager4initEv)

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

%class.Manager = type { %union.pthread_mutex_t, i64, [31 x %union.pthread_mutex_t], ptr, ptr, i64, i64 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

@g_thread_cnt = external global i32, align 4
@g_node_cnt = external global i32, align 4
@g_rem_thread_cnt = external global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Manager4initEv(ptr noundef nonnull align 8 dereferenceable(1320) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  %7 = getelementptr inbounds %class.Manager, ptr %6, i32 0, i32 1
  store i64 1, ptr %7, align 8, !tbaa !9
  %8 = getelementptr inbounds %class.Manager, ptr %6, i32 0, i32 5
  store i64 0, ptr %8, align 8, !tbaa !12
  %9 = getelementptr inbounds %class.Manager, ptr %6, i32 0, i32 6
  store i64 0, ptr %9, align 8, !tbaa !13
  %10 = load i32, ptr @g_thread_cnt, align 4, !tbaa !14
  %11 = load i32, ptr @g_node_cnt, align 4, !tbaa !14
  %12 = mul i32 %10, %11
  %13 = zext i32 %12 to i64
  %14 = mul i64 8, %13
  %15 = call noalias ptr @malloc(i64 noundef %14) #6
  %16 = getelementptr inbounds %class.Manager, ptr %6, i32 0, i32 3
  store volatile ptr %15, ptr %16, align 8, !tbaa !16
  %17 = load i32, ptr @g_thread_cnt, align 4, !tbaa !14
  %18 = load i32, ptr @g_rem_thread_cnt, align 4, !tbaa !14
  %19 = add i32 %17, %18
  %20 = zext i32 %19 to i64
  %21 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %20, i64 8)
  %22 = extractvalue { i64, i1 } %21, 1
  %23 = extractvalue { i64, i1 } %21, 0
  %24 = select i1 %22, i64 -1, i64 %23
  %25 = call noalias noundef nonnull ptr @_Znam(i64 noundef %24) #7
  %26 = getelementptr inbounds %class.Manager, ptr %6, i32 0, i32 4
  store ptr %25, ptr %26, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !14
  br label %27

27:                                               ; preds = %40, %1
  %28 = load i32, ptr %3, align 4, !tbaa !14
  %29 = load i32, ptr @g_thread_cnt, align 4, !tbaa !14
  %30 = load i32, ptr @g_rem_thread_cnt, align 4, !tbaa !14
  %31 = add i32 %29, %30
  %32 = icmp ult i32 %28, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %43

34:                                               ; preds = %27
  %35 = getelementptr inbounds %class.Manager, ptr %6, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = load i32, ptr %3, align 4, !tbaa !14
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds ptr, ptr %36, i64 %38
  store ptr null, ptr %39, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %34
  %41 = load i32, ptr %3, align 4, !tbaa !14
  %42 = add i32 %41, 1
  store i32 %42, ptr %3, align 4, !tbaa !14
  br label %27, !llvm.loop !18

43:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %44

44:                                               ; preds = %54, %43
  %45 = load i32, ptr %4, align 4, !tbaa !14
  %46 = icmp ult i32 %45, 31
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %57

48:                                               ; preds = %44
  %49 = getelementptr inbounds %class.Manager, ptr %6, i32 0, i32 2
  %50 = load i32, ptr %4, align 4, !tbaa !14
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds [31 x %union.pthread_mutex_t], ptr %49, i64 0, i64 %51
  %53 = call i32 @pthread_mutex_init(ptr noundef %52, ptr noundef null) #8
  br label %54

54:                                               ; preds = %48
  %55 = load i32, ptr %4, align 4, !tbaa !14
  %56 = add i32 %55, 1
  store i32 %56, ptr %4, align 4, !tbaa !14
  br label %44, !llvm.loop !20

57:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !14
  br label %58

58:                                               ; preds = %71, %57
  %59 = load i32, ptr %5, align 4, !tbaa !14
  %60 = load i32, ptr @g_thread_cnt, align 4, !tbaa !14
  %61 = load i32, ptr @g_node_cnt, align 4, !tbaa !14
  %62 = mul i32 %60, %61
  %63 = icmp ult i32 %59, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %74

65:                                               ; preds = %58
  %66 = getelementptr inbounds %class.Manager, ptr %6, i32 0, i32 3
  %67 = load volatile ptr, ptr %66, align 8, !tbaa !16
  %68 = load i32, ptr %5, align 4, !tbaa !14
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds i64, ptr %67, i64 %69
  store i64 0, ptr %70, align 8, !tbaa !21
  br label %71

71:                                               ; preds = %65
  %72 = load i32, ptr %5, align 4, !tbaa !14
  %73 = add i32 %72, 1
  store i32 %73, ptr %5, align 4, !tbaa !14
  br label %58, !llvm.loop !22

74:                                               ; preds = %64
  ret void
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

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

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

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

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #5

attributes #0 = { 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 #1 = { nounwind 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { 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, !11, i64 40}
!10 = !{!"_ZTS7Manager", !7, i64 0, !11, i64 40, !7, i64 48, !6, i64 1288, !6, i64 1296, !11, i64 1304, !11, i64 1312}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 1304}
!13 = !{!10, !11, i64 1312}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!10, !6, i64 1288}
!17 = !{!10, !6, i64 1296}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!11, !11, i64 0}
!22 = distinct !{!22, !19}


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

@g_thread_cnt = external local_unnamed_addr global i32, align 4
@g_node_cnt = external local_unnamed_addr global i32, align 4
@g_rem_thread_cnt = external local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Manager4initEv(ptr noundef nonnull align 8 dereferenceable(1320) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 40
  store i64 1, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 1304
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  %4 = load i32, ptr @g_thread_cnt, align 4, !tbaa !11
  %5 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %6 = mul i32 %5, %4
  %7 = zext i32 %6 to i64
  %8 = shl nuw nsw i64 %7, 3
  %9 = tail call noalias ptr @malloc(i64 noundef %8) #5
  %10 = getelementptr inbounds i8, ptr %0, i64 1288
  store volatile ptr %9, ptr %10, align 8, !tbaa !13
  %11 = load i32, ptr @g_rem_thread_cnt, align 4, !tbaa !11
  %12 = add i32 %11, %4
  %13 = zext i32 %12 to i64
  %14 = shl nuw nsw i64 %13, 3
  %15 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %14) #6
  %16 = getelementptr inbounds i8, ptr %0, i64 1296
  store ptr %15, ptr %16, align 8, !tbaa !14
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %.preheader11, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %1
  %xtraiter = and i64 %13, 3
  %17 = icmp ult i32 %12, 4
  br i1 %17, label %.preheader11.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %13, 4294967292
  br label %.lr.ph

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

.lr.ph.epil:                                      ; preds = %.preheader11.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader11.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader11.loopexit.unr-lcssa ]
  %18 = load ptr, ptr %16, align 8, !tbaa !14
  %19 = getelementptr inbounds ptr, ptr %18, i64 %indvars.iv.epil
  store ptr null, ptr %19, align 8, !tbaa !15
  %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 %.preheader11, label %.lr.ph.epil, !llvm.loop !16

.preheader11:                                     ; preds = %.preheader11.loopexit.unr-lcssa, %.lr.ph.epil, %1
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  %21 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %20, ptr noundef null) #7
  %22 = getelementptr inbounds i8, ptr %0, i64 88
  %23 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %22, ptr noundef null) #7
  %24 = getelementptr inbounds i8, ptr %0, i64 128
  %25 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %24, ptr noundef null) #7
  %26 = getelementptr inbounds i8, ptr %0, i64 168
  %27 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %26, ptr noundef null) #7
  %28 = getelementptr inbounds i8, ptr %0, i64 208
  %29 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %28, ptr noundef null) #7
  %30 = getelementptr inbounds i8, ptr %0, i64 248
  %31 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %30, ptr noundef null) #7
  %32 = getelementptr inbounds i8, ptr %0, i64 288
  %33 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %32, ptr noundef null) #7
  %34 = getelementptr inbounds i8, ptr %0, i64 328
  %35 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %34, ptr noundef null) #7
  %36 = getelementptr inbounds i8, ptr %0, i64 368
  %37 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %36, ptr noundef null) #7
  %38 = getelementptr inbounds i8, ptr %0, i64 408
  %39 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %38, ptr noundef null) #7
  %40 = getelementptr inbounds i8, ptr %0, i64 448
  %41 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %40, ptr noundef null) #7
  %42 = getelementptr inbounds i8, ptr %0, i64 488
  %43 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %42, ptr noundef null) #7
  %44 = getelementptr inbounds i8, ptr %0, i64 528
  %45 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %44, ptr noundef null) #7
  %46 = getelementptr inbounds i8, ptr %0, i64 568
  %47 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %46, ptr noundef null) #7
  %48 = getelementptr inbounds i8, ptr %0, i64 608
  %49 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %48, ptr noundef null) #7
  %50 = getelementptr inbounds i8, ptr %0, i64 648
  %51 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %50, ptr noundef null) #7
  %52 = getelementptr inbounds i8, ptr %0, i64 688
  %53 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %52, ptr noundef null) #7
  %54 = getelementptr inbounds i8, ptr %0, i64 728
  %55 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %54, ptr noundef null) #7
  %56 = getelementptr inbounds i8, ptr %0, i64 768
  %57 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %56, ptr noundef null) #7
  %58 = getelementptr inbounds i8, ptr %0, i64 808
  %59 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %58, ptr noundef null) #7
  %60 = getelementptr inbounds i8, ptr %0, i64 848
  %61 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %60, ptr noundef null) #7
  %62 = getelementptr inbounds i8, ptr %0, i64 888
  %63 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %62, ptr noundef null) #7
  %64 = getelementptr inbounds i8, ptr %0, i64 928
  %65 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %64, ptr noundef null) #7
  %66 = getelementptr inbounds i8, ptr %0, i64 968
  %67 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %66, ptr noundef null) #7
  %68 = getelementptr inbounds i8, ptr %0, i64 1008
  %69 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %68, ptr noundef null) #7
  %70 = getelementptr inbounds i8, ptr %0, i64 1048
  %71 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %70, ptr noundef null) #7
  %72 = getelementptr inbounds i8, ptr %0, i64 1088
  %73 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %72, ptr noundef null) #7
  %74 = getelementptr inbounds i8, ptr %0, i64 1128
  %75 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %74, ptr noundef null) #7
  %76 = getelementptr inbounds i8, ptr %0, i64 1168
  %77 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %76, ptr noundef null) #7
  %78 = getelementptr inbounds i8, ptr %0, i64 1208
  %79 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %78, ptr noundef null) #7
  %80 = getelementptr inbounds i8, ptr %0, i64 1248
  %81 = tail call i32 @pthread_mutex_init(ptr noundef nonnull %80, ptr noundef null) #7
  %82 = load i32, ptr @g_thread_cnt, align 4, !tbaa !11
  %83 = load i32, ptr @g_node_cnt, align 4, !tbaa !11
  %84 = mul i32 %83, %82
  %.not16 = icmp eq i32 %84, 0
  br i1 %.not16, label %._crit_edge, label %.lr.ph15.preheader

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %85 = load ptr, ptr %16, align 8, !tbaa !14
  %86 = getelementptr inbounds ptr, ptr %85, i64 %indvars.iv
  store ptr null, ptr %86, align 8, !tbaa !15
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %87 = load ptr, ptr %16, align 8, !tbaa !14
  %88 = getelementptr inbounds ptr, ptr %87, i64 %indvars.iv.next
  store ptr null, ptr %88, align 8, !tbaa !15
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %89 = load ptr, ptr %16, align 8, !tbaa !14
  %90 = getelementptr inbounds ptr, ptr %89, i64 %indvars.iv.next.1
  store ptr null, ptr %90, align 8, !tbaa !15
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %91 = load ptr, ptr %16, align 8, !tbaa !14
  %92 = getelementptr inbounds ptr, ptr %91, i64 %indvars.iv.next.2
  store ptr null, ptr %92, align 8, !tbaa !15
  %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 %.preheader11.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !18

.lr.ph15.preheader:                               ; preds = %.preheader11
  %wide.trip.count25 = zext i32 %84 to i64
  %xtraiter27 = and i64 %wide.trip.count25, 3
  %93 = icmp ult i32 %84, 4
  br i1 %93, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph15.preheader.new

.lr.ph15.preheader.new:                           ; preds = %.lr.ph15.preheader
  %unroll_iter30 = and i64 %wide.trip.count25, 4294967292
  br label %.lr.ph15

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph15, %.lr.ph15.preheader
  %indvars.iv22.unr = phi i64 [ 0, %.lr.ph15.preheader ], [ %indvars.iv.next23.3, %.lr.ph15 ]
  %lcmp.mod29.not = icmp eq i64 %xtraiter27, 0
  br i1 %lcmp.mod29.not, label %._crit_edge, label %.lr.ph15.epil

.lr.ph15.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph15.epil
  %indvars.iv22.epil = phi i64 [ %indvars.iv.next23.epil, %.lr.ph15.epil ], [ %indvars.iv22.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter28 = phi i64 [ %epil.iter28.next, %.lr.ph15.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %94 = load volatile ptr, ptr %10, align 8, !tbaa !13
  %95 = getelementptr inbounds i64, ptr %94, i64 %indvars.iv22.epil
  store i64 0, ptr %95, align 8, !tbaa !20
  %indvars.iv.next23.epil = add nuw nsw i64 %indvars.iv22.epil, 1
  %epil.iter28.next = add i64 %epil.iter28, 1
  %epil.iter28.cmp.not = icmp eq i64 %epil.iter28.next, %xtraiter27
  br i1 %epil.iter28.cmp.not, label %._crit_edge, label %.lr.ph15.epil, !llvm.loop !21

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph15.epil, %.preheader11
  ret void

.lr.ph15:                                         ; preds = %.lr.ph15, %.lr.ph15.preheader.new
  %indvars.iv22 = phi i64 [ 0, %.lr.ph15.preheader.new ], [ %indvars.iv.next23.3, %.lr.ph15 ]
  %niter31 = phi i64 [ 0, %.lr.ph15.preheader.new ], [ %niter31.next.3, %.lr.ph15 ]
  %96 = load volatile ptr, ptr %10, align 8, !tbaa !13
  %97 = getelementptr inbounds i64, ptr %96, i64 %indvars.iv22
  store i64 0, ptr %97, align 8, !tbaa !20
  %indvars.iv.next23 = or disjoint i64 %indvars.iv22, 1
  %98 = load volatile ptr, ptr %10, align 8, !tbaa !13
  %99 = getelementptr inbounds i64, ptr %98, i64 %indvars.iv.next23
  store i64 0, ptr %99, align 8, !tbaa !20
  %indvars.iv.next23.1 = or disjoint i64 %indvars.iv22, 2
  %100 = load volatile ptr, ptr %10, align 8, !tbaa !13
  %101 = getelementptr inbounds i64, ptr %100, i64 %indvars.iv.next23.1
  store i64 0, ptr %101, align 8, !tbaa !20
  %indvars.iv.next23.2 = or disjoint i64 %indvars.iv22, 3
  %102 = load volatile ptr, ptr %10, align 8, !tbaa !13
  %103 = getelementptr inbounds i64, ptr %102, i64 %indvars.iv.next23.2
  store i64 0, ptr %103, align 8, !tbaa !20
  %indvars.iv.next23.3 = add nuw nsw i64 %indvars.iv22, 4
  %niter31.next.3 = add i64 %niter31, 4
  %niter31.ncmp.3 = icmp eq i64 %niter31.next.3, %unroll_iter30
  br i1 %niter31.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph15, !llvm.loop !22
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { 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 #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind allocsize(0) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { 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, !9, i64 40}
!6 = !{!"_ZTS7Manager", !7, i64 0, !9, i64 40, !7, i64 48, !10, i64 1288, !10, i64 1296, !9, i64 1304, !9, i64 1312}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"long", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!6, !10, i64 1288}
!14 = !{!6, !10, i64 1296}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!9, !9, i64 0}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !19}


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