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

; 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_hash_set = type { i64, ptr, ptr }
%struct.ggml_backend_sched = type { i8, i8, i32, [16 x ptr], [16 x ptr], ptr, %struct.ggml_hash_set, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ggml_cgraph, ptr, i32, i32, i32, i32, [16 x [4 x ptr]], [10 x ptr], i32, ptr, ptr, ptr, ptr, i64, i32 }
%struct.ggml_cgraph = type { i32, i32, i32, ptr, ptr, ptr, ptr, %struct.ggml_hash_set, i32 }
%struct.ggml_backend = type { ptr, %struct.ggml_backend_i, ptr, ptr }
%struct.ggml_backend_i = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.25 = 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: 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) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @ggml_backend_get_default_buffer_type(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i1 @ggml_backend_supports_buft(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @ggml_backend_get_device(ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @ggml_backend_event_new(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ggml_backend_dev_type(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local ptr @ggml_backend_sched_new(ptr noundef %0, ptr noundef %1, i32 noundef %2, i64 noundef %3, i1 noundef zeroext %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.ggml_hash_set, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !11
  %20 = zext i1 %4 to i8
  store i8 %20, ptr %10, align 1, !tbaa !13
  %21 = load i32, ptr %8, align 4, !tbaa !9
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %24, label %23

23:                                               ; preds = %5
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.1, i32 noundef 1456, ptr noundef @.str.2, ptr noundef @.str.21) #10
  unreachable

24:                                               ; preds = %5
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = icmp sle i32 %25, 16
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.1, i32 noundef 1457, ptr noundef @.str.2, ptr noundef @.str.22) #10
  unreachable

28:                                               ; preds = %24
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load i32, ptr %8, align 4, !tbaa !9
  %31 = sub nsw i32 %30, 1
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds ptr, ptr %29, i64 %32
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = call ptr @ggml_backend_get_device(ptr noundef %34)
  %36 = call i32 @ggml_backend_dev_type(ptr noundef %35)
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %39, label %38

38:                                               ; preds = %28
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.1, i32 noundef 1458, ptr noundef @.str.2, ptr noundef @.str.23) #10
  unreachable

39:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #11
  %40 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 1096) #12
  store ptr %40, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #11
  %41 = call ptr @getenv(ptr noundef @.str.24) #11
  store ptr %41, ptr %12, align 8, !tbaa !5
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %47

44:                                               ; preds = %39
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = call i32 @atoi(ptr noundef %45) #13
  br label %48

47:                                               ; preds = %39
  br label %48

48:                                               ; preds = %47, %44
  %49 = phi i32 [ %46, %44 ], [ 0, %47 ]
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ggml_backend_sched, ptr %50, i32 0, i32 27
  store i32 %49, ptr %51, align 8, !tbaa !15
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ggml_backend_sched, ptr %53, i32 0, i32 2
  store i32 %52, ptr %54, align 4, !tbaa !20
  %55 = load i8, ptr %10, align 1, !tbaa !13, !range !21, !noundef !22
  %56 = trunc i8 %55 to i1
  %57 = zext i1 %56 to i64
  %58 = select i1 %56, i32 4, i32 1
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ggml_backend_sched, ptr %59, i32 0, i32 17
  store i32 %58, ptr %60, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #11
  %61 = load i64, ptr %9, align 8, !tbaa !11
  call void @ggml_hash_set_new(ptr dead_on_unwind writable sret(%struct.ggml_hash_set) align 8 %13, i64 noundef %61)
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ggml_backend_sched, ptr %62, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %63, ptr align 8 %13, i64 24, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #11
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ggml_backend_sched, ptr %64, i32 0, i32 6
  %66 = getelementptr inbounds %struct.ggml_hash_set, ptr %65, i32 0, i32 0
  %67 = load i64, ptr %66, align 8, !tbaa !25
  %68 = mul i64 %67, 4
  %69 = call noalias ptr @malloc(i64 noundef %68) #14
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ggml_backend_sched, ptr %70, i32 0, i32 7
  store ptr %69, ptr %71, align 8, !tbaa !26
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ggml_backend_sched, ptr %72, i32 0, i32 6
  %74 = getelementptr inbounds %struct.ggml_hash_set, ptr %73, i32 0, i32 0
  %75 = load i64, ptr %74, align 8, !tbaa !25
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ggml_backend_sched, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 4, !tbaa !20
  %79 = sext i32 %78 to i64
  %80 = mul i64 %75, %79
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ggml_backend_sched, ptr %81, i32 0, i32 17
  %83 = load i32, ptr %82, align 8, !tbaa !23
  %84 = sext i32 %83 to i64
  %85 = mul i64 %80, %84
  %86 = mul i64 %85, 8
  %87 = call noalias ptr @malloc(i64 noundef %86) #14
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ggml_backend_sched, ptr %88, i32 0, i32 8
  store ptr %87, ptr %89, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #11
  %90 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %90, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #11
  %91 = load i64, ptr %9, align 8, !tbaa !11
  %92 = load i64, ptr %14, align 8, !tbaa !11
  %93 = mul i64 %92, 10
  %94 = mul i64 %93, 2
  %95 = add i64 %91, %94
  store i64 %95, ptr %15, align 8, !tbaa !11
  %96 = load i64, ptr %15, align 8, !tbaa !11
  %97 = call noalias ptr @calloc(i64 noundef %96, i64 noundef 4) #12
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ggml_backend_sched, ptr %98, i32 0, i32 9
  store ptr %97, ptr %99, align 8, !tbaa !28
  %100 = load i64, ptr %15, align 8, !tbaa !11
  %101 = call noalias ptr @calloc(i64 noundef %100, i64 noundef 4) #12
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ggml_backend_sched, ptr %102, i32 0, i32 10
  store ptr %101, ptr %103, align 8, !tbaa !29
  %104 = load i64, ptr %15, align 8, !tbaa !11
  %105 = call noalias ptr @calloc(i64 noundef %104, i64 noundef 4) #12
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ggml_backend_sched, ptr %106, i32 0, i32 11
  store ptr %105, ptr %107, align 8, !tbaa !30
  %108 = load i64, ptr %15, align 8, !tbaa !11
  %109 = call noalias ptr @calloc(i64 noundef %108, i64 noundef 4) #12
  %110 = load ptr, ptr %11, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.ggml_backend_sched, ptr %110, i32 0, i32 12
  store ptr %109, ptr %111, align 8, !tbaa !31
  %112 = load i64, ptr %14, align 8, !tbaa !11
  %113 = mul i64 %112, 10
  %114 = mul i64 %113, 2
  %115 = mul i64 %114, 336
  %116 = load i64, ptr %9, align 8, !tbaa !11
  %117 = call i64 @ggml_graph_overhead_custom(i64 noundef %116, i1 noundef zeroext false)
  %118 = add i64 %115, %117
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ggml_backend_sched, ptr %119, i32 0, i32 26
  store i64 %118, ptr %120, align 8, !tbaa !32
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ggml_backend_sched, ptr %121, i32 0, i32 26
  %123 = load i64, ptr %122, align 8, !tbaa !32
  %124 = call noalias ptr @malloc(i64 noundef %123) #14
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.ggml_backend_sched, ptr %125, i32 0, i32 25
  store ptr %124, ptr %126, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #11
  store i32 16, ptr %16, align 4, !tbaa !9
  %127 = call noalias ptr @calloc(i64 noundef 16, i64 noundef 184) #12
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ggml_backend_sched, ptr %128, i32 0, i32 14
  store ptr %127, ptr %129, align 8, !tbaa !34
  %130 = load ptr, ptr %11, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ggml_backend_sched, ptr %130, i32 0, i32 16
  store i32 16, ptr %131, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #11
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %218, %48
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = load i32, ptr %8, align 4, !tbaa !9
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %132
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #11
  br label %221

137:                                              ; preds = %132
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds ptr, ptr %138, i64 %140
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ggml_backend_sched, ptr %143, i32 0, i32 3
  %145 = load i32, ptr %17, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [16 x ptr], ptr %144, i64 0, i64 %146
  store ptr %142, ptr %147, align 8, !tbaa !5
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %156

150:                                              ; preds = %137
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = load i32, ptr %17, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds ptr, ptr %151, i64 %153
  %155 = load ptr, ptr %154, align 8, !tbaa !5
  br label %163

156:                                              ; preds = %137
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = load i32, ptr %17, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds ptr, ptr %157, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = call ptr @ggml_backend_get_default_buffer_type(ptr noundef %161)
  br label %163

163:                                              ; preds = %156, %150
  %164 = phi ptr [ %155, %150 ], [ %162, %156 ]
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.ggml_backend_sched, ptr %165, i32 0, i32 4
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [16 x ptr], ptr %166, i64 0, i64 %168
  store ptr %164, ptr %169, align 8, !tbaa !5
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = load i32, ptr %17, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds ptr, ptr %170, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.ggml_backend_sched, ptr %175, i32 0, i32 4
  %177 = load i32, ptr %17, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [16 x ptr], ptr %176, i64 0, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = call zeroext i1 @ggml_backend_supports_buft(ptr noundef %174, ptr noundef %180)
  br i1 %181, label %183, label %182

182:                                              ; preds = %163
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.1, i32 noundef 1490, ptr noundef @.str.2, ptr noundef @.str.25) #10
  unreachable

183:                                              ; preds = %163
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.ggml_backend_sched, ptr %184, i32 0, i32 17
  %186 = load i32, ptr %185, align 8, !tbaa !23
  %187 = icmp sgt i32 %186, 1
  br i1 %187, label %188, label %217

188:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #11
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %213, %188
  %190 = load i32, ptr %19, align 4, !tbaa !9
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.ggml_backend_sched, ptr %191, i32 0, i32 17
  %193 = load i32, ptr %192, align 8, !tbaa !23
  %194 = icmp slt i32 %190, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %189
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  br label %216

196:                                              ; preds = %189
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = load i32, ptr %17, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds ptr, ptr %197, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.ggml_backend, ptr %201, i32 0, i32 2
  %203 = load ptr, ptr %202, align 8, !tbaa !36
  %204 = call ptr @ggml_backend_event_new(ptr noundef %203)
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ggml_backend_sched, ptr %205, i32 0, i32 19
  %207 = load i32, ptr %17, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [16 x [4 x ptr]], ptr %206, i64 0, i64 %208
  %210 = load i32, ptr %19, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [4 x ptr], ptr %209, i64 0, i64 %211
  store ptr %204, ptr %212, align 8, !tbaa !5
  br label %213

213:                                              ; preds = %196
  %214 = load i32, ptr %19, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %19, align 4, !tbaa !9
  br label %189, !llvm.loop !39

216:                                              ; preds = %195
  br label %217

217:                                              ; preds = %216, %183
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %17, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %17, align 4, !tbaa !9
  br label %132, !llvm.loop !41

221:                                              ; preds = %136
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ggml_backend_sched, ptr %222, i32 0, i32 4
  %224 = getelementptr inbounds [16 x ptr], ptr %223, i64 0, i64 0
  %225 = load i32, ptr %8, align 4, !tbaa !9
  %226 = call ptr @ggml_gallocr_new_n(ptr noundef %224, i32 noundef %225)
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.ggml_backend_sched, ptr %227, i32 0, i32 5
  store ptr %226, ptr %228, align 8, !tbaa !42
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  call void @ggml_backend_sched_reset(ptr noundef %229)
  %230 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #11
  ret ptr %230
}

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

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #7

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #8

declare void @ggml_hash_set_new(ptr dead_on_unwind writable sret(%struct.ggml_hash_set) align 8, i64 noundef) #9

declare i64 @ggml_graph_overhead_custom(i64 noundef, i1 noundef zeroext) #9

declare ptr @ggml_gallocr_new_n(ptr noundef, i32 noundef) #9

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 = { inlinehint mustprogress nounwind willreturn memory(read) 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 #9 = { "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 #10 = { noreturn }
attributes #11 = { nounwind }
attributes #12 = { nounwind allocsize(0,1) }
attributes #13 = { nounwind willreturn memory(read) }
attributes #14 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !10, i64 1088}
!16 = !{!"_ZTS18ggml_backend_sched", !14, i64 0, !14, i64 1, !10, i64 4, !7, i64 8, !7, i64 136, !6, i64 264, !17, i64 272, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !18, i64 344, !6, i64 424, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !7, i64 448, !7, i64 960, !10, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !6, i64 1072, !12, i64 1080, !10, i64 1088}
!17 = !{!"_ZTS13ggml_hash_set", !12, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTS11ggml_cgraph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !17, i64 48, !19, i64 72}
!19 = !{!"_ZTS22ggml_cgraph_eval_order", !7, i64 0}
!20 = !{!16, !10, i64 4}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!16, !10, i64 440}
!24 = !{i64 0, i64 8, !11, i64 8, i64 8, !5, i64 16, i64 8, !5}
!25 = !{!16, !12, i64 272}
!26 = !{!16, !6, i64 296}
!27 = !{!16, !6, i64 304}
!28 = !{!16, !6, i64 312}
!29 = !{!16, !6, i64 320}
!30 = !{!16, !6, i64 328}
!31 = !{!16, !6, i64 336}
!32 = !{!16, !12, i64 1080}
!33 = !{!16, !6, i64 1072}
!34 = !{!16, !6, i64 424}
!35 = !{!16, !10, i64 436}
!36 = !{!37, !6, i64 112}
!37 = !{!"_ZTS12ggml_backend", !6, i64 0, !38, i64 8, !6, i64 112, !6, i64 120}
!38 = !{!"_ZTS14ggml_backend_i", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = !{!16, !6, i64 264}


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

@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [57 x i8], align 1

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

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

; Function Attrs: mustprogress 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) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @ggml_backend_get_default_buffer_type(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i1 @ggml_backend_supports_buft(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @ggml_backend_event_new(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ggml_backend_dev_type(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @ggml_backend_sched_new(ptr nocapture noundef readonly %0, ptr noundef readonly %1, i32 noundef %2, i64 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #3 {
  %6 = alloca %struct.ggml_hash_set, align 8
  %7 = icmp sgt i32 %2, 0
  br i1 %7, label %9, label %8

8:                                                ; preds = %5
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.1, i32 noundef 1456, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.21) #10
  unreachable

9:                                                ; preds = %5
  %10 = icmp ult i32 %2, 17
  br i1 %10, label %12, label %11

11:                                               ; preds = %9
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.1, i32 noundef 1457, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.22) #10
  unreachable

12:                                               ; preds = %9
  %13 = zext nneg i32 %2 to i64
  %14 = getelementptr ptr, ptr %0, i64 %13
  %15 = getelementptr i8, ptr %14, i64 -8
  %16 = load ptr, ptr %15, align 8, !tbaa !5
  %17 = tail call ptr @ggml_backend_get_device(ptr noundef %16)
  %18 = tail call i32 @ggml_backend_dev_type(ptr noundef %17)
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %21, label %20

20:                                               ; preds = %12
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.1, i32 noundef 1458, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.23) #10
  unreachable

21:                                               ; preds = %12
  %22 = tail call noalias dereferenceable_or_null(1096) ptr @calloc(i64 noundef 1, i64 noundef 1096) #11
  %23 = tail call ptr @getenv(ptr noundef nonnull @.str.24) #12
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %.lr.ph75, label %24

24:                                               ; preds = %21
  %25 = tail call i32 @atoi(ptr nocapture noundef %23) #13
  br label %.lr.ph75

.lr.ph75:                                         ; preds = %24, %21
  %26 = phi i32 [ %25, %24 ], [ 0, %21 ]
  %27 = getelementptr inbounds i8, ptr %22, i64 1088
  store i32 %26, ptr %27, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %22, i64 4
  store i32 %2, ptr %28, align 4, !tbaa !17
  %29 = select i1 %4, i32 4, i32 1
  %30 = getelementptr inbounds i8, ptr %22, i64 440
  store i32 %29, ptr %30, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #12
  call void @ggml_hash_set_new(ptr dead_on_unwind nonnull writable sret(%struct.ggml_hash_set) align 8 %6, i64 noundef %3)
  %31 = getelementptr inbounds i8, ptr %22, i64 272
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %6, i64 24, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #12
  %32 = load i64, ptr %31, align 8, !tbaa !21
  %33 = shl i64 %32, 2
  %34 = call noalias ptr @malloc(i64 noundef %33) #14
  %35 = getelementptr inbounds i8, ptr %22, i64 296
  store ptr %34, ptr %35, align 8, !tbaa !22
  %36 = zext nneg i32 %2 to i64
  %37 = zext nneg i32 %29 to i64
  %38 = shl i64 %32, 3
  %39 = mul i64 %38, %36
  %40 = select i1 %4, i64 2, i64 0
  %41 = shl i64 %39, %40
  %42 = call noalias ptr @malloc(i64 noundef %41) #14
  %43 = getelementptr inbounds i8, ptr %22, i64 304
  store ptr %42, ptr %43, align 8, !tbaa !23
  %44 = mul i64 %3, 21
  %45 = call noalias ptr @calloc(i64 noundef %44, i64 noundef 4) #11
  %46 = getelementptr inbounds i8, ptr %22, i64 312
  store ptr %45, ptr %46, align 8, !tbaa !24
  %47 = call noalias ptr @calloc(i64 noundef %44, i64 noundef 4) #11
  %48 = getelementptr inbounds i8, ptr %22, i64 320
  store ptr %47, ptr %48, align 8, !tbaa !25
  %49 = call noalias ptr @calloc(i64 noundef %44, i64 noundef 4) #11
  %50 = getelementptr inbounds i8, ptr %22, i64 328
  store ptr %49, ptr %50, align 8, !tbaa !26
  %51 = call noalias ptr @calloc(i64 noundef %44, i64 noundef 4) #11
  %52 = getelementptr inbounds i8, ptr %22, i64 336
  store ptr %51, ptr %52, align 8, !tbaa !27
  %53 = mul i64 %3, 6720
  %54 = call i64 @ggml_graph_overhead_custom(i64 noundef %3, i1 noundef zeroext false)
  %55 = add i64 %54, %53
  %56 = getelementptr inbounds i8, ptr %22, i64 1080
  store i64 %55, ptr %56, align 8, !tbaa !28
  %57 = call noalias ptr @malloc(i64 noundef %55) #14
  %58 = getelementptr inbounds i8, ptr %22, i64 1072
  store ptr %57, ptr %58, align 8, !tbaa !29
  %59 = call noalias dereferenceable_or_null(2944) ptr @calloc(i64 noundef 16, i64 noundef 184) #11
  %60 = getelementptr inbounds i8, ptr %22, i64 424
  store ptr %59, ptr %60, align 8, !tbaa !30
  %61 = getelementptr inbounds i8, ptr %22, i64 436
  store i32 16, ptr %61, align 4, !tbaa !31
  %62 = getelementptr inbounds i8, ptr %22, i64 8
  %.not72 = icmp eq ptr %1, null
  %63 = getelementptr inbounds i8, ptr %22, i64 136
  %64 = getelementptr inbounds i8, ptr %22, i64 448
  %wide.trip.count89 = zext nneg i32 %2 to i64
  br i1 %.not72, label %.lr.ph75.split.us, label %.lr.ph75.split

.lr.ph75.split.us:                                ; preds = %.lr.ph75, %.loopexit.us
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %.loopexit.us ], [ 0, %.lr.ph75 ]
  %65 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv85
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = getelementptr inbounds [16 x ptr], ptr %62, i64 0, i64 %indvars.iv85
  store ptr %66, ptr %67, align 8, !tbaa !5
  %68 = call ptr @ggml_backend_get_default_buffer_type(ptr noundef %66)
  %69 = getelementptr inbounds [16 x ptr], ptr %63, i64 0, i64 %indvars.iv85
  store ptr %68, ptr %69, align 8, !tbaa !5
  %70 = load ptr, ptr %65, align 8, !tbaa !5
  %71 = call zeroext i1 @ggml_backend_supports_buft(ptr noundef %70, ptr noundef %68)
  br i1 %71, label %72, label %.split.us

72:                                               ; preds = %.lr.ph75.split.us
  br i1 %4, label %.lr.ph.us, label %.loopexit.us

.loopexit.us:                                     ; preds = %.lr.ph.us, %72
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %exitcond90.not = icmp eq i64 %indvars.iv.next86, %wide.trip.count89
  br i1 %exitcond90.not, label %._crit_edge, label %.lr.ph75.split.us, !llvm.loop !32

.lr.ph.us:                                        ; preds = %72, %.lr.ph.us
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %.lr.ph.us ], [ 0, %72 ]
  %73 = load ptr, ptr %65, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 112
  %75 = load ptr, ptr %74, align 8, !tbaa !34
  %76 = call ptr @ggml_backend_event_new(ptr noundef %75)
  %77 = getelementptr inbounds [16 x [4 x ptr]], ptr %64, i64 0, i64 %indvars.iv85, i64 %indvars.iv82
  store ptr %76, ptr %77, align 8, !tbaa !5
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %78 = icmp ult i64 %indvars.iv.next83, %37
  br i1 %78, label %.lr.ph.us, label %.loopexit.us, !llvm.loop !37

._crit_edge:                                      ; preds = %.loopexit, %.loopexit.us
  %79 = getelementptr inbounds i8, ptr %22, i64 136
  %80 = call ptr @ggml_gallocr_new_n(ptr noundef nonnull %79, i32 noundef %2)
  %81 = getelementptr inbounds i8, ptr %22, i64 264
  store ptr %80, ptr %81, align 8, !tbaa !38
  call void @ggml_backend_sched_reset(ptr noundef nonnull %22)
  ret ptr %22

.lr.ph75.split:                                   ; preds = %.lr.ph75, %.loopexit
  %indvars.iv79 = phi i64 [ %indvars.iv.next80, %.loopexit ], [ 0, %.lr.ph75 ]
  %82 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv79
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = getelementptr inbounds [16 x ptr], ptr %62, i64 0, i64 %indvars.iv79
  store ptr %83, ptr %84, align 8, !tbaa !5
  %85 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv79
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds [16 x ptr], ptr %63, i64 0, i64 %indvars.iv79
  store ptr %86, ptr %87, align 8, !tbaa !5
  %88 = call zeroext i1 @ggml_backend_supports_buft(ptr noundef %83, ptr noundef %86)
  br i1 %88, label %89, label %.split.us

.split.us:                                        ; preds = %.lr.ph75.split, %.lr.ph75.split.us
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.1, i32 noundef 1490, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.25) #10
  unreachable

89:                                               ; preds = %.lr.ph75.split
  br i1 %4, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %89, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %89 ]
  %90 = load ptr, ptr %82, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 112
  %92 = load ptr, ptr %91, align 8, !tbaa !34
  %93 = call ptr @ggml_backend_event_new(ptr noundef %92)
  %94 = getelementptr inbounds [16 x [4 x ptr]], ptr %64, i64 0, i64 %indvars.iv79, i64 %indvars.iv
  store ptr %93, ptr %94, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %95 = icmp ult i64 %indvars.iv.next, %37
  br i1 %95, label %.lr.ph, label %.loopexit, !llvm.loop !37

.loopexit:                                        ; preds = %.lr.ph, %89
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count89
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph75.split, !llvm.loop !32
}

; 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 #6

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #8

declare void @ggml_hash_set_new(ptr dead_on_unwind writable sret(%struct.ggml_hash_set) align 8, i64 noundef) local_unnamed_addr #9

declare i64 @ggml_graph_overhead_custom(i64 noundef, i1 noundef zeroext) local_unnamed_addr #9

declare ptr @ggml_gallocr_new_n(ptr noundef, i32 noundef) local_unnamed_addr #9

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #5 = { 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 #6 = { 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 #7 = { nofree nounwind memory(read) "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #9 = { "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 #10 = { noreturn }
attributes #11 = { nounwind allocsize(0,1) }
attributes #12 = { nounwind }
attributes #13 = { nounwind willreturn memory(read) }
attributes #14 = { nounwind allocsize(0) }

!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, !12, i64 1088}
!10 = !{!"_ZTS18ggml_backend_sched", !11, i64 0, !11, i64 1, !12, i64 4, !7, i64 8, !7, i64 136, !6, i64 264, !13, i64 272, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !15, i64 344, !6, i64 424, !12, i64 432, !12, i64 436, !12, i64 440, !12, i64 444, !7, i64 448, !7, i64 960, !12, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !6, i64 1072, !14, i64 1080, !12, i64 1088}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS13ggml_hash_set", !14, i64 0, !6, i64 8, !6, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTS11ggml_cgraph", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !16, i64 72}
!16 = !{!"_ZTS22ggml_cgraph_eval_order", !7, i64 0}
!17 = !{!10, !12, i64 4}
!18 = !{!10, !12, i64 440}
!19 = !{i64 0, i64 8, !20, i64 8, i64 8, !5, i64 16, i64 8, !5}
!20 = !{!14, !14, i64 0}
!21 = !{!10, !14, i64 272}
!22 = !{!10, !6, i64 296}
!23 = !{!10, !6, i64 304}
!24 = !{!10, !6, i64 312}
!25 = !{!10, !6, i64 320}
!26 = !{!10, !6, i64 328}
!27 = !{!10, !6, i64 336}
!28 = !{!10, !14, i64 1080}
!29 = !{!10, !6, i64 1072}
!30 = !{!10, !6, i64 424}
!31 = !{!10, !12, i64 436}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!35, !6, i64 112}
!35 = !{!"_ZTS12ggml_backend", !6, i64 0, !36, i64 8, !6, i64 112, !6, i64 120}
!36 = !{!"_ZTS14ggml_backend_i", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!37 = distinct !{!37, !33}
!38 = !{!10, !6, i64 264}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass