; 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 }
%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.12 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.201 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.203 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.205 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.206 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.208 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.209 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.210 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.211 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.223 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.224 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.225 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [43 x i8], align 1
@__func__.ggml_graph_dump_dot = external hidden unnamed_addr constant [20 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @ggml_log_internal(i32 noundef, ptr noundef, ...) #3

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @ggml_fopen(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i64 @ggml_nelements(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @ggml_type_name(i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @ggml_op_symbol(i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @ggml_is_matrix(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @ggml_graph_get_grad(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @ggml_graph_dump_dot(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [16 x i8], align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca [16 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca [16 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call ptr @ggml_fopen(ptr noundef %24, ptr noundef @.str.201)
  store ptr %25, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %29, label %28

28:                                               ; preds = %3
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 6211, ptr noundef @.str.13, ptr noundef @.str.202) #7
  unreachable

29:                                               ; preds = %3
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.203) #6
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.204) #6
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.205) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %169, %29
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ggml_cgraph, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %41 = icmp slt i32 %37, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %36
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %172

43:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ggml_cgraph, ptr %44, i32 0, i32 3
  %46 = load ptr, ptr %45, align 8, !tbaa !15
  %47 = load i32, ptr %9, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds ptr, ptr %46, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !5
  store ptr %50, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = call ptr @ggml_graph_get_grad(ptr noundef %51, ptr noundef %52)
  store ptr %53, ptr %12, align 8, !tbaa !5
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = call ptr @ggml_graph_get_parent(ptr noundef %54, ptr noundef %55)
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %59

58:                                               ; preds = %43
  store i32 4, ptr %10, align 4
  br label %166

59:                                               ; preds = %43
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ggml_tensor, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %61, align 4, !tbaa !16
  %63 = and i32 %62, 4
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %59
  %66 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %67 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %66, i64 noundef 16, ptr noundef @.str.206) #6
  br label %86

68:                                               ; preds = %59
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %82

71:                                               ; preds = %68
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = call zeroext i1 @ggml_graph_find(ptr noundef %72, ptr noundef %73)
  br i1 %74, label %75, label %78

75:                                               ; preds = %71
  %76 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %77 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %76, i64 noundef 16, ptr noundef @.str.207) #6
  br label %81

78:                                               ; preds = %71
  %79 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %80 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %79, i64 noundef 16, ptr noundef @.str.208) #6
  br label %81

81:                                               ; preds = %78, %75
  br label %85

82:                                               ; preds = %68
  %83 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %84 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %83, i64 noundef 16, ptr noundef @.str.209) #6
  br label %85

85:                                               ; preds = %82, %81
  br label %86

86:                                               ; preds = %85, %65
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %87, ptr noundef @.str.210, ptr noundef %88, ptr noundef %89) #6
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ggml_tensor, ptr %91, i32 0, i32 11
  %93 = getelementptr inbounds [64 x i8], ptr %92, i64 0, i64 0
  %94 = call i64 @strlen(ptr noundef %93) #8
  %95 = icmp ugt i64 %94, 0
  br i1 %95, label %96, label %106

96:                                               ; preds = %86
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ggml_tensor, ptr %98, i32 0, i32 11
  %100 = getelementptr inbounds [64 x i8], ptr %99, i64 0, i64 0
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ggml_tensor, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !18
  %104 = call ptr @ggml_type_name(i32 noundef %103)
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.211, ptr noundef %100, ptr noundef %104) #6
  br label %113

106:                                              ; preds = %86
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ggml_tensor, ptr %108, i32 0, i32 0
  %110 = load i32, ptr %109, align 8, !tbaa !18
  %111 = call ptr @ggml_type_name(i32 noundef %110)
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str.212, ptr noundef %111) #6
  br label %113

113:                                              ; preds = %106, %96
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = call zeroext i1 @ggml_is_matrix(ptr noundef %114)
  br i1 %115, label %116, label %132

116:                                              ; preds = %113
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load i32, ptr %9, align 4, !tbaa !9
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ggml_tensor, ptr %119, i32 0, i32 2
  %121 = getelementptr inbounds [4 x i64], ptr %120, i64 0, i64 0
  %122 = load i64, ptr %121, align 8, !tbaa !19
  %123 = load ptr, ptr %11, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ggml_tensor, ptr %123, i32 0, i32 2
  %125 = getelementptr inbounds [4 x i64], ptr %124, i64 0, i64 1
  %126 = load i64, ptr %125, align 8, !tbaa !19
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ggml_tensor, ptr %127, i32 0, i32 4
  %129 = load i32, ptr %128, align 8, !tbaa !20
  %130 = call ptr @ggml_op_symbol(i32 noundef %129)
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.213, i32 noundef %118, i64 noundef %122, i64 noundef %126, ptr noundef %130) #6
  br label %152

132:                                              ; preds = %113
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.ggml_tensor, ptr %135, i32 0, i32 2
  %137 = getelementptr inbounds [4 x i64], ptr %136, i64 0, i64 0
  %138 = load i64, ptr %137, align 8, !tbaa !19
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ggml_tensor, ptr %139, i32 0, i32 2
  %141 = getelementptr inbounds [4 x i64], ptr %140, i64 0, i64 1
  %142 = load i64, ptr %141, align 8, !tbaa !19
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ggml_tensor, ptr %143, i32 0, i32 2
  %145 = getelementptr inbounds [4 x i64], ptr %144, i64 0, i64 2
  %146 = load i64, ptr %145, align 8, !tbaa !19
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ggml_tensor, ptr %147, i32 0, i32 4
  %149 = load i32, ptr %148, align 8, !tbaa !20
  %150 = call ptr @ggml_op_symbol(i32 noundef %149)
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.214, i32 noundef %134, i64 noundef %138, i64 noundef %142, i64 noundef %146, ptr noundef %150) #6
  br label %152

152:                                              ; preds = %132, %116
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = icmp ne ptr %153, null
  br i1 %154, label %155, label %162

155:                                              ; preds = %152
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ggml_tensor, ptr %157, i32 0, i32 4
  %159 = load i32, ptr %158, align 8, !tbaa !20
  %160 = call ptr @ggml_op_symbol(i32 noundef %159)
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.215, ptr noundef %160) #6
  br label %165

162:                                              ; preds = %152
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef @.str.216) #6
  br label %165

165:                                              ; preds = %162, %155
  store i32 0, ptr %10, align 4
  br label %166

166:                                              ; preds = %165, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  %167 = load i32, ptr %10, align 4
  switch i32 %167, label %378 [
    i32 0, label %168
    i32 4, label %169
  ]

168:                                              ; preds = %166
  br label %169

169:                                              ; preds = %168, %166
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %9, align 4, !tbaa !9
  br label %36, !llvm.loop !21

172:                                              ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %268, %172
  %174 = load i32, ptr %13, align 4, !tbaa !9
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.ggml_cgraph, ptr %175, i32 0, i32 2
  %177 = load i32, ptr %176, align 8, !tbaa !23
  %178 = icmp slt i32 %174, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %173
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %271

180:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.ggml_cgraph, ptr %181, i32 0, i32 6
  %183 = load ptr, ptr %182, align 8, !tbaa !24
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds ptr, ptr %183, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  store ptr %187, ptr %14, align 8, !tbaa !5
  %188 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %189 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %188, i64 noundef 16, ptr noundef @.str.217) #6
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %190, ptr noundef @.str.218, ptr noundef %191, ptr noundef %192) #6
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ggml_tensor, ptr %194, i32 0, i32 11
  %196 = getelementptr inbounds [64 x i8], ptr %195, i64 0, i64 0
  %197 = call i64 @strlen(ptr noundef %196) #8
  %198 = icmp ugt i64 %197, 0
  br i1 %198, label %199, label %209

199:                                              ; preds = %180
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.ggml_tensor, ptr %201, i32 0, i32 11
  %203 = getelementptr inbounds [64 x i8], ptr %202, i64 0, i64 0
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.ggml_tensor, ptr %204, i32 0, i32 0
  %206 = load i32, ptr %205, align 8, !tbaa !18
  %207 = call ptr @ggml_type_name(i32 noundef %206)
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str.211, ptr noundef %203, ptr noundef %207) #6
  br label %216

209:                                              ; preds = %180
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.ggml_tensor, ptr %211, i32 0, i32 0
  %213 = load i32, ptr %212, align 8, !tbaa !18
  %214 = call ptr @ggml_type_name(i32 noundef %213)
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %210, ptr noundef @.str.212, ptr noundef %214) #6
  br label %216

216:                                              ; preds = %209, %199
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = load ptr, ptr %14, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.ggml_tensor, ptr %219, i32 0, i32 2
  %221 = getelementptr inbounds [4 x i64], ptr %220, i64 0, i64 0
  %222 = load i64, ptr %221, align 8, !tbaa !19
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.ggml_tensor, ptr %223, i32 0, i32 2
  %225 = getelementptr inbounds [4 x i64], ptr %224, i64 0, i64 1
  %226 = load i64, ptr %225, align 8, !tbaa !19
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %217, ptr noundef @.str.219, i32 noundef %218, i64 noundef %222, i64 noundef %226) #6
  %228 = load ptr, ptr %14, align 8, !tbaa !5
  %229 = call i64 @ggml_nelements(ptr noundef %228)
  %230 = icmp slt i64 %229, 5
  br i1 %230, label %231, label %265

231:                                              ; preds = %216
  %232 = load ptr, ptr %14, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.ggml_tensor, ptr %232, i32 0, i32 10
  %234 = load ptr, ptr %233, align 8, !tbaa !25
  %235 = icmp ne ptr %234, null
  br i1 %235, label %236, label %265

236:                                              ; preds = %231
  %237 = load ptr, ptr %8, align 8, !tbaa !5
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.220) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %259, %236
  %240 = load i32, ptr %15, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = load ptr, ptr %14, align 8, !tbaa !5
  %243 = call i64 @ggml_nelements(ptr noundef %242)
  %244 = icmp slt i64 %241, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %239
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %262

246:                                              ; preds = %239
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %247, ptr noundef @.str.221) #6
  %249 = load i32, ptr %15, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = load ptr, ptr %14, align 8, !tbaa !5
  %252 = call i64 @ggml_nelements(ptr noundef %251)
  %253 = sub nsw i64 %252, 1
  %254 = icmp slt i64 %250, %253
  br i1 %254, label %255, label %258

255:                                              ; preds = %246
  %256 = load ptr, ptr %8, align 8, !tbaa !5
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.222) #6
  br label %258

258:                                              ; preds = %255, %246
  br label %259

259:                                              ; preds = %258
  %260 = load i32, ptr %15, align 4, !tbaa !9
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %15, align 4, !tbaa !9
  br label %239, !llvm.loop !26

262:                                              ; preds = %245
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  %264 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %263, ptr noundef @.str.223) #6
  br label %265

265:                                              ; preds = %262, %231, %216
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %266, ptr noundef @.str.216) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %268

268:                                              ; preds = %265
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %13, align 4, !tbaa !9
  br label %173, !llvm.loop !27

271:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %272

272:                                              ; preds = %318, %271
  %273 = load i32, ptr %16, align 4, !tbaa !9
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.ggml_cgraph, ptr %274, i32 0, i32 1
  %276 = load i32, ptr %275, align 4, !tbaa !11
  %277 = icmp slt i32 %273, %276
  br i1 %277, label %279, label %278

278:                                              ; preds = %272
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %321

279:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.ggml_cgraph, ptr %280, i32 0, i32 3
  %282 = load ptr, ptr %281, align 8, !tbaa !15
  %283 = load i32, ptr %16, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds ptr, ptr %282, i64 %284
  %286 = load ptr, ptr %285, align 8, !tbaa !5
  store ptr %286, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %287

287:                                              ; preds = %314, %279
  %288 = load i32, ptr %18, align 4, !tbaa !9
  %289 = icmp slt i32 %288, 10
  br i1 %289, label %291, label %290

290:                                              ; preds = %287
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %317

291:                                              ; preds = %287
  %292 = load ptr, ptr %17, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.ggml_tensor, ptr %292, i32 0, i32 7
  %294 = load i32, ptr %18, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [10 x ptr], ptr %293, i64 0, i64 %295
  %297 = load ptr, ptr %296, align 8, !tbaa !5
  %298 = icmp ne ptr %297, null
  br i1 %298, label %299, label %313

299:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %300 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  %301 = load i32, ptr %18, align 4, !tbaa !9
  %302 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %300, i64 noundef 16, ptr noundef @.str.224, i32 noundef %301) #6
  %303 = load ptr, ptr %8, align 8, !tbaa !5
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = load ptr, ptr %17, align 8, !tbaa !5
  %306 = load ptr, ptr %17, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.ggml_tensor, ptr %306, i32 0, i32 7
  %308 = load i32, ptr %18, align 4, !tbaa !9
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [10 x ptr], ptr %307, i64 0, i64 %309
  %311 = load ptr, ptr %310, align 8, !tbaa !5
  %312 = getelementptr inbounds [16 x i8], ptr %19, i64 0, i64 0
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %303, ptr noundef %304, ptr noundef %305, ptr noundef %311, ptr noundef %312)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %313

313:                                              ; preds = %299, %291
  br label %314

314:                                              ; preds = %313
  %315 = load i32, ptr %18, align 4, !tbaa !9
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %18, align 4, !tbaa !9
  br label %287, !llvm.loop !28

317:                                              ; preds = %290
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %318

318:                                              ; preds = %317
  %319 = load i32, ptr %16, align 4, !tbaa !9
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %16, align 4, !tbaa !9
  br label %272, !llvm.loop !29

321:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %322

322:                                              ; preds = %367, %321
  %323 = load i32, ptr %20, align 4, !tbaa !9
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.ggml_cgraph, ptr %324, i32 0, i32 2
  %326 = load i32, ptr %325, align 8, !tbaa !23
  %327 = icmp slt i32 %323, %326
  br i1 %327, label %329, label %328

328:                                              ; preds = %322
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %370

329:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %330 = load ptr, ptr %4, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.ggml_cgraph, ptr %330, i32 0, i32 6
  %332 = load ptr, ptr %331, align 8, !tbaa !24
  %333 = load i32, ptr %20, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds ptr, ptr %332, i64 %334
  %336 = load ptr, ptr %335, align 8, !tbaa !5
  store ptr %336, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %337

337:                                              ; preds = %363, %329
  %338 = load i32, ptr %22, align 4, !tbaa !9
  %339 = icmp slt i32 %338, 10
  br i1 %339, label %341, label %340

340:                                              ; preds = %337
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %366

341:                                              ; preds = %337
  %342 = load ptr, ptr %21, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.ggml_tensor, ptr %342, i32 0, i32 7
  %344 = load i32, ptr %22, align 4, !tbaa !9
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [10 x ptr], ptr %343, i64 0, i64 %345
  %347 = load ptr, ptr %346, align 8, !tbaa !5
  %348 = icmp ne ptr %347, null
  br i1 %348, label %349, label %362

349:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %350 = getelementptr inbounds [16 x i8], ptr %23, i64 0, i64 0
  %351 = load i32, ptr %22, align 4, !tbaa !9
  %352 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %350, i64 noundef 16, ptr noundef @.str.224, i32 noundef %351) #6
  %353 = load ptr, ptr %8, align 8, !tbaa !5
  %354 = load ptr, ptr %21, align 8, !tbaa !5
  %355 = load ptr, ptr %21, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.ggml_tensor, ptr %355, i32 0, i32 7
  %357 = load i32, ptr %22, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [10 x ptr], ptr %356, i64 0, i64 %358
  %360 = load ptr, ptr %359, align 8, !tbaa !5
  %361 = getelementptr inbounds [16 x i8], ptr %23, i64 0, i64 0
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %353, ptr noundef %354, ptr noundef %360, ptr noundef %361)
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %362

362:                                              ; preds = %349, %341
  br label %363

363:                                              ; preds = %362
  %364 = load i32, ptr %22, align 4, !tbaa !9
  %365 = add nsw i32 %364, 1
  store i32 %365, ptr %22, align 4, !tbaa !9
  br label %337, !llvm.loop !30

366:                                              ; preds = %340
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %367

367:                                              ; preds = %366
  %368 = load i32, ptr %20, align 4, !tbaa !9
  %369 = add nsw i32 %368, 1
  store i32 %369, ptr %20, align 4, !tbaa !9
  br label %322, !llvm.loop !31

370:                                              ; preds = %328
  %371 = load ptr, ptr %8, align 8, !tbaa !5
  %372 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %371, ptr noundef @.str.225) #6
  %373 = load ptr, ptr %8, align 8, !tbaa !5
  %374 = call i32 @fclose(ptr noundef %373)
  %375 = load ptr, ptr %6, align 8, !tbaa !5
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  %377 = load ptr, ptr %6, align 8, !tbaa !5
  call void (i32, ptr, ...) @ggml_log_internal(i32 noundef 2, ptr noundef @.str.226, ptr noundef @__func__.ggml_graph_dump_dot, ptr noundef %375, ptr noundef %376, ptr noundef %377)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  ret void

378:                                              ; preds = %166
  unreachable
}

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i1 @ggml_graph_find(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

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

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

declare i32 @fclose(ptr noundef) #5

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind willreturn 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 #5 = { "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 }
attributes #7 = { noreturn }
attributes #8 = { nounwind willreturn memory(read) }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"ggml_cgraph", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !10, i64 72}
!13 = !{!"ggml_hash_set", !14, i64 0, !6, i64 8, !6, i64 16}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 16}
!16 = !{!17, !10, i64 148}
!17 = !{!"ggml_tensor", !10, i64 0, !6, i64 8, !7, i64 16, !7, i64 48, !10, i64 80, !7, i64 84, !10, i64 148, !7, i64 152, !6, i64 232, !14, i64 240, !6, i64 248, !7, i64 256, !6, i64 320, !7, i64 328}
!18 = !{!17, !10, i64 0}
!19 = !{!14, !14, i64 0}
!20 = !{!17, !10, i64 80}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!12, !10, i64 8}
!24 = !{!12, !6, i64 40}
!25 = !{!17, !6, i64 248}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}
!29 = distinct !{!29, !22}
!30 = distinct !{!30, !22}
!31 = distinct !{!31, !22}


; 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.201 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.202 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.203 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.204 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.205 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.206 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.207 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.208 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.209 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.210 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.211 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.223 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.224 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.225 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [43 x i8], align 1
@__func__.ggml_graph_dump_dot = external hidden unnamed_addr constant [20 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @ggml_log_internal(i32 noundef, ptr noundef, ...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @ggml_fopen(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i64 @ggml_nelements(ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @ggml_is_matrix(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @ggml_graph_get_grad(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @ggml_graph_dump_dot(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca [16 x i8], align 16
  %5 = alloca [16 x i8], align 16
  %6 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  %7 = tail call ptr @ggml_fopen(ptr noundef %2, ptr noundef nonnull @.str.201)
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %8, label %9

8:                                                ; preds = %3
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 6211, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.202) #5
  unreachable

9:                                                ; preds = %3
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.203) #4
  %11 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.204) #4
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.205) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %.preheader124

.lr.ph:                                           ; preds = %9
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  br label %22

.preheader124:                                    ; preds = %73, %9
  %17 = phi i32 [ %14, %9 ], [ %74, %73 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph130, label %.preheader123

.lr.ph130:                                        ; preds = %.preheader124
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  br label %81

22:                                               ; preds = %.lr.ph, %73
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %73 ]
  %23 = load ptr, ptr %16, align 8, !tbaa !14
  %24 = getelementptr inbounds ptr, ptr %23, i64 %indvars.iv
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = call ptr @ggml_graph_get_grad(ptr noundef nonnull %0, ptr noundef %25)
  %27 = call ptr @ggml_graph_get_parent(ptr noundef nonnull %0, ptr noundef %25)
  %.not117 = icmp eq ptr %27, null
  br i1 %.not117, label %28, label %73

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %25, i64 148
  %30 = load i32, ptr %29, align 4, !tbaa !16
  %31 = and i32 %30, 4
  %.not118 = icmp eq i32 %31, 0
  br i1 %.not118, label %32, label %35

32:                                               ; preds = %28
  %.not119 = icmp eq ptr %26, null
  br i1 %.not119, label %35, label %33

33:                                               ; preds = %32
  %34 = call zeroext i1 @ggml_graph_find(ptr noundef %1, ptr noundef nonnull %25)
  %.str.207..str.208 = select i1 %34, ptr @.str.207, ptr @.str.208
  br label %35

35:                                               ; preds = %32, %33, %28
  %.str.209.sink = phi ptr [ @.str.206, %28 ], [ %.str.207..str.208, %33 ], [ @.str.209, %32 ]
  %36 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 16, ptr noundef nonnull %.str.209.sink) #4
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.210, ptr noundef nonnull %25, ptr noundef nonnull %4) #4
  %38 = getelementptr inbounds i8, ptr %25, i64 256
  %char0120 = load i8, ptr %38, align 1
  %.not121 = icmp eq i8 %char0120, 0
  %39 = load i32, ptr %25, align 8, !tbaa !18
  %40 = call ptr @ggml_type_name(i32 noundef %39)
  br i1 %.not121, label %43, label %41

41:                                               ; preds = %35
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.211, ptr noundef nonnull %38, ptr noundef %40) #4
  br label %45

43:                                               ; preds = %35
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.212, ptr noundef %40) #4
  br label %45

45:                                               ; preds = %43, %41
  %46 = call zeroext i1 @ggml_is_matrix(ptr noundef nonnull %25)
  %47 = getelementptr inbounds i8, ptr %25, i64 16
  %48 = load i64, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds i8, ptr %25, i64 24
  %50 = load i64, ptr %49, align 8, !tbaa !19
  br i1 %46, label %51, label %57

51:                                               ; preds = %45
  %52 = getelementptr inbounds i8, ptr %25, i64 80
  %53 = load i32, ptr %52, align 8, !tbaa !20
  %54 = call ptr @ggml_op_symbol(i32 noundef %53)
  %55 = trunc nuw nsw i64 %indvars.iv to i32
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.213, i32 noundef %55, i64 noundef %48, i64 noundef %50, ptr noundef %54) #4
  br label %65

57:                                               ; preds = %45
  %58 = getelementptr inbounds i8, ptr %25, i64 32
  %59 = load i64, ptr %58, align 8, !tbaa !19
  %60 = getelementptr inbounds i8, ptr %25, i64 80
  %61 = load i32, ptr %60, align 8, !tbaa !20
  %62 = call ptr @ggml_op_symbol(i32 noundef %61)
  %63 = trunc nuw nsw i64 %indvars.iv to i32
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.214, i32 noundef %63, i64 noundef %48, i64 noundef %50, i64 noundef %59, ptr noundef %62) #4
  br label %65

65:                                               ; preds = %57, %51
  %.not122 = icmp eq ptr %26, null
  br i1 %.not122, label %71, label %66

66:                                               ; preds = %65
  %67 = getelementptr inbounds i8, ptr %26, i64 80
  %68 = load i32, ptr %67, align 8, !tbaa !20
  %69 = call ptr @ggml_op_symbol(i32 noundef %68)
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.215, ptr noundef %69) #4
  br label %73

71:                                               ; preds = %65
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.216) #4
  br label %73

73:                                               ; preds = %66, %71, %22
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %74 = load i32, ptr %13, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next, %75
  br i1 %76, label %22, label %.preheader124, !llvm.loop !21

.preheader123.loopexit:                           ; preds = %120
  %.pre = load i32, ptr %13, align 4, !tbaa !5
  br label %.preheader123

.preheader123:                                    ; preds = %.preheader123.loopexit, %.preheader124
  %77 = phi i32 [ %122, %.preheader123.loopexit ], [ %19, %.preheader124 ]
  %78 = phi i32 [ %.pre, %.preheader123.loopexit ], [ %17, %.preheader124 ]
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %.lr.ph133, label %.preheader

.lr.ph133:                                        ; preds = %.preheader123
  %80 = getelementptr inbounds i8, ptr %0, i64 16
  br label %128

81:                                               ; preds = %.lr.ph130, %120
  %indvars.iv142 = phi i64 [ 0, %.lr.ph130 ], [ %indvars.iv.next143, %120 ]
  %82 = load ptr, ptr %21, align 8, !tbaa !23
  %83 = getelementptr inbounds ptr, ptr %82, i64 %indvars.iv142
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  %85 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %4, i64 noundef 16, ptr noundef nonnull @.str.217) #4
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.218, ptr noundef %84, ptr noundef nonnull %4) #4
  %87 = getelementptr inbounds i8, ptr %84, i64 256
  %char0 = load i8, ptr %87, align 1
  %.not115 = icmp eq i8 %char0, 0
  %88 = load i32, ptr %84, align 8, !tbaa !18
  %89 = call ptr @ggml_type_name(i32 noundef %88)
  br i1 %.not115, label %92, label %90

90:                                               ; preds = %81
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.211, ptr noundef nonnull %87, ptr noundef %89) #4
  br label %94

92:                                               ; preds = %81
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.212, ptr noundef %89) #4
  br label %94

94:                                               ; preds = %92, %90
  %95 = getelementptr inbounds i8, ptr %84, i64 16
  %96 = load i64, ptr %95, align 8, !tbaa !19
  %97 = getelementptr inbounds i8, ptr %84, i64 24
  %98 = load i64, ptr %97, align 8, !tbaa !19
  %99 = trunc nuw nsw i64 %indvars.iv142 to i32
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.219, i32 noundef %99, i64 noundef %96, i64 noundef %98) #4
  %101 = call i64 @ggml_nelements(ptr noundef nonnull %84)
  %102 = icmp slt i64 %101, 5
  br i1 %102, label %103, label %120

103:                                              ; preds = %94
  %104 = getelementptr inbounds i8, ptr %84, i64 248
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %.not116 = icmp eq ptr %105, null
  br i1 %.not116, label %120, label %106

106:                                              ; preds = %103
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.220) #4
  %108 = call i64 @ggml_nelements(ptr noundef nonnull %84)
  %109 = icmp sgt i64 %108, 0
  br i1 %109, label %.lr.ph128, label %._crit_edge

._crit_edge:                                      ; preds = %117, %106
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.223) #4
  br label %120

.lr.ph128:                                        ; preds = %106, %117
  %indvars.iv139 = phi i64 [ %indvars.iv.next140, %117 ], [ 0, %106 ]
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.221) #4
  %112 = call i64 @ggml_nelements(ptr noundef nonnull %84)
  %113 = add nsw i64 %112, -1
  %114 = icmp sgt i64 %113, %indvars.iv139
  br i1 %114, label %115, label %117

115:                                              ; preds = %.lr.ph128
  %116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.222) #4
  br label %117

117:                                              ; preds = %.lr.ph128, %115
  %indvars.iv.next140 = add nuw nsw i64 %indvars.iv139, 1
  %118 = call i64 @ggml_nelements(ptr noundef nonnull %84)
  %119 = icmp sgt i64 %118, %indvars.iv.next140
  br i1 %119, label %.lr.ph128, label %._crit_edge, !llvm.loop !25

120:                                              ; preds = %._crit_edge, %103, %94
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.216) #4
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %122 = load i32, ptr %18, align 8, !tbaa !13
  %123 = sext i32 %122 to i64
  %124 = icmp slt i64 %indvars.iv.next143, %123
  br i1 %124, label %81, label %.preheader123.loopexit, !llvm.loop !26

.preheader.loopexit:                              ; preds = %191
  %.pre157 = load i32, ptr %18, align 8, !tbaa !13
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.preheader123
  %125 = phi i32 [ %.pre157, %.preheader.loopexit ], [ %77, %.preheader123 ]
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %.lr.ph136, label %._crit_edge137

.lr.ph136:                                        ; preds = %.preheader
  %127 = getelementptr inbounds i8, ptr %0, i64 40
  br label %197

128:                                              ; preds = %.lr.ph133, %191
  %indvars.iv148 = phi i64 [ 0, %.lr.ph133 ], [ %indvars.iv.next149, %191 ]
  %129 = load ptr, ptr %80, align 8, !tbaa !14
  %130 = getelementptr inbounds ptr, ptr %129, i64 %indvars.iv148
  %131 = load ptr, ptr %130, align 8, !tbaa !15
  %132 = getelementptr inbounds i8, ptr %131, i64 152
  %133 = load ptr, ptr %132, align 8, !tbaa !15
  %.not114 = icmp eq ptr %133, null
  br i1 %.not114, label %137, label %134

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %135 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 0) #4
  %136 = load ptr, ptr %132, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %136, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %137

137:                                              ; preds = %128, %134
  %138 = getelementptr inbounds i8, ptr %131, i64 160
  %139 = load ptr, ptr %138, align 8, !tbaa !15
  %.not114.1 = icmp eq ptr %139, null
  br i1 %.not114.1, label %143, label %140

140:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %141 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 1) #4
  %142 = load ptr, ptr %138, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %142, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %143

143:                                              ; preds = %140, %137
  %144 = getelementptr inbounds i8, ptr %131, i64 168
  %145 = load ptr, ptr %144, align 8, !tbaa !15
  %.not114.2 = icmp eq ptr %145, null
  br i1 %.not114.2, label %149, label %146

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %147 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 2) #4
  %148 = load ptr, ptr %144, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %148, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %149

149:                                              ; preds = %146, %143
  %150 = getelementptr inbounds i8, ptr %131, i64 176
  %151 = load ptr, ptr %150, align 8, !tbaa !15
  %.not114.3 = icmp eq ptr %151, null
  br i1 %.not114.3, label %155, label %152

152:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %153 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 3) #4
  %154 = load ptr, ptr %150, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %154, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %155

155:                                              ; preds = %152, %149
  %156 = getelementptr inbounds i8, ptr %131, i64 184
  %157 = load ptr, ptr %156, align 8, !tbaa !15
  %.not114.4 = icmp eq ptr %157, null
  br i1 %.not114.4, label %161, label %158

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %159 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 4) #4
  %160 = load ptr, ptr %156, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %160, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %161

161:                                              ; preds = %158, %155
  %162 = getelementptr inbounds i8, ptr %131, i64 192
  %163 = load ptr, ptr %162, align 8, !tbaa !15
  %.not114.5 = icmp eq ptr %163, null
  br i1 %.not114.5, label %167, label %164

164:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %165 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 5) #4
  %166 = load ptr, ptr %162, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %166, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %167

167:                                              ; preds = %164, %161
  %168 = getelementptr inbounds i8, ptr %131, i64 200
  %169 = load ptr, ptr %168, align 8, !tbaa !15
  %.not114.6 = icmp eq ptr %169, null
  br i1 %.not114.6, label %173, label %170

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %171 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 6) #4
  %172 = load ptr, ptr %168, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %172, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %173

173:                                              ; preds = %170, %167
  %174 = getelementptr inbounds i8, ptr %131, i64 208
  %175 = load ptr, ptr %174, align 8, !tbaa !15
  %.not114.7 = icmp eq ptr %175, null
  br i1 %.not114.7, label %179, label %176

176:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %177 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 7) #4
  %178 = load ptr, ptr %174, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %178, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %179

179:                                              ; preds = %176, %173
  %180 = getelementptr inbounds i8, ptr %131, i64 216
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %.not114.8 = icmp eq ptr %181, null
  br i1 %.not114.8, label %185, label %182

182:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %183 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 8) #4
  %184 = load ptr, ptr %180, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %184, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %185

185:                                              ; preds = %182, %179
  %186 = getelementptr inbounds i8, ptr %131, i64 224
  %187 = load ptr, ptr %186, align 8, !tbaa !15
  %.not114.9 = icmp eq ptr %187, null
  br i1 %.not114.9, label %191, label %188

188:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  %189 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 9) #4
  %190 = load ptr, ptr %186, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_node_edge(ptr noundef %7, ptr noundef nonnull %0, ptr noundef nonnull %131, ptr noundef %190, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  br label %191

191:                                              ; preds = %188, %185
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %192 = load i32, ptr %13, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = icmp slt i64 %indvars.iv.next149, %193
  br i1 %194, label %128, label %.preheader.loopexit, !llvm.loop !27

._crit_edge137:                                   ; preds = %260, %.preheader
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str.225) #4
  %196 = call i32 @fclose(ptr noundef %7)
  call void (i32, ptr, ...) @ggml_log_internal(i32 noundef 2, ptr noundef nonnull @.str.226, ptr noundef nonnull @__func__.ggml_graph_dump_dot, ptr noundef %2, ptr noundef %2, ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  ret void

197:                                              ; preds = %.lr.ph136, %260
  %indvars.iv154 = phi i64 [ 0, %.lr.ph136 ], [ %indvars.iv.next155, %260 ]
  %198 = load ptr, ptr %127, align 8, !tbaa !23
  %199 = getelementptr inbounds ptr, ptr %198, i64 %indvars.iv154
  %200 = load ptr, ptr %199, align 8, !tbaa !15
  %201 = getelementptr inbounds i8, ptr %200, i64 152
  %202 = load ptr, ptr %201, align 8, !tbaa !15
  %.not113 = icmp eq ptr %202, null
  br i1 %.not113, label %206, label %203

203:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %204 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 0) #4
  %205 = load ptr, ptr %201, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %205, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %206

206:                                              ; preds = %197, %203
  %207 = getelementptr inbounds i8, ptr %200, i64 160
  %208 = load ptr, ptr %207, align 8, !tbaa !15
  %.not113.1 = icmp eq ptr %208, null
  br i1 %.not113.1, label %212, label %209

209:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %210 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 1) #4
  %211 = load ptr, ptr %207, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %211, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %212

212:                                              ; preds = %209, %206
  %213 = getelementptr inbounds i8, ptr %200, i64 168
  %214 = load ptr, ptr %213, align 8, !tbaa !15
  %.not113.2 = icmp eq ptr %214, null
  br i1 %.not113.2, label %218, label %215

215:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %216 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 2) #4
  %217 = load ptr, ptr %213, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %217, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %218

218:                                              ; preds = %215, %212
  %219 = getelementptr inbounds i8, ptr %200, i64 176
  %220 = load ptr, ptr %219, align 8, !tbaa !15
  %.not113.3 = icmp eq ptr %220, null
  br i1 %.not113.3, label %224, label %221

221:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %222 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 3) #4
  %223 = load ptr, ptr %219, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %223, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %224

224:                                              ; preds = %221, %218
  %225 = getelementptr inbounds i8, ptr %200, i64 184
  %226 = load ptr, ptr %225, align 8, !tbaa !15
  %.not113.4 = icmp eq ptr %226, null
  br i1 %.not113.4, label %230, label %227

227:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %228 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 4) #4
  %229 = load ptr, ptr %225, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %229, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %230

230:                                              ; preds = %227, %224
  %231 = getelementptr inbounds i8, ptr %200, i64 192
  %232 = load ptr, ptr %231, align 8, !tbaa !15
  %.not113.5 = icmp eq ptr %232, null
  br i1 %.not113.5, label %236, label %233

233:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %234 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 5) #4
  %235 = load ptr, ptr %231, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %235, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %236

236:                                              ; preds = %233, %230
  %237 = getelementptr inbounds i8, ptr %200, i64 200
  %238 = load ptr, ptr %237, align 8, !tbaa !15
  %.not113.6 = icmp eq ptr %238, null
  br i1 %.not113.6, label %242, label %239

239:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %240 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 6) #4
  %241 = load ptr, ptr %237, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %241, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %242

242:                                              ; preds = %239, %236
  %243 = getelementptr inbounds i8, ptr %200, i64 208
  %244 = load ptr, ptr %243, align 8, !tbaa !15
  %.not113.7 = icmp eq ptr %244, null
  br i1 %.not113.7, label %248, label %245

245:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %246 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 7) #4
  %247 = load ptr, ptr %243, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %247, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %248

248:                                              ; preds = %245, %242
  %249 = getelementptr inbounds i8, ptr %200, i64 216
  %250 = load ptr, ptr %249, align 8, !tbaa !15
  %.not113.8 = icmp eq ptr %250, null
  br i1 %.not113.8, label %254, label %251

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %252 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 8) #4
  %253 = load ptr, ptr %249, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %253, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %254

254:                                              ; preds = %251, %248
  %255 = getelementptr inbounds i8, ptr %200, i64 224
  %256 = load ptr, ptr %255, align 8, !tbaa !15
  %.not113.9 = icmp eq ptr %256, null
  br i1 %.not113.9, label %260, label %257

257:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %258 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %6, i64 noundef 16, ptr noundef nonnull @.str.224, i32 noundef 9) #4
  %259 = load ptr, ptr %255, align 8, !tbaa !15
  call void @ggml_graph_dump_dot_leaf_edge(ptr noundef %7, ptr noundef nonnull %200, ptr noundef %259, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %260

260:                                              ; preds = %257, %254
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %261 = load i32, ptr %18, align 8, !tbaa !13
  %262 = sext i32 %261 to i64
  %263 = icmp slt i64 %indvars.iv.next155, %262
  br i1 %263, label %197, label %._crit_edge137, !llvm.loop !28
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden void @ggml_graph_dump_dot_node_edge(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @ggml_graph_dump_dot_leaf_edge(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind }
attributes #5 = { 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 4}
!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, !10, i64 16}
!15 = !{!10, !10, i64 0}
!16 = !{!17, !7, i64 148}
!17 = !{!"ggml_tensor", !7, i64 0, !10, i64 8, !8, i64 16, !8, i64 48, !7, i64 80, !8, i64 84, !7, i64 148, !8, i64 152, !10, i64 232, !12, i64 240, !10, i64 248, !8, i64 256, !10, i64 320, !8, i64 328}
!18 = !{!17, !7, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!17, !7, i64 80}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !10, i64 40}
!24 = !{!17, !10, i64 248}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22}


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