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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ggml_init_params = type { i64, ptr, i8 }
%struct.ggml_tensor = type { i32, ptr, [4 x i64], [4 x i64], i32, [16 x i32], i32, [10 x ptr], ptr, i64, ptr, [64 x i8], ptr, [8 x i8] }

@.str = external hidden unnamed_addr constant [64 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@__const.main.params = external hidden unnamed_addr constant %struct.ggml_init_params, align 8
@__const.main.type = external hidden unnamed_addr constant [4 x i32], align 16
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @arange(ptr noundef) #0

; Function Attrs: noreturn
declare void @ggml_abort(ptr noundef, i32 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: 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 void @dup_to(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @can_dup(i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %struct.ggml_init_params, align 8
  %7 = alloca [4 x i32], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 @__const.main.params, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.type, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %255, %2
  %24 = load i32, ptr %8, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 4
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %258

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  store i32 %31, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %251, %27
  %33 = load i32, ptr %11, align 4, !tbaa !5
  %34 = icmp slt i32 %33, 4
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %254

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %37 = load i32, ptr %11, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  store i32 %40, ptr %12, align 4, !tbaa !5
  %41 = load i32, ptr %10, align 4, !tbaa !5
  %42 = load i32, ptr %12, align 4, !tbaa !5
  %43 = call zeroext i1 @can_dup(i32 noundef %41, i32 noundef %42)
  br i1 %43, label %45, label %44

44:                                               ; preds = %36
  store i32 7, ptr %9, align 4
  br label %248

45:                                               ; preds = %36
  %46 = load i32, ptr %10, align 4, !tbaa !5
  %47 = call ptr @ggml_type_name(i32 noundef %46)
  %48 = load i32, ptr %12, align 4, !tbaa !5
  %49 = call ptr @ggml_type_name(i32 noundef %48)
  %50 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %47, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %51 = call ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8 %6)
  store ptr %51, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %52 = load ptr, ptr %13, align 8, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !5
  %54 = call ptr @ggml_new_tensor_2d(ptr noundef %52, i32 noundef %53, i64 noundef 10, i64 noundef 11)
  store ptr %54, ptr %14, align 8, !tbaa !9
  %55 = load ptr, ptr %14, align 8, !tbaa !9
  call void @arange(ptr noundef %55)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %56 = load ptr, ptr %13, align 8, !tbaa !9
  %57 = load i32, ptr %12, align 4, !tbaa !5
  %58 = call ptr @ggml_new_tensor_2d(ptr noundef %56, i32 noundef %57, i64 noundef 10, i64 noundef 11)
  store ptr %58, ptr %15, align 8, !tbaa !9
  %59 = load ptr, ptr %15, align 8, !tbaa !9
  %60 = call ptr @ggml_set_i32(ptr noundef %59, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  %62 = load ptr, ptr %14, align 8, !tbaa !9
  %63 = load ptr, ptr %14, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.ggml_tensor, ptr %63, i32 0, i32 3
  %65 = getelementptr inbounds [4 x i64], ptr %64, i64 0, i64 1
  %66 = load i64, ptr %65, align 8, !tbaa !11
  %67 = mul i64 %66, 2
  %68 = call ptr @ggml_view_1d(ptr noundef %61, ptr noundef %62, i64 noundef 10, i64 noundef %67)
  store ptr %68, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %69 = load ptr, ptr %13, align 8, !tbaa !9
  %70 = load ptr, ptr %14, align 8, !tbaa !9
  %71 = load ptr, ptr %14, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.ggml_tensor, ptr %71, i32 0, i32 3
  %73 = getelementptr inbounds [4 x i64], ptr %72, i64 0, i64 1
  %74 = load i64, ptr %73, align 8, !tbaa !11
  %75 = load ptr, ptr %14, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.ggml_tensor, ptr %75, i32 0, i32 3
  %77 = getelementptr inbounds [4 x i64], ptr %76, i64 0, i64 0
  %78 = load i64, ptr %77, align 8, !tbaa !11
  %79 = mul i64 %78, 3
  %80 = call ptr @ggml_view_2d(ptr noundef %69, ptr noundef %70, i64 noundef 1, i64 noundef 10, i64 noundef %74, i64 noundef %79)
  store ptr %80, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %81 = load ptr, ptr %13, align 8, !tbaa !9
  %82 = load ptr, ptr %15, align 8, !tbaa !9
  %83 = load ptr, ptr %15, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.ggml_tensor, ptr %83, i32 0, i32 3
  %85 = getelementptr inbounds [4 x i64], ptr %84, i64 0, i64 1
  %86 = load i64, ptr %85, align 8, !tbaa !11
  %87 = mul i64 %86, 5
  %88 = call ptr @ggml_view_1d(ptr noundef %81, ptr noundef %82, i64 noundef 10, i64 noundef %87)
  store ptr %88, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %89 = load ptr, ptr %13, align 8, !tbaa !9
  %90 = load ptr, ptr %15, align 8, !tbaa !9
  %91 = load ptr, ptr %15, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.ggml_tensor, ptr %91, i32 0, i32 3
  %93 = getelementptr inbounds [4 x i64], ptr %92, i64 0, i64 1
  %94 = load i64, ptr %93, align 8, !tbaa !11
  %95 = mul i64 %94, 6
  %96 = call ptr @ggml_view_1d(ptr noundef %89, ptr noundef %90, i64 noundef 10, i64 noundef %95)
  store ptr %96, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %97 = load ptr, ptr %13, align 8, !tbaa !9
  %98 = load ptr, ptr %15, align 8, !tbaa !9
  %99 = load ptr, ptr %15, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.ggml_tensor, ptr %99, i32 0, i32 3
  %101 = getelementptr inbounds [4 x i64], ptr %100, i64 0, i64 1
  %102 = load i64, ptr %101, align 8, !tbaa !11
  %103 = load ptr, ptr %15, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.ggml_tensor, ptr %103, i32 0, i32 3
  %105 = getelementptr inbounds [4 x i64], ptr %104, i64 0, i64 0
  %106 = load i64, ptr %105, align 8, !tbaa !11
  %107 = mul i64 %106, 7
  %108 = call ptr @ggml_view_2d(ptr noundef %97, ptr noundef %98, i64 noundef 1, i64 noundef 10, i64 noundef %102, i64 noundef %107)
  store ptr %108, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %109 = load ptr, ptr %13, align 8, !tbaa !9
  %110 = load ptr, ptr %15, align 8, !tbaa !9
  %111 = load ptr, ptr %15, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.ggml_tensor, ptr %111, i32 0, i32 3
  %113 = getelementptr inbounds [4 x i64], ptr %112, i64 0, i64 1
  %114 = load i64, ptr %113, align 8, !tbaa !11
  %115 = load ptr, ptr %15, align 8, !tbaa !9
  %116 = getelementptr inbounds %struct.ggml_tensor, ptr %115, i32 0, i32 3
  %117 = getelementptr inbounds [4 x i64], ptr %116, i64 0, i64 0
  %118 = load i64, ptr %117, align 8, !tbaa !11
  %119 = mul i64 %118, 8
  %120 = call ptr @ggml_view_2d(ptr noundef %109, ptr noundef %110, i64 noundef 1, i64 noundef 10, i64 noundef %114, i64 noundef %119)
  store ptr %120, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %121 = load ptr, ptr %13, align 8, !tbaa !9
  %122 = call ptr @ggml_new_graph(ptr noundef %121)
  store ptr %122, ptr %22, align 8, !tbaa !9
  %123 = load ptr, ptr %16, align 8, !tbaa !9
  %124 = load ptr, ptr %18, align 8, !tbaa !9
  call void @dup_to(ptr noundef %123, ptr noundef %124)
  %125 = load ptr, ptr %17, align 8, !tbaa !9
  %126 = load ptr, ptr %19, align 8, !tbaa !9
  call void @dup_to(ptr noundef %125, ptr noundef %126)
  %127 = load ptr, ptr %16, align 8, !tbaa !9
  %128 = load ptr, ptr %20, align 8, !tbaa !9
  call void @dup_to(ptr noundef %127, ptr noundef %128)
  %129 = load ptr, ptr %17, align 8, !tbaa !9
  %130 = load ptr, ptr %21, align 8, !tbaa !9
  call void @dup_to(ptr noundef %129, ptr noundef %130)
  %131 = load ptr, ptr %22, align 8, !tbaa !9
  %132 = load ptr, ptr %18, align 8, !tbaa !9
  call void @ggml_build_forward_expand(ptr noundef %131, ptr noundef %132)
  %133 = load ptr, ptr %22, align 8, !tbaa !9
  %134 = load ptr, ptr %19, align 8, !tbaa !9
  call void @ggml_build_forward_expand(ptr noundef %133, ptr noundef %134)
  %135 = load ptr, ptr %22, align 8, !tbaa !9
  %136 = load ptr, ptr %20, align 8, !tbaa !9
  call void @ggml_build_forward_expand(ptr noundef %135, ptr noundef %136)
  %137 = load ptr, ptr %22, align 8, !tbaa !9
  %138 = load ptr, ptr %21, align 8, !tbaa !9
  call void @ggml_build_forward_expand(ptr noundef %137, ptr noundef %138)
  %139 = load ptr, ptr %13, align 8, !tbaa !9
  %140 = load ptr, ptr %22, align 8, !tbaa !9
  %141 = call i32 @ggml_graph_compute_with_ctx(ptr noundef %139, ptr noundef %140, i32 noundef 1)
  %142 = load ptr, ptr %15, align 8, !tbaa !9
  %143 = call i32 @ggml_get_i32_1d(ptr noundef %142, i32 noundef 49)
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %146, label %145

145:                                              ; preds = %45
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 78, ptr noundef @.str.1, ptr noundef @.str.6) #6
  unreachable

146:                                              ; preds = %45
  %147 = load ptr, ptr %15, align 8, !tbaa !9
  %148 = call i32 @ggml_get_i32_1d(ptr noundef %147, i32 noundef 50)
  %149 = icmp eq i32 %148, 20
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 79, ptr noundef @.str.1, ptr noundef @.str.7) #6
  unreachable

151:                                              ; preds = %146
  %152 = load ptr, ptr %15, align 8, !tbaa !9
  %153 = call i32 @ggml_get_i32_1d(ptr noundef %152, i32 noundef 51)
  %154 = icmp eq i32 %153, 21
  br i1 %154, label %156, label %155

155:                                              ; preds = %151
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 80, ptr noundef @.str.1, ptr noundef @.str.8) #6
  unreachable

156:                                              ; preds = %151
  %157 = load ptr, ptr %15, align 8, !tbaa !9
  %158 = call i32 @ggml_get_i32_1d(ptr noundef %157, i32 noundef 52)
  %159 = icmp eq i32 %158, 22
  br i1 %159, label %161, label %160

160:                                              ; preds = %156
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 81, ptr noundef @.str.1, ptr noundef @.str.9) #6
  unreachable

161:                                              ; preds = %156
  %162 = load ptr, ptr %15, align 8, !tbaa !9
  %163 = call i32 @ggml_get_i32_1d(ptr noundef %162, i32 noundef 59)
  %164 = icmp eq i32 %163, 29
  br i1 %164, label %166, label %165

165:                                              ; preds = %161
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 82, ptr noundef @.str.1, ptr noundef @.str.10) #6
  unreachable

166:                                              ; preds = %161
  %167 = load ptr, ptr %15, align 8, !tbaa !9
  %168 = call i32 @ggml_get_i32_1d(ptr noundef %167, i32 noundef 60)
  %169 = icmp eq i32 %168, 3
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 85, ptr noundef @.str.1, ptr noundef @.str.11) #6
  unreachable

171:                                              ; preds = %166
  %172 = load ptr, ptr %15, align 8, !tbaa !9
  %173 = call i32 @ggml_get_i32_1d(ptr noundef %172, i32 noundef 61)
  %174 = icmp eq i32 %173, 13
  br i1 %174, label %176, label %175

175:                                              ; preds = %171
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 86, ptr noundef @.str.1, ptr noundef @.str.12) #6
  unreachable

176:                                              ; preds = %171
  %177 = load ptr, ptr %15, align 8, !tbaa !9
  %178 = call i32 @ggml_get_i32_1d(ptr noundef %177, i32 noundef 62)
  %179 = icmp eq i32 %178, 23
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 87, ptr noundef @.str.1, ptr noundef @.str.13) #6
  unreachable

181:                                              ; preds = %176
  %182 = load ptr, ptr %15, align 8, !tbaa !9
  %183 = call i32 @ggml_get_i32_1d(ptr noundef %182, i32 noundef 69)
  %184 = icmp eq i32 %183, 93
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 88, ptr noundef @.str.1, ptr noundef @.str.14) #6
  unreachable

186:                                              ; preds = %181
  %187 = load ptr, ptr %15, align 8, !tbaa !9
  %188 = call i32 @ggml_get_i32_1d(ptr noundef %187, i32 noundef 70)
  %189 = icmp eq i32 %188, 0
  br i1 %189, label %191, label %190

190:                                              ; preds = %186
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 89, ptr noundef @.str.1, ptr noundef @.str.15) #6
  unreachable

191:                                              ; preds = %186
  %192 = load ptr, ptr %15, align 8, !tbaa !9
  %193 = call i32 @ggml_get_i32_1d(ptr noundef %192, i32 noundef 6)
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %196, label %195

195:                                              ; preds = %191
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 92, ptr noundef @.str.1, ptr noundef @.str.16) #6
  unreachable

196:                                              ; preds = %191
  %197 = load ptr, ptr %15, align 8, !tbaa !9
  %198 = call i32 @ggml_get_i32_1d(ptr noundef %197, i32 noundef 7)
  %199 = icmp eq i32 %198, 20
  br i1 %199, label %201, label %200

200:                                              ; preds = %196
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 93, ptr noundef @.str.1, ptr noundef @.str.17) #6
  unreachable

201:                                              ; preds = %196
  %202 = load ptr, ptr %15, align 8, !tbaa !9
  %203 = call i32 @ggml_get_i32_1d(ptr noundef %202, i32 noundef 17)
  %204 = icmp eq i32 %203, 21
  br i1 %204, label %206, label %205

205:                                              ; preds = %201
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 94, ptr noundef @.str.1, ptr noundef @.str.18) #6
  unreachable

206:                                              ; preds = %201
  %207 = load ptr, ptr %15, align 8, !tbaa !9
  %208 = call i32 @ggml_get_i32_1d(ptr noundef %207, i32 noundef 27)
  %209 = icmp eq i32 %208, 22
  br i1 %209, label %211, label %210

210:                                              ; preds = %206
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 95, ptr noundef @.str.1, ptr noundef @.str.19) #6
  unreachable

211:                                              ; preds = %206
  %212 = load ptr, ptr %15, align 8, !tbaa !9
  %213 = call i32 @ggml_get_i32_1d(ptr noundef %212, i32 noundef 97)
  %214 = icmp eq i32 %213, 29
  br i1 %214, label %216, label %215

215:                                              ; preds = %211
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 96, ptr noundef @.str.1, ptr noundef @.str.20) #6
  unreachable

216:                                              ; preds = %211
  %217 = load ptr, ptr %15, align 8, !tbaa !9
  %218 = call i32 @ggml_get_i32_1d(ptr noundef %217, i32 noundef 107)
  %219 = icmp eq i32 %218, 0
  br i1 %219, label %221, label %220

220:                                              ; preds = %216
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 97, ptr noundef @.str.1, ptr noundef @.str.21) #6
  unreachable

221:                                              ; preds = %216
  %222 = load ptr, ptr %15, align 8, !tbaa !9
  %223 = call i32 @ggml_get_i32_1d(ptr noundef %222, i32 noundef 8)
  %224 = icmp eq i32 %223, 3
  br i1 %224, label %226, label %225

225:                                              ; preds = %221
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 100, ptr noundef @.str.1, ptr noundef @.str.22) #6
  unreachable

226:                                              ; preds = %221
  %227 = load ptr, ptr %15, align 8, !tbaa !9
  %228 = call i32 @ggml_get_i32_1d(ptr noundef %227, i32 noundef 18)
  %229 = icmp eq i32 %228, 13
  br i1 %229, label %231, label %230

230:                                              ; preds = %226
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 101, ptr noundef @.str.1, ptr noundef @.str.23) #6
  unreachable

231:                                              ; preds = %226
  %232 = load ptr, ptr %15, align 8, !tbaa !9
  %233 = call i32 @ggml_get_i32_1d(ptr noundef %232, i32 noundef 28)
  %234 = icmp eq i32 %233, 23
  br i1 %234, label %236, label %235

235:                                              ; preds = %231
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 102, ptr noundef @.str.1, ptr noundef @.str.24) #6
  unreachable

236:                                              ; preds = %231
  %237 = load ptr, ptr %15, align 8, !tbaa !9
  %238 = call i32 @ggml_get_i32_1d(ptr noundef %237, i32 noundef 98)
  %239 = icmp eq i32 %238, 93
  br i1 %239, label %241, label %240

240:                                              ; preds = %236
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 103, ptr noundef @.str.1, ptr noundef @.str.25) #6
  unreachable

241:                                              ; preds = %236
  %242 = load ptr, ptr %15, align 8, !tbaa !9
  %243 = call i32 @ggml_get_i32_1d(ptr noundef %242, i32 noundef 108)
  %244 = icmp eq i32 %243, 0
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 104, ptr noundef @.str.1, ptr noundef @.str.26) #6
  unreachable

246:                                              ; preds = %241
  %247 = load ptr, ptr %13, align 8, !tbaa !9
  call void @ggml_free(ptr noundef %247)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  store i32 0, ptr %9, align 4
  br label %248

248:                                              ; preds = %246, %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %249 = load i32, ptr %9, align 4
  switch i32 %249, label %260 [
    i32 0, label %250
    i32 7, label %251
  ]

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250, %248
  %252 = load i32, ptr %11, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %11, align 4, !tbaa !5
  br label %32, !llvm.loop !13

254:                                              ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %255

255:                                              ; preds = %254
  %256 = load i32, ptr %8, align 4, !tbaa !5
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %8, align 4, !tbaa !5
  br label %23, !llvm.loop !15

258:                                              ; preds = %26
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  %259 = load i32, ptr %3, align 4
  ret i32 %259

260:                                              ; preds = %248
  unreachable
}

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

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

declare ptr @ggml_type_name(i32 noundef) #4

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

declare ptr @ggml_new_tensor_2d(ptr noundef, i32 noundef, i64 noundef, i64 noundef) #4

declare ptr @ggml_set_i32(ptr noundef, i32 noundef) #4

declare ptr @ggml_view_1d(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #4

declare ptr @ggml_view_2d(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #4

declare ptr @ggml_new_graph(ptr noundef) #4

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

declare i32 @ggml_graph_compute_with_ctx(ptr noundef, ptr noundef, i32 noundef) #4

declare i32 @ggml_get_i32_1d(ptr noundef, i32 noundef) #4

declare void @ggml_free(ptr noundef) #4

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@.str = external hidden unnamed_addr constant [64 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@__const.main.params = external hidden unnamed_addr constant %struct.ggml_init_params, align 8
@__const.main.type = external hidden unnamed_addr constant [4 x i32], align 16
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @arange(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @dup_to(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @can_dup(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  br label %4

3:                                                ; preds = %7
  ret i32 0

4:                                                ; preds = %2, %7
  %indvars.iv82 = phi i64 [ 0, %2 ], [ %indvars.iv.next83, %7 ]
  %5 = getelementptr inbounds [4 x i32], ptr @__const.main.type, i64 0, i64 %indvars.iv82
  %6 = load i32, ptr %5, align 4, !tbaa !5
  br label %8

7:                                                ; preds = %131
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond85.not = icmp eq i64 %indvars.iv.next83, 4
  br i1 %exitcond85.not, label %3, label %4, !llvm.loop !9

8:                                                ; preds = %4, %131
  %indvars.iv = phi i64 [ 0, %4 ], [ %indvars.iv.next, %131 ]
  %9 = getelementptr inbounds [4 x i32], ptr @__const.main.type, i64 0, i64 %indvars.iv
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %11 = tail call zeroext i1 @can_dup(i32 noundef %6, i32 noundef %10)
  br i1 %11, label %12, label %131

12:                                               ; preds = %8
  %13 = tail call ptr @ggml_type_name(i32 noundef %6) #4
  %14 = tail call ptr @ggml_type_name(i32 noundef %10) #4
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, ptr noundef %13, ptr noundef %14)
  %16 = tail call ptr @ggml_init(ptr noundef nonnull byval(%struct.ggml_init_params) align 8 @__const.main.params) #4
  %17 = tail call ptr @ggml_new_tensor_2d(ptr noundef %16, i32 noundef %6, i64 noundef 10, i64 noundef 11) #4
  tail call void @arange(ptr noundef %17)
  %18 = tail call ptr @ggml_new_tensor_2d(ptr noundef %16, i32 noundef %10, i64 noundef 10, i64 noundef 11) #4
  %19 = tail call ptr @ggml_set_i32(ptr noundef %18, i32 noundef 0) #4
  %20 = getelementptr inbounds i8, ptr %17, i64 48
  %21 = getelementptr inbounds i8, ptr %17, i64 56
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = shl i64 %22, 1
  %24 = tail call ptr @ggml_view_1d(ptr noundef %16, ptr noundef %17, i64 noundef 10, i64 noundef %23) #4
  %25 = load i64, ptr %21, align 8, !tbaa !11
  %26 = load i64, ptr %20, align 8, !tbaa !11
  %27 = mul i64 %26, 3
  %28 = tail call ptr @ggml_view_2d(ptr noundef %16, ptr noundef %17, i64 noundef 1, i64 noundef 10, i64 noundef %25, i64 noundef %27) #4
  %29 = getelementptr inbounds i8, ptr %18, i64 48
  %30 = getelementptr inbounds i8, ptr %18, i64 56
  %31 = load i64, ptr %30, align 8, !tbaa !11
  %32 = mul i64 %31, 5
  %33 = tail call ptr @ggml_view_1d(ptr noundef %16, ptr noundef %18, i64 noundef 10, i64 noundef %32) #4
  %34 = load i64, ptr %30, align 8, !tbaa !11
  %35 = mul i64 %34, 6
  %36 = tail call ptr @ggml_view_1d(ptr noundef %16, ptr noundef %18, i64 noundef 10, i64 noundef %35) #4
  %37 = load i64, ptr %30, align 8, !tbaa !11
  %38 = load i64, ptr %29, align 8, !tbaa !11
  %39 = mul i64 %38, 7
  %40 = tail call ptr @ggml_view_2d(ptr noundef %16, ptr noundef %18, i64 noundef 1, i64 noundef 10, i64 noundef %37, i64 noundef %39) #4
  %41 = load i64, ptr %30, align 8, !tbaa !11
  %42 = load i64, ptr %29, align 8, !tbaa !11
  %43 = shl i64 %42, 3
  %44 = tail call ptr @ggml_view_2d(ptr noundef %16, ptr noundef %18, i64 noundef 1, i64 noundef 10, i64 noundef %41, i64 noundef %43) #4
  %45 = tail call ptr @ggml_new_graph(ptr noundef %16) #4
  tail call void @dup_to(ptr noundef %24, ptr noundef %33)
  tail call void @dup_to(ptr noundef %28, ptr noundef %36)
  tail call void @dup_to(ptr noundef %24, ptr noundef %40)
  tail call void @dup_to(ptr noundef %28, ptr noundef %44)
  tail call void @ggml_build_forward_expand(ptr noundef %45, ptr noundef %33) #4
  tail call void @ggml_build_forward_expand(ptr noundef %45, ptr noundef %36) #4
  tail call void @ggml_build_forward_expand(ptr noundef %45, ptr noundef %40) #4
  tail call void @ggml_build_forward_expand(ptr noundef %45, ptr noundef %44) #4
  %46 = tail call i32 @ggml_graph_compute_with_ctx(ptr noundef %16, ptr noundef %45, i32 noundef 1) #4
  %47 = tail call i32 @ggml_get_i32_1d(ptr noundef %18, i32 noundef 49) #4
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %50, label %49

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

50:                                               ; preds = %12
  %51 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 50) #4
  %52 = icmp eq i32 %51, 20
  br i1 %52, label %54, label %53

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

54:                                               ; preds = %50
  %55 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 51) #4
  %56 = icmp eq i32 %55, 21
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 80, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.8) #5
  unreachable

58:                                               ; preds = %54
  %59 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 52) #4
  %60 = icmp eq i32 %59, 22
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 81, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.9) #5
  unreachable

62:                                               ; preds = %58
  %63 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 59) #4
  %64 = icmp eq i32 %63, 29
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 82, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #5
  unreachable

66:                                               ; preds = %62
  %67 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 60) #4
  %68 = icmp eq i32 %67, 3
  br i1 %68, label %70, label %69

69:                                               ; preds = %66
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 85, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.11) #5
  unreachable

70:                                               ; preds = %66
  %71 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 61) #4
  %72 = icmp eq i32 %71, 13
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 86, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.12) #5
  unreachable

74:                                               ; preds = %70
  %75 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 62) #4
  %76 = icmp eq i32 %75, 23
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 87, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.13) #5
  unreachable

78:                                               ; preds = %74
  %79 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 69) #4
  %80 = icmp eq i32 %79, 93
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 88, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.14) #5
  unreachable

82:                                               ; preds = %78
  %83 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 70) #4
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %86, label %85

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

86:                                               ; preds = %82
  %87 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 6) #4
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %90, label %89

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

90:                                               ; preds = %86
  %91 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 7) #4
  %92 = icmp eq i32 %91, 20
  br i1 %92, label %94, label %93

93:                                               ; preds = %90
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 93, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.17) #5
  unreachable

94:                                               ; preds = %90
  %95 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 17) #4
  %96 = icmp eq i32 %95, 21
  br i1 %96, label %98, label %97

97:                                               ; preds = %94
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 94, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.18) #5
  unreachable

98:                                               ; preds = %94
  %99 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 27) #4
  %100 = icmp eq i32 %99, 22
  br i1 %100, label %102, label %101

101:                                              ; preds = %98
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 95, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.19) #5
  unreachable

102:                                              ; preds = %98
  %103 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 97) #4
  %104 = icmp eq i32 %103, 29
  br i1 %104, label %106, label %105

105:                                              ; preds = %102
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 96, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.20) #5
  unreachable

106:                                              ; preds = %102
  %107 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 107) #4
  %108 = icmp eq i32 %107, 0
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 97, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.21) #5
  unreachable

110:                                              ; preds = %106
  %111 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 8) #4
  %112 = icmp eq i32 %111, 3
  br i1 %112, label %114, label %113

113:                                              ; preds = %110
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 100, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.22) #5
  unreachable

114:                                              ; preds = %110
  %115 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 18) #4
  %116 = icmp eq i32 %115, 13
  br i1 %116, label %118, label %117

117:                                              ; preds = %114
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 101, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.23) #5
  unreachable

118:                                              ; preds = %114
  %119 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 28) #4
  %120 = icmp eq i32 %119, 23
  br i1 %120, label %122, label %121

121:                                              ; preds = %118
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 102, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.24) #5
  unreachable

122:                                              ; preds = %118
  %123 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 98) #4
  %124 = icmp eq i32 %123, 93
  br i1 %124, label %126, label %125

125:                                              ; preds = %122
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 103, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.25) #5
  unreachable

126:                                              ; preds = %122
  %127 = tail call i32 @ggml_get_i32_1d(ptr noundef nonnull %18, i32 noundef 108) #4
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %130, label %129

129:                                              ; preds = %126
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 104, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.26) #5
  unreachable

130:                                              ; preds = %126
  tail call void @ggml_free(ptr noundef %16) #4
  br label %131

131:                                              ; preds = %8, %130
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 4
  br i1 %exitcond.not, label %7, label %8, !llvm.loop !13
}

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

declare ptr @ggml_type_name(i32 noundef) local_unnamed_addr #3

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

declare ptr @ggml_new_tensor_2d(ptr noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare ptr @ggml_set_i32(ptr noundef, i32 noundef) local_unnamed_addr #3

declare ptr @ggml_view_1d(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare ptr @ggml_view_2d(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare ptr @ggml_new_graph(ptr noundef) local_unnamed_addr #3

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

declare i32 @ggml_graph_compute_with_ctx(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @ggml_get_i32_1d(ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @ggml_free(ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass