; LLVM IR from ggml-org/ggml :: src (ggml-opt)

; 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.ggml_tensor = type { i32, ptr, [4 x i64], [4 x i64], i32, [16 x i32], i32, [10 x ptr], ptr, i64, ptr, [64 x i8], ptr, [8 x i8] }

@.str = external hidden unnamed_addr constant [64 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: noreturn
declare void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @ggml_opt_dataset_data(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @ggml_opt_dataset_get_batch(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @ggml_opt_inputs(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @ggml_opt_labels(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @ggml_opt_forward(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @ggml_opt_forward_backward(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @ggml_opt_epoch(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, 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 i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = call ptr @ggml_opt_inputs(ptr noundef %24)
  store ptr %25, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call ptr @ggml_opt_labels(ptr noundef %26)
  store ptr %27, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = call ptr @ggml_opt_dataset_data(ptr noundef %28)
  store ptr %29, ptr %17, align 8, !tbaa !5
  %30 = load ptr, ptr %17, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ggml_tensor, ptr %30, i32 0, i32 2
  %32 = getelementptr inbounds [4 x i64], ptr %31, i64 0, i64 0
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ggml_tensor, ptr %34, i32 0, i32 2
  %36 = getelementptr inbounds [4 x i64], ptr %35, i64 0, i64 0
  %37 = load i64, ptr %36, align 8, !tbaa !9
  %38 = icmp eq i64 %33, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %7
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 688, ptr noundef @.str.1, ptr noundef @.str.29) #6
  unreachable

40:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %41 = load ptr, ptr %17, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ggml_tensor, ptr %41, i32 0, i32 2
  %43 = getelementptr inbounds [4 x i64], ptr %42, i64 0, i64 1
  %44 = load i64, ptr %43, align 8, !tbaa !9
  store i64 %44, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %45 = load ptr, ptr %15, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ggml_tensor, ptr %45, i32 0, i32 2
  %47 = getelementptr inbounds [4 x i64], ptr %46, i64 0, i64 1
  %48 = load i64, ptr %47, align 8, !tbaa !9
  store i64 %48, ptr %19, align 8, !tbaa !9
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ggml_tensor, ptr %49, i32 0, i32 2
  %51 = getelementptr inbounds [4 x i64], ptr %50, i64 0, i64 1
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ggml_tensor, ptr %53, i32 0, i32 2
  %55 = getelementptr inbounds [4 x i64], ptr %54, i64 0, i64 1
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = srem i64 %52, %56
  %58 = icmp eq i64 %57, 0
  br i1 %58, label %60, label %59

59:                                               ; preds = %40
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 693, ptr noundef @.str.1, ptr noundef @.str.30) #6
  unreachable

60:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %61 = load i64, ptr %18, align 8, !tbaa !9
  %62 = load i64, ptr %19, align 8, !tbaa !9
  %63 = sdiv i64 %61, %62
  store i64 %63, ptr %20, align 8, !tbaa !9
  %64 = load i64, ptr %12, align 8, !tbaa !9
  %65 = icmp slt i64 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %60
  %67 = load i64, ptr %18, align 8, !tbaa !9
  br label %70

68:                                               ; preds = %60
  %69 = load i64, ptr %12, align 8, !tbaa !9
  br label %70

70:                                               ; preds = %68, %66
  %71 = phi i64 [ %67, %66 ], [ %69, %68 ]
  store i64 %71, ptr %12, align 8, !tbaa !9
  %72 = load i64, ptr %12, align 8, !tbaa !9
  %73 = load i64, ptr %19, align 8, !tbaa !9
  %74 = srem i64 %72, %73
  %75 = icmp eq i64 %74, 0
  br i1 %75, label %77, label %76

76:                                               ; preds = %70
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 697, ptr noundef @.str.1, ptr noundef @.str.31) #6
  unreachable

77:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %78 = load i64, ptr %12, align 8, !tbaa !9
  %79 = load i64, ptr %19, align 8, !tbaa !9
  %80 = sdiv i64 %78, %79
  store i64 %80, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store i64 0, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %81 = call i64 @ggml_time_us()
  store i64 %81, ptr %23, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %105, %77
  %83 = load i64, ptr %22, align 8, !tbaa !9
  %84 = load i64, ptr %21, align 8, !tbaa !9
  %85 = icmp slt i64 %83, %84
  br i1 %85, label %86, label %108

86:                                               ; preds = %82
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = load i64, ptr %22, align 8, !tbaa !9
  call void @ggml_opt_dataset_get_batch(ptr noundef %87, ptr noundef %88, ptr noundef %89, i64 noundef %90)
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  call void @ggml_opt_forward_backward(ptr noundef %91, ptr noundef %92)
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %104

95:                                               ; preds = %86
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = load i64, ptr %22, align 8, !tbaa !9
  %101 = add nsw i64 %100, 1
  %102 = load i64, ptr %21, align 8, !tbaa !9
  %103 = load i64, ptr %23, align 8, !tbaa !9
  call void %96(i1 noundef zeroext true, ptr noundef %97, ptr noundef %98, ptr noundef %99, i64 noundef %101, i64 noundef %102, i64 noundef %103)
  br label %104

104:                                              ; preds = %95, %86
  br label %105

105:                                              ; preds = %104
  %106 = load i64, ptr %22, align 8, !tbaa !9
  %107 = add nsw i64 %106, 1
  store i64 %107, ptr %22, align 8, !tbaa !9
  br label %82, !llvm.loop !11

108:                                              ; preds = %82
  %109 = call i64 @ggml_time_us()
  store i64 %109, ptr %23, align 8, !tbaa !9
  br label %110

110:                                              ; preds = %137, %108
  %111 = load i64, ptr %22, align 8, !tbaa !9
  %112 = load i64, ptr %20, align 8, !tbaa !9
  %113 = icmp slt i64 %111, %112
  br i1 %113, label %114, label %140

114:                                              ; preds = %110
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = load i64, ptr %22, align 8, !tbaa !9
  call void @ggml_opt_dataset_get_batch(ptr noundef %115, ptr noundef %116, ptr noundef %117, i64 noundef %118)
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  call void @ggml_opt_forward(ptr noundef %119, ptr noundef %120)
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %136

123:                                              ; preds = %114
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = load i64, ptr %22, align 8, !tbaa !9
  %129 = add nsw i64 %128, 1
  %130 = load i64, ptr %21, align 8, !tbaa !9
  %131 = sub nsw i64 %129, %130
  %132 = load i64, ptr %20, align 8, !tbaa !9
  %133 = load i64, ptr %21, align 8, !tbaa !9
  %134 = sub nsw i64 %132, %133
  %135 = load i64, ptr %23, align 8, !tbaa !9
  call void %124(i1 noundef zeroext false, ptr noundef %125, ptr noundef %126, ptr noundef %127, i64 noundef %131, i64 noundef %134, i64 noundef %135)
  br label %136

136:                                              ; preds = %123, %114
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr %22, align 8, !tbaa !9
  %139 = add nsw i64 %138, 1
  store i64 %139, ptr %22, align 8, !tbaa !9
  br label %110, !llvm.loop !13

140:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret void
}

declare i64 @ggml_time_us() #4

attributes #0 = { noreturn "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { 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 #4 = { "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 = { noreturn }

!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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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 [64 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: noreturn
declare void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @ggml_opt_dataset_data(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @ggml_opt_dataset_get_batch(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @ggml_opt_inputs(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @ggml_opt_labels(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @ggml_opt_forward(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @ggml_opt_forward_backward(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @ggml_opt_epoch(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef readonly %5, ptr noundef readonly %6) local_unnamed_addr #2 {
  %8 = tail call ptr @ggml_opt_inputs(ptr noundef %0)
  %9 = tail call ptr @ggml_opt_labels(ptr noundef %0)
  %10 = tail call ptr @ggml_opt_dataset_data(ptr noundef %1)
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %8, i64 16
  %14 = load i64, ptr %13, align 8, !tbaa !5
  %15 = icmp eq i64 %12, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %7
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 688, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.29) #4
  unreachable

17:                                               ; preds = %7
  %18 = getelementptr inbounds i8, ptr %10, i64 24
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %8, i64 24
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = srem i64 %19, %21
  %23 = sdiv i64 %19, %21
  %24 = icmp eq i64 %22, 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %17
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 693, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.30) #4
  unreachable

26:                                               ; preds = %17
  %27 = icmp slt i64 %4, 0
  %28 = select i1 %27, i64 %19, i64 %4
  %29 = srem i64 %28, %21
  %30 = sdiv i64 %28, %21
  %31 = icmp eq i64 %29, 0
  br i1 %31, label %33, label %32

32:                                               ; preds = %26
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 697, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.31) #4
  unreachable

33:                                               ; preds = %26
  %34 = tail call i64 @ggml_time_us()
  %35 = icmp sgt i64 %30, 0
  br i1 %35, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %33
  %.not58 = icmp eq ptr %5, null
  br i1 %.not58, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %.059.us = phi i64 [ %36, %.lr.ph.split.us ], [ 0, %.lr.ph ]
  tail call void @ggml_opt_dataset_get_batch(ptr noundef %1, ptr noundef %8, ptr noundef %9, i64 noundef %.059.us)
  tail call void @ggml_opt_forward_backward(ptr noundef %0, ptr noundef %2)
  %36 = add nuw nsw i64 %.059.us, 1
  %exitcond67.not = icmp eq i64 %36, %30
  br i1 %exitcond67.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !9

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.split
  %.059 = phi i64 [ %37, %.lr.ph.split ], [ 0, %.lr.ph ]
  tail call void @ggml_opt_dataset_get_batch(ptr noundef %1, ptr noundef %8, ptr noundef %9, i64 noundef %.059)
  tail call void @ggml_opt_forward_backward(ptr noundef %0, ptr noundef %2)
  %37 = add nuw nsw i64 %.059, 1
  tail call void %5(i1 noundef zeroext true, ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %37, i64 noundef %30, i64 noundef %34)
  %exitcond.not = icmp eq i64 %37, %30
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph.split, %.lr.ph.split.us, %33
  %.0.lcssa = phi i64 [ 0, %33 ], [ %30, %.lr.ph.split.us ], [ %30, %.lr.ph.split ]
  %38 = tail call i64 @ggml_time_us()
  %39 = icmp slt i64 %.0.lcssa, %23
  br i1 %39, label %.lr.ph62, label %._crit_edge63

.lr.ph62:                                         ; preds = %._crit_edge
  %.not = icmp eq ptr %6, null
  %40 = sub nsw i64 %23, %30
  br i1 %.not, label %.lr.ph62.split.us, label %.lr.ph62.split

.lr.ph62.split.us:                                ; preds = %.lr.ph62, %.lr.ph62.split.us
  %.160.us = phi i64 [ %41, %.lr.ph62.split.us ], [ %.0.lcssa, %.lr.ph62 ]
  tail call void @ggml_opt_dataset_get_batch(ptr noundef %1, ptr noundef %8, ptr noundef %9, i64 noundef %.160.us)
  tail call void @ggml_opt_forward(ptr noundef %0, ptr noundef %3)
  %41 = add i64 %.160.us, 1
  %exitcond69.not = icmp eq i64 %41, %23
  br i1 %exitcond69.not, label %._crit_edge63, label %.lr.ph62.split.us, !llvm.loop !11

.lr.ph62.split:                                   ; preds = %.lr.ph62, %.lr.ph62.split
  %.160 = phi i64 [ %43, %.lr.ph62.split ], [ %.0.lcssa, %.lr.ph62 ]
  tail call void @ggml_opt_dataset_get_batch(ptr noundef %1, ptr noundef %8, ptr noundef %9, i64 noundef %.160)
  tail call void @ggml_opt_forward(ptr noundef %0, ptr noundef %3)
  %reass.sub = sub i64 %.160, %30
  %42 = add i64 %reass.sub, 1
  tail call void %6(i1 noundef zeroext false, ptr noundef %0, ptr noundef %1, ptr noundef %3, i64 noundef %42, i64 noundef %40, i64 noundef %38)
  %43 = add i64 %.160, 1
  %exitcond68.not = icmp eq i64 %43, %23
  br i1 %exitcond68.not, label %._crit_edge63, label %.lr.ph62.split, !llvm.loop !11

._crit_edge63:                                    ; preds = %.lr.ph62.split, %.lr.ph62.split.us, %._crit_edge
  ret void
}

declare i64 @ggml_time_us() local_unnamed_addr #3

attributes #0 = { noreturn "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 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 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 = { "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 = { noreturn }

!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", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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