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

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

%union.libxsmm_meqn_info = type { %struct.libxsmm_meqn_arg }
%struct.libxsmm_meqn_arg = type { i32, i32, i32, i32, i32, i32, i32, %struct.libxsmm_matrix_arg_attributes }
%struct.libxsmm_matrix_arg_attributes = type { i32, i32, i32, i32 }
%struct.libxsmm_matrix_eqn = type { ptr, ptr, i32, i32, i32, i32 }
%struct.libxsmm_meqn_elem = type { ptr, ptr, ptr, ptr, i32, %union.libxsmm_meqn_info, i32, i32, %struct.libxsmm_meqn_tmp_info, i32, i32, i32, %union.libxsmm_meqn_fusion_info }
%struct.libxsmm_meqn_tmp_info = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%union.libxsmm_meqn_fusion_info = type { %struct.libxsmm_meqn_xgemm_fusion_info }
%struct.libxsmm_meqn_xgemm_fusion_info = type { i32, i32, i32, i32, i32 }
%struct.libxsmm_meqn_unary_op = type { i32, i32, i32, i32 }
%struct.libxsmm_meqn_binary_op = type { i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_meqn_ternary_op = type { i32, i32, i32, i32, i32, i32 }

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_matequation_enqueue_equation(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_is_unary_with_bcast(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_is_binary_with_bcast(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_is_ternary_with_bcast(i32 noundef) #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_decompose_equation_tree_x86(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %union.libxsmm_meqn_info, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %19, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %22, i32 0, i32 7
  %24 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %24, ptr %10, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !10
  store i32 0, ptr %11, align 4, !tbaa !10
  br label %25

25:                                               ; preds = %304, %4
  %26 = load i32, ptr %11, align 4, !tbaa !10
  %27 = load i32, ptr %10, align 4, !tbaa !10
  %28 = icmp ule i32 %26, %27
  br i1 %28, label %29, label %307

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load i32, ptr %11, align 4, !tbaa !10
  %32 = call ptr @libxsmm_generator_matequation_find_op_at_timestamp(ptr noundef %30, i32 noundef %31)
  store ptr %32, ptr %12, align 8, !tbaa !5
  %33 = load i32, ptr %11, align 4, !tbaa !10
  %34 = load i32, ptr %10, align 4, !tbaa !10
  %35 = icmp eq i32 %33, %34
  br i1 %35, label %36, label %40

36:                                               ; preds = %29
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libxsmm_generator_matequation_enqueue_equation(ptr noundef %37, ptr noundef %38, ptr noundef %39)
  br label %40

40:                                               ; preds = %36, %29
  %41 = load i32, ptr %11, align 4, !tbaa !10
  %42 = load i32, ptr %10, align 4, !tbaa !10
  %43 = icmp ult i32 %41, %42
  br i1 %43, label %44, label %304

44:                                               ; preds = %40
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = call i32 @libxsmm_generator_matequation_is_eqn_node_breaking_point(ptr noundef %45, ptr noundef %46)
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %164, label %49

49:                                               ; preds = %44
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %50, i32 0, i32 3
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call i32 @libxsmm_generator_matequation_is_eqn_node_breaking_point(ptr noundef %52, ptr noundef %53)
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %164, label %56

56:                                               ; preds = %49
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %57, i32 0, i32 4
  %59 = load i32, ptr %58, align 8, !tbaa !9
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %68

61:                                               ; preds = %56
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %62, i32 0, i32 5
  %64 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = call i32 @libxsmm_meqn_is_unary_opcode_reduce_to_scalar(i32 noundef %65)
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %164, label %68

68:                                               ; preds = %61, %56
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %69, i32 0, i32 4
  %71 = load i32, ptr %70, align 8, !tbaa !9
  %72 = icmp eq i32 %71, 2
  br i1 %72, label %73, label %80

73:                                               ; preds = %68
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %74, i32 0, i32 5
  %76 = getelementptr inbounds %struct.libxsmm_meqn_binary_op, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = call i32 @libxsmm_meqn_is_binary_opcode_reduce_to_scalar(i32 noundef %77)
  %79 = icmp sgt i32 %78, 0
  br i1 %79, label %164, label %80

80:                                               ; preds = %73, %68
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %81, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %83, i32 0, i32 4
  %85 = load i32, ptr %84, align 8, !tbaa !9
  %86 = icmp eq i32 %85, 1
  br i1 %86, label %87, label %108

87:                                               ; preds = %80
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %88, i32 0, i32 3
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %90, i32 0, i32 5
  %92 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = call i32 @libxsmm_generator_matequation_is_unary_with_bcast(i32 noundef %93)
  %95 = icmp sgt i32 %94, 0
  br i1 %95, label %96, label %108

96:                                               ; preds = %87
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %97, i32 0, i32 3
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %99, i32 0, i32 5
  %101 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %103, i32 0, i32 3
  %105 = load ptr, ptr %104, align 8, !tbaa !9
  %106 = call i32 @libxsmm_generator_matequation_is_unary_bcast_arg_an_inputarg(i32 noundef %102, ptr noundef %105)
  %107 = icmp eq i32 %106, 0
  br i1 %107, label %164, label %108

108:                                              ; preds = %96, %87, %80
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %109, i32 0, i32 3
  %111 = load ptr, ptr %110, align 8, !tbaa !9
  %112 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %111, i32 0, i32 4
  %113 = load i32, ptr %112, align 8, !tbaa !9
  %114 = icmp eq i32 %113, 2
  br i1 %114, label %115, label %136

115:                                              ; preds = %108
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %116, i32 0, i32 3
  %118 = load ptr, ptr %117, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %118, i32 0, i32 5
  %120 = getelementptr inbounds %struct.libxsmm_meqn_binary_op, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = call i32 @libxsmm_generator_matequation_is_binary_with_bcast(i32 noundef %121)
  %123 = icmp sgt i32 %122, 0
  br i1 %123, label %124, label %136

124:                                              ; preds = %115
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %125, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !9
  %128 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %127, i32 0, i32 5
  %129 = getelementptr inbounds %struct.libxsmm_meqn_binary_op, ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %131, i32 0, i32 3
  %133 = load ptr, ptr %132, align 8, !tbaa !9
  %134 = call i32 @libxsmm_generator_matequation_is_binary_bcast_arg_an_inputarg(i32 noundef %130, ptr noundef %133)
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %164, label %136

136:                                              ; preds = %124, %115, %108
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %137, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !9
  %140 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %139, i32 0, i32 4
  %141 = load i32, ptr %140, align 8, !tbaa !9
  %142 = icmp eq i32 %141, 4
  br i1 %142, label %143, label %304

143:                                              ; preds = %136
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %144, i32 0, i32 3
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %146, i32 0, i32 5
  %148 = getelementptr inbounds %struct.libxsmm_meqn_ternary_op, ptr %147, i32 0, i32 1
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = call i32 @libxsmm_generator_matequation_is_ternary_with_bcast(i32 noundef %149)
  %151 = icmp sgt i32 %150, 0
  br i1 %151, label %152, label %304

152:                                              ; preds = %143
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %153, i32 0, i32 3
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %155, i32 0, i32 5
  %157 = getelementptr inbounds %struct.libxsmm_meqn_ternary_op, ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %159, i32 0, i32 3
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  %162 = call i32 @libxsmm_generator_matequation_is_ternary_bcast_arg_an_inputarg(i32 noundef %158, ptr noundef %161)
  %163 = icmp eq i32 %162, 0
  br i1 %163, label %164, label %304

164:                                              ; preds = %152, %124, %96, %73, %61, %49, %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store ptr null, ptr %15, align 8, !tbaa !5
  %165 = call noalias ptr @malloc(i64 noundef 184) #7
  store ptr %165, ptr %14, align 8, !tbaa !5
  %166 = call noalias ptr @malloc(i64 noundef 32) #7
  store ptr %166, ptr %15, align 8, !tbaa !5
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = icmp ne ptr null, %167
  br i1 %168, label %169, label %300

169:                                              ; preds = %164
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = icmp ne ptr null, %170
  br i1 %171, label %172, label %300

172:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 44, ptr %16) #6
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %173, i32 0, i32 8
  %175 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %174, i32 0, i32 1
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %16, i32 0, i32 0
  store i32 %176, ptr %177, align 4, !tbaa !9
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %178, i32 0, i32 8
  %180 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %179, i32 0, i32 2
  %181 = load i32, ptr %180, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %16, i32 0, i32 1
  store i32 %181, ptr %182, align 4, !tbaa !9
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %183, i32 0, i32 8
  %185 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %184, i32 0, i32 3
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %16, i32 0, i32 2
  store i32 %186, ptr %187, align 4, !tbaa !9
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %188, i32 0, i32 8
  %190 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %189, i32 0, i32 0
  %191 = load i32, ptr %190, align 8, !tbaa !9
  %192 = add nsw i32 %191, 1
  %193 = sub nsw i32 0, %192
  %194 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %16, i32 0, i32 3
  store i32 %193, ptr %194, align 4, !tbaa !9
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %195, i32 0, i32 8
  %197 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %196, i32 0, i32 4
  %198 = load i32, ptr %197, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct.libxsmm_meqn_arg, ptr %16, i32 0, i32 5
  store i32 %198, ptr %199, align 4, !tbaa !9
  %200 = load ptr, ptr %14, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %200, i32 0, i32 0
  store ptr null, ptr %201, align 8, !tbaa !9
  %202 = load ptr, ptr %14, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %202, i32 0, i32 1
  store ptr null, ptr %203, align 8, !tbaa !9
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %204, i32 0, i32 2
  store ptr null, ptr %205, align 8, !tbaa !9
  %206 = load ptr, ptr %14, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %206, i32 0, i32 4
  store i32 8, ptr %207, align 8, !tbaa !9
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %208, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %209, ptr align 4 %16, i64 44, i1 false), !tbaa.struct !12
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %210, i32 0, i32 6
  store i32 0, ptr %211, align 8, !tbaa !9
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %212, i32 0, i32 8
  %214 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %213, i32 0, i32 4
  %215 = load i32, ptr %214, align 8, !tbaa !9
  %216 = load ptr, ptr %14, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %216, i32 0, i32 8
  %218 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %217, i32 0, i32 4
  store i32 %215, ptr %218, align 8, !tbaa !9
  %219 = load ptr, ptr %12, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %219, i32 0, i32 8
  %221 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !9
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %223, i32 0, i32 8
  %225 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %224, i32 0, i32 1
  store i32 %222, ptr %225, align 4, !tbaa !9
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %226, i32 0, i32 8
  %228 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %227, i32 0, i32 2
  %229 = load i32, ptr %228, align 8, !tbaa !9
  %230 = load ptr, ptr %14, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %230, i32 0, i32 8
  %232 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %231, i32 0, i32 2
  store i32 %229, ptr %232, align 8, !tbaa !9
  %233 = load ptr, ptr %12, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %233, i32 0, i32 8
  %235 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %234, i32 0, i32 3
  %236 = load i32, ptr %235, align 4, !tbaa !9
  %237 = load ptr, ptr %14, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %237, i32 0, i32 8
  %239 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %238, i32 0, i32 3
  store i32 %236, ptr %239, align 4, !tbaa !9
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = call i32 @libxsmm_generator_matequation_find_fusion_pattern_with_ancestors(ptr noundef %240, ptr noundef %241)
  store i32 %242, ptr %13, align 4, !tbaa !10
  %243 = load i32, ptr %13, align 4, !tbaa !10
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %245, label %250

245:                                              ; preds = %172
  %246 = load i32, ptr %13, align 4, !tbaa !10
  %247 = load ptr, ptr %12, align 8, !tbaa !5
  %248 = load ptr, ptr %14, align 8, !tbaa !5
  %249 = load i32, ptr %10, align 4, !tbaa !10
  call void @libxsmm_generator_matequation_apply_fusion_pattern_transformation(i32 noundef %246, ptr noundef %247, ptr noundef %248, ptr noundef %11, i32 noundef %249)
  br label %291

250:                                              ; preds = %172
  %251 = load ptr, ptr %12, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %251, i32 0, i32 3
  %253 = load ptr, ptr %252, align 8, !tbaa !9
  %254 = load ptr, ptr %14, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %254, i32 0, i32 3
  store ptr %253, ptr %255, align 8, !tbaa !9
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %256, i32 0, i32 3
  %258 = load ptr, ptr %257, align 8, !tbaa !9
  %259 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %258, i32 0, i32 0
  %260 = load ptr, ptr %259, align 8, !tbaa !9
  %261 = load ptr, ptr %12, align 8, !tbaa !5
  %262 = icmp eq ptr %260, %261
  br i1 %262, label %263, label %269

263:                                              ; preds = %250
  %264 = load ptr, ptr %14, align 8, !tbaa !5
  %265 = load ptr, ptr %12, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %265, i32 0, i32 3
  %267 = load ptr, ptr %266, align 8, !tbaa !9
  %268 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %267, i32 0, i32 0
  store ptr %264, ptr %268, align 8, !tbaa !9
  br label %290

269:                                              ; preds = %250
  %270 = load ptr, ptr %12, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %270, i32 0, i32 3
  %272 = load ptr, ptr %271, align 8, !tbaa !9
  %273 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %272, i32 0, i32 1
  %274 = load ptr, ptr %273, align 8, !tbaa !9
  %275 = load ptr, ptr %12, align 8, !tbaa !5
  %276 = icmp eq ptr %274, %275
  br i1 %276, label %277, label %283

277:                                              ; preds = %269
  %278 = load ptr, ptr %14, align 8, !tbaa !5
  %279 = load ptr, ptr %12, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %279, i32 0, i32 3
  %281 = load ptr, ptr %280, align 8, !tbaa !9
  %282 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %281, i32 0, i32 1
  store ptr %278, ptr %282, align 8, !tbaa !9
  br label %289

283:                                              ; preds = %269
  %284 = load ptr, ptr %14, align 8, !tbaa !5
  %285 = load ptr, ptr %12, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %285, i32 0, i32 3
  %287 = load ptr, ptr %286, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %287, i32 0, i32 2
  store ptr %284, ptr %288, align 8, !tbaa !9
  br label %289

289:                                              ; preds = %283, %277
  br label %290

290:                                              ; preds = %289, %263
  br label %291

291:                                              ; preds = %290, %245
  %292 = load ptr, ptr %12, align 8, !tbaa !5
  %293 = load ptr, ptr %15, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %293, i32 0, i32 0
  store ptr %292, ptr %294, align 8, !tbaa !9
  %295 = load ptr, ptr %15, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %295, i32 0, i32 2
  store i32 1, ptr %296, align 8, !tbaa !9
  %297 = load ptr, ptr %15, align 8, !tbaa !5
  %298 = load ptr, ptr %6, align 8, !tbaa !5
  %299 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libxsmm_generator_matequation_enqueue_equation(ptr noundef %297, ptr noundef %298, ptr noundef %299)
  call void @llvm.lifetime.end.p0(i64 44, ptr %16) #6
  br label %303

300:                                              ; preds = %169, %164
  %301 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %301) #6
  %302 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %302) #6
  br label %303

303:                                              ; preds = %300, %291
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %304

304:                                              ; preds = %303, %152, %143, %136, %40
  %305 = load i32, ptr %11, align 4, !tbaa !10
  %306 = add i32 %305, 1
  store i32 %306, ptr %11, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %25, !llvm.loop !13

307:                                              ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void
}

declare i32 @libxsmm_meqn_is_unary_opcode_reduce_to_scalar(i32 noundef) #2

declare i32 @libxsmm_meqn_is_binary_opcode_reduce_to_scalar(i32 noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; 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: nounwind
declare void @free(ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind allocsize(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 = { 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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{i64 0, i64 44, !9}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_is_unary_with_bcast(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_is_binary_with_bcast(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_is_ternary_with_bcast(i32 noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_decompose_equation_tree_x86(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = alloca i32, align 4
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 84
  %8 = load i32, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !8
  br label %9

9:                                                ; preds = %4, %134
  %storemerge84 = phi i32 [ 0, %4 ], [ %136, %134 ]
  %10 = call ptr @libxsmm_generator_matequation_find_op_at_timestamp(ptr noundef %6, i32 noundef %storemerge84)
  %11 = load i32, ptr %5, align 4, !tbaa !8
  %12 = icmp eq i32 %11, %8
  br i1 %12, label %13, label %14

13:                                               ; preds = %9
  call void @libxsmm_generator_matequation_enqueue_equation(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2)
  %.pre = load i32, ptr %5, align 4, !tbaa !8
  br label %14

14:                                               ; preds = %13, %9
  %15 = phi i32 [ %.pre, %13 ], [ %11, %9 ]
  %16 = icmp ult i32 %15, %8
  br i1 %16, label %17, label %134

17:                                               ; preds = %14
  %18 = call i32 @libxsmm_generator_matequation_is_eqn_node_breaking_point(ptr noundef %10, ptr noundef %3)
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %88, label %20

20:                                               ; preds = %17
  %21 = getelementptr inbounds i8, ptr %10, i64 24
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = call i32 @libxsmm_generator_matequation_is_eqn_node_breaking_point(ptr noundef %22, ptr noundef %3)
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %88, label %25

25:                                               ; preds = %20
  %26 = getelementptr inbounds i8, ptr %10, i64 32
  %27 = load i32, ptr %26, align 8, !tbaa !5
  %28 = icmp eq i32 %27, 1
  br i1 %28, label %29, label %34

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %10, i64 36
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = call i32 @libxsmm_meqn_is_unary_opcode_reduce_to_scalar(i32 noundef %31) #6
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %88, label %thread-pre-split

thread-pre-split:                                 ; preds = %29
  %.pr = load i32, ptr %26, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %thread-pre-split, %25
  %35 = phi i32 [ %.pr, %thread-pre-split ], [ %27, %25 ]
  %36 = icmp eq i32 %35, 2
  br i1 %36, label %37, label %42

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %10, i64 36
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = call i32 @libxsmm_meqn_is_binary_opcode_reduce_to_scalar(i32 noundef %39) #6
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %88, label %42

42:                                               ; preds = %37, %34
  %43 = load ptr, ptr %21, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 32
  %45 = load i32, ptr %44, align 8, !tbaa !5
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %47, label %57

47:                                               ; preds = %42
  %48 = getelementptr inbounds i8, ptr %43, i64 40
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = call i32 @libxsmm_generator_matequation_is_unary_with_bcast(i32 noundef %49)
  %51 = icmp sgt i32 %50, 0
  %.pre86 = load ptr, ptr %21, align 8, !tbaa !5
  br i1 %51, label %52, label %57

52:                                               ; preds = %47
  %53 = getelementptr inbounds i8, ptr %.pre86, i64 40
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = call i32 @libxsmm_generator_matequation_is_unary_bcast_arg_an_inputarg(i32 noundef %54, ptr noundef %.pre86)
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %88, label %._crit_edge

._crit_edge:                                      ; preds = %52
  %.pre85 = load ptr, ptr %21, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %._crit_edge, %47, %42
  %58 = phi ptr [ %.pre85, %._crit_edge ], [ %.pre86, %47 ], [ %43, %42 ]
  %59 = getelementptr inbounds i8, ptr %58, i64 32
  %60 = load i32, ptr %59, align 8, !tbaa !5
  %61 = icmp eq i32 %60, 2
  br i1 %61, label %62, label %72

62:                                               ; preds = %57
  %63 = getelementptr inbounds i8, ptr %58, i64 40
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = call i32 @libxsmm_generator_matequation_is_binary_with_bcast(i32 noundef %64)
  %66 = icmp sgt i32 %65, 0
  %.pre89 = load ptr, ptr %21, align 8, !tbaa !5
  br i1 %66, label %67, label %72

67:                                               ; preds = %62
  %68 = getelementptr inbounds i8, ptr %.pre89, i64 40
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = call i32 @libxsmm_generator_matequation_is_binary_bcast_arg_an_inputarg(i32 noundef %69, ptr noundef %.pre89)
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %88, label %._crit_edge87

._crit_edge87:                                    ; preds = %67
  %.pre88 = load ptr, ptr %21, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %._crit_edge87, %62, %57
  %73 = phi ptr [ %.pre88, %._crit_edge87 ], [ %.pre89, %62 ], [ %58, %57 ]
  %74 = getelementptr inbounds i8, ptr %73, i64 32
  %75 = load i32, ptr %74, align 8, !tbaa !5
  %76 = icmp eq i32 %75, 4
  br i1 %76, label %77, label %134

77:                                               ; preds = %72
  %78 = getelementptr inbounds i8, ptr %73, i64 40
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = call i32 @libxsmm_generator_matequation_is_ternary_with_bcast(i32 noundef %79)
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %82, label %134

82:                                               ; preds = %77
  %83 = load ptr, ptr %21, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %83, i64 40
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = call i32 @libxsmm_generator_matequation_is_ternary_bcast_arg_an_inputarg(i32 noundef %85, ptr noundef %83)
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %134

88:                                               ; preds = %82, %67, %52, %37, %29, %20, %17
  %89 = call noalias dereferenceable_or_null(184) ptr @malloc(i64 noundef 184) #7
  %90 = call noalias dereferenceable_or_null(32) ptr @malloc(i64 noundef 32) #7
  %91 = icmp ne ptr %89, null
  %92 = icmp ne ptr %90, null
  %or.cond = and i1 %91, %92
  br i1 %or.cond, label %93, label %133

93:                                               ; preds = %88
  %94 = getelementptr inbounds i8, ptr %10, i64 88
  %95 = getelementptr inbounds i8, ptr %10, i64 92
  %96 = getelementptr inbounds i8, ptr %10, i64 96
  %97 = getelementptr inbounds i8, ptr %10, i64 100
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = load i32, ptr %94, align 8, !tbaa !5
  %100 = xor i32 %99, -1
  %101 = getelementptr inbounds i8, ptr %10, i64 104
  %102 = load i32, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %89, i64 32
  %104 = getelementptr inbounds i8, ptr %89, i64 36
  %105 = load <2 x i32>, ptr %95, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %89, i8 0, i64 24, i1 false)
  store i32 8, ptr %103, align 8, !tbaa !5
  store <2 x i32> %105, ptr %104, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %89, i64 44
  store i32 %98, ptr %.sroa.5.0..sroa_idx, align 4
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %89, i64 48
  store i32 %100, ptr %.sroa.6.0..sroa_idx, align 4
  %.sroa.72.0..sroa_idx = getelementptr inbounds i8, ptr %89, i64 56
  store i32 %102, ptr %.sroa.72.0..sroa_idx, align 4
  %106 = getelementptr inbounds i8, ptr %89, i64 80
  store i32 0, ptr %106, align 8, !tbaa !5
  %107 = load i32, ptr %101, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %89, i64 104
  store i32 %107, ptr %108, align 8, !tbaa !5
  %109 = load i32, ptr %95, align 4, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %89, i64 92
  store i32 %109, ptr %110, align 4, !tbaa !5
  %111 = load i32, ptr %96, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %89, i64 96
  store i32 %111, ptr %112, align 8, !tbaa !5
  %113 = load i32, ptr %97, align 4, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %89, i64 100
  store i32 %113, ptr %114, align 4, !tbaa !5
  %115 = call i32 @libxsmm_generator_matequation_find_fusion_pattern_with_ancestors(ptr noundef %10, ptr noundef %3)
  %.not83 = icmp eq i32 %115, 0
  br i1 %.not83, label %117, label %116

116:                                              ; preds = %93
  call void @libxsmm_generator_matequation_apply_fusion_pattern_transformation(i32 noundef %115, ptr noundef nonnull %10, ptr noundef nonnull %89, ptr noundef nonnull %5, i32 noundef %8)
  br label %131

117:                                              ; preds = %93
  %118 = getelementptr inbounds i8, ptr %10, i64 24
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds i8, ptr %89, i64 24
  store ptr %119, ptr %120, align 8, !tbaa !5
  %121 = load ptr, ptr %119, align 8, !tbaa !5
  %122 = icmp eq ptr %121, %10
  br i1 %122, label %123, label %124

123:                                              ; preds = %117
  store ptr %89, ptr %119, align 8, !tbaa !5
  br label %131

124:                                              ; preds = %117
  %125 = getelementptr inbounds i8, ptr %119, i64 8
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = icmp eq ptr %126, %10
  br i1 %127, label %128, label %129

128:                                              ; preds = %124
  store ptr %89, ptr %125, align 8, !tbaa !5
  br label %131

129:                                              ; preds = %124
  %130 = getelementptr inbounds i8, ptr %119, i64 16
  store ptr %89, ptr %130, align 8, !tbaa !5
  br label %131

131:                                              ; preds = %123, %129, %128, %116
  store ptr %10, ptr %90, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %90, i64 16
  store i32 1, ptr %132, align 8, !tbaa !5
  call void @libxsmm_generator_matequation_enqueue_equation(ptr noundef nonnull %90, ptr noundef %1, ptr noundef %2)
  br label %134

133:                                              ; preds = %88
  call void @free(ptr noundef %89) #6
  call void @free(ptr noundef %90) #6
  br label %134

134:                                              ; preds = %131, %133, %82, %77, %72, %14
  %135 = load i32, ptr %5, align 4, !tbaa !8
  %136 = add i32 %135, 1
  store i32 %136, ptr %5, align 4, !tbaa !8
  %.not = icmp ugt i32 %136, %8
  br i1 %.not, label %137, label %9, !llvm.loop !10

137:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  ret void
}

declare i32 @libxsmm_meqn_is_unary_opcode_reduce_to_scalar(i32 noundef) local_unnamed_addr #2

declare i32 @libxsmm_meqn_is_binary_opcode_reduce_to_scalar(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass