; LLVM IR from ekoontz/graphlab :: src/graphlab/extern/metis/libmetis/srefine.ll_libmetis (Compute2WayNodePartitionParams)

; 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.graphdef = type { i64, i64, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i64, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr }
%struct.nrinfodef = type { [2 x i64] }

; 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: nounwind uwtable
define dso_local void @libmetis__Compute2WayNodePartitionParams(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 0
  %25 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %25, ptr %9, align 8, !tbaa !13
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.graphdef, ptr %26, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  store ptr %28, ptr %11, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.graphdef, ptr %29, i32 0, i32 3
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  store ptr %31, ptr %14, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.graphdef, ptr %32, i32 0, i32 5
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  store ptr %34, ptr %12, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.graphdef, ptr %35, i32 0, i32 6
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  store ptr %37, ptr %13, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.graphdef, ptr %38, i32 0, i32 18
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  store ptr %40, ptr %15, align 8, !tbaa !5
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.graphdef, ptr %41, i32 0, i32 27
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  store ptr %43, ptr %20, align 8, !tbaa !5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.graphdef, ptr %44, i32 0, i32 19
  %46 = load ptr, ptr %45, align 8, !tbaa !20
  %47 = call ptr @libmetis__idxset(i64 noundef 3, i64 noundef 0, ptr noundef %46)
  store ptr %47, ptr %16, align 8, !tbaa !5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.graphdef, ptr %48, i32 0, i32 22
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  store ptr %50, ptr %17, align 8, !tbaa !5
  %51 = load i64, ptr %9, align 8, !tbaa !13
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.graphdef, ptr %52, i32 0, i32 21
  %54 = load ptr, ptr %53, align 8, !tbaa !22
  %55 = call ptr @libmetis__idxset(i64 noundef %51, i64 noundef -1, ptr noundef %54)
  store ptr %55, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %10, align 8, !tbaa !13
  store i64 0, ptr %5, align 8, !tbaa !13
  br label %56

56:                                               ; preds = %139, %2
  %57 = load i64, ptr %5, align 8, !tbaa !13
  %58 = load i64, ptr %9, align 8, !tbaa !13
  %59 = icmp slt i64 %57, %58
  br i1 %59, label %60, label %142

60:                                               ; preds = %56
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = load i64, ptr %5, align 8, !tbaa !13
  %63 = getelementptr inbounds i64, ptr %61, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !13
  store i64 %64, ptr %21, align 8, !tbaa !13
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load i64, ptr %5, align 8, !tbaa !13
  %67 = getelementptr inbounds i64, ptr %65, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !13
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  %70 = load i64, ptr %21, align 8, !tbaa !13
  %71 = getelementptr inbounds i64, ptr %69, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !13
  %73 = add nsw i64 %72, %68
  store i64 %73, ptr %71, align 8, !tbaa !13
  %74 = load i64, ptr %21, align 8, !tbaa !13
  %75 = icmp eq i64 %74, 2
  br i1 %75, label %76, label %138

76:                                               ; preds = %60
  br label %77

77:                                               ; preds = %76
  %78 = load i64, ptr %5, align 8, !tbaa !13
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = load i64, ptr %10, align 8, !tbaa !13
  %81 = getelementptr inbounds i64, ptr %79, i64 %80
  store i64 %78, ptr %81, align 8, !tbaa !13
  %82 = load i64, ptr %10, align 8, !tbaa !13
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %10, align 8, !tbaa !13
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  %85 = load i64, ptr %5, align 8, !tbaa !13
  %86 = getelementptr inbounds i64, ptr %84, i64 %85
  store i64 %82, ptr %86, align 8, !tbaa !13
  br label %87

87:                                               ; preds = %77
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %20, align 8, !tbaa !5
  %90 = load i64, ptr %5, align 8, !tbaa !13
  %91 = getelementptr inbounds %struct.nrinfodef, ptr %89, i64 %90
  %92 = getelementptr inbounds %struct.nrinfodef, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds [2 x i64], ptr %92, i64 0, i64 0
  store ptr %93, ptr %19, align 8, !tbaa !5
  %94 = load ptr, ptr %19, align 8, !tbaa !5
  %95 = getelementptr inbounds i64, ptr %94, i64 1
  store i64 0, ptr %95, align 8, !tbaa !13
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = getelementptr inbounds i64, ptr %96, i64 0
  store i64 0, ptr %97, align 8, !tbaa !13
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = load i64, ptr %5, align 8, !tbaa !13
  %100 = getelementptr inbounds i64, ptr %98, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !13
  store i64 %101, ptr %6, align 8, !tbaa !13
  br label %102

102:                                              ; preds = %134, %88
  %103 = load i64, ptr %6, align 8, !tbaa !13
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load i64, ptr %5, align 8, !tbaa !13
  %106 = add nsw i64 %105, 1
  %107 = getelementptr inbounds i64, ptr %104, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !13
  %109 = icmp slt i64 %103, %108
  br i1 %109, label %110, label %137

110:                                              ; preds = %102
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = load i64, ptr %6, align 8, !tbaa !13
  %114 = getelementptr inbounds i64, ptr %112, i64 %113
  %115 = load i64, ptr %114, align 8, !tbaa !13
  %116 = getelementptr inbounds i64, ptr %111, i64 %115
  %117 = load i64, ptr %116, align 8, !tbaa !13
  store i64 %117, ptr %22, align 8, !tbaa !13
  %118 = load i64, ptr %22, align 8, !tbaa !13
  %119 = icmp ne i64 %118, 2
  br i1 %119, label %120, label %133

120:                                              ; preds = %110
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = load i64, ptr %6, align 8, !tbaa !13
  %124 = getelementptr inbounds i64, ptr %122, i64 %123
  %125 = load i64, ptr %124, align 8, !tbaa !13
  %126 = getelementptr inbounds i64, ptr %121, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !13
  %128 = load ptr, ptr %19, align 8, !tbaa !5
  %129 = load i64, ptr %22, align 8, !tbaa !13
  %130 = getelementptr inbounds i64, ptr %128, i64 %129
  %131 = load i64, ptr %130, align 8, !tbaa !13
  %132 = add nsw i64 %131, %127
  store i64 %132, ptr %130, align 8, !tbaa !13
  br label %133

133:                                              ; preds = %120, %110
  br label %134

134:                                              ; preds = %133
  %135 = load i64, ptr %6, align 8, !tbaa !13
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %6, align 8, !tbaa !13
  br label %102, !llvm.loop !23

137:                                              ; preds = %102
  br label %138

138:                                              ; preds = %137, %60
  br label %139

139:                                              ; preds = %138
  %140 = load i64, ptr %5, align 8, !tbaa !13
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr %5, align 8, !tbaa !13
  br label %56, !llvm.loop !25

142:                                              ; preds = %56
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = getelementptr inbounds i64, ptr %143, i64 2
  %145 = load i64, ptr %144, align 8, !tbaa !13
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.graphdef, ptr %146, i32 0, i32 16
  store i64 %145, ptr %147, align 8, !tbaa !26
  %148 = load i64, ptr %10, align 8, !tbaa !13
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.graphdef, ptr %149, i32 0, i32 20
  store i64 %148, ptr %150, align 8, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  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
  ret void
}

declare ptr @libmetis__idxset(i64 noundef, i64 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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, !11, i64 0}
!10 = !{!"graphdef", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !11, i64 112, !11, i64 120, !6, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 16}
!15 = !{!10, !6, i64 24}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !6, i64 48}
!18 = !{!10, !6, i64 128}
!19 = !{!10, !6, i64 200}
!20 = !{!10, !6, i64 136}
!21 = !{!10, !6, i64 160}
!22 = !{!10, !6, i64 152}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!10, !11, i64 112}
!27 = !{!10, !11, i64 144}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.nrinfodef = type { [2 x i64] }

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__Compute2WayNodePartitionParams(ptr nocapture noundef readnone %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
  %3 = load i64, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %1, i64 24
  %7 = load ptr, ptr %6, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %1, i64 40
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %1, i64 128
  %11 = load ptr, ptr %10, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %1, i64 200
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %1, i64 136
  %15 = load ptr, ptr %14, align 8, !tbaa !17
  %16 = tail call ptr @libmetis__idxset(i64 noundef 3, i64 noundef 0, ptr noundef %15) #3
  %17 = getelementptr inbounds i8, ptr %1, i64 160
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %1, i64 152
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  %21 = tail call ptr @libmetis__idxset(i64 noundef %3, i64 noundef -1, ptr noundef %20) #3
  %22 = icmp sgt i64 %3, 0
  br i1 %22, label %.lr.ph55, label %._crit_edge

.lr.ph55:                                         ; preds = %2, %.loopexit
  %.054 = phi i64 [ %56, %.loopexit ], [ 0, %2 ]
  %.05053 = phi i64 [ %.1, %.loopexit ], [ 0, %2 ]
  %23 = getelementptr inbounds i64, ptr %11, i64 %.054
  %24 = load i64, ptr %23, align 8, !tbaa !20
  %25 = getelementptr inbounds i64, ptr %7, i64 %.054
  %26 = load i64, ptr %25, align 8, !tbaa !20
  %27 = getelementptr inbounds i64, ptr %16, i64 %24
  %28 = load i64, ptr %27, align 8, !tbaa !20
  %29 = add nsw i64 %28, %26
  store i64 %29, ptr %27, align 8, !tbaa !20
  %30 = icmp eq i64 %24, 2
  br i1 %30, label %31, label %.loopexit

31:                                               ; preds = %.lr.ph55
  %32 = getelementptr inbounds i64, ptr %18, i64 %.05053
  store i64 %.054, ptr %32, align 8, !tbaa !20
  %33 = add nsw i64 %.05053, 1
  %34 = getelementptr inbounds i64, ptr %21, i64 %.054
  store i64 %.05053, ptr %34, align 8, !tbaa !20
  %35 = getelementptr inbounds %struct.nrinfodef, ptr %13, i64 %.054
  %36 = getelementptr inbounds i64, ptr %5, i64 %.054
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %35, i8 0, i64 16, i1 false)
  %37 = load i64, ptr %36, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %36, i64 8
  %39 = load i64, ptr %38, align 8, !tbaa !20
  %40 = icmp slt i64 %37, %39
  br i1 %40, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %31, %52
  %41 = phi i64 [ %53, %52 ], [ %39, %31 ]
  %.04952 = phi i64 [ %54, %52 ], [ %37, %31 ]
  %42 = getelementptr inbounds i64, ptr %9, i64 %.04952
  %43 = load i64, ptr %42, align 8, !tbaa !20
  %44 = getelementptr inbounds i64, ptr %11, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !20
  %.not = icmp eq i64 %45, 2
  br i1 %.not, label %52, label %46

46:                                               ; preds = %.lr.ph
  %47 = getelementptr inbounds i64, ptr %7, i64 %43
  %48 = load i64, ptr %47, align 8, !tbaa !20
  %49 = getelementptr inbounds i64, ptr %35, i64 %45
  %50 = load i64, ptr %49, align 8, !tbaa !20
  %51 = add nsw i64 %50, %48
  store i64 %51, ptr %49, align 8, !tbaa !20
  %.pre = load i64, ptr %38, align 8, !tbaa !20
  br label %52

52:                                               ; preds = %.lr.ph, %46
  %53 = phi i64 [ %41, %.lr.ph ], [ %.pre, %46 ]
  %54 = add nsw i64 %.04952, 1
  %55 = icmp slt i64 %54, %53
  br i1 %55, label %.lr.ph, label %.loopexit, !llvm.loop !21

.loopexit:                                        ; preds = %52, %31, %.lr.ph55
  %.1 = phi i64 [ %.05053, %.lr.ph55 ], [ %33, %31 ], [ %33, %52 ]
  %56 = add nuw nsw i64 %.054, 1
  %exitcond.not = icmp eq i64 %56, %3
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph55, !llvm.loop !23

._crit_edge:                                      ; preds = %.loopexit, %2
  %.050.lcssa = phi i64 [ 0, %2 ], [ %.1, %.loopexit ]
  %57 = getelementptr inbounds i8, ptr %16, i64 16
  %58 = load i64, ptr %57, align 8, !tbaa !20
  %59 = getelementptr inbounds i8, ptr %1, i64 112
  store i64 %58, ptr %59, align 8, !tbaa !24
  %60 = getelementptr inbounds i8, ptr %1, i64 144
  store i64 %.050.lcssa, ptr %60, align 8, !tbaa !25
  ret void
}

declare ptr @libmetis__idxset(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 nounwind willreturn memory(argmem: write) }
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 = !{!"graphdef", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 120, !10, i64 128, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !7, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !10, i64 40}
!15 = !{!6, !10, i64 128}
!16 = !{!6, !10, i64 200}
!17 = !{!6, !10, i64 136}
!18 = !{!6, !10, i64 160}
!19 = !{!6, !10, i64 152}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!6, !7, i64 112}
!25 = !{!6, !7, i64 144}


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