; LLVM IR from tfhe/spqlios-arithmetic :: spqlios/q120 (q120_arithmetic_ref)

; 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._q120_mat1col_product_bbb_precomp = type { i64, [4 x i64], [4 x i64], [4 x i64], [4 x i64], [4 x i64], [4 x i64], [4 x i64], double }

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@__const.vec_mat1col_product_bbb_precomp.qs = external hidden unnamed_addr constant [4 x i64], align 16
@__PRETTY_FUNCTION__.vec_mat1col_product_bbb_precomp = external hidden unnamed_addr constant [73 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @comp_bit_size_red(i64 noundef, ptr noundef) #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: nounwind
declare double @log2(double noundef) #3

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

; Function Attrs: nounwind uwtable
declare dso_local double @comp_bit_size_sum(i64 noundef, ptr noundef) #0

; 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 uwtable
define dso_local void @vec_mat1col_product_bbb_precomp(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca [4 x i64], align 16
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca i64, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i64, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca [8 x double], align 16
  %21 = alloca double, align 8
  %22 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.vec_mat1col_product_bbb_precomp.qs, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %23 = call double @log2(double noundef 1.000000e+04) #5
  store double %23, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store double 1.000000e+03, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 -1, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %24 = load double, ptr %4, align 8, !tbaa !9
  %25 = fadd double 3.200000e+01, %24
  store double %25, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %26 = load double, ptr %4, align 8, !tbaa !9
  %27 = fadd double 3.200000e+01, %26
  %28 = call double @log2(double noundef 3.000000e+00) #5
  %29 = fadd double %27, %28
  store double %29, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %30 = load double, ptr %4, align 8, !tbaa !9
  %31 = fadd double 3.200000e+01, %30
  %32 = call double @log2(double noundef 3.000000e+00) #5
  %33 = fadd double %31, %32
  store double %33, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %34 = load double, ptr %4, align 8, !tbaa !9
  %35 = fadd double 3.200000e+01, %34
  store double %35, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 16, ptr %11, align 8, !tbaa !11
  br label %36

36:                                               ; preds = %117, %1
  %37 = load i64, ptr %11, align 8, !tbaa !11
  %38 = icmp ult i64 %37, 32
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %120

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %41 = load i64, ptr %11, align 8, !tbaa !11
  %42 = uitofp i64 %41 to double
  store double %42, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %43 = load double, ptr %7, align 8, !tbaa !9
  %44 = load i64, ptr %11, align 8, !tbaa !11
  %45 = uitofp i64 %44 to double
  %46 = fsub double %43, %45
  %47 = load i64, ptr %11, align 8, !tbaa !11
  %48 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 0
  %49 = call double @comp_bit_size_red(i64 noundef %47, ptr noundef %48)
  %50 = fadd double %46, %49
  store double %50, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %51 = load i64, ptr %11, align 8, !tbaa !11
  %52 = uitofp i64 %51 to double
  %53 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 0
  %54 = call double @comp_bit_size_red(i64 noundef 32, ptr noundef %53)
  %55 = fadd double %52, %54
  store double %55, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %56 = load double, ptr %8, align 8, !tbaa !9
  %57 = load i64, ptr %11, align 8, !tbaa !11
  %58 = uitofp i64 %57 to double
  %59 = fsub double %56, %58
  %60 = load i64, ptr %11, align 8, !tbaa !11
  %61 = add i64 32, %60
  %62 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 0
  %63 = call double @comp_bit_size_red(i64 noundef %61, ptr noundef %62)
  %64 = fadd double %59, %63
  store double %64, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %65 = load i64, ptr %11, align 8, !tbaa !11
  %66 = uitofp i64 %65 to double
  %67 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 0
  %68 = call double @comp_bit_size_red(i64 noundef 64, ptr noundef %67)
  %69 = fadd double %66, %68
  store double %69, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %70 = load double, ptr %9, align 8, !tbaa !9
  %71 = load i64, ptr %11, align 8, !tbaa !11
  %72 = uitofp i64 %71 to double
  %73 = fsub double %70, %72
  %74 = load i64, ptr %11, align 8, !tbaa !11
  %75 = add i64 64, %74
  %76 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 0
  %77 = call double @comp_bit_size_red(i64 noundef %75, ptr noundef %76)
  %78 = fadd double %73, %77
  store double %78, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %79 = load i64, ptr %11, align 8, !tbaa !11
  %80 = uitofp i64 %79 to double
  %81 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 0
  %82 = call double @comp_bit_size_red(i64 noundef 96, ptr noundef %81)
  %83 = fadd double %80, %82
  store double %83, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %84 = load double, ptr %10, align 8, !tbaa !9
  %85 = load i64, ptr %11, align 8, !tbaa !11
  %86 = uitofp i64 %85 to double
  %87 = fsub double %84, %86
  %88 = load i64, ptr %11, align 8, !tbaa !11
  %89 = add i64 96, %88
  %90 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 0
  %91 = call double @comp_bit_size_red(i64 noundef %89, ptr noundef %90)
  %92 = fadd double %87, %91
  store double %92, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #5
  %93 = load double, ptr %12, align 8, !tbaa !9
  store double %93, ptr %20, align 8, !tbaa !9
  %94 = getelementptr inbounds double, ptr %20, i64 1
  %95 = load double, ptr %13, align 8, !tbaa !9
  store double %95, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds double, ptr %20, i64 2
  %97 = load double, ptr %14, align 8, !tbaa !9
  store double %97, ptr %96, align 8, !tbaa !9
  %98 = getelementptr inbounds double, ptr %20, i64 3
  %99 = load double, ptr %15, align 8, !tbaa !9
  store double %99, ptr %98, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %20, i64 4
  %101 = load double, ptr %16, align 8, !tbaa !9
  store double %101, ptr %100, align 8, !tbaa !9
  %102 = getelementptr inbounds double, ptr %20, i64 5
  %103 = load double, ptr %17, align 8, !tbaa !9
  store double %103, ptr %102, align 8, !tbaa !9
  %104 = getelementptr inbounds double, ptr %20, i64 6
  %105 = load double, ptr %18, align 8, !tbaa !9
  store double %105, ptr %104, align 8, !tbaa !9
  %106 = getelementptr inbounds double, ptr %20, i64 7
  %107 = load double, ptr %19, align 8, !tbaa !9
  store double %107, ptr %106, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %108 = getelementptr inbounds [8 x double], ptr %20, i64 0, i64 0
  %109 = call double @comp_bit_size_sum(i64 noundef 8, ptr noundef %108)
  store double %109, ptr %21, align 8, !tbaa !9
  %110 = load double, ptr %5, align 8, !tbaa !9
  %111 = load double, ptr %21, align 8, !tbaa !9
  %112 = fcmp ogt double %110, %111
  br i1 %112, label %113, label %116

113:                                              ; preds = %40
  %114 = load double, ptr %21, align 8, !tbaa !9
  store double %114, ptr %5, align 8, !tbaa !9
  %115 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %115, ptr %6, align 8, !tbaa !11
  br label %116

116:                                              ; preds = %113, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %117

117:                                              ; preds = %116
  %118 = load i64, ptr %11, align 8, !tbaa !11
  %119 = add i64 %118, 1
  store i64 %119, ptr %11, align 8, !tbaa !11
  br label %36, !llvm.loop !13

120:                                              ; preds = %39
  %121 = load double, ptr %5, align 8, !tbaa !9
  %122 = fcmp olt double %121, 6.400000e+01
  br i1 %122, label %123, label %124

123:                                              ; preds = %120
  br label %125

124:                                              ; preds = %120
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 131, ptr noundef @__PRETTY_FUNCTION__.vec_mat1col_product_bbb_precomp) #6
  unreachable

125:                                              ; preds = %123
  %126 = load i64, ptr %6, align 8, !tbaa !11
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %127, i32 0, i32 0
  store i64 %126, ptr %128, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store i64 0, ptr %22, align 8, !tbaa !11
  br label %129

129:                                              ; preds = %245, %125
  %130 = load i64, ptr %22, align 8, !tbaa !11
  %131 = icmp ult i64 %130, 4
  br i1 %131, label %133, label %132

132:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %248

133:                                              ; preds = %129
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %134, i32 0, i32 0
  %136 = load i64, ptr %135, align 8, !tbaa !15
  %137 = shl i64 1, %136
  %138 = load ptr, ptr %2, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %138, i32 0, i32 1
  %140 = load i64, ptr %22, align 8, !tbaa !11
  %141 = getelementptr inbounds [4 x i64], ptr %139, i64 0, i64 %140
  store i64 %137, ptr %141, align 8, !tbaa !11
  %142 = load i64, ptr %22, align 8, !tbaa !11
  %143 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 %142
  %144 = load i64, ptr %143, align 8, !tbaa !11
  %145 = urem i64 4294967296, %144
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %146, i32 0, i32 2
  %148 = load i64, ptr %22, align 8, !tbaa !11
  %149 = getelementptr inbounds [4 x i64], ptr %147, i64 0, i64 %148
  store i64 %145, ptr %149, align 8, !tbaa !11
  %150 = load ptr, ptr %2, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %150, i32 0, i32 2
  %152 = load i64, ptr %22, align 8, !tbaa !11
  %153 = getelementptr inbounds [4 x i64], ptr %151, i64 0, i64 %152
  %154 = load i64, ptr %153, align 8, !tbaa !11
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %155, i32 0, i32 1
  %157 = load i64, ptr %22, align 8, !tbaa !11
  %158 = getelementptr inbounds [4 x i64], ptr %156, i64 0, i64 %157
  %159 = load i64, ptr %158, align 8, !tbaa !11
  %160 = mul i64 %154, %159
  %161 = load i64, ptr %22, align 8, !tbaa !11
  %162 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 %161
  %163 = load i64, ptr %162, align 8, !tbaa !11
  %164 = urem i64 %160, %163
  %165 = load ptr, ptr %2, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %165, i32 0, i32 3
  %167 = load i64, ptr %22, align 8, !tbaa !11
  %168 = getelementptr inbounds [4 x i64], ptr %166, i64 0, i64 %167
  store i64 %164, ptr %168, align 8, !tbaa !11
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %169, i32 0, i32 2
  %171 = load i64, ptr %22, align 8, !tbaa !11
  %172 = getelementptr inbounds [4 x i64], ptr %170, i64 0, i64 %171
  %173 = load i64, ptr %172, align 8, !tbaa !11
  %174 = load ptr, ptr %2, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %174, i32 0, i32 2
  %176 = load i64, ptr %22, align 8, !tbaa !11
  %177 = getelementptr inbounds [4 x i64], ptr %175, i64 0, i64 %176
  %178 = load i64, ptr %177, align 8, !tbaa !11
  %179 = mul i64 %173, %178
  %180 = load i64, ptr %22, align 8, !tbaa !11
  %181 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 %180
  %182 = load i64, ptr %181, align 8, !tbaa !11
  %183 = urem i64 %179, %182
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %184, i32 0, i32 4
  %186 = load i64, ptr %22, align 8, !tbaa !11
  %187 = getelementptr inbounds [4 x i64], ptr %185, i64 0, i64 %186
  store i64 %183, ptr %187, align 8, !tbaa !11
  %188 = load ptr, ptr %2, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %188, i32 0, i32 4
  %190 = load i64, ptr %22, align 8, !tbaa !11
  %191 = getelementptr inbounds [4 x i64], ptr %189, i64 0, i64 %190
  %192 = load i64, ptr %191, align 8, !tbaa !11
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %193, i32 0, i32 1
  %195 = load i64, ptr %22, align 8, !tbaa !11
  %196 = getelementptr inbounds [4 x i64], ptr %194, i64 0, i64 %195
  %197 = load i64, ptr %196, align 8, !tbaa !11
  %198 = mul i64 %192, %197
  %199 = load i64, ptr %22, align 8, !tbaa !11
  %200 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 %199
  %201 = load i64, ptr %200, align 8, !tbaa !11
  %202 = urem i64 %198, %201
  %203 = load ptr, ptr %2, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %203, i32 0, i32 5
  %205 = load i64, ptr %22, align 8, !tbaa !11
  %206 = getelementptr inbounds [4 x i64], ptr %204, i64 0, i64 %205
  store i64 %202, ptr %206, align 8, !tbaa !11
  %207 = load ptr, ptr %2, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %207, i32 0, i32 4
  %209 = load i64, ptr %22, align 8, !tbaa !11
  %210 = getelementptr inbounds [4 x i64], ptr %208, i64 0, i64 %209
  %211 = load i64, ptr %210, align 8, !tbaa !11
  %212 = load ptr, ptr %2, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %212, i32 0, i32 2
  %214 = load i64, ptr %22, align 8, !tbaa !11
  %215 = getelementptr inbounds [4 x i64], ptr %213, i64 0, i64 %214
  %216 = load i64, ptr %215, align 8, !tbaa !11
  %217 = mul i64 %211, %216
  %218 = load i64, ptr %22, align 8, !tbaa !11
  %219 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 %218
  %220 = load i64, ptr %219, align 8, !tbaa !11
  %221 = urem i64 %217, %220
  %222 = load ptr, ptr %2, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %222, i32 0, i32 6
  %224 = load i64, ptr %22, align 8, !tbaa !11
  %225 = getelementptr inbounds [4 x i64], ptr %223, i64 0, i64 %224
  store i64 %221, ptr %225, align 8, !tbaa !11
  %226 = load ptr, ptr %2, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %226, i32 0, i32 6
  %228 = load i64, ptr %22, align 8, !tbaa !11
  %229 = getelementptr inbounds [4 x i64], ptr %227, i64 0, i64 %228
  %230 = load i64, ptr %229, align 8, !tbaa !11
  %231 = load ptr, ptr %2, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %231, i32 0, i32 1
  %233 = load i64, ptr %22, align 8, !tbaa !11
  %234 = getelementptr inbounds [4 x i64], ptr %232, i64 0, i64 %233
  %235 = load i64, ptr %234, align 8, !tbaa !11
  %236 = mul i64 %230, %235
  %237 = load i64, ptr %22, align 8, !tbaa !11
  %238 = getelementptr inbounds [4 x i64], ptr %3, i64 0, i64 %237
  %239 = load i64, ptr %238, align 8, !tbaa !11
  %240 = urem i64 %236, %239
  %241 = load ptr, ptr %2, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %241, i32 0, i32 7
  %243 = load i64, ptr %22, align 8, !tbaa !11
  %244 = getelementptr inbounds [4 x i64], ptr %242, i64 0, i64 %243
  store i64 %240, ptr %244, align 8, !tbaa !11
  br label %245

245:                                              ; preds = %133
  %246 = load i64, ptr %22, align 8, !tbaa !11
  %247 = add i64 %246, 1
  store i64 %247, ptr %22, align 8, !tbaa !11
  br label %129, !llvm.loop !17

248:                                              ; preds = %132
  %249 = load double, ptr %5, align 8, !tbaa !9
  %250 = load ptr, ptr %2, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct._q120_mat1col_product_bbb_precomp, ptr %250, i32 0, i32 8
  store double %249, ptr %251, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #5
  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" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 0}
!16 = !{!"_q120_mat1col_product_bbb_precomp", !12, i64 0, !7, i64 8, !7, i64 40, !7, i64 72, !7, i64 104, !7, i64 136, !7, i64 168, !7, i64 200, !10, i64 232}
!17 = distinct !{!17, !14}
!18 = !{!16, !10, i64 232}


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

@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@__const.vec_mat1col_product_bbb_precomp.qs = external hidden unnamed_addr constant [4 x i64], align 16
@__PRETTY_FUNCTION__.vec_mat1col_product_bbb_precomp = external hidden unnamed_addr constant [73 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @comp_bit_size_red(i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local double @comp_bit_size_sum(i64 noundef, ptr noundef) local_unnamed_addr #0

; 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: nounwind uwtable
define dso_local void @vec_mat1col_product_bbb_precomp(ptr nocapture noundef writeonly %0) local_unnamed_addr #0 {
  %2 = alloca [4 x i64], align 16
  %3 = alloca [8 x double], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %2, ptr noundef nonnull align 16 dereferenceable(32) @__const.vec_mat1col_product_bbb_precomp.qs, i64 32, i1 false)
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = getelementptr inbounds i8, ptr %3, i64 24
  %6 = getelementptr inbounds i8, ptr %3, i64 40
  %7 = getelementptr inbounds i8, ptr %3, i64 56
  br label %10

8:                                                ; preds = %10
  %9 = fcmp olt double %.1, 6.400000e+01
  br i1 %9, label %43, label %42

10:                                               ; preds = %1, %10
  %.08188 = phi double [ 1.000000e+03, %1 ], [ %.1, %10 ]
  %.08287 = phi i64 [ -1, %1 ], [ %.183, %10 ]
  %.08486 = phi i64 [ 16, %1 ], [ %41, %10 ]
  %11 = uitofp nneg i64 %.08486 to double
  %12 = fsub double 0x4046A4D3C25E68DC, %11
  %13 = call double @comp_bit_size_red(i64 noundef %.08486, ptr noundef nonnull %2)
  %14 = call double @comp_bit_size_red(i64 noundef 32, ptr noundef nonnull %2)
  %15 = fsub double 0x40476FB3CF7B66C7, %11
  %16 = or disjoint i64 %.08486, 32
  %17 = call double @comp_bit_size_red(i64 noundef %16, ptr noundef nonnull %2)
  %18 = call double @comp_bit_size_red(i64 noundef 64, ptr noundef nonnull %2)
  %19 = or disjoint i64 %.08486, 64
  %20 = call double @comp_bit_size_red(i64 noundef %19, ptr noundef nonnull %2)
  %21 = call double @comp_bit_size_red(i64 noundef 96, ptr noundef nonnull %2)
  %22 = or disjoint i64 %.08486, 96
  %23 = call double @comp_bit_size_red(i64 noundef %22, ptr noundef nonnull %2)
  %24 = fadd double %12, %23
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #4
  store double %11, ptr %3, align 16, !tbaa !5
  %25 = insertelement <2 x double> poison, double %12, i64 0
  %26 = insertelement <2 x double> %25, double %14, i64 1
  %27 = insertelement <2 x double> poison, double %13, i64 0
  %28 = insertelement <2 x double> %27, double %11, i64 1
  %29 = fadd <2 x double> %26, %28
  store <2 x double> %29, ptr %4, align 8, !tbaa !5
  %30 = insertelement <2 x double> poison, double %15, i64 0
  %31 = insertelement <2 x double> %30, double %18, i64 1
  %32 = insertelement <2 x double> poison, double %17, i64 0
  %33 = insertelement <2 x double> %32, double %11, i64 1
  %34 = fadd <2 x double> %31, %33
  store <2 x double> %34, ptr %5, align 8, !tbaa !5
  %35 = insertelement <2 x double> %30, double %21, i64 1
  %36 = insertelement <2 x double> poison, double %20, i64 0
  %37 = insertelement <2 x double> %36, double %11, i64 1
  %38 = fadd <2 x double> %35, %37
  store <2 x double> %38, ptr %6, align 8, !tbaa !5
  store double %24, ptr %7, align 8, !tbaa !5
  %39 = call double @comp_bit_size_sum(i64 noundef 8, ptr noundef nonnull %3)
  %40 = fcmp ogt double %.08188, %39
  %.183 = select i1 %40, i64 %.08486, i64 %.08287
  %.1 = select i1 %40, double %39, double %.08188
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #4
  %41 = add nuw nsw i64 %.08486, 1
  %exitcond.not = icmp eq i64 %41, 32
  br i1 %exitcond.not, label %8, label %10, !llvm.loop !9

42:                                               ; preds = %8
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 131, ptr noundef nonnull @__PRETTY_FUNCTION__.vec_mat1col_product_bbb_precomp) #5
  unreachable

43:                                               ; preds = %8
  store i64 %.183, ptr %0, align 8, !tbaa !11
  %44 = shl nuw i64 1, %.183
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = getelementptr inbounds i8, ptr %0, i64 40
  %47 = getelementptr inbounds i8, ptr %0, i64 72
  %48 = getelementptr inbounds i8, ptr %0, i64 104
  %49 = getelementptr inbounds i8, ptr %0, i64 136
  %50 = getelementptr inbounds i8, ptr %0, i64 168
  %51 = getelementptr inbounds i8, ptr %0, i64 200
  store i64 %44, ptr %45, align 8, !tbaa !14
  %52 = load i64, ptr %2, align 16, !tbaa !14
  %53 = urem i64 4294967296, %52
  store i64 %53, ptr %46, align 8, !tbaa !14
  %54 = shl i64 %53, %.183
  %55 = urem i64 %54, %52
  store i64 %55, ptr %47, align 8, !tbaa !14
  %56 = mul i64 %53, %53
  %57 = urem i64 %56, %52
  store i64 %57, ptr %48, align 8, !tbaa !14
  %58 = shl i64 %57, %.183
  %59 = urem i64 %58, %52
  store i64 %59, ptr %49, align 8, !tbaa !14
  %60 = mul i64 %57, %53
  %61 = urem i64 %60, %52
  store i64 %61, ptr %50, align 8, !tbaa !14
  %62 = shl i64 %61, %.183
  %63 = urem i64 %62, %52
  store i64 %63, ptr %51, align 8, !tbaa !14
  %64 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %44, ptr %64, align 8, !tbaa !14
  %65 = getelementptr inbounds i8, ptr %2, i64 8
  %66 = load i64, ptr %65, align 8, !tbaa !14
  %67 = urem i64 4294967296, %66
  %68 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %67, ptr %68, align 8, !tbaa !14
  %69 = shl i64 %67, %.183
  %70 = urem i64 %69, %66
  %71 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 %70, ptr %71, align 8, !tbaa !14
  %72 = mul i64 %67, %67
  %73 = urem i64 %72, %66
  %74 = getelementptr inbounds i8, ptr %0, i64 112
  store i64 %73, ptr %74, align 8, !tbaa !14
  %75 = shl i64 %73, %.183
  %76 = urem i64 %75, %66
  %77 = getelementptr inbounds i8, ptr %0, i64 144
  store i64 %76, ptr %77, align 8, !tbaa !14
  %78 = mul i64 %73, %67
  %79 = urem i64 %78, %66
  %80 = getelementptr inbounds i8, ptr %0, i64 176
  store i64 %79, ptr %80, align 8, !tbaa !14
  %81 = shl i64 %79, %.183
  %82 = urem i64 %81, %66
  %83 = getelementptr inbounds i8, ptr %0, i64 208
  store i64 %82, ptr %83, align 8, !tbaa !14
  %84 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %44, ptr %84, align 8, !tbaa !14
  %85 = getelementptr inbounds i8, ptr %2, i64 16
  %86 = load i64, ptr %85, align 16, !tbaa !14
  %87 = urem i64 4294967296, %86
  %88 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 %87, ptr %88, align 8, !tbaa !14
  %89 = shl i64 %87, %.183
  %90 = urem i64 %89, %86
  %91 = getelementptr inbounds i8, ptr %0, i64 88
  store i64 %90, ptr %91, align 8, !tbaa !14
  %92 = mul i64 %87, %87
  %93 = urem i64 %92, %86
  %94 = getelementptr inbounds i8, ptr %0, i64 120
  store i64 %93, ptr %94, align 8, !tbaa !14
  %95 = shl i64 %93, %.183
  %96 = urem i64 %95, %86
  %97 = getelementptr inbounds i8, ptr %0, i64 152
  store i64 %96, ptr %97, align 8, !tbaa !14
  %98 = mul i64 %93, %87
  %99 = urem i64 %98, %86
  %100 = getelementptr inbounds i8, ptr %0, i64 184
  store i64 %99, ptr %100, align 8, !tbaa !14
  %101 = shl i64 %99, %.183
  %102 = urem i64 %101, %86
  %103 = getelementptr inbounds i8, ptr %0, i64 216
  store i64 %102, ptr %103, align 8, !tbaa !14
  %104 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %44, ptr %104, align 8, !tbaa !14
  %105 = getelementptr inbounds i8, ptr %2, i64 24
  %106 = load i64, ptr %105, align 8, !tbaa !14
  %107 = urem i64 4294967296, %106
  %108 = getelementptr inbounds i8, ptr %0, i64 64
  store i64 %107, ptr %108, align 8, !tbaa !14
  %109 = shl i64 %107, %.183
  %110 = urem i64 %109, %106
  %111 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 %110, ptr %111, align 8, !tbaa !14
  %112 = mul i64 %107, %107
  %113 = urem i64 %112, %106
  %114 = getelementptr inbounds i8, ptr %0, i64 128
  store i64 %113, ptr %114, align 8, !tbaa !14
  %115 = shl i64 %113, %.183
  %116 = urem i64 %115, %106
  %117 = getelementptr inbounds i8, ptr %0, i64 160
  store i64 %116, ptr %117, align 8, !tbaa !14
  %118 = mul i64 %113, %107
  %119 = urem i64 %118, %106
  %120 = getelementptr inbounds i8, ptr %0, i64 192
  store i64 %119, ptr %120, align 8, !tbaa !14
  %121 = shl i64 %119, %.183
  %122 = urem i64 %121, %106
  %123 = getelementptr inbounds i8, ptr %0, i64 224
  store i64 %122, ptr %123, align 8, !tbaa !14
  %124 = getelementptr inbounds i8, ptr %0, i64 232
  store double %.1, ptr %124, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  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" }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !13, i64 0}
!12 = !{!"_q120_mat1col_product_bbb_precomp", !13, i64 0, !7, i64 8, !7, i64 40, !7, i64 72, !7, i64 104, !7, i64 136, !7, i64 168, !7, i64 200, !6, i64 232}
!13 = !{!"long", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !6, i64 232}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass