; LLVM IR from ggml-org/ggml :: tests (test-arange)

; 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_init_params = type { i64, ptr, i8 }
%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 [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.ggml_init_params, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.ggml_init_params, 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 i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #8
  store i8 1, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 2, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  %18 = getelementptr inbounds %struct.ggml_init_params, ptr %9, i32 0, i32 0
  %19 = call i64 @ggml_tensor_overhead()
  %20 = mul i64 %19, 2
  %21 = add i64 %20, 2097152
  store i64 %21, ptr %18, align 8, !tbaa !13
  %22 = getelementptr inbounds %struct.ggml_init_params, ptr %9, i32 0, i32 1
  store ptr null, ptr %22, align 8, !tbaa !16
  %23 = getelementptr inbounds %struct.ggml_init_params, ptr %9, i32 0, i32 2
  store i8 1, ptr %23, align 8, !tbaa !17
  %24 = load ptr, ptr %7, align 8, !tbaa !9
  %25 = icmp ne ptr %24, null
  br i1 %25, label %28, label %26

26:                                               ; preds = %2
  %27 = call ptr @ggml_backend_cpu_init()
  store ptr %27, ptr %7, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %26, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %9, i64 24, i1 false), !tbaa.struct !18
  %29 = call ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8 %11)
  store ptr %29, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %30 = load ptr, ptr %10, align 8, !tbaa !9
  %31 = call ptr @ggml_arange(ptr noundef %30, float noundef 0.000000e+00, float noundef 3.000000e+00, float noundef 1.000000e+00)
  store ptr %31, ptr %12, align 8, !tbaa !9
  %32 = load ptr, ptr %12, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.ggml_tensor, ptr %32, i32 0, i32 2
  %34 = getelementptr inbounds [4 x i64], ptr %33, i64 0, i64 0
  %35 = load i64, ptr %34, align 8, !tbaa !19
  %36 = icmp eq i64 %35, 3
  br i1 %36, label %38, label %37

37:                                               ; preds = %28
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 63, ptr noundef @.str.1, ptr noundef @.str.2) #9
  unreachable

38:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %39 = load ptr, ptr %7, align 8, !tbaa !9
  %40 = call ptr @ggml_backend_get_default_buffer_type(ptr noundef %39)
  %41 = call ptr @ggml_gallocr_new(ptr noundef %40)
  store ptr %41, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %42 = load ptr, ptr %10, align 8, !tbaa !9
  %43 = call ptr @ggml_new_graph(ptr noundef %42)
  store ptr %43, ptr %14, align 8, !tbaa !9
  %44 = load ptr, ptr %14, align 8, !tbaa !9
  %45 = load ptr, ptr %12, align 8, !tbaa !9
  call void @ggml_build_forward_expand(ptr noundef %44, ptr noundef %45)
  %46 = load ptr, ptr %13, align 8, !tbaa !9
  %47 = load ptr, ptr %14, align 8, !tbaa !9
  %48 = call zeroext i1 @ggml_gallocr_alloc_graph(ptr noundef %46, ptr noundef %47)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 4, ptr %15, align 4, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !9
  %50 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %49)
  br i1 %50, label %51, label %54

51:                                               ; preds = %38
  %52 = load ptr, ptr %7, align 8, !tbaa !9
  %53 = load i32, ptr %15, align 4, !tbaa !5
  call void @ggml_backend_cpu_set_n_threads(ptr noundef %52, i32 noundef %53)
  br label %54

54:                                               ; preds = %51, %38
  %55 = load ptr, ptr %7, align 8, !tbaa !9
  %56 = load ptr, ptr %14, align 8, !tbaa !9
  %57 = call i32 @ggml_backend_graph_compute(ptr noundef %55, ptr noundef %56)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  %59 = call i64 @ggml_nelements(ptr noundef %58)
  %60 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %59, i64 4)
  %61 = extractvalue { i64, i1 } %60, 1
  %62 = extractvalue { i64, i1 } %60, 0
  %63 = select i1 %61, i64 -1, i64 %62
  %64 = call noalias noundef nonnull ptr @_Znam(i64 noundef %63) #10
  store ptr %64, ptr %16, align 8, !tbaa !9
  %65 = load ptr, ptr %12, align 8, !tbaa !9
  %66 = load ptr, ptr %16, align 8, !tbaa !9
  %67 = load ptr, ptr %12, align 8, !tbaa !9
  %68 = call i64 @ggml_nbytes(ptr noundef %67)
  call void @ggml_backend_tensor_get(ptr noundef %65, ptr noundef %66, i64 noundef 0, i64 noundef %68)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %86, %54
  %70 = load i32, ptr %17, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = load ptr, ptr %12, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.ggml_tensor, ptr %72, i32 0, i32 2
  %74 = getelementptr inbounds [4 x i64], ptr %73, i64 0, i64 0
  %75 = load i64, ptr %74, align 8, !tbaa !19
  %76 = icmp slt i64 %71, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %89

78:                                               ; preds = %69
  %79 = load ptr, ptr %16, align 8, !tbaa !9
  %80 = load i32, ptr %17, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %79, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !20
  %84 = fpext float %83 to double
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %84)
  br label %86

86:                                               ; preds = %78
  %87 = load i32, ptr %17, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %17, align 4, !tbaa !5
  br label %69, !llvm.loop !22

89:                                               ; preds = %77
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  %91 = load ptr, ptr %16, align 8, !tbaa !9
  %92 = getelementptr inbounds float, ptr %91, i64 0
  %93 = load float, ptr %92, align 4, !tbaa !20
  %94 = fcmp oeq float %93, 0.000000e+00
  br i1 %94, label %96, label %95

95:                                               ; preds = %89
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 89, ptr noundef @.str.1, ptr noundef @.str.5) #9
  unreachable

96:                                               ; preds = %89
  %97 = load ptr, ptr %16, align 8, !tbaa !9
  %98 = getelementptr inbounds float, ptr %97, i64 1
  %99 = load float, ptr %98, align 4, !tbaa !20
  %100 = fcmp oeq float %99, 1.000000e+00
  br i1 %100, label %102, label %101

101:                                              ; preds = %96
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 90, ptr noundef @.str.1, ptr noundef @.str.6) #9
  unreachable

102:                                              ; preds = %96
  %103 = load ptr, ptr %16, align 8, !tbaa !9
  %104 = getelementptr inbounds float, ptr %103, i64 2
  %105 = load float, ptr %104, align 4, !tbaa !20
  %106 = fcmp oeq float %105, 2.000000e+00
  br i1 %106, label %108, label %107

107:                                              ; preds = %102
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 91, ptr noundef @.str.1, ptr noundef @.str.7) #9
  unreachable

108:                                              ; preds = %102
  %109 = load ptr, ptr %16, align 8, !tbaa !9
  %110 = icmp eq ptr %109, null
  br i1 %110, label %112, label %111

111:                                              ; preds = %108
  call void @_ZdaPv(ptr noundef %109) #11
  br label %112

112:                                              ; preds = %111, %108
  %113 = load ptr, ptr %10, align 8, !tbaa !9
  call void @ggml_free(ptr noundef %113)
  %114 = load ptr, ptr %13, align 8, !tbaa !9
  call void @ggml_gallocr_free(ptr noundef %114)
  %115 = load ptr, ptr %7, align 8, !tbaa !9
  call void @ggml_backend_free(ptr noundef %115)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #8
  ret i32 0
}

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

declare i64 @ggml_tensor_overhead() #2

declare ptr @ggml_backend_cpu_init() #2

declare ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @ggml_arange(ptr noundef, float noundef, float noundef, float noundef) #2

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

declare ptr @ggml_gallocr_new(ptr noundef) #2

declare ptr @ggml_backend_get_default_buffer_type(ptr noundef) #2

declare ptr @ggml_new_graph(ptr noundef) #2

declare void @ggml_build_forward_expand(ptr noundef, ptr noundef) #2

declare zeroext i1 @ggml_gallocr_alloc_graph(ptr noundef, ptr noundef) #2

declare zeroext i1 @ggml_backend_is_cpu(ptr noundef) #2

declare void @ggml_backend_cpu_set_n_threads(ptr noundef, i32 noundef) #2

declare i32 @ggml_backend_graph_compute(ptr noundef, ptr noundef) #2

declare i64 @ggml_nelements(ptr noundef) #2

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

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

declare void @ggml_backend_tensor_get(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #2

declare i64 @ggml_nbytes(ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

declare void @ggml_free(ptr noundef) #2

declare void @ggml_gallocr_free(ptr noundef) #2

declare void @ggml_backend_free(ptr noundef) #2

attributes #0 = { mustprogress norecurse 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { noreturn }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS16ggml_init_params", !15, i64 0, !10, i64 8, !12, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !10, i64 8}
!17 = !{!14, !12, i64 16}
!18 = !{i64 0, i64 8, !19, i64 8, i64 8, !9, i64 16, i64 1, !11}
!19 = !{!15, !15, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"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"

%struct.ggml_init_params = type { i64, ptr, i8 }

@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca %struct.ggml_init_params, align 8
  %4 = tail call i64 @ggml_tensor_overhead()
  %5 = shl i64 %4, 1
  %6 = add i64 %5, 2097152
  %7 = tail call ptr @ggml_backend_cpu_init()
  store i64 %6, ptr %3, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store ptr null, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 16
  store i8 1, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !11
  %8 = tail call ptr @ggml_init(ptr noundef nonnull byval(%struct.ggml_init_params) align 8 %3)
  %9 = tail call ptr @ggml_arange(ptr noundef %8, float noundef 0.000000e+00, float noundef 3.000000e+00, float noundef 1.000000e+00)
  %10 = getelementptr inbounds i8, ptr %9, i64 16
  %11 = load i64, ptr %10, align 8, !tbaa !5
  %12 = icmp eq i64 %11, 3
  br i1 %12, label %14, label %13

13:                                               ; preds = %2
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 63, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #6
  unreachable

14:                                               ; preds = %2
  %15 = tail call ptr @ggml_backend_get_default_buffer_type(ptr noundef %7)
  %16 = tail call ptr @ggml_gallocr_new(ptr noundef %15)
  %17 = tail call ptr @ggml_new_graph(ptr noundef %8)
  tail call void @ggml_build_forward_expand(ptr noundef %17, ptr noundef nonnull %9)
  %18 = tail call zeroext i1 @ggml_gallocr_alloc_graph(ptr noundef %16, ptr noundef %17)
  %19 = tail call zeroext i1 @ggml_backend_is_cpu(ptr noundef %7)
  br i1 %19, label %20, label %21

20:                                               ; preds = %14
  tail call void @ggml_backend_cpu_set_n_threads(ptr noundef %7, i32 noundef 4)
  br label %21

21:                                               ; preds = %20, %14
  %22 = tail call i32 @ggml_backend_graph_compute(ptr noundef %7, ptr noundef %17)
  %23 = tail call i64 @ggml_nelements(ptr noundef nonnull %9)
  %24 = icmp ugt i64 %23, 4611686018427387903
  %25 = shl i64 %23, 2
  %26 = select i1 %24, i64 -1, i64 %25
  %27 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #7
  %28 = tail call i64 @ggml_nbytes(ptr noundef nonnull %9)
  tail call void @ggml_backend_tensor_get(ptr noundef nonnull %9, ptr noundef nonnull %27, i64 noundef 0, i64 noundef %28)
  %29 = load i64, ptr %10, align 8, !tbaa !5
  %30 = icmp sgt i64 %29, 0
  br i1 %30, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %21
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %32 = load float, ptr %27, align 4, !tbaa !13
  %33 = fcmp oeq float %32, 0.000000e+00
  br i1 %33, label %41, label %40

.lr.ph:                                           ; preds = %21, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %21 ]
  %34 = getelementptr inbounds float, ptr %27, i64 %indvars.iv
  %35 = load float, ptr %34, align 4, !tbaa !13
  %36 = fpext float %35 to double
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %36)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i64, ptr %10, align 8, !tbaa !5
  %39 = icmp sgt i64 %38, %indvars.iv.next
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !15

40:                                               ; preds = %._crit_edge
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 89, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #6
  unreachable

41:                                               ; preds = %._crit_edge
  %42 = getelementptr inbounds i8, ptr %27, i64 4
  %43 = load float, ptr %42, align 4, !tbaa !13
  %44 = fcmp oeq float %43, 1.000000e+00
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 90, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.6) #6
  unreachable

46:                                               ; preds = %41
  %47 = getelementptr inbounds i8, ptr %27, i64 8
  %48 = load float, ptr %47, align 4, !tbaa !13
  %49 = fcmp oeq float %48, 2.000000e+00
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 91, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.7) #6
  unreachable

51:                                               ; preds = %46
  tail call void @_ZdaPv(ptr noundef nonnull %27) #8
  tail call void @ggml_free(ptr noundef %8)
  tail call void @ggml_gallocr_free(ptr noundef %16)
  tail call void @ggml_backend_free(ptr noundef %7)
  ret i32 0
}

declare i64 @ggml_tensor_overhead() local_unnamed_addr #1

declare ptr @ggml_backend_cpu_init() local_unnamed_addr #1

declare ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8) local_unnamed_addr #1

declare ptr @ggml_arange(ptr noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

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

declare ptr @ggml_gallocr_new(ptr noundef) local_unnamed_addr #1

declare ptr @ggml_backend_get_default_buffer_type(ptr noundef) local_unnamed_addr #1

declare ptr @ggml_new_graph(ptr noundef) local_unnamed_addr #1

declare void @ggml_build_forward_expand(ptr noundef, ptr noundef) local_unnamed_addr #1

declare zeroext i1 @ggml_gallocr_alloc_graph(ptr noundef, ptr noundef) local_unnamed_addr #1

declare zeroext i1 @ggml_backend_is_cpu(ptr noundef) local_unnamed_addr #1

declare void @ggml_backend_cpu_set_n_threads(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @ggml_backend_graph_compute(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @ggml_nelements(ptr noundef) local_unnamed_addr #1

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

declare void @ggml_backend_tensor_get(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

declare i64 @ggml_nbytes(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

declare void @ggml_free(ptr noundef) local_unnamed_addr #1

declare void @ggml_gallocr_free(ptr noundef) local_unnamed_addr #1

declare void @ggml_backend_free(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress norecurse 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 = { 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 #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 = { 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 #5 = { nobuiltin 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 = { noreturn }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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