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

; 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_cgraph = type { i32, i32, i32, ptr, ptr, ptr, ptr, %struct.ggml_hash_set, i32 }
%struct.ggml_hash_set = type { i64, ptr, ptr }

@.str.12 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
declare dso_local 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare hidden i64 @ggml_hash_find(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @ggml_bitset_get(ptr noundef, i64 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @ggml_graph_cpy(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ggml_cgraph, ptr %11, i32 0, i32 0
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ggml_cgraph, ptr %14, i32 0, i32 2
  %16 = load i32, ptr %15, align 8, !tbaa !14
  %17 = icmp sge i32 %13, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %2
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 5970, ptr noundef @.str.13, ptr noundef @.str.175) #5
  unreachable

19:                                               ; preds = %2
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ggml_cgraph, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 8, !tbaa !9
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ggml_cgraph, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !15
  %26 = icmp sge i32 %22, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %19
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 5971, ptr noundef @.str.13, ptr noundef @.str.176) #5
  unreachable

28:                                               ; preds = %19
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ggml_cgraph, ptr %29, i32 0, i32 7
  %31 = getelementptr inbounds %struct.ggml_hash_set, ptr %30, i32 0, i32 0
  %32 = load i64, ptr %31, align 8, !tbaa !16
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ggml_cgraph, ptr %33, i32 0, i32 7
  %35 = getelementptr inbounds %struct.ggml_hash_set, ptr %34, i32 0, i32 0
  %36 = load i64, ptr %35, align 8, !tbaa !16
  %37 = icmp uge i64 %32, %36
  br i1 %37, label %39, label %38

38:                                               ; preds = %28
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 5972, ptr noundef @.str.13, ptr noundef @.str.177) #5
  unreachable

39:                                               ; preds = %28
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ggml_cgraph, ptr %40, i32 0, i32 2
  %42 = load i32, ptr %41, align 8, !tbaa !14
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ggml_cgraph, ptr %43, i32 0, i32 2
  store i32 %42, ptr %44, align 8, !tbaa !14
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ggml_cgraph, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !15
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ggml_cgraph, ptr %48, i32 0, i32 1
  store i32 %47, ptr %49, align 4, !tbaa !15
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ggml_cgraph, ptr %50, i32 0, i32 8
  %52 = load i32, ptr %51, align 8, !tbaa !17
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ggml_cgraph, ptr %53, i32 0, i32 8
  store i32 %52, ptr %54, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !18
  br label %55

55:                                               ; preds = %76, %39
  %56 = load i32, ptr %5, align 4, !tbaa !18
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ggml_cgraph, ptr %57, i32 0, i32 2
  %59 = load i32, ptr %58, align 8, !tbaa !14
  %60 = icmp slt i32 %56, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %79

62:                                               ; preds = %55
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ggml_cgraph, ptr %63, i32 0, i32 6
  %65 = load ptr, ptr %64, align 8, !tbaa !19
  %66 = load i32, ptr %5, align 4, !tbaa !18
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds ptr, ptr %65, i64 %67
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ggml_cgraph, ptr %70, i32 0, i32 6
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = load i32, ptr %5, align 4, !tbaa !18
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds ptr, ptr %72, i64 %74
  store ptr %69, ptr %75, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %62
  %77 = load i32, ptr %5, align 4, !tbaa !18
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %5, align 4, !tbaa !18
  br label %55, !llvm.loop !20

79:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !18
  br label %80

80:                                               ; preds = %101, %79
  %81 = load i32, ptr %6, align 4, !tbaa !18
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ggml_cgraph, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !15
  %85 = icmp slt i32 %81, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %104

87:                                               ; preds = %80
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.ggml_cgraph, ptr %88, i32 0, i32 3
  %90 = load ptr, ptr %89, align 8, !tbaa !22
  %91 = load i32, ptr %6, align 4, !tbaa !18
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %90, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ggml_cgraph, ptr %95, i32 0, i32 3
  %97 = load ptr, ptr %96, align 8, !tbaa !22
  %98 = load i32, ptr %6, align 4, !tbaa !18
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds ptr, ptr %97, i64 %99
  store ptr %94, ptr %100, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %87
  %102 = load i32, ptr %6, align 4, !tbaa !18
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %6, align 4, !tbaa !18
  br label %80, !llvm.loop !23

104:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !24
  br label %105

105:                                              ; preds = %132, %104
  %106 = load i64, ptr %7, align 8, !tbaa !24
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ggml_cgraph, ptr %107, i32 0, i32 7
  %109 = getelementptr inbounds %struct.ggml_hash_set, ptr %108, i32 0, i32 0
  %110 = load i64, ptr %109, align 8, !tbaa !16
  %111 = icmp ult i64 %106, %110
  br i1 %111, label %113, label %112

112:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %135

113:                                              ; preds = %105
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.ggml_cgraph, ptr %114, i32 0, i32 7
  %116 = getelementptr inbounds %struct.ggml_hash_set, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !25
  %118 = load i64, ptr %7, align 8, !tbaa !24
  %119 = call zeroext i1 @ggml_bitset_get(ptr noundef %117, i64 noundef %118)
  br i1 %119, label %120, label %131

120:                                              ; preds = %113
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ggml_cgraph, ptr %121, i32 0, i32 7
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ggml_cgraph, ptr %123, i32 0, i32 7
  %125 = getelementptr inbounds %struct.ggml_hash_set, ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %125, align 8, !tbaa !26
  %127 = load i64, ptr %7, align 8, !tbaa !24
  %128 = getelementptr inbounds ptr, ptr %126, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = call i64 @ggml_hash_insert(ptr noundef %122, ptr noundef %129)
  br label %131

131:                                              ; preds = %120, %113
  br label %132

132:                                              ; preds = %131
  %133 = load i64, ptr %7, align 8, !tbaa !24
  %134 = add i64 %133, 1
  store i64 %134, ptr %7, align 8, !tbaa !24
  br label %105, !llvm.loop !27

135:                                              ; preds = %112
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ggml_cgraph, ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !28
  %139 = icmp ne ptr %138, null
  br i1 %139, label %140, label %157

140:                                              ; preds = %135
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ggml_cgraph, ptr %141, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !28
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ggml_cgraph, ptr %144, i32 0, i32 7
  %146 = getelementptr inbounds %struct.ggml_hash_set, ptr %145, i32 0, i32 0
  %147 = load i64, ptr %146, align 8, !tbaa !16
  %148 = mul i64 %147, 8
  call void @llvm.memset.p0.i64(ptr align 8 %143, i8 0, i64 %148, i1 false)
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ggml_cgraph, ptr %149, i32 0, i32 5
  %151 = load ptr, ptr %150, align 8, !tbaa !29
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ggml_cgraph, ptr %152, i32 0, i32 7
  %154 = getelementptr inbounds %struct.ggml_hash_set, ptr %153, i32 0, i32 0
  %155 = load i64, ptr %154, align 8, !tbaa !16
  %156 = mul i64 %155, 8
  call void @llvm.memset.p0.i64(ptr align 8 %151, i8 0, i64 %156, i1 false)
  br label %157

157:                                              ; preds = %140, %135
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ggml_cgraph, ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !28
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %253

162:                                              ; preds = %157
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.ggml_cgraph, ptr %163, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !28
  %166 = icmp ne ptr %165, null
  br i1 %166, label %168, label %167

167:                                              ; preds = %162
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 5998, ptr noundef @.str.13, ptr noundef @.str.178) #5
  unreachable

168:                                              ; preds = %162
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ggml_cgraph, ptr %169, i32 0, i32 5
  %171 = load ptr, ptr %170, align 8, !tbaa !29
  %172 = icmp ne ptr %171, null
  br i1 %172, label %174, label %173

173:                                              ; preds = %168
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 5999, ptr noundef @.str.13, ptr noundef @.str.179) #5
  unreachable

174:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !18
  br label %175

175:                                              ; preds = %249, %174
  %176 = load i32, ptr %8, align 4, !tbaa !18
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ggml_cgraph, ptr %177, i32 0, i32 1
  %179 = load i32, ptr %178, align 4, !tbaa !15
  %180 = icmp slt i32 %176, %179
  br i1 %180, label %182, label %181

181:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %252

182:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.ggml_cgraph, ptr %183, i32 0, i32 7
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.ggml_cgraph, ptr %185, i32 0, i32 3
  %187 = load ptr, ptr %186, align 8, !tbaa !22
  %188 = load i32, ptr %8, align 4, !tbaa !18
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds ptr, ptr %187, i64 %189
  %191 = load ptr, ptr %190, align 8, !tbaa !5
  %192 = call i64 @ggml_hash_find(ptr noundef %184, ptr noundef %191)
  store i64 %192, ptr %9, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.ggml_cgraph, ptr %193, i32 0, i32 7
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.ggml_cgraph, ptr %195, i32 0, i32 3
  %197 = load ptr, ptr %196, align 8, !tbaa !22
  %198 = load i32, ptr %8, align 4, !tbaa !18
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds ptr, ptr %197, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = call i64 @ggml_hash_find(ptr noundef %194, ptr noundef %201)
  store i64 %202, ptr %10, align 8, !tbaa !24
  %203 = load i64, ptr %9, align 8, !tbaa !24
  %204 = icmp ne i64 %203, -1
  br i1 %204, label %206, label %205

205:                                              ; preds = %182
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 6004, ptr noundef @.str.13, ptr noundef @.str.180) #5
  unreachable

206:                                              ; preds = %182
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.ggml_cgraph, ptr %207, i32 0, i32 7
  %209 = getelementptr inbounds %struct.ggml_hash_set, ptr %208, i32 0, i32 1
  %210 = load ptr, ptr %209, align 8, !tbaa !25
  %211 = load i64, ptr %9, align 8, !tbaa !24
  %212 = call zeroext i1 @ggml_bitset_get(ptr noundef %210, i64 noundef %211)
  br i1 %212, label %214, label %213

213:                                              ; preds = %206
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 6005, ptr noundef @.str.13, ptr noundef @.str.181) #5
  unreachable

214:                                              ; preds = %206
  %215 = load i64, ptr %10, align 8, !tbaa !24
  %216 = icmp ne i64 %215, -1
  br i1 %216, label %218, label %217

217:                                              ; preds = %214
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 6006, ptr noundef @.str.13, ptr noundef @.str.182) #5
  unreachable

218:                                              ; preds = %214
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ggml_cgraph, ptr %219, i32 0, i32 7
  %221 = getelementptr inbounds %struct.ggml_hash_set, ptr %220, i32 0, i32 1
  %222 = load ptr, ptr %221, align 8, !tbaa !25
  %223 = load i64, ptr %10, align 8, !tbaa !24
  %224 = call zeroext i1 @ggml_bitset_get(ptr noundef %222, i64 noundef %223)
  br i1 %224, label %226, label %225

225:                                              ; preds = %218
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 6007, ptr noundef @.str.13, ptr noundef @.str.183) #5
  unreachable

226:                                              ; preds = %218
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.ggml_cgraph, ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !28
  %230 = load i64, ptr %9, align 8, !tbaa !24
  %231 = getelementptr inbounds ptr, ptr %229, i64 %230
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.ggml_cgraph, ptr %233, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !28
  %236 = load i64, ptr %10, align 8, !tbaa !24
  %237 = getelementptr inbounds ptr, ptr %235, i64 %236
  store ptr %232, ptr %237, align 8, !tbaa !5
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.ggml_cgraph, ptr %238, i32 0, i32 5
  %240 = load ptr, ptr %239, align 8, !tbaa !29
  %241 = load i64, ptr %9, align 8, !tbaa !24
  %242 = getelementptr inbounds ptr, ptr %240, i64 %241
  %243 = load ptr, ptr %242, align 8, !tbaa !5
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.ggml_cgraph, ptr %244, i32 0, i32 5
  %246 = load ptr, ptr %245, align 8, !tbaa !29
  %247 = load i64, ptr %10, align 8, !tbaa !24
  %248 = getelementptr inbounds ptr, ptr %246, i64 %247
  store ptr %243, ptr %248, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %249

249:                                              ; preds = %226
  %250 = load i32, ptr %8, align 4, !tbaa !18
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %8, align 4, !tbaa !18
  br label %175, !llvm.loop !30

252:                                              ; preds = %181
  br label %253

253:                                              ; preds = %252, %157
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden i64 @ggml_hash_insert(ptr noundef, ptr noundef) #3

attributes #0 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { 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 #4 = { inlinehint 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 = { noreturn }
attributes #6 = { 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 = !{!"ggml_cgraph", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !11, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"ggml_hash_set", !13, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !11, i64 8}
!15 = !{!10, !11, i64 4}
!16 = !{!10, !13, i64 48}
!17 = !{!10, !11, i64 72}
!18 = !{!11, !11, i64 0}
!19 = !{!10, !6, i64 40}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !6, i64 16}
!23 = distinct !{!23, !21}
!24 = !{!13, !13, i64 0}
!25 = !{!10, !6, i64 56}
!26 = !{!10, !6, i64 64}
!27 = distinct !{!27, !21}
!28 = !{!10, !6, i64 24}
!29 = !{!10, !6, i64 32}
!30 = distinct !{!30, !21}


; 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.12 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.175 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.176 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.178 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [55 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare hidden i64 @ggml_hash_find(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @ggml_bitset_get(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @ggml_graph_cpy(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = load i32, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !13
  %.not = icmp slt i32 %3, %5
  br i1 %.not, label %6, label %7

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

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !14
  %.not72 = icmp slt i32 %3, %9
  br i1 %.not72, label %10, label %11

10:                                               ; preds = %7
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 5971, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.176) #4
  unreachable

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %1, i64 48
  %13 = load i64, ptr %12, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %0, i64 48
  %15 = load i64, ptr %14, align 8, !tbaa !15
  %.not73 = icmp ult i64 %13, %15
  br i1 %.not73, label %16, label %17

16:                                               ; preds = %11
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 5972, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.177) #4
  unreachable

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %5, ptr %18, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %9, ptr %19, align 4, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  %21 = load i32, ptr %20, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %1, i64 72
  store i32 %21, ptr %22, align 8, !tbaa !16
  %23 = load i32, ptr %4, align 8, !tbaa !13
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph, label %.preheader81

.lr.ph:                                           ; preds = %17
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  %26 = getelementptr inbounds i8, ptr %1, i64 40
  %wide.trip.count = zext nneg i32 %23 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %27 = icmp ult i32 %23, 4
  br i1 %27, label %.preheader81.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %38

.preheader81.loopexit.unr-lcssa:                  ; preds = %38, %.lr.ph
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %38 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader81, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader81.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.preheader81.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader81.loopexit.unr-lcssa ]
  %28 = load ptr, ptr %25, align 8, !tbaa !17
  %29 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv.epil
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  %31 = load ptr, ptr %26, align 8, !tbaa !17
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.epil
  store ptr %30, ptr %32, align 8, !tbaa !18
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader81, label %.epil.preheader, !llvm.loop !19

.preheader81:                                     ; preds = %.preheader81.loopexit.unr-lcssa, %.epil.preheader, %17
  %33 = load i32, ptr %8, align 4, !tbaa !14
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph84, label %.preheader80

.lr.ph84:                                         ; preds = %.preheader81
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  %36 = getelementptr inbounds i8, ptr %1, i64 16
  %wide.trip.count94 = zext nneg i32 %33 to i64
  %xtraiter100 = and i64 %wide.trip.count94, 3
  %37 = icmp ult i32 %33, 4
  br i1 %37, label %.preheader80.loopexit.unr-lcssa, label %.lr.ph84.new

.lr.ph84.new:                                     ; preds = %.lr.ph84
  %unroll_iter103 = and i64 %wide.trip.count94, 2147483644
  br label %66

38:                                               ; preds = %38, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %38 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %38 ]
  %39 = load ptr, ptr %25, align 8, !tbaa !17
  %40 = getelementptr inbounds ptr, ptr %39, i64 %indvars.iv
  %41 = load ptr, ptr %40, align 8, !tbaa !18
  %42 = load ptr, ptr %26, align 8, !tbaa !17
  %43 = getelementptr inbounds ptr, ptr %42, i64 %indvars.iv
  store ptr %41, ptr %43, align 8, !tbaa !18
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %44 = load ptr, ptr %25, align 8, !tbaa !17
  %45 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv.next
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = load ptr, ptr %26, align 8, !tbaa !17
  %48 = getelementptr inbounds ptr, ptr %47, i64 %indvars.iv.next
  store ptr %46, ptr %48, align 8, !tbaa !18
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %49 = load ptr, ptr %25, align 8, !tbaa !17
  %50 = getelementptr inbounds ptr, ptr %49, i64 %indvars.iv.next.1
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  %52 = load ptr, ptr %26, align 8, !tbaa !17
  %53 = getelementptr inbounds ptr, ptr %52, i64 %indvars.iv.next.1
  store ptr %51, ptr %53, align 8, !tbaa !18
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %54 = load ptr, ptr %25, align 8, !tbaa !17
  %55 = getelementptr inbounds ptr, ptr %54, i64 %indvars.iv.next.2
  %56 = load ptr, ptr %55, align 8, !tbaa !18
  %57 = load ptr, ptr %26, align 8, !tbaa !17
  %58 = getelementptr inbounds ptr, ptr %57, i64 %indvars.iv.next.2
  store ptr %56, ptr %58, align 8, !tbaa !18
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader81.loopexit.unr-lcssa, label %38, !llvm.loop !21

.preheader80.loopexit.unr-lcssa:                  ; preds = %66, %.lr.ph84
  %indvars.iv91.unr = phi i64 [ 0, %.lr.ph84 ], [ %indvars.iv.next92.3, %66 ]
  %lcmp.mod102.not = icmp eq i64 %xtraiter100, 0
  br i1 %lcmp.mod102.not, label %.preheader80, label %.epil.preheader99

.epil.preheader99:                                ; preds = %.preheader80.loopexit.unr-lcssa, %.epil.preheader99
  %indvars.iv91.epil = phi i64 [ %indvars.iv.next92.epil, %.epil.preheader99 ], [ %indvars.iv91.unr, %.preheader80.loopexit.unr-lcssa ]
  %epil.iter101 = phi i64 [ %epil.iter101.next, %.epil.preheader99 ], [ 0, %.preheader80.loopexit.unr-lcssa ]
  %59 = load ptr, ptr %35, align 8, !tbaa !23
  %60 = getelementptr inbounds ptr, ptr %59, i64 %indvars.iv91.epil
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  %62 = load ptr, ptr %36, align 8, !tbaa !23
  %63 = getelementptr inbounds ptr, ptr %62, i64 %indvars.iv91.epil
  store ptr %61, ptr %63, align 8, !tbaa !18
  %indvars.iv.next92.epil = add nuw nsw i64 %indvars.iv91.epil, 1
  %epil.iter101.next = add i64 %epil.iter101, 1
  %epil.iter101.cmp.not = icmp eq i64 %epil.iter101.next, %xtraiter100
  br i1 %epil.iter101.cmp.not, label %.preheader80, label %.epil.preheader99, !llvm.loop !24

.preheader80:                                     ; preds = %.preheader80.loopexit.unr-lcssa, %.epil.preheader99, %.preheader81
  %.not89 = icmp eq i64 %15, 0
  br i1 %.not89, label %._crit_edge, label %.lr.ph86

.lr.ph86:                                         ; preds = %.preheader80
  %64 = getelementptr inbounds i8, ptr %0, i64 56
  %65 = getelementptr inbounds i8, ptr %0, i64 64
  br label %89

66:                                               ; preds = %66, %.lr.ph84.new
  %indvars.iv91 = phi i64 [ 0, %.lr.ph84.new ], [ %indvars.iv.next92.3, %66 ]
  %niter104 = phi i64 [ 0, %.lr.ph84.new ], [ %niter104.next.3, %66 ]
  %67 = load ptr, ptr %35, align 8, !tbaa !23
  %68 = getelementptr inbounds ptr, ptr %67, i64 %indvars.iv91
  %69 = load ptr, ptr %68, align 8, !tbaa !18
  %70 = load ptr, ptr %36, align 8, !tbaa !23
  %71 = getelementptr inbounds ptr, ptr %70, i64 %indvars.iv91
  store ptr %69, ptr %71, align 8, !tbaa !18
  %indvars.iv.next92 = or disjoint i64 %indvars.iv91, 1
  %72 = load ptr, ptr %35, align 8, !tbaa !23
  %73 = getelementptr inbounds ptr, ptr %72, i64 %indvars.iv.next92
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  %75 = load ptr, ptr %36, align 8, !tbaa !23
  %76 = getelementptr inbounds ptr, ptr %75, i64 %indvars.iv.next92
  store ptr %74, ptr %76, align 8, !tbaa !18
  %indvars.iv.next92.1 = or disjoint i64 %indvars.iv91, 2
  %77 = load ptr, ptr %35, align 8, !tbaa !23
  %78 = getelementptr inbounds ptr, ptr %77, i64 %indvars.iv.next92.1
  %79 = load ptr, ptr %78, align 8, !tbaa !18
  %80 = load ptr, ptr %36, align 8, !tbaa !23
  %81 = getelementptr inbounds ptr, ptr %80, i64 %indvars.iv.next92.1
  store ptr %79, ptr %81, align 8, !tbaa !18
  %indvars.iv.next92.2 = or disjoint i64 %indvars.iv91, 3
  %82 = load ptr, ptr %35, align 8, !tbaa !23
  %83 = getelementptr inbounds ptr, ptr %82, i64 %indvars.iv.next92.2
  %84 = load ptr, ptr %83, align 8, !tbaa !18
  %85 = load ptr, ptr %36, align 8, !tbaa !23
  %86 = getelementptr inbounds ptr, ptr %85, i64 %indvars.iv.next92.2
  store ptr %84, ptr %86, align 8, !tbaa !18
  %indvars.iv.next92.3 = add nuw nsw i64 %indvars.iv91, 4
  %niter104.next.3 = add i64 %niter104, 4
  %niter104.ncmp.3 = icmp eq i64 %niter104.next.3, %unroll_iter103
  br i1 %niter104.ncmp.3, label %.preheader80.loopexit.unr-lcssa, label %66, !llvm.loop !25

._crit_edge:                                      ; preds = %97, %.preheader80
  %87 = getelementptr inbounds i8, ptr %1, i64 24
  %88 = load ptr, ptr %87, align 8, !tbaa !26
  %.not74 = icmp eq ptr %88, null
  br i1 %.not74, label %108, label %101

89:                                               ; preds = %.lr.ph86, %97
  %.06685 = phi i64 [ 0, %.lr.ph86 ], [ %98, %97 ]
  %90 = load ptr, ptr %64, align 8, !tbaa !27
  %91 = tail call zeroext i1 @ggml_bitset_get(ptr noundef %90, i64 noundef %.06685)
  br i1 %91, label %92, label %97

92:                                               ; preds = %89
  %93 = load ptr, ptr %65, align 8, !tbaa !28
  %94 = getelementptr inbounds ptr, ptr %93, i64 %.06685
  %95 = load ptr, ptr %94, align 8, !tbaa !18
  %96 = tail call i64 @ggml_hash_insert(ptr noundef nonnull %12, ptr noundef %95)
  br label %97

97:                                               ; preds = %89, %92
  %98 = add nuw i64 %.06685, 1
  %99 = load i64, ptr %14, align 8, !tbaa !15
  %100 = icmp ult i64 %98, %99
  br i1 %100, label %89, label %._crit_edge, !llvm.loop !29

101:                                              ; preds = %._crit_edge
  %102 = load i64, ptr %12, align 8, !tbaa !15
  %103 = shl i64 %102, 3
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %88, i8 0, i64 %103, i1 false)
  %104 = getelementptr inbounds i8, ptr %1, i64 32
  %105 = load ptr, ptr %104, align 8, !tbaa !30
  %106 = load i64, ptr %12, align 8, !tbaa !15
  %107 = shl i64 %106, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %105, i8 0, i64 %107, i1 false)
  br label %108

108:                                              ; preds = %101, %._crit_edge
  %109 = getelementptr inbounds i8, ptr %0, i64 24
  %110 = load ptr, ptr %109, align 8, !tbaa !26
  %.not75 = icmp eq ptr %110, null
  br i1 %.not75, label %.loopexit, label %111

111:                                              ; preds = %108
  %112 = load ptr, ptr %87, align 8, !tbaa !26
  %.not76 = icmp eq ptr %112, null
  br i1 %.not76, label %113, label %114

113:                                              ; preds = %111
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 5998, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.178) #4
  unreachable

114:                                              ; preds = %111
  %115 = getelementptr inbounds i8, ptr %1, i64 32
  %116 = load ptr, ptr %115, align 8, !tbaa !30
  %.not77 = icmp eq ptr %116, null
  br i1 %.not77, label %124, label %.preheader

.preheader:                                       ; preds = %114
  %117 = load i32, ptr %8, align 4, !tbaa !14
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %.lr.ph88, label %.loopexit

.lr.ph88:                                         ; preds = %.preheader
  %119 = getelementptr inbounds i8, ptr %0, i64 16
  %120 = getelementptr inbounds i8, ptr %1, i64 16
  %121 = getelementptr inbounds i8, ptr %0, i64 56
  %122 = getelementptr inbounds i8, ptr %1, i64 56
  %123 = getelementptr inbounds i8, ptr %0, i64 32
  br label %125

124:                                              ; preds = %114
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 5999, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.179) #4
  unreachable

125:                                              ; preds = %.lr.ph88, %145
  %indvars.iv96 = phi i64 [ 0, %.lr.ph88 ], [ %indvars.iv.next97, %145 ]
  %126 = load ptr, ptr %119, align 8, !tbaa !23
  %127 = getelementptr inbounds ptr, ptr %126, i64 %indvars.iv96
  %128 = load ptr, ptr %127, align 8, !tbaa !18
  %129 = tail call i64 @ggml_hash_find(ptr noundef nonnull %14, ptr noundef %128)
  %130 = load ptr, ptr %120, align 8, !tbaa !23
  %131 = getelementptr inbounds ptr, ptr %130, i64 %indvars.iv96
  %132 = load ptr, ptr %131, align 8, !tbaa !18
  %133 = tail call i64 @ggml_hash_find(ptr noundef nonnull %12, ptr noundef %132)
  %.not78 = icmp eq i64 %129, -1
  br i1 %.not78, label %134, label %135

134:                                              ; preds = %125
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 6004, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.180) #4
  unreachable

135:                                              ; preds = %125
  %136 = load ptr, ptr %121, align 8, !tbaa !27
  %137 = tail call zeroext i1 @ggml_bitset_get(ptr noundef %136, i64 noundef %129)
  br i1 %137, label %139, label %138

138:                                              ; preds = %135
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 6005, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.181) #4
  unreachable

139:                                              ; preds = %135
  %.not79 = icmp eq i64 %133, -1
  br i1 %.not79, label %140, label %141

140:                                              ; preds = %139
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 6006, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.182) #4
  unreachable

141:                                              ; preds = %139
  %142 = load ptr, ptr %122, align 8, !tbaa !27
  %143 = tail call zeroext i1 @ggml_bitset_get(ptr noundef %142, i64 noundef %133)
  br i1 %143, label %145, label %144

144:                                              ; preds = %141
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 6007, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.183) #4
  unreachable

145:                                              ; preds = %141
  %146 = load ptr, ptr %109, align 8, !tbaa !26
  %147 = getelementptr inbounds ptr, ptr %146, i64 %129
  %148 = load ptr, ptr %147, align 8, !tbaa !18
  %149 = load ptr, ptr %87, align 8, !tbaa !26
  %150 = getelementptr inbounds ptr, ptr %149, i64 %133
  store ptr %148, ptr %150, align 8, !tbaa !18
  %151 = load ptr, ptr %123, align 8, !tbaa !30
  %152 = getelementptr inbounds ptr, ptr %151, i64 %129
  %153 = load ptr, ptr %152, align 8, !tbaa !18
  %154 = load ptr, ptr %115, align 8, !tbaa !30
  %155 = getelementptr inbounds ptr, ptr %154, i64 %133
  store ptr %153, ptr %155, align 8, !tbaa !18
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %156 = load i32, ptr %8, align 4, !tbaa !14
  %157 = sext i32 %156 to i64
  %158 = icmp slt i64 %indvars.iv.next97, %157
  br i1 %158, label %125, label %.loopexit, !llvm.loop !31

.loopexit:                                        ; preds = %145, %.preheader, %108
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden i64 @ggml_hash_insert(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { inlinehint 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 #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, !7, i64 0}
!6 = !{!"ggml_cgraph", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !7, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"ggml_hash_set", !12, i64 0, !10, i64 8, !10, i64 16}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 4}
!15 = !{!6, !12, i64 48}
!16 = !{!6, !7, i64 72}
!17 = !{!6, !10, i64 40}
!18 = !{!10, !10, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !10, i64 16}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !22}
!26 = !{!6, !10, i64 24}
!27 = !{!6, !10, i64 56}
!28 = !{!6, !10, i64 64}
!29 = distinct !{!29, !22}
!30 = !{!6, !10, i64 32}
!31 = distinct !{!31, !22}


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