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

; 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_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 [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@__PRETTY_FUNCTION__.check_mat_mul = external hidden unnamed_addr constant [104 x i8], align 1

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1

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

; Function Attrs: nounwind uwtable
declare dso_local float @mat_get(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @check_mat_mul(ptr noundef %0, ptr noundef %1, ptr noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca i32, align 4
  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 8, ptr %7) #5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ggml_tensor, ptr %32, i32 0, i32 2
  %34 = getelementptr inbounds [4 x i64], ptr %33, i64 0, i64 0
  %35 = load i64, ptr %34, align 8, !tbaa !9
  store i64 %35, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.ggml_tensor, ptr %36, i32 0, i32 2
  %38 = getelementptr inbounds [4 x i64], ptr %37, i64 0, i64 1
  %39 = load i64, ptr %38, align 8, !tbaa !9
  store i64 %39, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ggml_tensor, ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds [4 x i64], ptr %41, i64 0, i64 2
  %43 = load i64, ptr %42, align 8, !tbaa !9
  store i64 %43, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ggml_tensor, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds [4 x i64], ptr %45, i64 0, i64 3
  %47 = load i64, ptr %46, align 8, !tbaa !9
  store i64 %47, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ggml_tensor, ptr %48, i32 0, i32 2
  %50 = getelementptr inbounds [4 x i64], ptr %49, i64 0, i64 0
  %51 = load i64, ptr %50, align 8, !tbaa !9
  store i64 %51, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ggml_tensor, ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds [4 x i64], ptr %53, i64 0, i64 1
  %55 = load i64, ptr %54, align 8, !tbaa !9
  store i64 %55, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ggml_tensor, ptr %56, i32 0, i32 2
  %58 = getelementptr inbounds [4 x i64], ptr %57, i64 0, i64 2
  %59 = load i64, ptr %58, align 8, !tbaa !9
  store i64 %59, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ggml_tensor, ptr %60, i32 0, i32 2
  %62 = getelementptr inbounds [4 x i64], ptr %61, i64 0, i64 3
  %63 = load i64, ptr %62, align 8, !tbaa !9
  store i64 %63, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ggml_tensor, ptr %64, i32 0, i32 2
  %66 = getelementptr inbounds [4 x i64], ptr %65, i64 0, i64 0
  %67 = load i64, ptr %66, align 8, !tbaa !9
  store i64 %67, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ggml_tensor, ptr %68, i32 0, i32 2
  %70 = getelementptr inbounds [4 x i64], ptr %69, i64 0, i64 1
  %71 = load i64, ptr %70, align 8, !tbaa !9
  store i64 %71, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.ggml_tensor, ptr %72, i32 0, i32 2
  %74 = getelementptr inbounds [4 x i64], ptr %73, i64 0, i64 2
  %75 = load i64, ptr %74, align 8, !tbaa !9
  store i64 %75, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ggml_tensor, ptr %76, i32 0, i32 2
  %78 = getelementptr inbounds [4 x i64], ptr %77, i64 0, i64 3
  %79 = load i64, ptr %78, align 8, !tbaa !9
  store i64 %79, ptr %18, align 8, !tbaa !9
  %80 = load i64, ptr %7, align 8, !tbaa !9
  %81 = load i64, ptr %8, align 8, !tbaa !9
  %82 = load i64, ptr %9, align 8, !tbaa !9
  %83 = load i64, ptr %10, align 8, !tbaa !9
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %80, i64 noundef %81, i64 noundef %82, i64 noundef %83)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !11
  br label %85

85:                                               ; preds = %110, %3
  %86 = load i32, ptr %19, align 4, !tbaa !11
  %87 = sext i32 %86 to i64
  %88 = load i64, ptr %8, align 8, !tbaa !9
  %89 = icmp slt i64 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %85
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %113

91:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %92

92:                                               ; preds = %105, %91
  %93 = load i32, ptr %21, align 4, !tbaa !11
  %94 = sext i32 %93 to i64
  %95 = load i64, ptr %7, align 8, !tbaa !9
  %96 = icmp slt i64 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %108

98:                                               ; preds = %92
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = load i32, ptr %21, align 4, !tbaa !11
  %101 = load i32, ptr %19, align 4, !tbaa !11
  %102 = call float @mat_get(ptr noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef 0, i32 noundef 0)
  %103 = fpext float %102 to double
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %103)
  br label %105

105:                                              ; preds = %98
  %106 = load i32, ptr %21, align 4, !tbaa !11
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %21, align 4, !tbaa !11
  br label %92, !llvm.loop !13

108:                                              ; preds = %97
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %110

110:                                              ; preds = %108
  %111 = load i32, ptr %19, align 4, !tbaa !11
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %19, align 4, !tbaa !11
  br label %85, !llvm.loop !15

113:                                              ; preds = %90
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %115 = load i64, ptr %11, align 8, !tbaa !9
  %116 = load i64, ptr %12, align 8, !tbaa !9
  %117 = load i64, ptr %13, align 8, !tbaa !9
  %118 = load i64, ptr %14, align 8, !tbaa !9
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef %115, i64 noundef %116, i64 noundef %117, i64 noundef %118)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !11
  br label %120

120:                                              ; preds = %145, %113
  %121 = load i32, ptr %22, align 4, !tbaa !11
  %122 = sext i32 %121 to i64
  %123 = load i64, ptr %12, align 8, !tbaa !9
  %124 = icmp slt i64 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %120
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %148

126:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %127

127:                                              ; preds = %140, %126
  %128 = load i32, ptr %23, align 4, !tbaa !11
  %129 = sext i32 %128 to i64
  %130 = load i64, ptr %11, align 8, !tbaa !9
  %131 = icmp slt i64 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %127
  store i32 11, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %143

133:                                              ; preds = %127
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load i32, ptr %23, align 4, !tbaa !11
  %136 = load i32, ptr %22, align 4, !tbaa !11
  %137 = call float @mat_get(ptr noundef %134, i32 noundef %135, i32 noundef %136, i32 noundef 0, i32 noundef 0)
  %138 = fpext float %137 to double
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %138)
  br label %140

140:                                              ; preds = %133
  %141 = load i32, ptr %23, align 4, !tbaa !11
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %23, align 4, !tbaa !11
  br label %127, !llvm.loop !16

143:                                              ; preds = %132
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %145

145:                                              ; preds = %143
  %146 = load i32, ptr %22, align 4, !tbaa !11
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %22, align 4, !tbaa !11
  br label %120, !llvm.loop !17

148:                                              ; preds = %125
  %149 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %150 = load i64, ptr %15, align 8, !tbaa !9
  %151 = load i64, ptr %16, align 8, !tbaa !9
  %152 = load i64, ptr %17, align 8, !tbaa !9
  %153 = load i64, ptr %18, align 8, !tbaa !9
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i64 noundef %150, i64 noundef %151, i64 noundef %152, i64 noundef %153)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %155

155:                                              ; preds = %180, %148
  %156 = load i32, ptr %24, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = load i64, ptr %16, align 8, !tbaa !9
  %159 = icmp slt i64 %157, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %155
  store i32 14, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %183

161:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %162

162:                                              ; preds = %175, %161
  %163 = load i32, ptr %25, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = load i64, ptr %15, align 8, !tbaa !9
  %166 = icmp slt i64 %164, %165
  br i1 %166, label %168, label %167

167:                                              ; preds = %162
  store i32 17, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %178

168:                                              ; preds = %162
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = load i32, ptr %25, align 4, !tbaa !11
  %171 = load i32, ptr %24, align 4, !tbaa !11
  %172 = call float @mat_get(ptr noundef %169, i32 noundef %170, i32 noundef %171, i32 noundef 0, i32 noundef 0)
  %173 = fpext float %172 to double
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %173)
  br label %175

175:                                              ; preds = %168
  %176 = load i32, ptr %25, align 4, !tbaa !11
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %25, align 4, !tbaa !11
  br label %162, !llvm.loop !18

178:                                              ; preds = %167
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %180

180:                                              ; preds = %178
  %181 = load i32, ptr %24, align 4, !tbaa !11
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %24, align 4, !tbaa !11
  br label %155, !llvm.loop !19

183:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %184

184:                                              ; preds = %276, %183
  %185 = load i32, ptr %26, align 4, !tbaa !11
  %186 = sext i32 %185 to i64
  %187 = load i64, ptr %18, align 8, !tbaa !9
  %188 = icmp slt i64 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %184
  store i32 20, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %279

190:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !11
  br label %191

191:                                              ; preds = %272, %190
  %192 = load i32, ptr %27, align 4, !tbaa !11
  %193 = sext i32 %192 to i64
  %194 = load i64, ptr %17, align 8, !tbaa !9
  %195 = icmp slt i64 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %191
  store i32 23, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %275

197:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !11
  br label %198

198:                                              ; preds = %268, %197
  %199 = load i32, ptr %28, align 4, !tbaa !11
  %200 = sext i32 %199 to i64
  %201 = load i64, ptr %16, align 8, !tbaa !9
  %202 = icmp slt i64 %200, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %198
  store i32 26, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %271

204:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !11
  br label %205

205:                                              ; preds = %264, %204
  %206 = load i32, ptr %29, align 4, !tbaa !11
  %207 = sext i32 %206 to i64
  %208 = load i64, ptr %15, align 8, !tbaa !9
  %209 = icmp slt i64 %207, %208
  br i1 %209, label %211, label %210

210:                                              ; preds = %205
  store i32 29, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %267

211:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store float 0.000000e+00, ptr %30, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %212

212:                                              ; preds = %233, %211
  %213 = load i32, ptr %31, align 4, !tbaa !11
  %214 = sext i32 %213 to i64
  %215 = load i64, ptr %7, align 8, !tbaa !9
  %216 = icmp slt i64 %214, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %212
  store i32 32, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %236

218:                                              ; preds = %212
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = load i32, ptr %31, align 4, !tbaa !11
  %221 = load i32, ptr %29, align 4, !tbaa !11
  %222 = load i32, ptr %27, align 4, !tbaa !11
  %223 = load i32, ptr %26, align 4, !tbaa !11
  %224 = call float @mat_get(ptr noundef %219, i32 noundef %220, i32 noundef %221, i32 noundef %222, i32 noundef %223)
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = load i32, ptr %31, align 4, !tbaa !11
  %227 = load i32, ptr %28, align 4, !tbaa !11
  %228 = load i32, ptr %27, align 4, !tbaa !11
  %229 = load i32, ptr %26, align 4, !tbaa !11
  %230 = call float @mat_get(ptr noundef %225, i32 noundef %226, i32 noundef %227, i32 noundef %228, i32 noundef %229)
  %231 = load float, ptr %30, align 4, !tbaa !20
  %232 = call float @llvm.fmuladd.f32(float %224, float %230, float %231)
  store float %232, ptr %30, align 4, !tbaa !20
  br label %233

233:                                              ; preds = %218
  %234 = load i32, ptr %31, align 4, !tbaa !11
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %31, align 4, !tbaa !11
  br label %212, !llvm.loop !22

236:                                              ; preds = %217
  %237 = load float, ptr %30, align 4, !tbaa !20
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = load i32, ptr %29, align 4, !tbaa !11
  %240 = load i32, ptr %28, align 4, !tbaa !11
  %241 = load i32, ptr %27, align 4, !tbaa !11
  %242 = load i32, ptr %26, align 4, !tbaa !11
  %243 = call float @mat_get(ptr noundef %238, i32 noundef %239, i32 noundef %240, i32 noundef %241, i32 noundef %242)
  %244 = fsub float %237, %243
  %245 = call float @llvm.fabs.f32(float %244)
  %246 = fpext float %245 to double
  %247 = fcmp ogt double %246, 1.000000e-05
  br i1 %247, label %248, label %263

248:                                              ; preds = %236
  %249 = load i32, ptr %29, align 4, !tbaa !11
  %250 = load i32, ptr %28, align 4, !tbaa !11
  %251 = load i32, ptr %27, align 4, !tbaa !11
  %252 = load i32, ptr %26, align 4, !tbaa !11
  %253 = load float, ptr %30, align 4, !tbaa !20
  %254 = fpext float %253 to double
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = load i32, ptr %29, align 4, !tbaa !11
  %257 = load i32, ptr %28, align 4, !tbaa !11
  %258 = load i32, ptr %27, align 4, !tbaa !11
  %259 = load i32, ptr %26, align 4, !tbaa !11
  %260 = call float @mat_get(ptr noundef %255, i32 noundef %256, i32 noundef %257, i32 noundef %258, i32 noundef %259)
  %261 = fpext float %260 to double
  %262 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %249, i32 noundef %250, i32 noundef %251, i32 noundef %252, double noundef %254, double noundef %261)
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 220, ptr noundef @__PRETTY_FUNCTION__.check_mat_mul) #6
  unreachable

263:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %264

264:                                              ; preds = %263
  %265 = load i32, ptr %29, align 4, !tbaa !11
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %29, align 4, !tbaa !11
  br label %205, !llvm.loop !23

267:                                              ; preds = %210
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %28, align 4, !tbaa !11
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %28, align 4, !tbaa !11
  br label %198, !llvm.loop !24

271:                                              ; preds = %203
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %27, align 4, !tbaa !11
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %27, align 4, !tbaa !11
  br label %191, !llvm.loop !25

275:                                              ; preds = %196
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %26, align 4, !tbaa !11
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %26, align 4, !tbaa !11
  br label %184, !llvm.loop !26

279:                                              ; preds = %189
  store i32 1, ptr %20, align 4
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret i1 true
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { noreturn 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !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"

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [49 x i8], align 1
@__PRETTY_FUNCTION__.check_mat_mul = external hidden unnamed_addr constant [104 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #0

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @check_mat_mul(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 24
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 32
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 40
  %11 = load i64, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %2, i64 16
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %2, i64 24
  %15 = load i64, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %2, i64 32
  %17 = load i64, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %2, i64 40
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 24
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 32
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = load i64, ptr %26, align 8, !tbaa !5
  %28 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %5, i64 noundef %7, i64 noundef %9, i64 noundef %11)
  %29 = icmp sgt i64 %7, 0
  br i1 %29, label %.preheader110.lr.ph, label %._crit_edge117

.preheader110.lr.ph:                              ; preds = %3
  %30 = icmp sgt i64 %5, 0
  br i1 %30, label %.preheader110.us, label %.preheader110

.preheader110.us:                                 ; preds = %.preheader110.lr.ph, %._crit_edge.us
  %indvars.iv271 = phi i64 [ %indvars.iv.next272, %._crit_edge.us ], [ 0, %.preheader110.lr.ph ]
  %31 = trunc nuw nsw i64 %indvars.iv271 to i32
  br label %32

32:                                               ; preds = %.preheader110.us, %32
  %indvars.iv267 = phi i64 [ 0, %.preheader110.us ], [ %indvars.iv.next268, %32 ]
  %33 = trunc nuw nsw i64 %indvars.iv267 to i32
  %34 = tail call float @mat_get(ptr noundef %1, i32 noundef %33, i32 noundef %31, i32 noundef 0, i32 noundef 0)
  %35 = fpext float %34 to double
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %35)
  %indvars.iv.next268 = add nuw nsw i64 %indvars.iv267, 1
  %exitcond270.not = icmp eq i64 %indvars.iv.next268, %5
  br i1 %exitcond270.not, label %._crit_edge.us, label %32, !llvm.loop !9

._crit_edge.us:                                   ; preds = %32
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %indvars.iv.next272 = add nuw nsw i64 %indvars.iv271, 1
  %exitcond274.not = icmp eq i64 %indvars.iv.next272, %7
  br i1 %exitcond274.not, label %._crit_edge117, label %.preheader110.us, !llvm.loop !11

.preheader110:                                    ; preds = %.preheader110.lr.ph, %.preheader110
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader110 ], [ 0, %.preheader110.lr.ph ]
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %7
  br i1 %exitcond.not, label %._crit_edge117, label %.preheader110, !llvm.loop !11

._crit_edge117:                                   ; preds = %.preheader110, %._crit_edge.us, %3
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i64 noundef %13, i64 noundef %15, i64 noundef %17, i64 noundef %19)
  %41 = icmp sgt i64 %15, 0
  br i1 %41, label %.preheader109.lr.ph, label %._crit_edge120

.preheader109.lr.ph:                              ; preds = %._crit_edge117
  %42 = icmp sgt i64 %13, 0
  br i1 %42, label %.preheader109.us, label %.preheader109

.preheader109.us:                                 ; preds = %.preheader109.lr.ph, %._crit_edge.us121
  %indvars.iv283 = phi i64 [ %indvars.iv.next284, %._crit_edge.us121 ], [ 0, %.preheader109.lr.ph ]
  %43 = trunc nuw nsw i64 %indvars.iv283 to i32
  br label %44

44:                                               ; preds = %.preheader109.us, %44
  %indvars.iv279 = phi i64 [ 0, %.preheader109.us ], [ %indvars.iv.next280, %44 ]
  %45 = trunc nuw nsw i64 %indvars.iv279 to i32
  %46 = tail call float @mat_get(ptr noundef %2, i32 noundef %45, i32 noundef %43, i32 noundef 0, i32 noundef 0)
  %47 = fpext float %46 to double
  %48 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %47)
  %indvars.iv.next280 = add nuw nsw i64 %indvars.iv279, 1
  %exitcond282.not = icmp eq i64 %indvars.iv.next280, %13
  br i1 %exitcond282.not, label %._crit_edge.us121, label %44, !llvm.loop !12

._crit_edge.us121:                                ; preds = %44
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %indvars.iv.next284 = add nuw nsw i64 %indvars.iv283, 1
  %exitcond286.not = icmp eq i64 %indvars.iv.next284, %15
  br i1 %exitcond286.not, label %._crit_edge120, label %.preheader109.us, !llvm.loop !13

.preheader109:                                    ; preds = %.preheader109.lr.ph, %.preheader109
  %indvars.iv275 = phi i64 [ %indvars.iv.next276, %.preheader109 ], [ 0, %.preheader109.lr.ph ]
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %indvars.iv.next276 = add nuw nsw i64 %indvars.iv275, 1
  %exitcond278.not = icmp eq i64 %indvars.iv.next276, %15
  br i1 %exitcond278.not, label %._crit_edge120, label %.preheader109, !llvm.loop !13

._crit_edge120:                                   ; preds = %.preheader109, %._crit_edge.us121, %._crit_edge117
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i64 noundef %21, i64 noundef %23, i64 noundef %25, i64 noundef %27)
  %53 = icmp slt i64 %23, 1
  br i1 %53, label %.preheader107, label %.preheader108.lr.ph

.preheader108.lr.ph:                              ; preds = %._crit_edge120
  %54 = icmp sgt i64 %21, 0
  br i1 %54, label %.preheader108.us, label %.preheader108

.preheader108.us:                                 ; preds = %.preheader108.lr.ph, %._crit_edge.us124
  %indvars.iv295 = phi i64 [ %indvars.iv.next296, %._crit_edge.us124 ], [ 0, %.preheader108.lr.ph ]
  %55 = trunc nuw nsw i64 %indvars.iv295 to i32
  br label %56

56:                                               ; preds = %.preheader108.us, %56
  %indvars.iv291 = phi i64 [ 0, %.preheader108.us ], [ %indvars.iv.next292, %56 ]
  %57 = trunc nuw nsw i64 %indvars.iv291 to i32
  %58 = tail call float @mat_get(ptr noundef %0, i32 noundef %57, i32 noundef %55, i32 noundef 0, i32 noundef 0)
  %59 = fpext float %58 to double
  %60 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %59)
  %indvars.iv.next292 = add nuw nsw i64 %indvars.iv291, 1
  %exitcond294.not = icmp eq i64 %indvars.iv.next292, %21
  br i1 %exitcond294.not, label %._crit_edge.us124, label %56, !llvm.loop !14

._crit_edge.us124:                                ; preds = %56
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %indvars.iv.next296 = add nuw nsw i64 %indvars.iv295, 1
  %exitcond298.not = icmp eq i64 %indvars.iv.next296, %23
  br i1 %exitcond298.not, label %.preheader107, label %.preheader108.us, !llvm.loop !15

.preheader108:                                    ; preds = %.preheader108.lr.ph, %.preheader108
  %indvars.iv287 = phi i64 [ %indvars.iv.next288, %.preheader108 ], [ 0, %.preheader108.lr.ph ]
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %indvars.iv.next288 = add nuw nsw i64 %indvars.iv287, 1
  %exitcond290.not = icmp eq i64 %indvars.iv.next288, %23
  br i1 %exitcond290.not, label %.preheader107, label %.preheader108, !llvm.loop !15

.preheader107:                                    ; preds = %.preheader108, %._crit_edge.us124, %._crit_edge120
  %63 = icmp sgt i64 %27, 0
  br i1 %63, label %.preheader106.lr.ph, label %._crit_edge

.preheader106.lr.ph:                              ; preds = %.preheader107
  %64 = icmp slt i64 %25, 1
  %65 = icmp slt i64 %21, 1
  %brmerge = or i1 %64, %53
  %brmerge377 = select i1 %brmerge, i1 true, i1 %65
  br i1 %brmerge377, label %._crit_edge, label %.preheader106.lr.ph.split.us.split.us.split.us

.preheader106.lr.ph.split.us.split.us.split.us:   ; preds = %.preheader106.lr.ph
  %66 = icmp sgt i64 %5, 0
  br i1 %66, label %.preheader106.us.us.us.us, label %.preheader106.us.us.us

.preheader106.us.us.us.us:                        ; preds = %.preheader106.lr.ph.split.us.split.us.split.us, %._crit_edge163.split.us.split.us.split.us.us.us.us.us
  %indvars.iv349 = phi i64 [ %indvars.iv.next350, %._crit_edge163.split.us.split.us.split.us.us.us.us.us ], [ 0, %.preheader106.lr.ph.split.us.split.us.split.us ]
  %67 = trunc nuw nsw i64 %indvars.iv349 to i32
  br label %.preheader105.us.us.us.us.us.us.us

.preheader105.us.us.us.us.us.us.us:               ; preds = %._crit_edge.split.us.split.us.us.us.us.us.us.us.us, %.preheader106.us.us.us.us
  %indvars.iv345 = phi i64 [ %indvars.iv.next346, %._crit_edge.split.us.split.us.us.us.us.us.us.us.us ], [ 0, %.preheader106.us.us.us.us ]
  %68 = trunc nuw nsw i64 %indvars.iv345 to i32
  br label %.preheader104.us.us.us.us.us.us.us.us.us

.preheader104.us.us.us.us.us.us.us.us.us:         ; preds = %._crit_edge128.split.us.us.us.us.us.us.us.us.us.us, %.preheader105.us.us.us.us.us.us.us
  %indvars.iv341 = phi i64 [ %indvars.iv.next342, %._crit_edge128.split.us.us.us.us.us.us.us.us.us.us ], [ 0, %.preheader105.us.us.us.us.us.us.us ]
  %69 = trunc nuw nsw i64 %indvars.iv341 to i32
  br label %.preheader.us.us.us.us.us.us.us.us.us.us

.preheader.us.us.us.us.us.us.us.us.us.us:         ; preds = %71, %.preheader104.us.us.us.us.us.us.us.us.us
  %indvars.iv337 = phi i64 [ %indvars.iv.next338, %71 ], [ 0, %.preheader104.us.us.us.us.us.us.us.us.us ]
  %70 = trunc nuw nsw i64 %indvars.iv337 to i32
  br label %72

71:                                               ; preds = %._crit_edge.us129.us.us.us.us.us.us.us.us.us
  %indvars.iv.next338 = add nuw nsw i64 %indvars.iv337, 1
  %exitcond340.not = icmp eq i64 %indvars.iv.next338, %21
  br i1 %exitcond340.not, label %._crit_edge128.split.us.us.us.us.us.us.us.us.us.us, label %.preheader.us.us.us.us.us.us.us.us.us.us, !llvm.loop !16

72:                                               ; preds = %72, %.preheader.us.us.us.us.us.us.us.us.us.us
  %indvars.iv333 = phi i64 [ %indvars.iv.next334, %72 ], [ 0, %.preheader.us.us.us.us.us.us.us.us.us.us ]
  %.092125.us.us.us.us.us.us.us.us.us.us = phi float [ %76, %72 ], [ 0.000000e+00, %.preheader.us.us.us.us.us.us.us.us.us.us ]
  %73 = trunc nuw nsw i64 %indvars.iv333 to i32
  %74 = tail call float @mat_get(ptr noundef %1, i32 noundef %73, i32 noundef %70, i32 noundef %68, i32 noundef %67)
  %75 = tail call float @mat_get(ptr noundef %2, i32 noundef %73, i32 noundef %69, i32 noundef %68, i32 noundef %67)
  %76 = tail call float @llvm.fmuladd.f32(float %74, float %75, float %.092125.us.us.us.us.us.us.us.us.us.us)
  %indvars.iv.next334 = add nuw nsw i64 %indvars.iv333, 1
  %exitcond336.not = icmp eq i64 %indvars.iv.next334, %5
  br i1 %exitcond336.not, label %._crit_edge.us129.us.us.us.us.us.us.us.us.us, label %72, !llvm.loop !17

._crit_edge.us129.us.us.us.us.us.us.us.us.us:     ; preds = %72
  %77 = tail call float @mat_get(ptr noundef %0, i32 noundef %70, i32 noundef %69, i32 noundef %68, i32 noundef %67)
  %78 = fsub float %76, %77
  %79 = tail call float @llvm.fabs.f32(float %78)
  %80 = fpext float %79 to double
  %81 = fcmp ogt double %80, 1.000000e-05
  br i1 %81, label %.split.us.loopexit, label %71

._crit_edge128.split.us.us.us.us.us.us.us.us.us.us: ; preds = %71
  %indvars.iv.next342 = add nuw nsw i64 %indvars.iv341, 1
  %exitcond344.not = icmp eq i64 %indvars.iv.next342, %23
  br i1 %exitcond344.not, label %._crit_edge.split.us.split.us.us.us.us.us.us.us.us, label %.preheader104.us.us.us.us.us.us.us.us.us, !llvm.loop !18

._crit_edge.split.us.split.us.us.us.us.us.us.us.us: ; preds = %._crit_edge128.split.us.us.us.us.us.us.us.us.us.us
  %indvars.iv.next346 = add nuw nsw i64 %indvars.iv345, 1
  %exitcond348.not = icmp eq i64 %indvars.iv.next346, %25
  br i1 %exitcond348.not, label %._crit_edge163.split.us.split.us.split.us.us.us.us.us, label %.preheader105.us.us.us.us.us.us.us, !llvm.loop !19

._crit_edge163.split.us.split.us.split.us.us.us.us.us: ; preds = %._crit_edge.split.us.split.us.us.us.us.us.us.us.us
  %indvars.iv.next350 = add nuw nsw i64 %indvars.iv349, 1
  %exitcond352.not = icmp eq i64 %indvars.iv.next350, %27
  br i1 %exitcond352.not, label %._crit_edge, label %.preheader106.us.us.us.us, !llvm.loop !20

.preheader106.us.us.us:                           ; preds = %.preheader106.lr.ph.split.us.split.us.split.us, %._crit_edge163.split.us.split.us.split.us212.us.us
  %indvars.iv329 = phi i64 [ %indvars.iv.next330, %._crit_edge163.split.us.split.us.split.us212.us.us ], [ 0, %.preheader106.lr.ph.split.us.split.us.split.us ]
  %82 = trunc nuw nsw i64 %indvars.iv329 to i32
  br label %.preheader105.us.us.us210.us.us

.preheader105.us.us.us210.us.us:                  ; preds = %.preheader106.us.us.us, %._crit_edge.split.us.split.us171.us.us.us.us
  %indvars.iv325 = phi i64 [ 0, %.preheader106.us.us.us ], [ %indvars.iv.next326, %._crit_edge.split.us.split.us171.us.us.us.us ]
  %83 = trunc nuw nsw i64 %indvars.iv325 to i32
  br label %.preheader104.us.us169.us.us.us.us

.preheader104.us.us169.us.us.us.us:               ; preds = %._crit_edge128.split.us138.us.us.us.us.us, %.preheader105.us.us.us210.us.us
  %indvars.iv321 = phi i64 [ %indvars.iv.next322, %._crit_edge128.split.us138.us.us.us.us.us ], [ 0, %.preheader105.us.us.us210.us.us ]
  %84 = trunc nuw nsw i64 %indvars.iv321 to i32
  br label %.preheader.us136.us.us.us.us.us

85:                                               ; preds = %.preheader.us136.us.us.us.us.us
  %indvars.iv.next318 = add nuw nsw i64 %indvars.iv317, 1
  %exitcond320.not = icmp eq i64 %indvars.iv.next318, %21
  br i1 %exitcond320.not, label %._crit_edge128.split.us138.us.us.us.us.us, label %.preheader.us136.us.us.us.us.us, !llvm.loop !16

.preheader.us136.us.us.us.us.us:                  ; preds = %85, %.preheader104.us.us169.us.us.us.us
  %indvars.iv317 = phi i64 [ %indvars.iv.next318, %85 ], [ 0, %.preheader104.us.us169.us.us.us.us ]
  %86 = trunc nuw nsw i64 %indvars.iv317 to i32
  %87 = tail call float @mat_get(ptr noundef %0, i32 noundef %86, i32 noundef %84, i32 noundef %83, i32 noundef %82)
  %88 = fsub float 0.000000e+00, %87
  %89 = tail call float @llvm.fabs.f32(float %88)
  %90 = fpext float %89 to double
  %91 = fcmp ogt double %90, 1.000000e-05
  br i1 %91, label %.split.us, label %85

._crit_edge128.split.us138.us.us.us.us.us:        ; preds = %85
  %indvars.iv.next322 = add nuw nsw i64 %indvars.iv321, 1
  %exitcond324.not = icmp eq i64 %indvars.iv.next322, %23
  br i1 %exitcond324.not, label %._crit_edge.split.us.split.us171.us.us.us.us, label %.preheader104.us.us169.us.us.us.us, !llvm.loop !18

._crit_edge.split.us.split.us171.us.us.us.us:     ; preds = %._crit_edge128.split.us138.us.us.us.us.us
  %indvars.iv.next326 = add nuw nsw i64 %indvars.iv325, 1
  %exitcond328.not = icmp eq i64 %indvars.iv.next326, %25
  br i1 %exitcond328.not, label %._crit_edge163.split.us.split.us.split.us212.us.us, label %.preheader105.us.us.us210.us.us, !llvm.loop !19

._crit_edge163.split.us.split.us.split.us212.us.us: ; preds = %._crit_edge.split.us.split.us171.us.us.us.us
  %indvars.iv.next330 = add nuw nsw i64 %indvars.iv329, 1
  %exitcond332.not = icmp eq i64 %indvars.iv.next330, %27
  br i1 %exitcond332.not, label %._crit_edge, label %.preheader106.us.us.us, !llvm.loop !20

._crit_edge:                                      ; preds = %._crit_edge163.split.us.split.us.split.us212.us.us, %._crit_edge163.split.us.split.us.split.us.us.us.us.us, %.preheader106.lr.ph, %.preheader107
  ret i1 true

.split.us.loopexit:                               ; preds = %._crit_edge.us129.us.us.us.us.us.us.us.us.us
  %92 = fpext float %76 to double
  br label %.split.us

.split.us:                                        ; preds = %.preheader.us136.us.us.us.us.us, %.split.us.loopexit
  %.us-phi = phi i32 [ %67, %.split.us.loopexit ], [ %82, %.preheader.us136.us.us.us.us.us ]
  %.us-phi130 = phi i32 [ %68, %.split.us.loopexit ], [ %83, %.preheader.us136.us.us.us.us.us ]
  %.us-phi131 = phi i32 [ %69, %.split.us.loopexit ], [ %84, %.preheader.us136.us.us.us.us.us ]
  %.us-phi132 = phi i32 [ %70, %.split.us.loopexit ], [ %86, %.preheader.us136.us.us.us.us.us ]
  %.us-phi133 = phi double [ %92, %.split.us.loopexit ], [ 0.000000e+00, %.preheader.us136.us.us.us.us.us ]
  %93 = tail call float @mat_get(ptr noundef %0, i32 noundef %.us-phi132, i32 noundef %.us-phi131, i32 noundef %.us-phi130, i32 noundef %.us-phi)
  %94 = fpext float %93 to double
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %.us-phi132, i32 noundef %.us-phi131, i32 noundef %.us-phi130, i32 noundef %.us-phi, double noundef %.us-phi133, double noundef %94)
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 220, ptr noundef nonnull @__PRETTY_FUNCTION__.check_mat_mul) #4
  unreachable
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { noreturn 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 = { 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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }

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

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


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