; LLVM IR from YanzhenHuang/c-nn :: nn (nn_buildNN)

; 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.NN = type { i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [57 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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @nn_buildNN(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  store i64 %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !5
  store i64 %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %20 = call noalias ptr @malloc(i64 noundef 72) #6
  store ptr %20, ptr %14, align 8, !tbaa !9
  %21 = load ptr, ptr %14, align 8, !tbaa !9
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %26

23:                                               ; preds = %6
  %24 = load ptr, ptr @stderr, align 8, !tbaa !9
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.5) #5
  store ptr null, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %145

26:                                               ; preds = %6
  %27 = load i64, ptr %8, align 8, !tbaa !5
  %28 = load ptr, ptr %14, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.NN, ptr %28, i32 0, i32 0
  store i64 %27, ptr %29, align 8, !tbaa !11
  %30 = load i64, ptr %9, align 8, !tbaa !5
  %31 = load ptr, ptr %14, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.NN, ptr %31, i32 0, i32 1
  store i64 %30, ptr %32, align 8, !tbaa !13
  %33 = load i64, ptr %11, align 8, !tbaa !5
  %34 = load ptr, ptr %14, align 8, !tbaa !9
  %35 = getelementptr inbounds %struct.NN, ptr %34, i32 0, i32 3
  store i64 %33, ptr %35, align 8, !tbaa !14
  %36 = load ptr, ptr %14, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.NN, ptr %36, i32 0, i32 3
  %38 = load i64, ptr %37, align 8, !tbaa !14
  %39 = add nsw i64 %38, 3
  %40 = mul i64 %39, 8
  %41 = call noalias ptr @malloc(i64 noundef %40) #6
  %42 = load ptr, ptr %14, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.NN, ptr %42, i32 0, i32 5
  store ptr %41, ptr %43, align 8, !tbaa !15
  %44 = load ptr, ptr %14, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.NN, ptr %44, i32 0, i32 3
  %46 = load i64, ptr %45, align 8, !tbaa !14
  %47 = add nsw i64 %46, 3
  %48 = mul i64 %47, 8
  %49 = call noalias ptr @malloc(i64 noundef %48) #6
  %50 = load ptr, ptr %14, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct.NN, ptr %50, i32 0, i32 6
  store ptr %49, ptr %51, align 8, !tbaa !16
  %52 = load ptr, ptr %12, align 8, !tbaa !9
  %53 = load ptr, ptr %14, align 8, !tbaa !9
  %54 = getelementptr inbounds %struct.NN, ptr %53, i32 0, i32 7
  store ptr %52, ptr %54, align 8, !tbaa !17
  %55 = load ptr, ptr %13, align 8, !tbaa !9
  %56 = load ptr, ptr %14, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.NN, ptr %56, i32 0, i32 8
  store ptr %55, ptr %57, align 8, !tbaa !18
  %58 = load i64, ptr %11, align 8, !tbaa !5
  %59 = add nsw i64 %58, 2
  %60 = call noalias ptr @calloc(i64 noundef %59, i64 noundef 8) #7
  %61 = load ptr, ptr %14, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.NN, ptr %61, i32 0, i32 4
  store ptr %60, ptr %62, align 8, !tbaa !19
  %63 = load ptr, ptr %14, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.NN, ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !19
  %66 = icmp eq ptr %65, null
  br i1 %66, label %67, label %71

67:                                               ; preds = %26
  %68 = load ptr, ptr @stderr, align 8, !tbaa !9
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.6) #5
  %70 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %70) #5
  store ptr null, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %145

71:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %72 = load i64, ptr %8, align 8, !tbaa !5
  %73 = add nsw i64 %72, 1
  %74 = load i64, ptr %9, align 8, !tbaa !5
  %75 = add nsw i64 %74, 1
  %76 = call ptr @nn_buildLayer(i64 noundef %73, i64 noundef %75)
  store ptr %76, ptr %16, align 8, !tbaa !9
  %77 = load ptr, ptr %16, align 8, !tbaa !9
  %78 = icmp eq ptr %77, null
  br i1 %78, label %79, label %86

79:                                               ; preds = %71
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.7) #5
  %82 = load ptr, ptr %14, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.NN, ptr %82, i32 0, i32 4
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  call void @free(ptr noundef %84) #5
  %85 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %85) #5
  store ptr null, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %144

86:                                               ; preds = %71
  %87 = load ptr, ptr %16, align 8, !tbaa !9
  %88 = load ptr, ptr %14, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.NN, ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  %91 = getelementptr inbounds ptr, ptr %90, i64 0
  store ptr %87, ptr %91, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 1, ptr %17, align 8, !tbaa !5
  br label %92

92:                                               ; preds = %119, %86
  %93 = load i64, ptr %17, align 8, !tbaa !5
  %94 = load i64, ptr %11, align 8, !tbaa !5
  %95 = add nsw i64 %94, 1
  %96 = icmp slt i64 %93, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  store i32 2, ptr %15, align 4
  br label %122

98:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %99 = load i64, ptr %9, align 8, !tbaa !5
  %100 = add nsw i64 %99, 1
  %101 = load i64, ptr %9, align 8, !tbaa !5
  %102 = add nsw i64 %101, 1
  %103 = call ptr @nn_buildLayer(i64 noundef %100, i64 noundef %102)
  store ptr %103, ptr %18, align 8, !tbaa !9
  %104 = load ptr, ptr %18, align 8, !tbaa !9
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %109

106:                                              ; preds = %98
  %107 = load ptr, ptr @stderr, align 8, !tbaa !9
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.8) #5
  store ptr null, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %116

109:                                              ; preds = %98
  %110 = load ptr, ptr %18, align 8, !tbaa !9
  %111 = load ptr, ptr %14, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.NN, ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !19
  %114 = load i64, ptr %17, align 8, !tbaa !5
  %115 = getelementptr inbounds ptr, ptr %113, i64 %114
  store ptr %110, ptr %115, align 8, !tbaa !9
  store i32 0, ptr %15, align 4
  br label %116

116:                                              ; preds = %109, %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %117 = load i32, ptr %15, align 4
  switch i32 %117, label %122 [
    i32 0, label %118
  ]

118:                                              ; preds = %116
  br label %119

119:                                              ; preds = %118
  %120 = load i64, ptr %17, align 8, !tbaa !5
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %17, align 8, !tbaa !5
  br label %92, !llvm.loop !20

122:                                              ; preds = %116, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %123 = load i32, ptr %15, align 4
  switch i32 %123, label %144 [
    i32 2, label %124
  ]

124:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %125 = load i64, ptr %9, align 8, !tbaa !5
  %126 = add nsw i64 %125, 1
  %127 = load i64, ptr %10, align 8, !tbaa !5
  %128 = call ptr @nn_buildLayer(i64 noundef %126, i64 noundef %127)
  store ptr %128, ptr %19, align 8, !tbaa !9
  %129 = load ptr, ptr %19, align 8, !tbaa !9
  %130 = icmp eq ptr %129, null
  br i1 %130, label %131, label %134

131:                                              ; preds = %124
  %132 = load ptr, ptr @stderr, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.9) #5
  store ptr null, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %143

134:                                              ; preds = %124
  %135 = load ptr, ptr %19, align 8, !tbaa !9
  %136 = load ptr, ptr %14, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.NN, ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !19
  %139 = load i64, ptr %11, align 8, !tbaa !5
  %140 = add nsw i64 %139, 1
  %141 = getelementptr inbounds ptr, ptr %138, i64 %140
  store ptr %135, ptr %141, align 8, !tbaa !9
  %142 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %142, ptr %7, align 8
  store i32 1, ptr %15, align 4
  br label %143

143:                                              ; preds = %134, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %144

144:                                              ; preds = %143, %122, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %145

145:                                              ; preds = %144, %67, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  %146 = load ptr, ptr %7, align 8
  ret ptr %146
}

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 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 = { nounwind allocsize(0,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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind allocsize(0,1) }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64}
!13 = !{!12, !6, i64 8}
!14 = !{!12, !6, i64 24}
!15 = !{!12, !10, i64 40}
!16 = !{!12, !10, i64 48}
!17 = !{!12, !10, i64 56}
!18 = !{!12, !10, i64 64}
!19 = !{!12, !10, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [57 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @nn_buildNN(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = tail call noalias dereferenceable_or_null(72) ptr @malloc(i64 noundef 72) #5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %12

9:                                                ; preds = %6
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.5) #6
  br label %54

12:                                               ; preds = %6
  store i64 %0, ptr %7, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %7, i64 8
  store i64 %1, ptr %13, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %7, i64 24
  store i64 %3, ptr %14, align 8, !tbaa !13
  %15 = shl i64 %3, 3
  %16 = add i64 %15, 24
  %17 = tail call noalias ptr @malloc(i64 noundef %16) #5
  %18 = getelementptr inbounds i8, ptr %7, i64 40
  store ptr %17, ptr %18, align 8, !tbaa !14
  %19 = tail call noalias ptr @malloc(i64 noundef %16) #5
  %20 = getelementptr inbounds i8, ptr %7, i64 48
  store ptr %19, ptr %20, align 8, !tbaa !15
  %21 = getelementptr inbounds i8, ptr %7, i64 56
  store ptr %4, ptr %21, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %7, i64 64
  store ptr %5, ptr %22, align 8, !tbaa !17
  %23 = add nsw i64 %3, 2
  %24 = tail call noalias ptr @calloc(i64 noundef %23, i64 noundef 8) #7
  %25 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %24, ptr %25, align 8, !tbaa !18
  %26 = icmp eq ptr %24, null
  br i1 %26, label %27, label %30

27:                                               ; preds = %12
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.6) #6
  tail call void @free(ptr noundef nonnull %7) #8
  br label %54

30:                                               ; preds = %12
  %31 = add nsw i64 %0, 1
  %32 = add nsw i64 %1, 1
  %33 = tail call ptr @nn_buildLayer(i64 noundef %31, i64 noundef %32)
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %30
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.7) #6
  tail call void @free(ptr noundef nonnull %24) #8
  tail call void @free(ptr noundef nonnull %7) #8
  br label %54

38:                                               ; preds = %30
  store ptr %33, ptr %24, align 8, !tbaa !5
  %.not53 = icmp slt i64 %3, 1
  br i1 %.not53, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %38, %40
  %.04754 = phi i64 [ %42, %40 ], [ 1, %38 ]
  %39 = tail call ptr @nn_buildLayer(i64 noundef %32, i64 noundef %32)
  %.not52 = icmp eq ptr %39, null
  br i1 %.not52, label %43, label %40

40:                                               ; preds = %.lr.ph
  %41 = getelementptr inbounds ptr, ptr %24, i64 %.04754
  store ptr %39, ptr %41, align 8, !tbaa !5
  %42 = add nuw i64 %.04754, 1
  %exitcond.not = icmp eq i64 %.04754, %3
  br i1 %exitcond.not, label %.critedge, label %.lr.ph, !llvm.loop !19

43:                                               ; preds = %.lr.ph
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.8) #6
  br label %54

.critedge:                                        ; preds = %40, %38
  %46 = tail call ptr @nn_buildLayer(i64 noundef %32, i64 noundef %2)
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %51

48:                                               ; preds = %.critedge
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.9) #6
  br label %54

51:                                               ; preds = %.critedge
  %52 = getelementptr ptr, ptr %24, i64 %3
  %53 = getelementptr i8, ptr %52, i64 8
  store ptr %46, ptr %53, align 8, !tbaa !5
  br label %54

54:                                               ; preds = %43, %35, %51, %48, %27, %9
  %.5 = phi ptr [ null, %9 ], [ null, %27 ], [ null, %35 ], [ null, %43 ], [ null, %48 ], [ %7, %51 ]
  ret ptr %.5
}

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

attributes #0 = { nofree 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 = { 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 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 #3 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #5 = { nounwind allocsize(0) }
attributes #6 = { cold nounwind }
attributes #7 = { nounwind allocsize(0,1) }
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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!11 = !{!"long long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 24}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !6, i64 48}
!16 = !{!10, !6, i64 56}
!17 = !{!10, !6, i64 64}
!18 = !{!10, !6, i64 32}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


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