; LLVM IR from ANL-CESAR/XSBench :: opencl (Materials)

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

@__const.load_mats.mats0_Sml = external hidden unnamed_addr constant [34 x i32], align 16
@__const.load_mats.mats0_Lrg = external hidden unnamed_addr constant <{ [34 x i32], [287 x i32] }>, align 16
@__const.load_mats.mats1 = external hidden unnamed_addr constant [5 x i32], align 16
@__const.load_mats.mats2 = external hidden unnamed_addr constant [4 x i32], align 16
@__const.load_mats.mats3 = external hidden unnamed_addr constant [4 x i32], align 16
@__const.load_mats.mats4 = external hidden unnamed_addr constant [27 x i32], align 16
@__const.load_mats.mats5 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats6 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats7 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats8 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats9 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats10 = external hidden unnamed_addr constant [9 x i32], align 16
@__const.load_mats.mats11 = external hidden unnamed_addr constant [9 x i32], align 16

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

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

; 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
define dso_local ptr @load_mats(ptr noundef %0, i64 noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca [34 x i32], align 16
  %11 = alloca [321 x i32], align 16
  %12 = alloca i32, align 4
  %13 = alloca [5 x i32], align 16
  %14 = alloca [4 x i32], align 16
  %15 = alloca [4 x i32], align 16
  %16 = alloca [27 x i32], align 16
  %17 = alloca [21 x i32], align 16
  %18 = alloca [21 x i32], align 16
  %19 = alloca [21 x i32], align 16
  %20 = alloca [21 x i32], align 16
  %21 = alloca [21 x i32], align 16
  %22 = alloca [9 x i32], align 16
  %23 = alloca [9 x i32], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 12, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %25

25:                                               ; preds = %47, %3
  %26 = load i32, ptr %8, align 4, !tbaa !11
  %27 = load i32, ptr %7, align 4, !tbaa !11
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %50

30:                                               ; preds = %25
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load i32, ptr %8, align 4, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i32, ptr %31, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !11
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = icmp sgt i32 %35, %37
  br i1 %38, label %39, label %46

39:                                               ; preds = %30
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load i32, ptr %8, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %40, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %44, ptr %45, align 4, !tbaa !11
  br label %46

46:                                               ; preds = %39, %30
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %8, align 4, !tbaa !11
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %8, align 4, !tbaa !11
  br label %25, !llvm.loop !13

50:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %51 = load i32, ptr %7, align 4, !tbaa !11
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load i32, ptr %52, align 4, !tbaa !11
  %54 = mul nsw i32 %51, %53
  %55 = sext i32 %54 to i64
  %56 = mul i64 %55, 4
  %57 = call noalias ptr @malloc(i64 noundef %56) #5
  store ptr %57, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 136, ptr %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.load_mats.mats0_Sml, i64 136, i1 false)
  call void @llvm.lifetime.start.p0(i64 1284, ptr %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.load_mats.mats0_Lrg, i64 1284, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %69, %50
  %59 = load i32, ptr %12, align 4, !tbaa !11
  %60 = icmp slt i32 %59, 287
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %72

62:                                               ; preds = %58
  %63 = load i32, ptr %12, align 4, !tbaa !11
  %64 = add nsw i32 68, %63
  %65 = load i32, ptr %12, align 4, !tbaa !11
  %66 = add nsw i32 34, %65
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [321 x i32], ptr %11, i64 0, i64 %67
  store i32 %64, ptr %68, align 4, !tbaa !11
  br label %69

69:                                               ; preds = %62
  %70 = load i32, ptr %12, align 4, !tbaa !11
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %12, align 4, !tbaa !11
  br label %58, !llvm.loop !15

72:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 20, ptr %13) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.load_mats.mats1, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %14, ptr align 16 @__const.load_mats.mats2, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const.load_mats.mats3, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 108, ptr %16) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %16, ptr align 16 @__const.load_mats.mats4, i64 108, i1 false)
  call void @llvm.lifetime.start.p0(i64 84, ptr %17) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.load_mats.mats5, i64 84, i1 false)
  call void @llvm.lifetime.start.p0(i64 84, ptr %18) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 @__const.load_mats.mats6, i64 84, i1 false)
  call void @llvm.lifetime.start.p0(i64 84, ptr %19) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 @__const.load_mats.mats7, i64 84, i1 false)
  call void @llvm.lifetime.start.p0(i64 84, ptr %20) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 @__const.load_mats.mats8, i64 84, i1 false)
  call void @llvm.lifetime.start.p0(i64 84, ptr %21) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 @__const.load_mats.mats9, i64 84, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %22) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const.load_mats.mats10, i64 36, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr %23) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 @__const.load_mats.mats11, i64 36, i1 false)
  %73 = load i64, ptr %5, align 8, !tbaa !9
  %74 = icmp eq i64 %73, 68
  br i1 %74, label %75, label %83

75:                                               ; preds = %72
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds [34 x i32], ptr %10, i64 0, i64 0
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds i32, ptr %78, i64 0
  %80 = load i32, ptr %79, align 4, !tbaa !11
  %81 = sext i32 %80 to i64
  %82 = mul i64 %81, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 16 %77, i64 %82, i1 false)
  br label %91

83:                                               ; preds = %72
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds [321 x i32], ptr %11, i64 0, i64 0
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds i32, ptr %86, i64 0
  %88 = load i32, ptr %87, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = mul i64 %89, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %84, ptr align 16 %85, i64 %90, i1 false)
  br label %91

91:                                               ; preds = %83, %75
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !11
  %95 = mul nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i32, ptr %92, i64 %96
  %98 = getelementptr inbounds [5 x i32], ptr %13, i64 0, i64 0
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds i32, ptr %99, i64 1
  %101 = load i32, ptr %100, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = mul i64 %102, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 16 %98, i64 %103, i1 false)
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !11
  %107 = mul nsw i32 %106, 2
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %104, i64 %108
  %110 = getelementptr inbounds [4 x i32], ptr %14, i64 0, i64 0
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds i32, ptr %111, i64 2
  %113 = load i32, ptr %112, align 4, !tbaa !11
  %114 = sext i32 %113 to i64
  %115 = mul i64 %114, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %109, ptr align 16 %110, i64 %115, i1 false)
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !11
  %119 = mul nsw i32 %118, 3
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %116, i64 %120
  %122 = getelementptr inbounds [4 x i32], ptr %15, i64 0, i64 0
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds i32, ptr %123, i64 3
  %125 = load i32, ptr %124, align 4, !tbaa !11
  %126 = sext i32 %125 to i64
  %127 = mul i64 %126, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %121, ptr align 16 %122, i64 %127, i1 false)
  %128 = load ptr, ptr %9, align 8, !tbaa !5
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = load i32, ptr %129, align 4, !tbaa !11
  %131 = mul nsw i32 %130, 4
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %128, i64 %132
  %134 = getelementptr inbounds [27 x i32], ptr %16, i64 0, i64 0
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds i32, ptr %135, i64 4
  %137 = load i32, ptr %136, align 4, !tbaa !11
  %138 = sext i32 %137 to i64
  %139 = mul i64 %138, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %133, ptr align 16 %134, i64 %139, i1 false)
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !11
  %143 = mul nsw i32 %142, 5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i32, ptr %140, i64 %144
  %146 = getelementptr inbounds [21 x i32], ptr %17, i64 0, i64 0
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds i32, ptr %147, i64 5
  %149 = load i32, ptr %148, align 4, !tbaa !11
  %150 = sext i32 %149 to i64
  %151 = mul i64 %150, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %145, ptr align 16 %146, i64 %151, i1 false)
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !11
  %155 = mul nsw i32 %154, 6
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds i32, ptr %152, i64 %156
  %158 = getelementptr inbounds [21 x i32], ptr %18, i64 0, i64 0
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds i32, ptr %159, i64 6
  %161 = load i32, ptr %160, align 4, !tbaa !11
  %162 = sext i32 %161 to i64
  %163 = mul i64 %162, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %157, ptr align 16 %158, i64 %163, i1 false)
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = load i32, ptr %165, align 4, !tbaa !11
  %167 = mul nsw i32 %166, 7
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds i32, ptr %164, i64 %168
  %170 = getelementptr inbounds [21 x i32], ptr %19, i64 0, i64 0
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds i32, ptr %171, i64 7
  %173 = load i32, ptr %172, align 4, !tbaa !11
  %174 = sext i32 %173 to i64
  %175 = mul i64 %174, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %169, ptr align 16 %170, i64 %175, i1 false)
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = load i32, ptr %177, align 4, !tbaa !11
  %179 = mul nsw i32 %178, 8
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i32, ptr %176, i64 %180
  %182 = getelementptr inbounds [21 x i32], ptr %20, i64 0, i64 0
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds i32, ptr %183, i64 8
  %185 = load i32, ptr %184, align 4, !tbaa !11
  %186 = sext i32 %185 to i64
  %187 = mul i64 %186, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %181, ptr align 16 %182, i64 %187, i1 false)
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = load i32, ptr %189, align 4, !tbaa !11
  %191 = mul nsw i32 %190, 9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %188, i64 %192
  %194 = getelementptr inbounds [21 x i32], ptr %21, i64 0, i64 0
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds i32, ptr %195, i64 9
  %197 = load i32, ptr %196, align 4, !tbaa !11
  %198 = sext i32 %197 to i64
  %199 = mul i64 %198, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %193, ptr align 16 %194, i64 %199, i1 false)
  %200 = load ptr, ptr %9, align 8, !tbaa !5
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = load i32, ptr %201, align 4, !tbaa !11
  %203 = mul nsw i32 %202, 10
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds i32, ptr %200, i64 %204
  %206 = getelementptr inbounds [9 x i32], ptr %22, i64 0, i64 0
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds i32, ptr %207, i64 10
  %209 = load i32, ptr %208, align 4, !tbaa !11
  %210 = sext i32 %209 to i64
  %211 = mul i64 %210, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %205, ptr align 16 %206, i64 %211, i1 false)
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = load i32, ptr %213, align 4, !tbaa !11
  %215 = mul nsw i32 %214, 11
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds i32, ptr %212, i64 %216
  %218 = getelementptr inbounds [9 x i32], ptr %23, i64 0, i64 0
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds i32, ptr %219, i64 11
  %221 = load i32, ptr %220, align 4, !tbaa !11
  %222 = sext i32 %221 to i64
  %223 = mul i64 %222, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %217, ptr align 16 %218, i64 %223, i1 false)
  %224 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 36, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 84, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 84, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 84, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 84, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 84, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 108, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1284, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 136, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret ptr %224
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
attributes #5 = { 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 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

@__const.load_mats.mats0_Sml = external hidden unnamed_addr constant [34 x i32], align 16
@__const.load_mats.mats0_Lrg = external hidden unnamed_addr constant <{ [34 x i32], [287 x i32] }>, align 16
@__const.load_mats.mats1 = external hidden unnamed_addr constant [5 x i32], align 16
@__const.load_mats.mats2 = external hidden unnamed_addr constant [4 x i32], align 16
@__const.load_mats.mats3 = external hidden unnamed_addr constant [4 x i32], align 16
@__const.load_mats.mats4 = external hidden unnamed_addr constant [27 x i32], align 16
@__const.load_mats.mats5 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats6 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats7 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats8 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats9 = external hidden unnamed_addr constant [21 x i32], align 16
@__const.load_mats.mats10 = external hidden unnamed_addr constant [9 x i32], align 16
@__const.load_mats.mats11 = external hidden unnamed_addr constant [9 x i32], align 16

; 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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind uwtable
define dso_local noalias noundef ptr @load_mats(ptr nocapture noundef readonly %0, i64 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
vector.ph:
  %3 = alloca [321 x i32], align 16
  store i32 0, ptr %2, align 4, !tbaa !5
  %4 = load i32, ptr %0, align 4, !tbaa !5
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %4, i32 0)
  store i32 %spec.store.select, ptr %2, align 4
  %spec.select = tail call i32 @llvm.smax.i32(i32 %4, i32 0)
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, %spec.select
  %spec.store.select60 = select i1 %7, i32 %6, i32 %spec.store.select
  store i32 %spec.store.select60, ptr %2, align 4
  %spec.select61 = tail call i32 @llvm.smax.i32(i32 %6, i32 %spec.select)
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, %spec.select61
  %spec.store.select62 = select i1 %10, i32 %9, i32 %spec.store.select60
  store i32 %spec.store.select62, ptr %2, align 4
  %spec.select63 = tail call i32 @llvm.smax.i32(i32 %9, i32 %spec.select61)
  %11 = getelementptr inbounds i8, ptr %0, i64 12
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, %spec.select63
  %spec.store.select64 = select i1 %13, i32 %12, i32 %spec.store.select62
  store i32 %spec.store.select64, ptr %2, align 4
  %spec.select65 = tail call i32 @llvm.smax.i32(i32 %12, i32 %spec.select63)
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = icmp sgt i32 %15, %spec.select65
  %spec.store.select66 = select i1 %16, i32 %15, i32 %spec.store.select64
  store i32 %spec.store.select66, ptr %2, align 4
  %spec.select67 = tail call i32 @llvm.smax.i32(i32 %15, i32 %spec.select65)
  %17 = getelementptr inbounds i8, ptr %0, i64 20
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = icmp sgt i32 %18, %spec.select67
  %spec.store.select68 = select i1 %19, i32 %18, i32 %spec.store.select66
  store i32 %spec.store.select68, ptr %2, align 4
  %spec.select69 = tail call i32 @llvm.smax.i32(i32 %18, i32 %spec.select67)
  %20 = getelementptr inbounds i8, ptr %0, i64 24
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = icmp sgt i32 %21, %spec.select69
  %spec.store.select70 = select i1 %22, i32 %21, i32 %spec.store.select68
  store i32 %spec.store.select70, ptr %2, align 4
  %spec.select71 = tail call i32 @llvm.smax.i32(i32 %21, i32 %spec.select69)
  %23 = getelementptr inbounds i8, ptr %0, i64 28
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, %spec.select71
  %spec.store.select72 = select i1 %25, i32 %24, i32 %spec.store.select70
  store i32 %spec.store.select72, ptr %2, align 4
  %spec.select73 = tail call i32 @llvm.smax.i32(i32 %24, i32 %spec.select71)
  %26 = getelementptr inbounds i8, ptr %0, i64 32
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, %spec.select73
  %spec.store.select74 = select i1 %28, i32 %27, i32 %spec.store.select72
  store i32 %spec.store.select74, ptr %2, align 4
  %spec.select75 = tail call i32 @llvm.smax.i32(i32 %27, i32 %spec.select73)
  %29 = getelementptr inbounds i8, ptr %0, i64 36
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = icmp sgt i32 %30, %spec.select75
  %spec.store.select76 = select i1 %31, i32 %30, i32 %spec.store.select74
  store i32 %spec.store.select76, ptr %2, align 4
  %spec.select77 = tail call i32 @llvm.smax.i32(i32 %30, i32 %spec.select75)
  %32 = getelementptr inbounds i8, ptr %0, i64 40
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, %spec.select77
  %spec.store.select78 = select i1 %34, i32 %33, i32 %spec.store.select76
  store i32 %spec.store.select78, ptr %2, align 4
  %spec.select79 = tail call i32 @llvm.smax.i32(i32 %33, i32 %spec.select77)
  %35 = getelementptr inbounds i8, ptr %0, i64 44
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = icmp sgt i32 %36, %spec.select79
  %spec.store.select80 = select i1 %37, i32 %36, i32 %spec.store.select78
  store i32 %spec.store.select80, ptr %2, align 4
  %spec.select81 = tail call i32 @llvm.smax.i32(i32 %36, i32 %spec.select79)
  %38 = mul nsw i32 %spec.select81, 12
  %39 = zext nneg i32 %38 to i64
  %40 = shl nuw nsw i64 %39, 2
  %41 = tail call noalias ptr @malloc(i64 noundef %40) #5
  call void @llvm.lifetime.start.p0(i64 1284, ptr nonnull %3)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(1284) %3, ptr noundef nonnull align 16 dereferenceable(1284) @__const.load_mats.mats0_Lrg, i64 1284, i1 false)
  %.136.sroa_idx = getelementptr inbounds i8, ptr %3, i64 136
  store <4 x i32> <i32 68, i32 69, i32 70, i32 71>, ptr %.136.sroa_idx, align 8, !tbaa !5
  %.152.sroa_idx = getelementptr inbounds i8, ptr %3, i64 152
  store <4 x i32> <i32 72, i32 73, i32 74, i32 75>, ptr %.152.sroa_idx, align 8, !tbaa !5
  %.168.sroa_idx = getelementptr inbounds i8, ptr %3, i64 168
  store <4 x i32> <i32 76, i32 77, i32 78, i32 79>, ptr %.168.sroa_idx, align 8, !tbaa !5
  %.184.sroa_idx = getelementptr inbounds i8, ptr %3, i64 184
  store <4 x i32> <i32 80, i32 81, i32 82, i32 83>, ptr %.184.sroa_idx, align 8, !tbaa !5
  %.200.sroa_idx = getelementptr inbounds i8, ptr %3, i64 200
  store <4 x i32> <i32 84, i32 85, i32 86, i32 87>, ptr %.200.sroa_idx, align 8, !tbaa !5
  %.216.sroa_idx = getelementptr inbounds i8, ptr %3, i64 216
  store <4 x i32> <i32 88, i32 89, i32 90, i32 91>, ptr %.216.sroa_idx, align 8, !tbaa !5
  %.232.sroa_idx = getelementptr inbounds i8, ptr %3, i64 232
  store <4 x i32> <i32 92, i32 93, i32 94, i32 95>, ptr %.232.sroa_idx, align 8, !tbaa !5
  %.248.sroa_idx = getelementptr inbounds i8, ptr %3, i64 248
  store <4 x i32> <i32 96, i32 97, i32 98, i32 99>, ptr %.248.sroa_idx, align 8, !tbaa !5
  %.264.sroa_idx = getelementptr inbounds i8, ptr %3, i64 264
  store <4 x i32> <i32 100, i32 101, i32 102, i32 103>, ptr %.264.sroa_idx, align 8, !tbaa !5
  %.280.sroa_idx = getelementptr inbounds i8, ptr %3, i64 280
  store <4 x i32> <i32 104, i32 105, i32 106, i32 107>, ptr %.280.sroa_idx, align 8, !tbaa !5
  %.296.sroa_idx = getelementptr inbounds i8, ptr %3, i64 296
  store <4 x i32> <i32 108, i32 109, i32 110, i32 111>, ptr %.296.sroa_idx, align 8, !tbaa !5
  %.312.sroa_idx = getelementptr inbounds i8, ptr %3, i64 312
  store <4 x i32> <i32 112, i32 113, i32 114, i32 115>, ptr %.312.sroa_idx, align 8, !tbaa !5
  %.328.sroa_idx = getelementptr inbounds i8, ptr %3, i64 328
  store <4 x i32> <i32 116, i32 117, i32 118, i32 119>, ptr %.328.sroa_idx, align 8, !tbaa !5
  %.344.sroa_idx = getelementptr inbounds i8, ptr %3, i64 344
  store <4 x i32> <i32 120, i32 121, i32 122, i32 123>, ptr %.344.sroa_idx, align 8, !tbaa !5
  %.360.sroa_idx = getelementptr inbounds i8, ptr %3, i64 360
  store <4 x i32> <i32 124, i32 125, i32 126, i32 127>, ptr %.360.sroa_idx, align 8, !tbaa !5
  %.376.sroa_idx = getelementptr inbounds i8, ptr %3, i64 376
  store <4 x i32> <i32 128, i32 129, i32 130, i32 131>, ptr %.376.sroa_idx, align 8, !tbaa !5
  %.392.sroa_idx = getelementptr inbounds i8, ptr %3, i64 392
  store <4 x i32> <i32 132, i32 133, i32 134, i32 135>, ptr %.392.sroa_idx, align 8, !tbaa !5
  %.408.sroa_idx = getelementptr inbounds i8, ptr %3, i64 408
  store <4 x i32> <i32 136, i32 137, i32 138, i32 139>, ptr %.408.sroa_idx, align 8, !tbaa !5
  %.424.sroa_idx = getelementptr inbounds i8, ptr %3, i64 424
  store <4 x i32> <i32 140, i32 141, i32 142, i32 143>, ptr %.424.sroa_idx, align 8, !tbaa !5
  %.440.sroa_idx = getelementptr inbounds i8, ptr %3, i64 440
  store <4 x i32> <i32 144, i32 145, i32 146, i32 147>, ptr %.440.sroa_idx, align 8, !tbaa !5
  %.456.sroa_idx = getelementptr inbounds i8, ptr %3, i64 456
  store <4 x i32> <i32 148, i32 149, i32 150, i32 151>, ptr %.456.sroa_idx, align 8, !tbaa !5
  %.472.sroa_idx = getelementptr inbounds i8, ptr %3, i64 472
  store <4 x i32> <i32 152, i32 153, i32 154, i32 155>, ptr %.472.sroa_idx, align 8, !tbaa !5
  %.488.sroa_idx = getelementptr inbounds i8, ptr %3, i64 488
  store <4 x i32> <i32 156, i32 157, i32 158, i32 159>, ptr %.488.sroa_idx, align 8, !tbaa !5
  %.504.sroa_idx = getelementptr inbounds i8, ptr %3, i64 504
  store <4 x i32> <i32 160, i32 161, i32 162, i32 163>, ptr %.504.sroa_idx, align 8, !tbaa !5
  %.520.sroa_idx = getelementptr inbounds i8, ptr %3, i64 520
  store <4 x i32> <i32 164, i32 165, i32 166, i32 167>, ptr %.520.sroa_idx, align 8, !tbaa !5
  %.536.sroa_idx = getelementptr inbounds i8, ptr %3, i64 536
  store <4 x i32> <i32 168, i32 169, i32 170, i32 171>, ptr %.536.sroa_idx, align 8, !tbaa !5
  %.552.sroa_idx = getelementptr inbounds i8, ptr %3, i64 552
  store <4 x i32> <i32 172, i32 173, i32 174, i32 175>, ptr %.552.sroa_idx, align 8, !tbaa !5
  %.568.sroa_idx = getelementptr inbounds i8, ptr %3, i64 568
  store <4 x i32> <i32 176, i32 177, i32 178, i32 179>, ptr %.568.sroa_idx, align 8, !tbaa !5
  %.584.sroa_idx = getelementptr inbounds i8, ptr %3, i64 584
  store <4 x i32> <i32 180, i32 181, i32 182, i32 183>, ptr %.584.sroa_idx, align 8, !tbaa !5
  %.600.sroa_idx = getelementptr inbounds i8, ptr %3, i64 600
  store <4 x i32> <i32 184, i32 185, i32 186, i32 187>, ptr %.600.sroa_idx, align 8, !tbaa !5
  %.616.sroa_idx = getelementptr inbounds i8, ptr %3, i64 616
  store <4 x i32> <i32 188, i32 189, i32 190, i32 191>, ptr %.616.sroa_idx, align 8, !tbaa !5
  %.632.sroa_idx = getelementptr inbounds i8, ptr %3, i64 632
  store <4 x i32> <i32 192, i32 193, i32 194, i32 195>, ptr %.632.sroa_idx, align 8, !tbaa !5
  %.648.sroa_idx = getelementptr inbounds i8, ptr %3, i64 648
  store <4 x i32> <i32 196, i32 197, i32 198, i32 199>, ptr %.648.sroa_idx, align 8, !tbaa !5
  %.664.sroa_idx = getelementptr inbounds i8, ptr %3, i64 664
  store <4 x i32> <i32 200, i32 201, i32 202, i32 203>, ptr %.664.sroa_idx, align 8, !tbaa !5
  %.680.sroa_idx = getelementptr inbounds i8, ptr %3, i64 680
  store <4 x i32> <i32 204, i32 205, i32 206, i32 207>, ptr %.680.sroa_idx, align 8, !tbaa !5
  %.696.sroa_idx = getelementptr inbounds i8, ptr %3, i64 696
  store <4 x i32> <i32 208, i32 209, i32 210, i32 211>, ptr %.696.sroa_idx, align 8, !tbaa !5
  %.712.sroa_idx = getelementptr inbounds i8, ptr %3, i64 712
  store <4 x i32> <i32 212, i32 213, i32 214, i32 215>, ptr %.712.sroa_idx, align 8, !tbaa !5
  %.728.sroa_idx = getelementptr inbounds i8, ptr %3, i64 728
  store <4 x i32> <i32 216, i32 217, i32 218, i32 219>, ptr %.728.sroa_idx, align 8, !tbaa !5
  %.744.sroa_idx = getelementptr inbounds i8, ptr %3, i64 744
  store <4 x i32> <i32 220, i32 221, i32 222, i32 223>, ptr %.744.sroa_idx, align 8, !tbaa !5
  %.760.sroa_idx = getelementptr inbounds i8, ptr %3, i64 760
  store <4 x i32> <i32 224, i32 225, i32 226, i32 227>, ptr %.760.sroa_idx, align 8, !tbaa !5
  %.776.sroa_idx = getelementptr inbounds i8, ptr %3, i64 776
  store <4 x i32> <i32 228, i32 229, i32 230, i32 231>, ptr %.776.sroa_idx, align 8, !tbaa !5
  %.792.sroa_idx = getelementptr inbounds i8, ptr %3, i64 792
  store <4 x i32> <i32 232, i32 233, i32 234, i32 235>, ptr %.792.sroa_idx, align 8, !tbaa !5
  %.808.sroa_idx = getelementptr inbounds i8, ptr %3, i64 808
  store <4 x i32> <i32 236, i32 237, i32 238, i32 239>, ptr %.808.sroa_idx, align 8, !tbaa !5
  %.824.sroa_idx = getelementptr inbounds i8, ptr %3, i64 824
  store <4 x i32> <i32 240, i32 241, i32 242, i32 243>, ptr %.824.sroa_idx, align 8, !tbaa !5
  %.840.sroa_idx = getelementptr inbounds i8, ptr %3, i64 840
  store <4 x i32> <i32 244, i32 245, i32 246, i32 247>, ptr %.840.sroa_idx, align 8, !tbaa !5
  %.856.sroa_idx = getelementptr inbounds i8, ptr %3, i64 856
  store <4 x i32> <i32 248, i32 249, i32 250, i32 251>, ptr %.856.sroa_idx, align 8, !tbaa !5
  %.872.sroa_idx = getelementptr inbounds i8, ptr %3, i64 872
  store <4 x i32> <i32 252, i32 253, i32 254, i32 255>, ptr %.872.sroa_idx, align 8, !tbaa !5
  %.888.sroa_idx = getelementptr inbounds i8, ptr %3, i64 888
  store <4 x i32> <i32 256, i32 257, i32 258, i32 259>, ptr %.888.sroa_idx, align 8, !tbaa !5
  %.904.sroa_idx = getelementptr inbounds i8, ptr %3, i64 904
  store <4 x i32> <i32 260, i32 261, i32 262, i32 263>, ptr %.904.sroa_idx, align 8, !tbaa !5
  %.920.sroa_idx = getelementptr inbounds i8, ptr %3, i64 920
  store <4 x i32> <i32 264, i32 265, i32 266, i32 267>, ptr %.920.sroa_idx, align 8, !tbaa !5
  %.936.sroa_idx = getelementptr inbounds i8, ptr %3, i64 936
  store <4 x i32> <i32 268, i32 269, i32 270, i32 271>, ptr %.936.sroa_idx, align 8, !tbaa !5
  %.952.sroa_idx = getelementptr inbounds i8, ptr %3, i64 952
  store <4 x i32> <i32 272, i32 273, i32 274, i32 275>, ptr %.952.sroa_idx, align 8, !tbaa !5
  %.968.sroa_idx = getelementptr inbounds i8, ptr %3, i64 968
  store <4 x i32> <i32 276, i32 277, i32 278, i32 279>, ptr %.968.sroa_idx, align 8, !tbaa !5
  %.984.sroa_idx = getelementptr inbounds i8, ptr %3, i64 984
  store <4 x i32> <i32 280, i32 281, i32 282, i32 283>, ptr %.984.sroa_idx, align 8, !tbaa !5
  %.1000.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1000
  store <4 x i32> <i32 284, i32 285, i32 286, i32 287>, ptr %.1000.sroa_idx, align 8, !tbaa !5
  %.1016.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1016
  store <4 x i32> <i32 288, i32 289, i32 290, i32 291>, ptr %.1016.sroa_idx, align 8, !tbaa !5
  %.1032.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1032
  store <4 x i32> <i32 292, i32 293, i32 294, i32 295>, ptr %.1032.sroa_idx, align 8, !tbaa !5
  %.1048.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1048
  store <4 x i32> <i32 296, i32 297, i32 298, i32 299>, ptr %.1048.sroa_idx, align 8, !tbaa !5
  %.1064.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1064
  store <4 x i32> <i32 300, i32 301, i32 302, i32 303>, ptr %.1064.sroa_idx, align 8, !tbaa !5
  %.1080.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1080
  store <4 x i32> <i32 304, i32 305, i32 306, i32 307>, ptr %.1080.sroa_idx, align 8, !tbaa !5
  %.1096.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1096
  store <4 x i32> <i32 308, i32 309, i32 310, i32 311>, ptr %.1096.sroa_idx, align 8, !tbaa !5
  %.1112.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1112
  store <4 x i32> <i32 312, i32 313, i32 314, i32 315>, ptr %.1112.sroa_idx, align 8, !tbaa !5
  %.1128.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1128
  store <4 x i32> <i32 316, i32 317, i32 318, i32 319>, ptr %.1128.sroa_idx, align 8, !tbaa !5
  %.1144.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1144
  store <4 x i32> <i32 320, i32 321, i32 322, i32 323>, ptr %.1144.sroa_idx, align 8, !tbaa !5
  %.1160.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1160
  store <4 x i32> <i32 324, i32 325, i32 326, i32 327>, ptr %.1160.sroa_idx, align 8, !tbaa !5
  %.1176.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1176
  store <4 x i32> <i32 328, i32 329, i32 330, i32 331>, ptr %.1176.sroa_idx, align 8, !tbaa !5
  %.1192.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1192
  store <4 x i32> <i32 332, i32 333, i32 334, i32 335>, ptr %.1192.sroa_idx, align 8, !tbaa !5
  %.1208.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1208
  store <4 x i32> <i32 336, i32 337, i32 338, i32 339>, ptr %.1208.sroa_idx, align 8, !tbaa !5
  %.1224.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1224
  store <4 x i32> <i32 340, i32 341, i32 342, i32 343>, ptr %.1224.sroa_idx, align 8, !tbaa !5
  %.1240.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1240
  store <4 x i32> <i32 344, i32 345, i32 346, i32 347>, ptr %.1240.sroa_idx, align 8, !tbaa !5
  %.1256.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1256
  store i32 348, ptr %.1256.sroa_idx, align 8, !tbaa !5
  %.1260.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1260
  store i32 349, ptr %.1260.sroa_idx, align 4, !tbaa !5
  %.1264.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1264
  store i32 350, ptr %.1264.sroa_idx, align 16, !tbaa !5
  %.1268.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1268
  store i32 351, ptr %.1268.sroa_idx, align 4, !tbaa !5
  %.1272.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1272
  store i32 352, ptr %.1272.sroa_idx, align 8, !tbaa !5
  %.1276.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1276
  store i32 353, ptr %.1276.sroa_idx, align 4, !tbaa !5
  %.1280.sroa_idx = getelementptr inbounds i8, ptr %3, i64 1280
  store i32 354, ptr %.1280.sroa_idx, align 16, !tbaa !5
  %42 = icmp eq i64 %1, 68
  %43 = load i32, ptr %0, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = shl nsw i64 %44, 2
  br i1 %42, label %46, label %47

46:                                               ; preds = %vector.ph
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr nonnull align 16 @__const.load_mats.mats0_Sml, i64 %45, i1 false)
  br label %48

47:                                               ; preds = %vector.ph
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr nonnull align 16 %3, i64 %45, i1 false)
  br label %48

48:                                               ; preds = %47, %46
  %49 = sext i32 %spec.select81 to i64
  %50 = getelementptr inbounds i32, ptr %41, i64 %49
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = shl nsw i64 %52, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr nonnull align 16 @__const.load_mats.mats1, i64 %53, i1 false)
  %54 = shl nsw i32 %spec.select81, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %41, i64 %55
  %57 = load i32, ptr %8, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = shl nsw i64 %58, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr nonnull align 16 @__const.load_mats.mats2, i64 %59, i1 false)
  %60 = mul nsw i32 %spec.select81, 3
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %41, i64 %61
  %63 = load i32, ptr %11, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = shl nsw i64 %64, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %62, ptr nonnull align 16 @__const.load_mats.mats3, i64 %65, i1 false)
  %66 = shl nsw i32 %spec.select81, 2
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i32, ptr %41, i64 %67
  %69 = load i32, ptr %14, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = shl nsw i64 %70, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr nonnull align 16 @__const.load_mats.mats4, i64 %71, i1 false)
  %72 = mul nsw i32 %spec.select81, 5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %41, i64 %73
  %75 = load i32, ptr %17, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = shl nsw i64 %76, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %74, ptr nonnull align 16 @__const.load_mats.mats5, i64 %77, i1 false)
  %78 = mul nsw i32 %spec.select81, 6
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr %41, i64 %79
  %81 = load i32, ptr %20, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = shl nsw i64 %82, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %80, ptr nonnull align 16 @__const.load_mats.mats6, i64 %83, i1 false)
  %84 = mul nsw i32 %spec.select81, 7
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr %41, i64 %85
  %87 = load i32, ptr %23, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = shl nsw i64 %88, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %86, ptr nonnull align 16 @__const.load_mats.mats7, i64 %89, i1 false)
  %90 = shl nsw i32 %spec.select81, 3
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %41, i64 %91
  %93 = load i32, ptr %26, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = shl nsw i64 %94, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr nonnull align 16 @__const.load_mats.mats8, i64 %95, i1 false)
  %96 = mul nsw i32 %spec.select81, 9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %41, i64 %97
  %99 = load i32, ptr %29, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = shl nsw i64 %100, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %98, ptr nonnull align 16 @__const.load_mats.mats9, i64 %101, i1 false)
  %102 = mul nsw i32 %spec.select81, 10
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %41, i64 %103
  %105 = load i32, ptr %32, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = shl nsw i64 %106, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr nonnull align 16 @__const.load_mats.mats10, i64 %107, i1 false)
  %108 = mul nsw i32 %spec.select81, 11
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %41, i64 %109
  %111 = load i32, ptr %35, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = shl nsw i64 %112, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %110, ptr nonnull align 16 @__const.load_mats.mats11, i64 %113, i1 false)
  call void @llvm.lifetime.end.p0(i64 1284, ptr nonnull %3)
  ret ptr %41
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nofree 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass