; LLVM IR from libxsmm/libxsmm :: samples/equation (equation_splitSGD)

; 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.libxsmm_kernel_info = type { i32, i32, i64, i32 }
%struct.libxsmm_meqn_arg_metadata = type { i32, i32 }
%struct.libxsmm_meqn_op_metadata = type { i32, i32 }
%struct.libxsmm_meqn_arg_shape = type { i32, i32, i32, i32 }
%struct.libxsmm_matrix_arg_attributes = type { i32, i32, i32, i32 }
%struct.libxsmm_meqn_param = type { ptr, ptr, %struct.libxsmm_matrix_arg }
%struct.libxsmm_matrix_arg = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.libxsmm_matdiff_info = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32 }

@is_reference_kernel = external dso_local global i32, align 4
@info = external dso_local global %struct.libxsmm_kernel_info, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_return_success_code(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 i32, align 4
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %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 i64, align 8
  %19 = alloca float, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.libxsmm_meqn_arg_metadata, align 4
  %24 = alloca %struct.libxsmm_meqn_op_metadata, align 4
  %25 = alloca %struct.libxsmm_meqn_arg_shape, align 4
  %26 = alloca %struct.libxsmm_meqn_arg_shape, align 4
  %27 = alloca %struct.libxsmm_matrix_arg_attributes, align 4
  %28 = alloca %struct.libxsmm_meqn_param, align 8
  %29 = alloca [4 x %struct.libxsmm_matrix_arg], align 16
  %30 = alloca %struct.libxsmm_matdiff_info, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca i32, align 4
  %39 = alloca %struct.libxsmm_meqn_op_metadata, align 4
  %40 = alloca %struct.libxsmm_meqn_arg_shape, align 4
  %41 = alloca %struct.libxsmm_meqn_arg_metadata, align 4
  %42 = alloca %struct.libxsmm_meqn_arg_shape, align 4
  %43 = alloca %struct.libxsmm_meqn_arg_metadata, align 4
  %44 = alloca %struct.libxsmm_meqn_arg_shape, align 4
  %45 = alloca %struct.libxsmm_meqn_arg_metadata, align 4
  %46 = alloca %struct.libxsmm_meqn_arg_metadata, align 4
  %47 = alloca %struct.libxsmm_meqn_arg_shape, align 4
  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 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store double 1.000000e-05, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store float 0x3FE6666660000000, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 64, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 64, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 64, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %48 = call { i64, i64 } @libxsmm_create_matrix_arg_attributes(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %49 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %50 = extractvalue { i64, i64 } %48, 0
  store i64 %50, ptr %49, align 4
  %51 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %52 = extractvalue { i64, i64 } %48, 1
  store i64 %52, ptr %51, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 192, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 192, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  store double 0.000000e+00, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  store double 0.000000e+00, ptr %37, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 100, ptr %38, align 4, !tbaa !5
  call void @libxsmm_init()
  call void @libxsmm_matdiff_clear(ptr noundef %30)
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = icmp sgt i32 %53, 1
  br i1 %54, label %55, label %60

55:                                               ; preds = %2
  %56 = load ptr, ptr %5, align 8, !tbaa !9
  %57 = getelementptr inbounds ptr, ptr %56, i64 1
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  %59 = call i32 @atoi(ptr noundef %58) #9
  store i32 %59, ptr %20, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %55, %2
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = icmp sgt i32 %61, 2
  br i1 %62, label %63, label %68

63:                                               ; preds = %60
  %64 = load ptr, ptr %5, align 8, !tbaa !9
  %65 = getelementptr inbounds ptr, ptr %64, i64 2
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = call i32 @atoi(ptr noundef %66) #9
  store i32 %67, ptr %21, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %63, %60
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = icmp sgt i32 %69, 3
  br i1 %70, label %71, label %76

71:                                               ; preds = %68
  %72 = load ptr, ptr %5, align 8, !tbaa !9
  %73 = getelementptr inbounds ptr, ptr %72, i64 3
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = call i32 @atoi(ptr noundef %74) #9
  store i32 %75, ptr %22, align 4, !tbaa !5
  br label %76

76:                                               ; preds = %71, %68
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = icmp sgt i32 %77, 4
  br i1 %78, label %79, label %84

79:                                               ; preds = %76
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 4
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call i32 @atoi(ptr noundef %82) #9
  store i32 %83, ptr %38, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %79, %76
  %85 = load i32, ptr %21, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = mul i64 4, %86
  %88 = load i32, ptr %22, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = mul i64 %87, %89
  %91 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %90, i64 noundef 64)
  store ptr %91, ptr %10, align 8, !tbaa !9
  %92 = load i32, ptr %21, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = mul i64 2, %93
  %95 = load i32, ptr %22, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = mul i64 %94, %96
  %98 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %97, i64 noundef 64)
  store ptr %98, ptr %14, align 8, !tbaa !9
  %99 = load i32, ptr %21, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = mul i64 2, %100
  %102 = load i32, ptr %22, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = mul i64 %101, %103
  %105 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %104, i64 noundef 64)
  store ptr %105, ptr %15, align 8, !tbaa !9
  %106 = load i32, ptr %21, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = mul i64 2, %107
  %109 = load i32, ptr %22, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = mul i64 %108, %110
  %112 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %111, i64 noundef 64)
  store ptr %112, ptr %16, align 8, !tbaa !9
  %113 = load i32, ptr %21, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = mul i64 2, %114
  %116 = load i32, ptr %22, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = mul i64 %115, %117
  %119 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %118, i64 noundef 64)
  store ptr %119, ptr %17, align 8, !tbaa !9
  %120 = load i32, ptr %21, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = mul i64 2, %121
  %123 = load i32, ptr %22, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = mul i64 %122, %124
  %126 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %125, i64 noundef 64)
  store ptr %126, ptr %13, align 8, !tbaa !9
  %127 = load i32, ptr %21, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = mul i64 4, %128
  %130 = load i32, ptr %22, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = mul i64 %129, %131
  %133 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %132, i64 noundef 64)
  store ptr %133, ptr %11, align 8, !tbaa !9
  %134 = load i32, ptr %21, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = mul i64 4, %135
  %137 = load i32, ptr %22, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = mul i64 %136, %138
  %140 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %139, i64 noundef 64)
  store ptr %140, ptr %12, align 8, !tbaa !9
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %154, %84
  %142 = load i32, ptr %31, align 4, !tbaa !5
  %143 = load i32, ptr %21, align 4, !tbaa !5
  %144 = load i32, ptr %22, align 4, !tbaa !5
  %145 = mul nsw i32 %143, %144
  %146 = icmp slt i32 %142, %145
  br i1 %146, label %147, label %157

147:                                              ; preds = %141
  %148 = call double @libxsmm_rng_f64()
  %149 = fptrunc double %148 to float
  %150 = load ptr, ptr %12, align 8, !tbaa !9
  %151 = load i32, ptr %31, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds float, ptr %150, i64 %152
  store float %149, ptr %153, align 4, !tbaa !13
  br label %154

154:                                              ; preds = %147
  %155 = load i32, ptr %31, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %31, align 4, !tbaa !5
  br label %141, !llvm.loop !15

157:                                              ; preds = %141
  %158 = load ptr, ptr %11, align 8, !tbaa !9
  %159 = load ptr, ptr %12, align 8, !tbaa !9
  %160 = load i32, ptr %22, align 4, !tbaa !5
  %161 = load i32, ptr %21, align 4, !tbaa !5
  %162 = mul nsw i32 %160, %161
  %163 = sext i32 %162 to i64
  %164 = mul i64 %163, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %158, ptr align 4 %159, i64 %164, i1 false)
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %165

165:                                              ; preds = %189, %157
  %166 = load i32, ptr %31, align 4, !tbaa !5
  %167 = load i32, ptr %21, align 4, !tbaa !5
  %168 = icmp slt i32 %166, %167
  br i1 %168, label %169, label %192

169:                                              ; preds = %165
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %185, %169
  %171 = load i32, ptr %32, align 4, !tbaa !5
  %172 = load i32, ptr %22, align 4, !tbaa !5
  %173 = icmp slt i32 %171, %172
  br i1 %173, label %174, label %188

174:                                              ; preds = %170
  %175 = call double @libxsmm_rng_f64()
  %176 = fptrunc double %175 to float
  %177 = load ptr, ptr %10, align 8, !tbaa !9
  %178 = load i32, ptr %31, align 4, !tbaa !5
  %179 = load i32, ptr %22, align 4, !tbaa !5
  %180 = mul nsw i32 %178, %179
  %181 = load i32, ptr %32, align 4, !tbaa !5
  %182 = add nsw i32 %180, %181
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds float, ptr %177, i64 %183
  store float %176, ptr %184, align 4, !tbaa !13
  br label %185

185:                                              ; preds = %174
  %186 = load i32, ptr %32, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %32, align 4, !tbaa !5
  br label %170, !llvm.loop !17

188:                                              ; preds = %170
  br label %189

189:                                              ; preds = %188
  %190 = load i32, ptr %31, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %31, align 4, !tbaa !5
  br label %165, !llvm.loop !18

192:                                              ; preds = %165
  %193 = load i32, ptr %20, align 4, !tbaa !5
  %194 = load i32, ptr %21, align 4, !tbaa !5
  %195 = load i32, ptr %22, align 4, !tbaa !5
  %196 = load ptr, ptr %10, align 8, !tbaa !9
  %197 = load ptr, ptr %14, align 8, !tbaa !9
  %198 = load ptr, ptr %15, align 8, !tbaa !9
  call void @reference_unpack(i32 noundef %193, i32 noundef %194, i32 noundef %195, ptr noundef %196, ptr noundef %197, ptr noundef %198)
  %199 = load ptr, ptr %16, align 8, !tbaa !9
  %200 = load ptr, ptr %14, align 8, !tbaa !9
  %201 = load i32, ptr %22, align 4, !tbaa !5
  %202 = load i32, ptr %21, align 4, !tbaa !5
  %203 = mul nsw i32 %201, %202
  %204 = sext i32 %203 to i64
  %205 = mul i64 %204, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %199, ptr align 2 %200, i64 %205, i1 false)
  %206 = load ptr, ptr %17, align 8, !tbaa !9
  %207 = load ptr, ptr %15, align 8, !tbaa !9
  %208 = load i32, ptr %22, align 4, !tbaa !5
  %209 = load i32, ptr %21, align 4, !tbaa !5
  %210 = mul nsw i32 %208, %209
  %211 = sext i32 %210 to i64
  %212 = mul i64 %211, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %206, ptr align 2 %207, i64 %212, i1 false)
  store i32 0, ptr %31, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %237, %192
  %214 = load i32, ptr %31, align 4, !tbaa !5
  %215 = load i32, ptr %21, align 4, !tbaa !5
  %216 = icmp slt i32 %214, %215
  br i1 %216, label %217, label %240

217:                                              ; preds = %213
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %233, %217
  %219 = load i32, ptr %32, align 4, !tbaa !5
  %220 = load i32, ptr %22, align 4, !tbaa !5
  %221 = icmp slt i32 %219, %220
  br i1 %221, label %222, label %236

222:                                              ; preds = %218
  %223 = call double @libxsmm_rng_f64()
  %224 = fptrunc double %223 to float
  %225 = load ptr, ptr %10, align 8, !tbaa !9
  %226 = load i32, ptr %31, align 4, !tbaa !5
  %227 = load i32, ptr %22, align 4, !tbaa !5
  %228 = mul nsw i32 %226, %227
  %229 = load i32, ptr %32, align 4, !tbaa !5
  %230 = add nsw i32 %228, %229
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds float, ptr %225, i64 %231
  store float %224, ptr %232, align 4, !tbaa !13
  br label %233

233:                                              ; preds = %222
  %234 = load i32, ptr %32, align 4, !tbaa !5
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %32, align 4, !tbaa !5
  br label %218, !llvm.loop !19

236:                                              ; preds = %218
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %31, align 4, !tbaa !5
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %31, align 4, !tbaa !5
  br label %213, !llvm.loop !20

240:                                              ; preds = %213
  %241 = load ptr, ptr %10, align 8, !tbaa !9
  %242 = load ptr, ptr %13, align 8, !tbaa !9
  %243 = load i32, ptr %22, align 4, !tbaa !5
  %244 = load i32, ptr %21, align 4, !tbaa !5
  %245 = mul nsw i32 %243, %244
  %246 = sext i32 %245 to i64
  call void @libxsmm_rne_convert_fp32_bf16(ptr noundef %241, ptr noundef %242, i64 noundef %246)
  %247 = call i32 @libxsmm_meqn_create()
  store i32 %247, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %248 = load i32, ptr %8, align 4, !tbaa !5
  %249 = call i64 @libxsmm_create_meqn_op_metadata(i32 noundef %248, i32 noundef -1)
  store i64 %249, ptr %39, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %39, i64 8, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  %250 = load i64, ptr %24, align 4
  %251 = call i32 @libxsmm_meqn_push_back_unary_op(i64 %250, i32 noundef 33, i32 noundef 14, i32 noundef 0)
  %252 = load i64, ptr %24, align 4
  %253 = call i32 @libxsmm_meqn_push_back_ternary_op(i64 %252, i32 noundef 1, i32 noundef 1, i32 noundef 640)
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  %254 = load i32, ptr %20, align 4, !tbaa !5
  %255 = load i32, ptr %21, align 4, !tbaa !5
  %256 = load i32, ptr %22, align 4, !tbaa !5
  %257 = call { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef %254, i32 noundef %255, i32 noundef %256, i32 noundef 2)
  %258 = getelementptr inbounds { i64, i64 }, ptr %40, i32 0, i32 0
  %259 = extractvalue { i64, i64 } %257, 0
  store i64 %259, ptr %258, align 4
  %260 = getelementptr inbounds { i64, i64 }, ptr %40, i32 0, i32 1
  %261 = extractvalue { i64, i64 } %257, 1
  store i64 %261, ptr %260, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %40, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %262 = load i32, ptr %8, align 4, !tbaa !5
  %263 = call i64 @libxsmm_create_meqn_arg_metadata(i32 noundef %262, i32 noundef 3)
  store i64 %263, ptr %41, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %41, i64 8, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  %264 = load i64, ptr %23, align 4
  %265 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 0
  %266 = load i64, ptr %265, align 4
  %267 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 1
  %268 = load i64, ptr %267, align 4
  %269 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %270 = load i64, ptr %269, align 4
  %271 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %272 = load i64, ptr %271, align 4
  %273 = call i32 @libxsmm_meqn_push_back_arg(i64 %264, i64 %266, i64 %268, i64 %270, i64 %272)
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #8
  %274 = call { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef 1, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %275 = getelementptr inbounds { i64, i64 }, ptr %42, i32 0, i32 0
  %276 = extractvalue { i64, i64 } %274, 0
  store i64 %276, ptr %275, align 4
  %277 = getelementptr inbounds { i64, i64 }, ptr %42, i32 0, i32 1
  %278 = extractvalue { i64, i64 } %274, 1
  store i64 %278, ptr %277, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %42, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %279 = load i32, ptr %8, align 4, !tbaa !5
  %280 = call i64 @libxsmm_create_meqn_arg_metadata(i32 noundef %279, i32 noundef 2)
  store i64 %280, ptr %43, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %43, i64 8, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  %281 = load i64, ptr %23, align 4
  %282 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 0
  %283 = load i64, ptr %282, align 4
  %284 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 1
  %285 = load i64, ptr %284, align 4
  %286 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %287 = load i64, ptr %286, align 4
  %288 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %289 = load i64, ptr %288, align 4
  %290 = call i32 @libxsmm_meqn_push_back_arg(i64 %281, i64 %283, i64 %285, i64 %287, i64 %289)
  %291 = load i64, ptr %24, align 4
  %292 = call i32 @libxsmm_meqn_push_back_binary_op(i64 %291, i32 noundef 26, i32 noundef 14, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #8
  %293 = load i32, ptr %20, align 4, !tbaa !5
  %294 = load i32, ptr %21, align 4, !tbaa !5
  %295 = load i32, ptr %22, align 4, !tbaa !5
  %296 = call { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef %293, i32 noundef %294, i32 noundef %295, i32 noundef 11)
  %297 = getelementptr inbounds { i64, i64 }, ptr %44, i32 0, i32 0
  %298 = extractvalue { i64, i64 } %296, 0
  store i64 %298, ptr %297, align 4
  %299 = getelementptr inbounds { i64, i64 }, ptr %44, i32 0, i32 1
  %300 = extractvalue { i64, i64 } %296, 1
  store i64 %300, ptr %299, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %44, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %301 = load i32, ptr %8, align 4, !tbaa !5
  %302 = call i64 @libxsmm_create_meqn_arg_metadata(i32 noundef %301, i32 noundef 0)
  store i64 %302, ptr %45, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  %303 = load i64, ptr %23, align 4
  %304 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 0
  %305 = load i64, ptr %304, align 4
  %306 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 1
  %307 = load i64, ptr %306, align 4
  %308 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %309 = load i64, ptr %308, align 4
  %310 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %311 = load i64, ptr %310, align 4
  %312 = call i32 @libxsmm_meqn_push_back_arg(i64 %303, i64 %305, i64 %307, i64 %309, i64 %311)
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #8
  %313 = load i32, ptr %8, align 4, !tbaa !5
  %314 = call i64 @libxsmm_create_meqn_arg_metadata(i32 noundef %313, i32 noundef 1)
  store i64 %314, ptr %46, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %46, i64 8, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #8
  %315 = load i64, ptr %23, align 4
  %316 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 0
  %317 = load i64, ptr %316, align 4
  %318 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 1
  %319 = load i64, ptr %318, align 4
  %320 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %321 = load i64, ptr %320, align 4
  %322 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %323 = load i64, ptr %322, align 4
  %324 = call i32 @libxsmm_meqn_push_back_arg(i64 %315, i64 %317, i64 %319, i64 %321, i64 %323)
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #8
  %325 = load i32, ptr %20, align 4, !tbaa !5
  %326 = load i32, ptr %21, align 4, !tbaa !5
  %327 = load i32, ptr %22, align 4, !tbaa !5
  %328 = call { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef %325, i32 noundef %326, i32 noundef %327, i32 noundef 11)
  %329 = getelementptr inbounds { i64, i64 }, ptr %47, i32 0, i32 0
  %330 = extractvalue { i64, i64 } %328, 0
  store i64 %330, ptr %329, align 4
  %331 = getelementptr inbounds { i64, i64 }, ptr %47, i32 0, i32 1
  %332 = extractvalue { i64, i64 } %328, 1
  store i64 %332, ptr %331, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %47, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #8
  %333 = load i32, ptr %8, align 4, !tbaa !5
  %334 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 0
  %335 = load i64, ptr %334, align 4
  %336 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 1
  %337 = load i64, ptr %336, align 4
  %338 = call ptr @libxsmm_dispatch_meqn(i32 noundef %333, i64 %335, i64 %337)
  store ptr %338, ptr %9, align 8, !tbaa !9
  %339 = load ptr, ptr %9, align 8, !tbaa !9
  %340 = call i32 @libxsmm_get_kernel_info(ptr noundef %339, ptr noundef @info)
  %341 = load i32, ptr getelementptr inbounds (%struct.libxsmm_kernel_info, ptr @info, i32 0, i32 3), align 8, !tbaa !23
  store i32 %341, ptr @is_reference_kernel, align 4, !tbaa !5
  %342 = load ptr, ptr %9, align 8, !tbaa !9
  %343 = icmp eq ptr %342, null
  br i1 %343, label %344, label %347

344:                                              ; preds = %240
  %345 = load ptr, ptr @stderr, align 8, !tbaa !9
  %346 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %345, ptr noundef @.str) #8
  call void @exit(i32 noundef -1) #10
  unreachable

347:                                              ; preds = %240
  %348 = load ptr, ptr %16, align 8, !tbaa !9
  %349 = getelementptr inbounds [4 x %struct.libxsmm_matrix_arg], ptr %29, i64 0, i64 0
  %350 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %349, i32 0, i32 0
  store ptr %348, ptr %350, align 16, !tbaa !26
  %351 = load ptr, ptr %17, align 8, !tbaa !9
  %352 = getelementptr inbounds [4 x %struct.libxsmm_matrix_arg], ptr %29, i64 0, i64 1
  %353 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %352, i32 0, i32 0
  store ptr %351, ptr %353, align 16, !tbaa !26
  %354 = getelementptr inbounds [4 x %struct.libxsmm_matrix_arg], ptr %29, i64 0, i64 2
  %355 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %354, i32 0, i32 0
  store ptr %19, ptr %355, align 16, !tbaa !26
  %356 = load ptr, ptr %13, align 8, !tbaa !9
  %357 = getelementptr inbounds [4 x %struct.libxsmm_matrix_arg], ptr %29, i64 0, i64 3
  %358 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %357, i32 0, i32 0
  store ptr %356, ptr %358, align 16, !tbaa !26
  %359 = getelementptr inbounds [4 x %struct.libxsmm_matrix_arg], ptr %29, i64 0, i64 0
  %360 = getelementptr inbounds %struct.libxsmm_meqn_param, ptr %28, i32 0, i32 1
  store ptr %359, ptr %360, align 8, !tbaa !28
  %361 = load ptr, ptr %16, align 8, !tbaa !9
  %362 = getelementptr inbounds %struct.libxsmm_meqn_param, ptr %28, i32 0, i32 2
  %363 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %362, i32 0, i32 0
  store ptr %361, ptr %363, align 8, !tbaa !30
  %364 = load ptr, ptr %17, align 8, !tbaa !9
  %365 = load ptr, ptr %16, align 8, !tbaa !9
  %366 = ptrtoint ptr %364 to i64
  %367 = ptrtoint ptr %365 to i64
  %368 = sub i64 %366, %367
  store i64 %368, ptr %18, align 8, !tbaa !31
  %369 = getelementptr inbounds %struct.libxsmm_meqn_param, ptr %28, i32 0, i32 2
  %370 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %369, i32 0, i32 1
  store ptr %18, ptr %370, align 8, !tbaa !33
  %371 = load ptr, ptr %9, align 8, !tbaa !9
  call void %371(ptr noundef %28)
  %372 = load i32, ptr %20, align 4, !tbaa !5
  %373 = load i32, ptr %21, align 4, !tbaa !5
  %374 = load i32, ptr %22, align 4, !tbaa !5
  %375 = load ptr, ptr %13, align 8, !tbaa !9
  %376 = load float, ptr %19, align 4, !tbaa !13
  %377 = load ptr, ptr %14, align 8, !tbaa !9
  %378 = load ptr, ptr %15, align 8, !tbaa !9
  call void @reference_equation(i32 noundef %372, i32 noundef %373, i32 noundef %374, ptr noundef %375, float noundef %376, ptr noundef %377, ptr noundef %378)
  %379 = load i32, ptr %20, align 4, !tbaa !5
  %380 = load i32, ptr %21, align 4, !tbaa !5
  %381 = load i32, ptr %22, align 4, !tbaa !5
  %382 = load ptr, ptr %11, align 8, !tbaa !9
  %383 = load ptr, ptr %14, align 8, !tbaa !9
  %384 = load ptr, ptr %15, align 8, !tbaa !9
  call void @reference_pack(i32 noundef %379, i32 noundef %380, i32 noundef %381, ptr noundef %382, ptr noundef %383, ptr noundef %384)
  %385 = load i32, ptr %20, align 4, !tbaa !5
  %386 = load i32, ptr %21, align 4, !tbaa !5
  %387 = load i32, ptr %22, align 4, !tbaa !5
  %388 = load ptr, ptr %12, align 8, !tbaa !9
  %389 = load ptr, ptr %16, align 8, !tbaa !9
  %390 = load ptr, ptr %17, align 8, !tbaa !9
  call void @reference_pack(i32 noundef %385, i32 noundef %386, i32 noundef %387, ptr noundef %388, ptr noundef %389, ptr noundef %390)
  %391 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %392 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %393 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %394 = load i32, ptr %22, align 4, !tbaa !5
  %395 = load i32, ptr %21, align 4, !tbaa !5
  %396 = mul nsw i32 %394, %395
  %397 = load ptr, ptr %11, align 8, !tbaa !9
  %398 = load ptr, ptr %12, align 8, !tbaa !9
  %399 = call i32 @libxsmm_matdiff(ptr noundef %30, i32 noundef 1, i32 noundef %396, i32 noundef 1, ptr noundef %397, ptr noundef %398, ptr noundef null, ptr noundef null)
  %400 = getelementptr inbounds %struct.libxsmm_matdiff_info, ptr %30, i32 0, i32 10
  %401 = load double, ptr %400, align 8, !tbaa !34
  %402 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %401)
  %403 = getelementptr inbounds %struct.libxsmm_matdiff_info, ptr %30, i32 0, i32 15
  %404 = load double, ptr %403, align 8, !tbaa !36
  %405 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %404)
  %406 = getelementptr inbounds %struct.libxsmm_matdiff_info, ptr %30, i32 0, i32 7
  %407 = load double, ptr %406, align 8, !tbaa !37
  %408 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %407)
  %409 = getelementptr inbounds %struct.libxsmm_matdiff_info, ptr %30, i32 0, i32 8
  %410 = load double, ptr %409, align 8, !tbaa !38
  %411 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %410)
  %412 = getelementptr inbounds %struct.libxsmm_matdiff_info, ptr %30, i32 0, i32 5
  %413 = load double, ptr %412, align 8, !tbaa !39
  %414 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %413)
  %415 = getelementptr inbounds %struct.libxsmm_matdiff_info, ptr %30, i32 0, i32 6
  %416 = load double, ptr %415, align 8, !tbaa !40
  %417 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %416)
  %418 = getelementptr inbounds %struct.libxsmm_matdiff_info, ptr %30, i32 0, i32 4
  %419 = load double, ptr %418, align 8, !tbaa !41
  %420 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %419)
  %421 = getelementptr inbounds %struct.libxsmm_matdiff_info, ptr %30, i32 0, i32 4
  %422 = load double, ptr %421, align 8, !tbaa !41
  %423 = load double, ptr %7, align 8, !tbaa !11
  %424 = fcmp ogt double %422, %423
  br i1 %424, label %425, label %426

425:                                              ; preds = %347
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %426

426:                                              ; preds = %425, %347
  %427 = load i32, ptr %20, align 4, !tbaa !5
  %428 = load i32, ptr %21, align 4, !tbaa !5
  %429 = load i32, ptr %22, align 4, !tbaa !5
  %430 = load ptr, ptr %13, align 8, !tbaa !9
  %431 = load float, ptr %19, align 4, !tbaa !13
  %432 = load ptr, ptr %14, align 8, !tbaa !9
  %433 = load ptr, ptr %15, align 8, !tbaa !9
  call void @reference_equation(i32 noundef %427, i32 noundef %428, i32 noundef %429, ptr noundef %430, float noundef %431, ptr noundef %432, ptr noundef %433)
  %434 = call i64 @libxsmm_timer_tick()
  store i64 %434, ptr %34, align 8, !tbaa !31
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %435

435:                                              ; preds = %447, %426
  %436 = load i32, ptr %33, align 4, !tbaa !5
  %437 = load i32, ptr %38, align 4, !tbaa !5
  %438 = icmp slt i32 %436, %437
  br i1 %438, label %439, label %450

439:                                              ; preds = %435
  %440 = load i32, ptr %20, align 4, !tbaa !5
  %441 = load i32, ptr %21, align 4, !tbaa !5
  %442 = load i32, ptr %22, align 4, !tbaa !5
  %443 = load ptr, ptr %13, align 8, !tbaa !9
  %444 = load float, ptr %19, align 4, !tbaa !13
  %445 = load ptr, ptr %14, align 8, !tbaa !9
  %446 = load ptr, ptr %15, align 8, !tbaa !9
  call void @reference_equation(i32 noundef %440, i32 noundef %441, i32 noundef %442, ptr noundef %443, float noundef %444, ptr noundef %445, ptr noundef %446)
  br label %447

447:                                              ; preds = %439
  %448 = load i32, ptr %33, align 4, !tbaa !5
  %449 = add nsw i32 %448, 1
  store i32 %449, ptr %33, align 4, !tbaa !5
  br label %435, !llvm.loop !42

450:                                              ; preds = %435
  %451 = call i64 @libxsmm_timer_tick()
  store i64 %451, ptr %35, align 8, !tbaa !31
  %452 = load i64, ptr %34, align 8, !tbaa !31
  %453 = load i64, ptr %35, align 8, !tbaa !31
  %454 = call double @libxsmm_timer_duration(i64 noundef %452, i64 noundef %453)
  store double %454, ptr %36, align 8, !tbaa !11
  %455 = load double, ptr %36, align 8, !tbaa !11
  %456 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %455)
  %457 = load ptr, ptr %9, align 8, !tbaa !9
  call void %457(ptr noundef %28)
  %458 = call i64 @libxsmm_timer_tick()
  store i64 %458, ptr %34, align 8, !tbaa !31
  store i32 0, ptr %33, align 4, !tbaa !5
  br label %459

459:                                              ; preds = %465, %450
  %460 = load i32, ptr %33, align 4, !tbaa !5
  %461 = load i32, ptr %38, align 4, !tbaa !5
  %462 = icmp slt i32 %460, %461
  br i1 %462, label %463, label %468

463:                                              ; preds = %459
  %464 = load ptr, ptr %9, align 8, !tbaa !9
  call void %464(ptr noundef %28)
  br label %465

465:                                              ; preds = %463
  %466 = load i32, ptr %33, align 4, !tbaa !5
  %467 = add nsw i32 %466, 1
  store i32 %467, ptr %33, align 4, !tbaa !5
  br label %459, !llvm.loop !43

468:                                              ; preds = %459
  %469 = call i64 @libxsmm_timer_tick()
  store i64 %469, ptr %35, align 8, !tbaa !31
  %470 = load i64, ptr %34, align 8, !tbaa !31
  %471 = load i64, ptr %35, align 8, !tbaa !31
  %472 = call double @libxsmm_timer_duration(i64 noundef %470, i64 noundef %471)
  store double %472, ptr %37, align 8, !tbaa !11
  %473 = load double, ptr %37, align 8, !tbaa !11
  %474 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %473)
  %475 = load double, ptr %37, align 8, !tbaa !11
  %476 = fcmp olt double 0.000000e+00, %475
  br i1 %476, label %477, label %482

477:                                              ; preds = %468
  %478 = load double, ptr %36, align 8, !tbaa !11
  %479 = load double, ptr %37, align 8, !tbaa !11
  %480 = fdiv double %478, %479
  %481 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %480)
  br label %482

482:                                              ; preds = %477, %468
  %483 = load ptr, ptr %10, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %483)
  %484 = load ptr, ptr %14, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %484)
  %485 = load ptr, ptr %15, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %485)
  %486 = load ptr, ptr %16, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %486)
  %487 = load ptr, ptr %17, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %487)
  %488 = load ptr, ptr %13, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %488)
  %489 = load ptr, ptr %11, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %489)
  %490 = load ptr, ptr %12, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %490)
  %491 = load i32, ptr %6, align 4, !tbaa !5
  %492 = icmp eq i32 %491, 0
  br i1 %492, label %493, label %496

493:                                              ; preds = %482
  %494 = load i32, ptr @is_reference_kernel, align 4, !tbaa !5
  %495 = call i32 @libxsmm_return_success_code(i32 noundef %494)
  br label %498

496:                                              ; preds = %482
  %497 = load i32, ptr %6, align 4, !tbaa !5
  br label %498

498:                                              ; preds = %496, %493
  %499 = phi i32 [ %495, %493 ], [ %497, %496 ]
  store i32 %499, ptr %6, align 4, !tbaa !5
  %500 = load i32, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  ret i32 %500
}

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

declare { i64, i64 } @libxsmm_create_matrix_arg_attributes(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare void @libxsmm_init() #2

declare void @libxsmm_matdiff_clear(ptr noundef) #2

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

declare noalias ptr @libxsmm_aligned_malloc(i64 noundef, i64 noundef) #2

declare double @libxsmm_rng_f64() #2

; 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) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @reference_unpack(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #5

declare void @libxsmm_rne_convert_fp32_bf16(ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @libxsmm_meqn_create() #2

declare i64 @libxsmm_create_meqn_op_metadata(i32 noundef, i32 noundef) #2

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

declare i32 @libxsmm_meqn_push_back_unary_op(i64, i32 noundef, i32 noundef, i32 noundef) #2

declare i32 @libxsmm_meqn_push_back_ternary_op(i64, i32 noundef, i32 noundef, i32 noundef) #2

declare { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare i64 @libxsmm_create_meqn_arg_metadata(i32 noundef, i32 noundef) #2

declare i32 @libxsmm_meqn_push_back_arg(i64, i64, i64, i64, i64) #2

declare i32 @libxsmm_meqn_push_back_binary_op(i64, i32 noundef, i32 noundef, i32 noundef) #2

declare ptr @libxsmm_dispatch_meqn(i32 noundef, i64, i64) #2

declare i32 @libxsmm_get_kernel_info(ptr noundef, ptr noundef) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @reference_equation(i32 noundef, i32 noundef, i32 noundef, ptr noundef, float noundef, ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @reference_pack(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #5

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

declare i32 @libxsmm_matdiff(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i64 @libxsmm_timer_tick() #2

declare double @libxsmm_timer_duration(i64 noundef, i64 noundef) #2

declare void @libxsmm_free(ptr noundef) #2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { 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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!22 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!23 = !{!24, !6, i64 16}
!24 = !{!"libxsmm_kernel_info", !6, i64 0, !6, i64 4, !25, i64 8, !6, i64 16}
!25 = !{!"long", !7, i64 0}
!26 = !{!27, !10, i64 0}
!27 = !{!"libxsmm_matrix_arg", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!28 = !{!29, !10, i64 8}
!29 = !{!"libxsmm_meqn_param", !10, i64 0, !10, i64 8, !27, i64 16}
!30 = !{!29, !10, i64 16}
!31 = !{!32, !32, i64 0}
!32 = !{!"long long", !7, i64 0}
!33 = !{!29, !10, i64 24}
!34 = !{!35, !12, i64 80}
!35 = !{!"libxsmm_matdiff_info", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188}
!36 = !{!35, !12, i64 120}
!37 = !{!35, !12, i64 56}
!38 = !{!35, !12, i64 64}
!39 = !{!35, !12, i64 40}
!40 = !{!35, !12, i64 48}
!41 = !{!35, !12, i64 32}
!42 = distinct !{!42, !16}
!43 = distinct !{!43, !16}


; 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.libxsmm_kernel_info = type { i32, i32, i64, i32 }
%struct.libxsmm_meqn_param = type { ptr, ptr, %struct.libxsmm_matrix_arg }
%struct.libxsmm_matrix_arg = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.libxsmm_matdiff_info = type { double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32 }

@is_reference_kernel = external dso_local local_unnamed_addr global i32, align 4
@info = external dso_local global %struct.libxsmm_kernel_info, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_return_success_code(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca i64, align 8
  %4 = alloca float, align 4
  %5 = alloca %struct.libxsmm_meqn_param, align 8
  %6 = alloca [4 x %struct.libxsmm_matrix_arg], align 16
  %7 = alloca %struct.libxsmm_matdiff_info, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store float 0x3FE6666660000000, ptr %4, align 4, !tbaa !5
  %8 = tail call { i64, i64 } @libxsmm_create_matrix_arg_attributes(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #8
  %9 = extractvalue { i64, i64 } %8, 0
  %10 = extractvalue { i64, i64 } %8, 1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %7) #8
  tail call void @libxsmm_init() #8
  call void @libxsmm_matdiff_clear(ptr noundef nonnull %7) #8
  %11 = icmp sgt i32 %0, 1
  br i1 %11, label %12, label %.thread212

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = call i32 @atoi(ptr nocapture noundef %14) #9
  %.not = icmp eq i32 %0, 2
  br i1 %.not, label %.thread212, label %16

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %1, i64 16
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = call i32 @atoi(ptr nocapture noundef %18) #9
  %20 = icmp ugt i32 %0, 3
  br i1 %20, label %21, label %.thread212

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %1, i64 24
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = call i32 @atoi(ptr nocapture noundef %23) #9
  %.not219 = icmp eq i32 %0, 4
  br i1 %.not219, label %.thread212, label %25

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %1, i64 32
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = call i32 @atoi(ptr nocapture noundef %27) #9
  br label %.thread212

.thread212:                                       ; preds = %2, %12, %16, %25, %21
  %.0194218 = phi i32 [ %24, %25 ], [ %24, %21 ], [ 64, %16 ], [ 64, %12 ], [ 64, %2 ]
  %.0192205209217 = phi i32 [ %15, %25 ], [ %15, %21 ], [ %15, %16 ], [ %15, %12 ], [ 64, %2 ]
  %.0193210216 = phi i32 [ %19, %25 ], [ %19, %21 ], [ %19, %16 ], [ 64, %12 ], [ 64, %2 ]
  %.0200 = phi i32 [ %28, %25 ], [ 100, %21 ], [ 100, %16 ], [ 100, %12 ], [ 100, %2 ]
  %29 = sext i32 %.0193210216 to i64
  %30 = shl nsw i64 %29, 2
  %31 = sext i32 %.0194218 to i64
  %32 = mul i64 %30, %31
  %33 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %32, i64 noundef 64) #8
  %34 = shl nsw i64 %29, 1
  %35 = mul i64 %34, %31
  %36 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %35, i64 noundef 64) #8
  %37 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %35, i64 noundef 64) #8
  %38 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %35, i64 noundef 64) #8
  %39 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %35, i64 noundef 64) #8
  %40 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %35, i64 noundef 64) #8
  %41 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %32, i64 noundef 64) #8
  %42 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %32, i64 noundef 64) #8
  %43 = mul nsw i32 %.0193210216, %.0194218
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.thread212
  %wide.trip.count = zext nneg i32 %43 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %45 = call double @libxsmm_rng_f64() #8
  %46 = fptrunc double %45 to float
  %47 = getelementptr inbounds float, ptr %42, i64 %indvars.iv
  store float %46, ptr %47, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %.thread212
  %48 = sext i32 %43 to i64
  %49 = shl nsw i64 %48, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %42, i64 %49, i1 false)
  %50 = icmp sgt i32 %.0193210216, 0
  %51 = icmp sgt i32 %.0194218, 0
  %or.cond = and i1 %50, %51
  br i1 %or.cond, label %.preheader220.us.preheader, label %._crit_edge226

.preheader220.us.preheader:                       ; preds = %._crit_edge
  %52 = zext nneg i32 %.0194218 to i64
  %wide.trip.count251 = zext nneg i32 %.0193210216 to i64
  br label %.preheader220.us

.preheader220.us:                                 ; preds = %.preheader220.us.preheader, %._crit_edge224.us
  %indvars.iv248 = phi i64 [ 0, %.preheader220.us.preheader ], [ %indvars.iv.next249, %._crit_edge224.us ]
  %53 = mul nuw nsw i64 %indvars.iv248, %52
  %invariant.gep = getelementptr inbounds float, ptr %33, i64 %53
  br label %54

54:                                               ; preds = %.preheader220.us, %54
  %indvars.iv243 = phi i64 [ 0, %.preheader220.us ], [ %indvars.iv.next244, %54 ]
  %55 = call double @libxsmm_rng_f64() #8
  %56 = fptrunc double %55 to float
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv243
  store float %56, ptr %gep, align 4, !tbaa !5
  %indvars.iv.next244 = add nuw nsw i64 %indvars.iv243, 1
  %exitcond247.not = icmp eq i64 %indvars.iv.next244, %52
  br i1 %exitcond247.not, label %._crit_edge224.us, label %54, !llvm.loop !13

._crit_edge224.us:                                ; preds = %54
  %indvars.iv.next249 = add nuw nsw i64 %indvars.iv248, 1
  %exitcond252.not = icmp eq i64 %indvars.iv.next249, %wide.trip.count251
  br i1 %exitcond252.not, label %._crit_edge226, label %.preheader220.us, !llvm.loop !14

._crit_edge226:                                   ; preds = %._crit_edge224.us, %._crit_edge
  call void @reference_unpack(i32 noundef %.0192205209217, i32 noundef %.0193210216, i32 noundef %.0194218, ptr noundef %33, ptr noundef %36, ptr noundef %37)
  %57 = shl nsw i64 %48, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %38, ptr align 2 %36, i64 %57, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %39, ptr align 2 %37, i64 %57, i1 false)
  %58 = icmp sgt i32 %.0194218, 0
  %or.cond267 = and i1 %50, %58
  br i1 %or.cond267, label %.preheader.us.preheader, label %._crit_edge231

.preheader.us.preheader:                          ; preds = %._crit_edge226
  %59 = zext nneg i32 %.0194218 to i64
  %wide.trip.count261 = zext nneg i32 %.0193210216 to i64
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge229.us
  %indvars.iv258 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next259, %._crit_edge229.us ]
  %60 = mul nuw nsw i64 %indvars.iv258, %59
  %invariant.gep265 = getelementptr inbounds float, ptr %33, i64 %60
  br label %61

61:                                               ; preds = %.preheader.us, %61
  %indvars.iv253 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next254, %61 ]
  %62 = call double @libxsmm_rng_f64() #8
  %63 = fptrunc double %62 to float
  %gep266 = getelementptr inbounds float, ptr %invariant.gep265, i64 %indvars.iv253
  store float %63, ptr %gep266, align 4, !tbaa !5
  %indvars.iv.next254 = add nuw nsw i64 %indvars.iv253, 1
  %exitcond257.not = icmp eq i64 %indvars.iv.next254, %59
  br i1 %exitcond257.not, label %._crit_edge229.us, label %61, !llvm.loop !15

._crit_edge229.us:                                ; preds = %61
  %indvars.iv.next259 = add nuw nsw i64 %indvars.iv258, 1
  %exitcond262.not = icmp eq i64 %indvars.iv.next259, %wide.trip.count261
  br i1 %exitcond262.not, label %._crit_edge231, label %.preheader.us, !llvm.loop !16

._crit_edge231:                                   ; preds = %._crit_edge229.us, %._crit_edge226
  call void @libxsmm_rne_convert_fp32_bf16(ptr noundef %33, ptr noundef %40, i64 noundef %48) #8
  %64 = call i32 @libxsmm_meqn_create() #8
  %65 = call i64 @libxsmm_create_meqn_op_metadata(i32 noundef %64, i32 noundef -1) #8
  %66 = call i32 @libxsmm_meqn_push_back_unary_op(i64 %65, i32 noundef 33, i32 noundef 14, i32 noundef 0) #8
  %67 = call i32 @libxsmm_meqn_push_back_ternary_op(i64 %65, i32 noundef 1, i32 noundef 1, i32 noundef 640) #8
  %68 = call { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef %.0192205209217, i32 noundef %.0193210216, i32 noundef %.0194218, i32 noundef 2) #8
  %69 = extractvalue { i64, i64 } %68, 0
  %70 = extractvalue { i64, i64 } %68, 1
  %71 = call i64 @libxsmm_create_meqn_arg_metadata(i32 noundef %64, i32 noundef 3) #8
  %72 = call i32 @libxsmm_meqn_push_back_arg(i64 %71, i64 %69, i64 %70, i64 %9, i64 %10) #8
  %73 = call { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef 1, i32 noundef 1, i32 noundef 1, i32 noundef 1) #8
  %74 = extractvalue { i64, i64 } %73, 0
  %75 = extractvalue { i64, i64 } %73, 1
  %76 = call i64 @libxsmm_create_meqn_arg_metadata(i32 noundef %64, i32 noundef 2) #8
  %77 = call i32 @libxsmm_meqn_push_back_arg(i64 %76, i64 %74, i64 %75, i64 %9, i64 %10) #8
  %78 = call i32 @libxsmm_meqn_push_back_binary_op(i64 %65, i32 noundef 26, i32 noundef 14, i32 noundef 0) #8
  %79 = call { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef %.0192205209217, i32 noundef %.0193210216, i32 noundef %.0194218, i32 noundef 11) #8
  %80 = extractvalue { i64, i64 } %79, 0
  %81 = extractvalue { i64, i64 } %79, 1
  %82 = call i64 @libxsmm_create_meqn_arg_metadata(i32 noundef %64, i32 noundef 0) #8
  %83 = call i32 @libxsmm_meqn_push_back_arg(i64 %82, i64 %80, i64 %81, i64 %9, i64 %10) #8
  %84 = call i64 @libxsmm_create_meqn_arg_metadata(i32 noundef %64, i32 noundef 1) #8
  %85 = call i32 @libxsmm_meqn_push_back_arg(i64 %84, i64 %80, i64 %81, i64 %9, i64 %10) #8
  %86 = call { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef %.0192205209217, i32 noundef %.0193210216, i32 noundef %.0194218, i32 noundef 11) #8
  %87 = extractvalue { i64, i64 } %86, 0
  %88 = extractvalue { i64, i64 } %86, 1
  %89 = call ptr @libxsmm_dispatch_meqn(i32 noundef %64, i64 %87, i64 %88) #8
  %90 = call i32 @libxsmm_get_kernel_info(ptr noundef %89, ptr noundef nonnull @info) #8
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @info, i64 16), align 8, !tbaa !17
  store i32 %91, ptr @is_reference_kernel, align 4, !tbaa !21
  %92 = icmp eq ptr %89, null
  br i1 %92, label %93, label %96

93:                                               ; preds = %._crit_edge231
  %94 = load ptr, ptr @stderr, align 8, !tbaa !9
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str) #10
  call void @exit(i32 noundef -1) #11
  unreachable

96:                                               ; preds = %._crit_edge231
  store ptr %38, ptr %6, align 16, !tbaa !22
  %97 = getelementptr inbounds i8, ptr %6, i64 48
  store ptr %39, ptr %97, align 16, !tbaa !22
  %98 = getelementptr inbounds i8, ptr %6, i64 96
  store ptr %4, ptr %98, align 16, !tbaa !22
  %99 = getelementptr inbounds i8, ptr %6, i64 144
  store ptr %40, ptr %99, align 16, !tbaa !22
  %100 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %6, ptr %100, align 8, !tbaa !24
  %101 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr %38, ptr %101, align 8, !tbaa !26
  %102 = ptrtoint ptr %39 to i64
  %103 = ptrtoint ptr %38 to i64
  %104 = sub i64 %102, %103
  store i64 %104, ptr %3, align 8, !tbaa !27
  %105 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr %3, ptr %105, align 8, !tbaa !29
  call void %89(ptr noundef nonnull %5) #8
  %106 = load float, ptr %4, align 4, !tbaa !5
  call void @reference_equation(i32 noundef %.0192205209217, i32 noundef %.0193210216, i32 noundef %.0194218, ptr noundef %40, float noundef %106, ptr noundef %36, ptr noundef %37)
  call void @reference_pack(i32 noundef %.0192205209217, i32 noundef %.0193210216, i32 noundef %.0194218, ptr noundef %41, ptr noundef %36, ptr noundef %37)
  call void @reference_pack(i32 noundef %.0192205209217, i32 noundef %.0193210216, i32 noundef %.0194218, ptr noundef %42, ptr noundef %38, ptr noundef %39)
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %110 = call i32 @libxsmm_matdiff(ptr noundef nonnull %7, i32 noundef 1, i32 noundef %43, i32 noundef 1, ptr noundef %41, ptr noundef %42, ptr noundef null, ptr noundef null) #8
  %111 = getelementptr inbounds i8, ptr %7, i64 80
  %112 = load double, ptr %111, align 8, !tbaa !30
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %112)
  %114 = getelementptr inbounds i8, ptr %7, i64 120
  %115 = load double, ptr %114, align 8, !tbaa !33
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %115)
  %117 = getelementptr inbounds i8, ptr %7, i64 56
  %118 = load double, ptr %117, align 8, !tbaa !34
  %119 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %118)
  %120 = getelementptr inbounds i8, ptr %7, i64 64
  %121 = load double, ptr %120, align 8, !tbaa !35
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %121)
  %123 = getelementptr inbounds i8, ptr %7, i64 40
  %124 = load double, ptr %123, align 8, !tbaa !36
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %124)
  %126 = getelementptr inbounds i8, ptr %7, i64 48
  %127 = load double, ptr %126, align 8, !tbaa !37
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %127)
  %129 = getelementptr inbounds i8, ptr %7, i64 32
  %130 = load double, ptr %129, align 8, !tbaa !38
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %130)
  %132 = load double, ptr %129, align 8, !tbaa !38
  %133 = fcmp ule double %132, 1.000000e-05
  %134 = load float, ptr %4, align 4, !tbaa !5
  call void @reference_equation(i32 noundef %.0192205209217, i32 noundef %.0193210216, i32 noundef %.0194218, ptr noundef %40, float noundef %134, ptr noundef %36, ptr noundef %37)
  %135 = call i64 @libxsmm_timer_tick() #8
  %136 = icmp sgt i32 %.0200, 0
  br i1 %136, label %.lr.ph234, label %._crit_edge235

.lr.ph234:                                        ; preds = %96, %.lr.ph234
  %.0198232 = phi i32 [ %138, %.lr.ph234 ], [ 0, %96 ]
  %137 = load float, ptr %4, align 4, !tbaa !5
  call void @reference_equation(i32 noundef %.0192205209217, i32 noundef %.0193210216, i32 noundef %.0194218, ptr noundef %40, float noundef %137, ptr noundef %36, ptr noundef %37)
  %138 = add nuw nsw i32 %.0198232, 1
  %exitcond263.not = icmp eq i32 %138, %.0200
  br i1 %exitcond263.not, label %._crit_edge235, label %.lr.ph234, !llvm.loop !39

._crit_edge235:                                   ; preds = %.lr.ph234, %96
  %139 = call i64 @libxsmm_timer_tick() #8
  %140 = call double @libxsmm_timer_duration(i64 noundef %135, i64 noundef %139) #8
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %140)
  call void %89(ptr noundef nonnull %5) #8
  %142 = call i64 @libxsmm_timer_tick() #8
  br i1 %136, label %.lr.ph238, label %._crit_edge239

.lr.ph238:                                        ; preds = %._crit_edge235, %.lr.ph238
  %.1199236 = phi i32 [ %143, %.lr.ph238 ], [ 0, %._crit_edge235 ]
  call void %89(ptr noundef nonnull %5) #8
  %143 = add nuw nsw i32 %.1199236, 1
  %exitcond264.not = icmp eq i32 %143, %.0200
  br i1 %exitcond264.not, label %._crit_edge239, label %.lr.ph238, !llvm.loop !40

._crit_edge239:                                   ; preds = %.lr.ph238, %._crit_edge235
  %144 = call i64 @libxsmm_timer_tick() #8
  %145 = call double @libxsmm_timer_duration(i64 noundef %142, i64 noundef %144) #8
  %146 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %145)
  %147 = fcmp ogt double %145, 0.000000e+00
  br i1 %147, label %148, label %151

148:                                              ; preds = %._crit_edge239
  %149 = fdiv double %140, %145
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %149)
  br label %151

151:                                              ; preds = %148, %._crit_edge239
  call void @libxsmm_free(ptr noundef %33) #8
  call void @libxsmm_free(ptr noundef %36) #8
  call void @libxsmm_free(ptr noundef %37) #8
  call void @libxsmm_free(ptr noundef %38) #8
  call void @libxsmm_free(ptr noundef %39) #8
  call void @libxsmm_free(ptr noundef %40) #8
  call void @libxsmm_free(ptr noundef %41) #8
  call void @libxsmm_free(ptr noundef %42) #8
  br i1 %133, label %152, label %155

152:                                              ; preds = %151
  %153 = load i32, ptr @is_reference_kernel, align 4, !tbaa !21
  %154 = call i32 @libxsmm_return_success_code(i32 noundef %153)
  br label %155

155:                                              ; preds = %151, %152
  %156 = phi i32 [ %154, %152 ], [ 1, %151 ]
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret i32 %156
}

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

declare { i64, i64 } @libxsmm_create_matrix_arg_attributes(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @libxsmm_init() local_unnamed_addr #2

declare void @libxsmm_matdiff_clear(ptr noundef) local_unnamed_addr #2

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

declare noalias ptr @libxsmm_aligned_malloc(i64 noundef, i64 noundef) local_unnamed_addr #2

declare double @libxsmm_rng_f64() local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @reference_unpack(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare void @libxsmm_rne_convert_fp32_bf16(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @libxsmm_meqn_create() local_unnamed_addr #2

declare i64 @libxsmm_create_meqn_op_metadata(i32 noundef, i32 noundef) local_unnamed_addr #2

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

declare i32 @libxsmm_meqn_push_back_unary_op(i64, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @libxsmm_meqn_push_back_ternary_op(i64, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare { i64, i64 } @libxsmm_create_meqn_arg_shape(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i64 @libxsmm_create_meqn_arg_metadata(i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @libxsmm_meqn_push_back_arg(i64, i64, i64, i64, i64) local_unnamed_addr #2

declare i32 @libxsmm_meqn_push_back_binary_op(i64, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare ptr @libxsmm_dispatch_meqn(i32 noundef, i64, i64) local_unnamed_addr #2

declare i32 @libxsmm_get_kernel_info(ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @reference_equation(i32 noundef, i32 noundef, i32 noundef, ptr noundef, float noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @reference_pack(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

declare i32 @libxsmm_matdiff(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i64 @libxsmm_timer_tick() local_unnamed_addr #2

declare double @libxsmm_timer_duration(i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @libxsmm_free(ptr noundef) local_unnamed_addr #2

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { cold nounwind }
attributes #11 = { 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 = !{!"float", !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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = !{!18, !19, i64 16}
!18 = !{!"libxsmm_kernel_info", !19, i64 0, !19, i64 4, !20, i64 8, !19, i64 16}
!19 = !{!"int", !7, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!19, !19, i64 0}
!22 = !{!23, !10, i64 0}
!23 = !{!"libxsmm_matrix_arg", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!24 = !{!25, !10, i64 8}
!25 = !{!"libxsmm_meqn_param", !10, i64 0, !10, i64 8, !23, i64 16}
!26 = !{!25, !10, i64 16}
!27 = !{!28, !28, i64 0}
!28 = !{!"long long", !7, i64 0}
!29 = !{!25, !10, i64 24}
!30 = !{!31, !32, i64 80}
!31 = !{!"libxsmm_matdiff_info", !32, i64 0, !32, i64 8, !32, i64 16, !32, i64 24, !32, i64 32, !32, i64 40, !32, i64 48, !32, i64 56, !32, i64 64, !32, i64 72, !32, i64 80, !32, i64 88, !32, i64 96, !32, i64 104, !32, i64 112, !32, i64 120, !32, i64 128, !32, i64 136, !32, i64 144, !32, i64 152, !32, i64 160, !32, i64 168, !19, i64 176, !19, i64 180, !19, i64 184, !19, i64 188}
!32 = !{!"double", !7, i64 0}
!33 = !{!31, !32, i64 120}
!34 = !{!31, !32, i64 56}
!35 = !{!31, !32, i64 64}
!36 = !{!31, !32, i64 40}
!37 = !{!31, !32, i64 48}
!38 = !{!31, !32, i64 32}
!39 = distinct !{!39, !12}
!40 = distinct !{!40, !12}


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