; LLVM IR from libxsmm/libxsmm :: src (generator_mateltwise_reference_impl)

; 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_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>
%struct.libxsmm_meltw_ternary_param = type { %struct.libxsmm_matrix_op_arg, %struct.libxsmm_matrix_arg, %struct.libxsmm_matrix_arg, %struct.libxsmm_matrix_arg, %struct.libxsmm_matrix_arg }
%struct.libxsmm_matrix_op_arg = type { ptr, ptr, ptr, ptr }
%struct.libxsmm_matrix_arg = type { ptr, ptr, ptr, ptr, ptr, ptr }

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @libxsmm_extract_bit(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_elementwise_get_index(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_elementwise_store_value(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2

declare i32 @libxsmm_meltw_getenum_precision(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_reference_ternary_elementwise(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i8, align 1
  %32 = alloca double, align 8
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca i8, align 1
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  %39 = alloca float, align 4
  %40 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 1, !tbaa !9
  store i32 %43, ptr %7, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %44, i32 0, i32 1
  %46 = load i32, ptr %45, align 1, !tbaa !14
  store i32 %46, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %47, i32 0, i32 2
  %49 = load i32, ptr %48, align 1, !tbaa !15
  store i32 %49, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %50, i32 0, i32 4
  %52 = load i32, ptr %51, align 1, !tbaa !16
  store i32 %52, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %53, i32 0, i32 5
  %55 = load i32, ptr %54, align 1, !tbaa !17
  store i32 %55, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %56, i32 0, i32 3
  %58 = load i32, ptr %57, align 1, !tbaa !18
  store i32 %58, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %59, i32 noundef 0)
  store i32 %60, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %61, i32 noundef 1)
  store i32 %62, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %63, i32 noundef 2)
  store i32 %64, ptr %15, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %65, i32 noundef 3)
  store i32 %66, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %67, i32 noundef 4)
  store i32 %68, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %69, i32 0, i32 9
  %71 = load i16, ptr %70, align 1, !tbaa !19
  %72 = zext i16 %71 to i32
  store i32 %72, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.libxsmm_meltw_ternary_param, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %struct.libxsmm_matrix_op_arg, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !20
  store ptr %76, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.libxsmm_meltw_ternary_param, ptr %77, i32 0, i32 1
  %79 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !24
  store ptr %80, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.libxsmm_meltw_ternary_param, ptr %81, i32 0, i32 2
  %83 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !25
  store ptr %84, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_meltw_ternary_param, ptr %85, i32 0, i32 3
  %87 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %86, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !26
  store ptr %88, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.libxsmm_meltw_ternary_param, ptr %89, i32 0, i32 4
  %91 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !27
  store ptr %92, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !13
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %93, i32 0, i32 10
  %95 = load i16, ptr %94, align 1, !tbaa !28
  %96 = zext i16 %95 to i32
  %97 = icmp eq i32 %96, 3
  br i1 %97, label %98, label %223

98:                                               ; preds = %2
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %99

99:                                               ; preds = %219, %98
  %100 = load i32, ptr %6, align 4, !tbaa !13
  %101 = load i32, ptr %8, align 4, !tbaa !13
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %103, label %222

103:                                              ; preds = %99
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %104

104:                                              ; preds = %215, %103
  %105 = load i32, ptr %5, align 4, !tbaa !13
  %106 = load i32, ptr %7, align 4, !tbaa !13
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %218

108:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %109 = load i32, ptr %11, align 4, !tbaa !13
  %110 = add nsw i32 %109, 15
  %111 = sdiv i32 %110, 16
  %112 = mul nsw i32 %111, 16
  store i32 %112, ptr %25, align 4, !tbaa !13
  %113 = load i32, ptr %13, align 4, !tbaa !13
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %115, label %172

115:                                              ; preds = %108
  %116 = load i32, ptr %14, align 4, !tbaa !13
  %117 = icmp eq i32 %116, 0
  br i1 %117, label %118, label %172

118:                                              ; preds = %115
  %119 = load i32, ptr %15, align 4, !tbaa !13
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %172

121:                                              ; preds = %118
  %122 = load i32, ptr %16, align 4, !tbaa !13
  %123 = icmp eq i32 %122, 0
  br i1 %123, label %124, label %172

124:                                              ; preds = %121
  %125 = load i32, ptr %17, align 4, !tbaa !13
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %172

127:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %128 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %128, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %129 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %129, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %130 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %130, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %131 = load ptr, ptr %26, align 8, !tbaa !5
  %132 = load i32, ptr %5, align 4, !tbaa !13
  %133 = load i32, ptr %6, align 4, !tbaa !13
  %134 = load i32, ptr %9, align 4, !tbaa !13
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = call i32 @libxsmm_elementwise_get_index(i32 noundef %132, i32 noundef %133, i32 noundef %134, ptr noundef %135, i32 noundef 0)
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds double, ptr %131, i64 %137
  %139 = load double, ptr %138, align 8, !tbaa !29
  store double %139, ptr %29, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %140 = load ptr, ptr %27, align 8, !tbaa !5
  %141 = load i32, ptr %5, align 4, !tbaa !13
  %142 = load i32, ptr %6, align 4, !tbaa !13
  %143 = load i32, ptr %10, align 4, !tbaa !13
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = call i32 @libxsmm_elementwise_get_index(i32 noundef %141, i32 noundef %142, i32 noundef %143, ptr noundef %144, i32 noundef 1)
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %140, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !29
  store double %148, ptr %30, align 8, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #4
  %149 = load ptr, ptr %22, align 8, !tbaa !5
  %150 = load i32, ptr %5, align 4, !tbaa !13
  %151 = load i32, ptr %6, align 4, !tbaa !13
  %152 = load i32, ptr %25, align 4, !tbaa !13
  %153 = call zeroext i8 @libxsmm_extract_bit(ptr noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152)
  store i8 %153, ptr %31, align 1, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %154 = load i8, ptr %31, align 1, !tbaa !31
  %155 = zext i8 %154 to i32
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %159

157:                                              ; preds = %127
  %158 = load double, ptr %29, align 8, !tbaa !29
  br label %161

159:                                              ; preds = %127
  %160 = load double, ptr %30, align 8, !tbaa !29
  br label %161

161:                                              ; preds = %159, %157
  %162 = phi double [ %158, %157 ], [ %160, %159 ]
  store double %162, ptr %32, align 8, !tbaa !29
  %163 = load double, ptr %32, align 8, !tbaa !29
  %164 = load ptr, ptr %28, align 8, !tbaa !5
  %165 = load i32, ptr %5, align 4, !tbaa !13
  %166 = load i32, ptr %6, align 4, !tbaa !13
  %167 = load i32, ptr %12, align 4, !tbaa !13
  %168 = mul nsw i32 %166, %167
  %169 = add nsw i32 %165, %168
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %164, i64 %170
  store double %163, ptr %171, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %214

172:                                              ; preds = %124, %121, %118, %115, %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  %173 = load ptr, ptr %20, align 8, !tbaa !5
  %174 = load i32, ptr %5, align 4, !tbaa !13
  %175 = load i32, ptr %6, align 4, !tbaa !13
  %176 = load i32, ptr %9, align 4, !tbaa !13
  %177 = load i32, ptr %13, align 4, !tbaa !13
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = call float @libxsmm_elementwise_get_float_value(ptr noundef %173, i32 noundef %174, i32 noundef %175, i32 noundef %176, i32 noundef %177, ptr noundef %178, i32 noundef 0)
  store float %179, ptr %33, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  %180 = load ptr, ptr %21, align 8, !tbaa !5
  %181 = load i32, ptr %5, align 4, !tbaa !13
  %182 = load i32, ptr %6, align 4, !tbaa !13
  %183 = load i32, ptr %10, align 4, !tbaa !13
  %184 = load i32, ptr %14, align 4, !tbaa !13
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = call float @libxsmm_elementwise_get_float_value(ptr noundef %180, i32 noundef %181, i32 noundef %182, i32 noundef %183, i32 noundef %184, ptr noundef %185, i32 noundef 1)
  store float %186, ptr %34, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #4
  %187 = load ptr, ptr %22, align 8, !tbaa !5
  %188 = load i32, ptr %5, align 4, !tbaa !13
  %189 = load i32, ptr %6, align 4, !tbaa !13
  %190 = load i32, ptr %25, align 4, !tbaa !13
  %191 = call zeroext i8 @libxsmm_extract_bit(ptr noundef %187, i32 noundef %188, i32 noundef %189, i32 noundef %190)
  store i8 %191, ptr %35, align 1, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  %192 = load i8, ptr %35, align 1, !tbaa !31
  %193 = zext i8 %192 to i32
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %195, label %197

195:                                              ; preds = %172
  %196 = load float, ptr %33, align 4, !tbaa !32
  br label %199

197:                                              ; preds = %172
  %198 = load float, ptr %34, align 4, !tbaa !32
  br label %199

199:                                              ; preds = %197, %195
  %200 = phi float [ %196, %195 ], [ %198, %197 ]
  store float %200, ptr %36, align 4, !tbaa !32
  %201 = load ptr, ptr %23, align 8, !tbaa !5
  %202 = load i32, ptr %5, align 4, !tbaa !13
  %203 = load i32, ptr %6, align 4, !tbaa !13
  %204 = load i32, ptr %12, align 4, !tbaa !13
  %205 = load i32, ptr %18, align 4, !tbaa !13
  %206 = and i32 %205, 2048
  %207 = icmp ugt i32 %206, 0
  %208 = zext i1 %207 to i32
  %209 = load i32, ptr %16, align 4, !tbaa !13
  %210 = load ptr, ptr %19, align 8, !tbaa !5
  %211 = load i32, ptr %24, align 4, !tbaa !13
  call void @libxsmm_elementwise_store_value(ptr noundef %201, ptr noundef %36, i32 noundef %202, i32 noundef %203, i32 noundef %204, i32 noundef %208, i32 noundef %209, ptr noundef %210, i32 noundef %211)
  %212 = load i32, ptr %24, align 4, !tbaa !13
  %213 = add i32 %212, 1
  store i32 %213, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  br label %214

214:                                              ; preds = %199, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %5, align 4, !tbaa !13
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %5, align 4, !tbaa !13
  br label %104, !llvm.loop !34

218:                                              ; preds = %104
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %6, align 4, !tbaa !13
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %6, align 4, !tbaa !13
  br label %99, !llvm.loop !36

222:                                              ; preds = %99
  br label %307

223:                                              ; preds = %2
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %224, i32 0, i32 10
  %226 = load i16, ptr %225, align 1, !tbaa !28
  %227 = zext i16 %226 to i32
  %228 = icmp eq i32 %227, 1
  br i1 %228, label %235, label %229

229:                                              ; preds = %223
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %230, i32 0, i32 10
  %232 = load i16, ptr %231, align 1, !tbaa !28
  %233 = zext i16 %232 to i32
  %234 = icmp eq i32 %233, 4
  br i1 %234, label %235, label %305

235:                                              ; preds = %229, %223
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %236

236:                                              ; preds = %301, %235
  %237 = load i32, ptr %6, align 4, !tbaa !13
  %238 = load i32, ptr %8, align 4, !tbaa !13
  %239 = icmp slt i32 %237, %238
  br i1 %239, label %240, label %304

240:                                              ; preds = %236
  store i32 0, ptr %5, align 4, !tbaa !13
  br label %241

241:                                              ; preds = %297, %240
  %242 = load i32, ptr %5, align 4, !tbaa !13
  %243 = load i32, ptr %7, align 4, !tbaa !13
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %245, label %300

245:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  store float 0.000000e+00, ptr %37, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  %246 = load ptr, ptr %20, align 8, !tbaa !5
  %247 = load i32, ptr %5, align 4, !tbaa !13
  %248 = load i32, ptr %6, align 4, !tbaa !13
  %249 = load i32, ptr %9, align 4, !tbaa !13
  %250 = load i32, ptr %13, align 4, !tbaa !13
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = call float @libxsmm_elementwise_get_float_value(ptr noundef %246, i32 noundef %247, i32 noundef %248, i32 noundef %249, i32 noundef %250, ptr noundef %251, i32 noundef 0)
  store float %252, ptr %38, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  %253 = load ptr, ptr %21, align 8, !tbaa !5
  %254 = load i32, ptr %5, align 4, !tbaa !13
  %255 = load i32, ptr %6, align 4, !tbaa !13
  %256 = load i32, ptr %10, align 4, !tbaa !13
  %257 = load i32, ptr %14, align 4, !tbaa !13
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = call float @libxsmm_elementwise_get_float_value(ptr noundef %253, i32 noundef %254, i32 noundef %255, i32 noundef %256, i32 noundef %257, ptr noundef %258, i32 noundef 1)
  store float %259, ptr %39, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  %260 = load ptr, ptr %22, align 8, !tbaa !5
  %261 = load i32, ptr %5, align 4, !tbaa !13
  %262 = load i32, ptr %6, align 4, !tbaa !13
  %263 = load i32, ptr %11, align 4, !tbaa !13
  %264 = load i32, ptr %15, align 4, !tbaa !13
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = call float @libxsmm_elementwise_get_float_value(ptr noundef %260, i32 noundef %261, i32 noundef %262, i32 noundef %263, i32 noundef %264, ptr noundef %265, i32 noundef 2)
  store float %266, ptr %40, align 4, !tbaa !32
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %267, i32 0, i32 10
  %269 = load i16, ptr %268, align 1, !tbaa !28
  %270 = zext i16 %269 to i32
  %271 = icmp eq i32 %270, 1
  br i1 %271, label %272, label %277

272:                                              ; preds = %245
  %273 = load float, ptr %40, align 4, !tbaa !32
  %274 = load float, ptr %38, align 4, !tbaa !32
  %275 = load float, ptr %39, align 4, !tbaa !32
  %276 = call float @llvm.fmuladd.f32(float %274, float %275, float %273)
  store float %276, ptr %37, align 4, !tbaa !32
  br label %283

277:                                              ; preds = %245
  %278 = load float, ptr %39, align 4, !tbaa !32
  %279 = load float, ptr %38, align 4, !tbaa !32
  %280 = load float, ptr %40, align 4, !tbaa !32
  %281 = fneg float %279
  %282 = call float @llvm.fmuladd.f32(float %281, float %280, float %278)
  store float %282, ptr %37, align 4, !tbaa !32
  br label %283

283:                                              ; preds = %277, %272
  %284 = load ptr, ptr %23, align 8, !tbaa !5
  %285 = load i32, ptr %5, align 4, !tbaa !13
  %286 = load i32, ptr %6, align 4, !tbaa !13
  %287 = load i32, ptr %12, align 4, !tbaa !13
  %288 = load i32, ptr %18, align 4, !tbaa !13
  %289 = and i32 %288, 2048
  %290 = icmp ugt i32 %289, 0
  %291 = zext i1 %290 to i32
  %292 = load i32, ptr %16, align 4, !tbaa !13
  %293 = load ptr, ptr %19, align 8, !tbaa !5
  %294 = load i32, ptr %24, align 4, !tbaa !13
  call void @libxsmm_elementwise_store_value(ptr noundef %284, ptr noundef %37, i32 noundef %285, i32 noundef %286, i32 noundef %287, i32 noundef %291, i32 noundef %292, ptr noundef %293, i32 noundef %294)
  %295 = load i32, ptr %24, align 4, !tbaa !13
  %296 = add i32 %295, 1
  store i32 %296, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  br label %297

297:                                              ; preds = %283
  %298 = load i32, ptr %5, align 4, !tbaa !13
  %299 = add nsw i32 %298, 1
  store i32 %299, ptr %5, align 4, !tbaa !13
  br label %241, !llvm.loop !37

300:                                              ; preds = %241
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %6, align 4, !tbaa !13
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %6, align 4, !tbaa !13
  br label %236, !llvm.loop !38

304:                                              ; preds = %236
  br label %306

305:                                              ; preds = %229
  br label %306

306:                                              ; preds = %305, %304
  br label %307

307:                                              ; preds = %306, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"libxsmm_meltw_descriptor", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !12, i64 27, !12, i64 29, !7, i64 31}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 4}
!15 = !{!10, !11, i64 8}
!16 = !{!10, !11, i64 16}
!17 = !{!10, !11, i64 20}
!18 = !{!10, !11, i64 12}
!19 = !{!10, !12, i64 27}
!20 = !{!21, !6, i64 8}
!21 = !{!"libxsmm_meltw_ternary_param", !22, i64 0, !23, i64 32, !23, i64 80, !23, i64 128, !23, i64 176}
!22 = !{!"libxsmm_matrix_op_arg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"libxsmm_matrix_arg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!24 = !{!21, !6, i64 32}
!25 = !{!21, !6, i64 80}
!26 = !{!21, !6, i64 128}
!27 = !{!21, !6, i64 176}
!28 = !{!10, !12, i64 29}
!29 = !{!30, !30, i64 0}
!30 = !{!"double", !7, i64 0}
!31 = !{!7, !7, i64 0}
!32 = !{!33, !33, i64 0}
!33 = !{!"float", !7, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}
!37 = distinct !{!37, !35}
!38 = distinct !{!38, !35}


; 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"

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @libxsmm_extract_bit(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_elementwise_get_index(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_elementwise_store_value(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_reference_ternary_elementwise(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = load i32, ptr %1, align 1, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 4
  %7 = load i32, ptr %6, align 1, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load i32, ptr %8, align 1, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %1, i64 16
  %11 = load i32, ptr %10, align 1, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %1, i64 20
  %13 = load i32, ptr %12, align 1, !tbaa !14
  %14 = getelementptr inbounds i8, ptr %1, i64 12
  %15 = load i32, ptr %14, align 1, !tbaa !15
  %16 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %1, i32 noundef 0) #4
  %17 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %1, i32 noundef 1) #4
  %18 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %1, i32 noundef 2) #4
  %19 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %1, i32 noundef 3) #4
  %20 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %1, i32 noundef 4) #4
  %21 = getelementptr inbounds i8, ptr %1, i64 27
  %22 = load i16, ptr %21, align 1, !tbaa !16
  %23 = zext i16 %22 to i32
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %0, i64 32
  %27 = load ptr, ptr %26, align 8, !tbaa !22
  %28 = getelementptr inbounds i8, ptr %0, i64 80
  %29 = load ptr, ptr %28, align 8, !tbaa !23
  %30 = getelementptr inbounds i8, ptr %0, i64 128
  %31 = load ptr, ptr %30, align 8, !tbaa !24
  %32 = getelementptr inbounds i8, ptr %0, i64 176
  %33 = load ptr, ptr %32, align 8, !tbaa !25
  %34 = getelementptr inbounds i8, ptr %1, i64 29
  %35 = load i16, ptr %34, align 1, !tbaa !26
  switch i16 %35, label %.loopexit [
    i16 3, label %.preheader137
    i16 1, label %72
    i16 4, label %72
  ]

.preheader137:                                    ; preds = %2
  %36 = icmp sgt i32 %7, 0
  br i1 %36, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.preheader137
  %37 = icmp sgt i32 %5, 0
  %38 = add nsw i32 %13, 15
  %39 = sdiv i32 %38, 16
  %40 = shl nsw i32 %39, 4
  %41 = lshr i32 %23, 11
  %.lobit136 = and i32 %41, 1
  br i1 %37, label %.preheader.lr.ph.split.us, label %.loopexit

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  %42 = icmp eq i32 %16, 0
  %43 = icmp eq i32 %17, 0
  %or.cond = select i1 %42, i1 %43, i1 false
  %44 = icmp eq i32 %18, 0
  %or.cond3 = select i1 %or.cond, i1 %44, i1 false
  %45 = icmp eq i32 %19, 0
  %or.cond5 = select i1 %or.cond3, i1 %45, i1 false
  %46 = icmp eq i32 %20, 0
  %or.cond7 = select i1 %or.cond5, i1 %46, i1 false
  br i1 %or.cond7, label %.preheader.us.us.preheader, label %.preheader.us

.preheader.us.us.preheader:                       ; preds = %.preheader.lr.ph.split.us
  %47 = sext i32 %15 to i64
  %wide.trip.count168 = zext nneg i32 %7 to i64
  %wide.trip.count = zext nneg i32 %5 to i64
  br label %.preheader.us.us

.preheader.us.us:                                 ; preds = %.preheader.us.us.preheader, %._crit_edge.split.us.us.us
  %indvars.iv165 = phi i64 [ 0, %.preheader.us.us.preheader ], [ %indvars.iv.next166, %._crit_edge.split.us.us.us ]
  %48 = mul nsw i64 %indvars.iv165, %47
  %49 = trunc nuw nsw i64 %indvars.iv165 to i32
  %invariant.gep = getelementptr double, ptr %33, i64 %48
  br label %50

50:                                               ; preds = %50, %.preheader.us.us
  %indvars.iv = phi i64 [ %indvars.iv.next, %50 ], [ 0, %.preheader.us.us ]
  %51 = trunc nuw nsw i64 %indvars.iv to i32
  %52 = tail call i32 @libxsmm_elementwise_get_index(i32 noundef %51, i32 noundef %49, i32 noundef %9, ptr noundef nonnull %1, i32 noundef 0)
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds double, ptr %27, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !27
  %56 = tail call i32 @libxsmm_elementwise_get_index(i32 noundef %51, i32 noundef %49, i32 noundef %11, ptr noundef nonnull %1, i32 noundef 1)
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %29, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !27
  %60 = tail call zeroext i8 @libxsmm_extract_bit(ptr noundef %31, i32 noundef %51, i32 noundef %49, i32 noundef %40)
  %61 = icmp eq i8 %60, 0
  %62 = select i1 %61, double %55, double %59
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv
  store double %62, ptr %gep, align 8, !tbaa !27
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond164.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond164.not, label %._crit_edge.split.us.us.us, label %50, !llvm.loop !29

._crit_edge.split.us.us.us:                       ; preds = %50
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %exitcond169.not = icmp eq i64 %indvars.iv.next166, %wide.trip.count168
  br i1 %exitcond169.not, label %.loopexit, label %.preheader.us.us, !llvm.loop !31

.preheader.us:                                    ; preds = %.preheader.lr.ph.split.us, %._crit_edge.split.us151
  %.0131148.us = phi i32 [ %71, %._crit_edge.split.us151 ], [ 0, %.preheader.lr.ph.split.us ]
  %.0133147.us = phi i32 [ %69, %._crit_edge.split.us151 ], [ 0, %.preheader.lr.ph.split.us ]
  br label %63

63:                                               ; preds = %.preheader.us, %63
  %.0145.us150 = phi i32 [ 0, %.preheader.us ], [ %70, %63 ]
  %.1134144.us = phi i32 [ %.0133147.us, %.preheader.us ], [ %69, %63 ]
  %64 = call float @libxsmm_elementwise_get_float_value(ptr noundef %27, i32 noundef %.0145.us150, i32 noundef %.0131148.us, i32 noundef %9, i32 noundef %16, ptr noundef nonnull %1, i32 noundef 0)
  %65 = call float @libxsmm_elementwise_get_float_value(ptr noundef %29, i32 noundef %.0145.us150, i32 noundef %.0131148.us, i32 noundef %11, i32 noundef %17, ptr noundef nonnull %1, i32 noundef 1)
  %66 = call zeroext i8 @libxsmm_extract_bit(ptr noundef %31, i32 noundef %.0145.us150, i32 noundef %.0131148.us, i32 noundef %40)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %67 = icmp eq i8 %66, 0
  %68 = select i1 %67, float %64, float %65
  store float %68, ptr %3, align 4, !tbaa !32
  call void @libxsmm_elementwise_store_value(ptr noundef %33, ptr noundef nonnull %3, i32 noundef %.0145.us150, i32 noundef %.0131148.us, i32 noundef %15, i32 noundef %.lobit136, i32 noundef %19, ptr noundef %25, i32 noundef %.1134144.us)
  %69 = add i32 %.1134144.us, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  %70 = add nuw nsw i32 %.0145.us150, 1
  %exitcond161.not = icmp eq i32 %70, %5
  br i1 %exitcond161.not, label %._crit_edge.split.us151, label %63, !llvm.loop !29

._crit_edge.split.us151:                          ; preds = %63
  %71 = add nuw nsw i32 %.0131148.us, 1
  %exitcond162.not = icmp eq i32 %71, %7
  br i1 %exitcond162.not, label %.loopexit, label %.preheader.us, !llvm.loop !31

72:                                               ; preds = %2, %2
  %73 = icmp sgt i32 %7, 0
  br i1 %73, label %.preheader138.lr.ph, label %.loopexit

.preheader138.lr.ph:                              ; preds = %72
  %74 = icmp sgt i32 %5, 0
  %75 = lshr i32 %23, 11
  %.lobit = and i32 %75, 1
  br i1 %74, label %.preheader138.us, label %.loopexit

.preheader138.us:                                 ; preds = %.preheader138.lr.ph, %._crit_edge.us
  %.1132143.us = phi i32 [ %90, %._crit_edge.us ], [ 0, %.preheader138.lr.ph ]
  %.3142.us = phi i32 [ %88, %._crit_edge.us ], [ 0, %.preheader138.lr.ph ]
  br label %76

76:                                               ; preds = %.preheader138.us, %87
  %.1141.us = phi i32 [ 0, %.preheader138.us ], [ %89, %87 ]
  %.4140.us = phi i32 [ %.3142.us, %.preheader138.us ], [ %88, %87 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store float 0.000000e+00, ptr %4, align 4, !tbaa !32
  %77 = call float @libxsmm_elementwise_get_float_value(ptr noundef %27, i32 noundef %.1141.us, i32 noundef %.1132143.us, i32 noundef %9, i32 noundef %16, ptr noundef nonnull %1, i32 noundef 0)
  %78 = call float @libxsmm_elementwise_get_float_value(ptr noundef %29, i32 noundef %.1141.us, i32 noundef %.1132143.us, i32 noundef %11, i32 noundef %17, ptr noundef nonnull %1, i32 noundef 1)
  %79 = call float @libxsmm_elementwise_get_float_value(ptr noundef %31, i32 noundef %.1141.us, i32 noundef %.1132143.us, i32 noundef %13, i32 noundef %18, ptr noundef nonnull %1, i32 noundef 2)
  %80 = load i16, ptr %34, align 1, !tbaa !26
  %81 = icmp eq i16 %80, 1
  br i1 %81, label %85, label %82

82:                                               ; preds = %76
  %83 = fneg float %77
  %84 = call float @llvm.fmuladd.f32(float %83, float %79, float %78)
  br label %87

85:                                               ; preds = %76
  %86 = call float @llvm.fmuladd.f32(float %77, float %78, float %79)
  br label %87

87:                                               ; preds = %85, %82
  %storemerge.us = phi float [ %84, %82 ], [ %86, %85 ]
  store float %storemerge.us, ptr %4, align 4, !tbaa !32
  call void @libxsmm_elementwise_store_value(ptr noundef %33, ptr noundef nonnull %4, i32 noundef %.1141.us, i32 noundef %.1132143.us, i32 noundef %15, i32 noundef %.lobit, i32 noundef %19, ptr noundef %25, i32 noundef %.4140.us)
  %88 = add i32 %.4140.us, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  %89 = add nuw nsw i32 %.1141.us, 1
  %exitcond.not = icmp eq i32 %89, %5
  br i1 %exitcond.not, label %._crit_edge.us, label %76, !llvm.loop !34

._crit_edge.us:                                   ; preds = %87
  %90 = add nuw nsw i32 %.1132143.us, 1
  %exitcond160.not = icmp eq i32 %90, %7
  br i1 %exitcond160.not, label %.loopexit, label %.preheader138.us, !llvm.loop !35

.loopexit:                                        ; preds = %._crit_edge.us, %._crit_edge.split.us151, %._crit_edge.split.us.us.us, %.preheader138.lr.ph, %.preheader.lr.ph, %72, %.preheader137, %2
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"libxsmm_meltw_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !8, i64 24, !8, i64 25, !8, i64 26, !10, i64 27, !10, i64 29, !8, i64 31}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 20}
!15 = !{!6, !7, i64 12}
!16 = !{!6, !10, i64 27}
!17 = !{!18, !20, i64 8}
!18 = !{!"libxsmm_meltw_ternary_param", !19, i64 0, !21, i64 32, !21, i64 80, !21, i64 128, !21, i64 176}
!19 = !{!"libxsmm_matrix_op_arg", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24}
!20 = !{!"any pointer", !8, i64 0}
!21 = !{!"libxsmm_matrix_arg", !20, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !20, i64 32, !20, i64 40}
!22 = !{!18, !20, i64 32}
!23 = !{!18, !20, i64 80}
!24 = !{!18, !20, i64 128}
!25 = !{!18, !20, i64 176}
!26 = !{!6, !10, i64 29}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !8, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = !{!33, !33, i64 0}
!33 = !{!"float", !8, i64 0}
!34 = distinct !{!34, !30}
!35 = distinct !{!35, !30}


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