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

; 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_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 }
%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_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_matrix_eqn = type { ptr, ptr, 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: nounwind uwtable
declare dso_local i32 @libxsmm_meqn_get_bcast_type_unary(i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %5, i32 0, i32 4
  %7 = load i32, ptr %6, align 8, !tbaa !9
  %8 = icmp eq i32 %7, 8
  br i1 %8, label %9, label %10

9:                                                ; preds = %2
  br label %266

10:                                               ; preds = %2
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %11, i32 0, i32 4
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %55

15:                                               ; preds = %10
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %18, i32 0, i32 4
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = icmp ne i32 %20, 8
  br i1 %21, label %22, label %50

22:                                               ; preds = %15
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %23, i32 0, i32 5
  %25 = getelementptr inbounds %struct.libxsmm_meqn_unary_op, ptr %24, i32 0, i32 1
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = call i32 @libxsmm_meqn_get_bcast_type_unary(i32 noundef %26)
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %50

29:                                               ; preds = %22
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %33, align 8, !tbaa !9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %37, i32 0, i32 8
  %39 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %38, i32 0, i32 0
  store i32 %34, ptr %39, align 8, !tbaa !9
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %43, align 8, !tbaa !9
  %45 = add nsw i32 %44, 1
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %48, i32 0, i32 6
  store i32 %45, ptr %49, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %29, %22, %15
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  call void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %51, ptr noundef %54)
  br label %265

55:                                               ; preds = %10
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %56, i32 0, i32 4
  %58 = load i32, ptr %57, align 8, !tbaa !9
  %59 = icmp eq i32 %58, 2
  br i1 %59, label %60, label %139

60:                                               ; preds = %55
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %63, i32 0, i32 4
  %65 = load i32, ptr %64, align 8, !tbaa !9
  %66 = icmp ne i32 %65, 8
  br i1 %66, label %67, label %95

67:                                               ; preds = %60
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %68, i32 0, i32 5
  %70 = getelementptr inbounds %struct.libxsmm_meqn_binary_op, ptr %69, i32 0, i32 1
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = call i32 @libxsmm_meqn_get_bcast_type_binary(i32 noundef %71, i32 noundef 0)
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %95

74:                                               ; preds = %67
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %78, align 8, !tbaa !9
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %82, i32 0, i32 8
  %84 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %83, i32 0, i32 0
  store i32 %79, ptr %84, align 8, !tbaa !9
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %87, i32 0, i32 6
  %89 = load i32, ptr %88, align 8, !tbaa !9
  %90 = add nsw i32 %89, 1
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %93, i32 0, i32 6
  store i32 %90, ptr %94, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %74, %67, %60
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %98, i32 0, i32 4
  %100 = load i32, ptr %99, align 8, !tbaa !9
  %101 = icmp ne i32 %100, 8
  br i1 %101, label %102, label %130

102:                                              ; preds = %95
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %103, i32 0, i32 5
  %105 = getelementptr inbounds %struct.libxsmm_meqn_binary_op, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = call i32 @libxsmm_meqn_get_bcast_type_binary(i32 noundef %106, i32 noundef 1)
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %130

109:                                              ; preds = %102
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %113, align 8, !tbaa !9
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %117, i32 0, i32 8
  %119 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %118, i32 0, i32 0
  store i32 %114, ptr %119, align 8, !tbaa !9
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !9
  %123 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %123, align 8, !tbaa !9
  %125 = add nsw i32 %124, 1
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %128, i32 0, i32 6
  store i32 %125, ptr %129, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %109, %102, %95
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  call void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %131, ptr noundef %134)
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %136, i32 0, i32 1
  %138 = load ptr, ptr %137, align 8, !tbaa !9
  call void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %135, ptr noundef %138)
  br label %264

139:                                              ; preds = %55
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %140, i32 0, i32 4
  %142 = load i32, ptr %141, align 8, !tbaa !9
  %143 = icmp eq i32 %142, 4
  br i1 %143, label %144, label %262

144:                                              ; preds = %139
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %147, i32 0, i32 4
  %149 = load i32, ptr %148, align 8, !tbaa !9
  %150 = icmp ne i32 %149, 8
  br i1 %150, label %151, label %179

151:                                              ; preds = %144
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %152, i32 0, i32 5
  %154 = getelementptr inbounds %struct.libxsmm_meqn_ternary_op, ptr %153, i32 0, i32 1
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = call i32 @libxsmm_meqn_get_bcast_type_ternary(i32 noundef %155, i32 noundef 0)
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %179

158:                                              ; preds = %151
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %159, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !9
  %162 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %161, i32 0, i32 6
  %163 = load i32, ptr %162, align 8, !tbaa !9
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !9
  %167 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %166, i32 0, i32 8
  %168 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %167, i32 0, i32 0
  store i32 %163, ptr %168, align 8, !tbaa !9
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %169, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %171, i32 0, i32 6
  %173 = load i32, ptr %172, align 8, !tbaa !9
  %174 = add nsw i32 %173, 1
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %175, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !9
  %178 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %177, i32 0, i32 6
  store i32 %174, ptr %178, align 8, !tbaa !9
  br label %179

179:                                              ; preds = %158, %151, %144
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %180, i32 0, i32 1
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  %183 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %182, i32 0, i32 4
  %184 = load i32, ptr %183, align 8, !tbaa !9
  %185 = icmp ne i32 %184, 8
  br i1 %185, label %186, label %214

186:                                              ; preds = %179
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %187, i32 0, i32 5
  %189 = getelementptr inbounds %struct.libxsmm_meqn_ternary_op, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = call i32 @libxsmm_meqn_get_bcast_type_ternary(i32 noundef %190, i32 noundef 1)
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %214

193:                                              ; preds = %186
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %194, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8, !tbaa !9
  %197 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %196, i32 0, i32 6
  %198 = load i32, ptr %197, align 8, !tbaa !9
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %199, i32 0, i32 1
  %201 = load ptr, ptr %200, align 8, !tbaa !9
  %202 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %201, i32 0, i32 8
  %203 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %202, i32 0, i32 0
  store i32 %198, ptr %203, align 8, !tbaa !9
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %204, i32 0, i32 0
  %206 = load ptr, ptr %205, align 8, !tbaa !9
  %207 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %206, i32 0, i32 6
  %208 = load i32, ptr %207, align 8, !tbaa !9
  %209 = add nsw i32 %208, 1
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %210, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %212, i32 0, i32 6
  store i32 %209, ptr %213, align 8, !tbaa !9
  br label %214

214:                                              ; preds = %193, %186, %179
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %215, i32 0, i32 2
  %217 = load ptr, ptr %216, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %217, i32 0, i32 4
  %219 = load i32, ptr %218, align 8, !tbaa !9
  %220 = icmp ne i32 %219, 8
  br i1 %220, label %221, label %249

221:                                              ; preds = %214
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %222, i32 0, i32 5
  %224 = getelementptr inbounds %struct.libxsmm_meqn_ternary_op, ptr %223, i32 0, i32 1
  %225 = load i32, ptr %224, align 4, !tbaa !9
  %226 = call i32 @libxsmm_meqn_get_bcast_type_ternary(i32 noundef %225, i32 noundef 2)
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %249

228:                                              ; preds = %221
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %229, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %231, i32 0, i32 6
  %233 = load i32, ptr %232, align 8, !tbaa !9
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %234, i32 0, i32 2
  %236 = load ptr, ptr %235, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %236, i32 0, i32 8
  %238 = getelementptr inbounds %struct.libxsmm_meqn_tmp_info, ptr %237, i32 0, i32 0
  store i32 %233, ptr %238, align 8, !tbaa !9
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %239, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8, !tbaa !9
  %242 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %242, align 8, !tbaa !9
  %244 = add nsw i32 %243, 1
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.libxsmm_matrix_eqn, ptr %245, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8, !tbaa !9
  %248 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %247, i32 0, i32 6
  store i32 %244, ptr %248, align 8, !tbaa !9
  br label %249

249:                                              ; preds = %228, %221, %214
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !9
  call void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %250, ptr noundef %253)
  %254 = load ptr, ptr %3, align 8, !tbaa !5
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %255, i32 0, i32 1
  %257 = load ptr, ptr %256, align 8, !tbaa !9
  call void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %254, ptr noundef %257)
  %258 = load ptr, ptr %3, align 8, !tbaa !5
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.libxsmm_meqn_elem, ptr %259, i32 0, i32 2
  %261 = load ptr, ptr %260, align 8, !tbaa !9
  call void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %258, ptr noundef %261)
  br label %263

262:                                              ; preds = %139
  br label %263

263:                                              ; preds = %262, %249
  br label %264

264:                                              ; preds = %263, %130
  br label %265

265:                                              ; preds = %264, %50
  br label %266

266:                                              ; preds = %265, %9
  ret void
}

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

!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}


; 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: nounwind uwtable
declare dso_local i32 @libxsmm_meqn_get_bcast_type_unary(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  br label %tailrecurse

tailrecurse:                                      ; preds = %tailrecurse.backedge, %2
  %.tr63 = phi ptr [ %1, %2 ], [ %.tr63.be, %tailrecurse.backedge ]
  %3 = getelementptr inbounds i8, ptr %.tr63, i64 32
  %4 = load i32, ptr %3, align 8, !tbaa !5
  switch i32 %4, label %121 [
    i32 4, label %62
    i32 1, label %5
    i32 2, label %23
  ]

5:                                                ; preds = %tailrecurse
  %6 = load ptr, ptr %.tr63, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 32
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %.not61 = icmp eq i32 %8, 8
  br i1 %.not61, label %tailrecurse.backedge, label %9

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %.tr63, i64 40
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = tail call i32 @libxsmm_meqn_get_bcast_type_unary(i32 noundef %11)
  %.not62 = icmp eq i32 %12, 0
  br i1 %.not62, label %tailrecurse.backedge, label %13

13:                                               ; preds = %9
  %14 = load ptr, ptr %0, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 80
  %16 = load i32, ptr %15, align 8, !tbaa !5
  %17 = load ptr, ptr %.tr63, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 88
  store i32 %16, ptr %18, align 8, !tbaa !5
  %19 = load ptr, ptr %0, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 80
  %21 = load i32, ptr %20, align 8, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %20, align 8, !tbaa !5
  br label %tailrecurse.backedge

tailrecurse.backedge:                             ; preds = %5, %9, %13, %60, %118
  %.tr63.be.in = phi ptr [ %42, %60 ], [ %100, %118 ], [ %.tr63, %13 ], [ %.tr63, %9 ], [ %.tr63, %5 ]
  %.tr63.be = load ptr, ptr %.tr63.be.in, align 8, !tbaa !5
  br label %tailrecurse

23:                                               ; preds = %tailrecurse
  %24 = load ptr, ptr %.tr63, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 32
  %26 = load i32, ptr %25, align 8, !tbaa !5
  %.not57 = icmp eq i32 %26, 8
  br i1 %.not57, label %41, label %27

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %.tr63, i64 40
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = tail call i32 @libxsmm_meqn_get_bcast_type_binary(i32 noundef %29, i32 noundef 0)
  %.not58 = icmp eq i32 %30, 0
  br i1 %.not58, label %41, label %31

31:                                               ; preds = %27
  %32 = load ptr, ptr %0, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 80
  %34 = load i32, ptr %33, align 8, !tbaa !5
  %35 = load ptr, ptr %.tr63, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 88
  store i32 %34, ptr %36, align 8, !tbaa !5
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 80
  %39 = load i32, ptr %38, align 8, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %38, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %31, %27, %23
  %42 = getelementptr inbounds i8, ptr %.tr63, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 32
  %45 = load i32, ptr %44, align 8, !tbaa !5
  %.not59 = icmp eq i32 %45, 8
  br i1 %.not59, label %60, label %46

46:                                               ; preds = %41
  %47 = getelementptr inbounds i8, ptr %.tr63, i64 40
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = tail call i32 @libxsmm_meqn_get_bcast_type_binary(i32 noundef %48, i32 noundef 1)
  %.not60 = icmp eq i32 %49, 0
  br i1 %.not60, label %60, label %50

50:                                               ; preds = %46
  %51 = load ptr, ptr %0, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %51, i64 80
  %53 = load i32, ptr %52, align 8, !tbaa !5
  %54 = load ptr, ptr %42, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 88
  store i32 %53, ptr %55, align 8, !tbaa !5
  %56 = load ptr, ptr %0, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 80
  %58 = load i32, ptr %57, align 8, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %57, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %50, %46, %41
  %61 = load ptr, ptr %.tr63, align 8, !tbaa !5
  tail call void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %0, ptr noundef %61)
  br label %tailrecurse.backedge

62:                                               ; preds = %tailrecurse
  %63 = load ptr, ptr %.tr63, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 32
  %65 = load i32, ptr %64, align 8, !tbaa !5
  %.not = icmp eq i32 %65, 8
  br i1 %.not, label %80, label %66

66:                                               ; preds = %62
  %67 = getelementptr inbounds i8, ptr %.tr63, i64 40
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = tail call i32 @libxsmm_meqn_get_bcast_type_ternary(i32 noundef %68, i32 noundef 0)
  %.not52 = icmp eq i32 %69, 0
  br i1 %.not52, label %80, label %70

70:                                               ; preds = %66
  %71 = load ptr, ptr %0, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 80
  %73 = load i32, ptr %72, align 8, !tbaa !5
  %74 = load ptr, ptr %.tr63, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 88
  store i32 %73, ptr %75, align 8, !tbaa !5
  %76 = load ptr, ptr %0, align 8, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %76, i64 80
  %78 = load i32, ptr %77, align 8, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %77, align 8, !tbaa !5
  br label %80

80:                                               ; preds = %70, %66, %62
  %81 = getelementptr inbounds i8, ptr %.tr63, i64 8
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 32
  %84 = load i32, ptr %83, align 8, !tbaa !5
  %.not53 = icmp eq i32 %84, 8
  br i1 %.not53, label %99, label %85

85:                                               ; preds = %80
  %86 = getelementptr inbounds i8, ptr %.tr63, i64 40
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = tail call i32 @libxsmm_meqn_get_bcast_type_ternary(i32 noundef %87, i32 noundef 1)
  %.not54 = icmp eq i32 %88, 0
  br i1 %.not54, label %99, label %89

89:                                               ; preds = %85
  %90 = load ptr, ptr %0, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 80
  %92 = load i32, ptr %91, align 8, !tbaa !5
  %93 = load ptr, ptr %81, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 88
  store i32 %92, ptr %94, align 8, !tbaa !5
  %95 = load ptr, ptr %0, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 80
  %97 = load i32, ptr %96, align 8, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %96, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %89, %85, %80
  %100 = getelementptr inbounds i8, ptr %.tr63, i64 16
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 32
  %103 = load i32, ptr %102, align 8, !tbaa !5
  %.not55 = icmp eq i32 %103, 8
  br i1 %.not55, label %118, label %104

104:                                              ; preds = %99
  %105 = getelementptr inbounds i8, ptr %.tr63, i64 40
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = tail call i32 @libxsmm_meqn_get_bcast_type_ternary(i32 noundef %106, i32 noundef 2)
  %.not56 = icmp eq i32 %107, 0
  br i1 %.not56, label %118, label %108

108:                                              ; preds = %104
  %109 = load ptr, ptr %0, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 80
  %111 = load i32, ptr %110, align 8, !tbaa !5
  %112 = load ptr, ptr %100, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 88
  store i32 %111, ptr %113, align 8, !tbaa !5
  %114 = load ptr, ptr %0, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i64 80
  %116 = load i32, ptr %115, align 8, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %115, align 8, !tbaa !5
  br label %118

118:                                              ; preds = %108, %104, %99
  %119 = load ptr, ptr %.tr63, align 8, !tbaa !5
  tail call void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %0, ptr noundef %119)
  %120 = load ptr, ptr %81, align 8, !tbaa !5
  tail call void @libxsmm_meqn_reassign_children_bcast_tmp(ptr noundef %0, ptr noundef %120)
  br label %tailrecurse.backedge

121:                                              ; preds = %tailrecurse
  ret void
}

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

!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"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass