; LLVM IR from jgaeddert/liquid-dsp :: src/dotprod/src/dotprod_cccf.sse (dotprod_cccf_execute_sse4)

; 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.dotprod_cccf_s = type { i32, ptr, ptr }

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

declare <2 x float> @__mulsc3(float, float, float, float)

; 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 i32 @dotprod_cccf_execute_sse4(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca <4 x float>, align 16
  %10 = alloca <4 x float>, align 16
  %11 = alloca <4 x float>, align 16
  %12 = alloca <4 x float>, align 16
  %13 = alloca <4 x float>, align 16
  %14 = alloca <4 x float>, align 16
  %15 = alloca <4 x float>, align 16
  %16 = alloca <4 x float>, align 16
  %17 = alloca <4 x float>, align 16
  %18 = alloca <4 x float>, align 16
  %19 = alloca <4 x float>, align 16
  %20 = alloca <4 x float>, align 16
  %21 = alloca <4 x float>, align 16
  %22 = alloca <4 x float>, align 16
  %23 = alloca <4 x float>, align 16
  %24 = alloca <4 x float>, align 16
  %25 = alloca <4 x float>, align 16
  %26 = alloca <4 x float>, align 16
  %27 = alloca <4 x float>, align 16
  %28 = alloca <4 x float>, align 16
  %29 = alloca <4 x float>, align 16
  %30 = alloca <4 x float>, align 16
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca [4 x float], align 16
  %34 = alloca [4 x float], align 16
  %35 = alloca { float, float }, align 4
  %36 = alloca { float, float }, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %37, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !9
  %41 = mul i32 2, %40
  store i32 %41, ptr %8, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #3
  %42 = call <4 x float> @_mm_setzero_ps()
  store <4 x float> %42, ptr %29, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #3
  %43 = call <4 x float> @_mm_setzero_ps()
  store <4 x float> %43, ptr %30, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %44 = load i32, ptr %8, align 4, !tbaa !12
  %45 = lshr i32 %44, 4
  %46 = shl i32 %45, 2
  store i32 %46, ptr %31, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  store i32 0, ptr %32, align 4, !tbaa !12
  br label %47

47:                                               ; preds = %200, %3
  %48 = load i32, ptr %32, align 4, !tbaa !12
  %49 = load i32, ptr %31, align 4, !tbaa !12
  %50 = icmp ult i32 %48, %49
  br i1 %50, label %51, label %203

51:                                               ; preds = %47
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load i32, ptr %32, align 4, !tbaa !12
  %54 = mul i32 4, %53
  %55 = add i32 %54, 0
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds float, ptr %52, i64 %56
  %58 = call <4 x float> @_mm_loadu_ps(ptr noundef %57)
  store <4 x float> %58, ptr %9, align 16, !tbaa !13
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load i32, ptr %32, align 4, !tbaa !12
  %61 = mul i32 4, %60
  %62 = add i32 %61, 4
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %59, i64 %63
  %65 = call <4 x float> @_mm_loadu_ps(ptr noundef %64)
  store <4 x float> %65, ptr %10, align 16, !tbaa !13
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i32, ptr %32, align 4, !tbaa !12
  %68 = mul i32 4, %67
  %69 = add i32 %68, 8
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %66, i64 %70
  %72 = call <4 x float> @_mm_loadu_ps(ptr noundef %71)
  store <4 x float> %72, ptr %11, align 16, !tbaa !13
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = load i32, ptr %32, align 4, !tbaa !12
  %75 = mul i32 4, %74
  %76 = add i32 %75, 12
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %73, i64 %77
  %79 = call <4 x float> @_mm_loadu_ps(ptr noundef %78)
  store <4 x float> %79, ptr %12, align 16, !tbaa !13
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !14
  %83 = load i32, ptr %32, align 4, !tbaa !12
  %84 = mul i32 4, %83
  %85 = add i32 %84, 0
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds float, ptr %82, i64 %86
  %88 = call <4 x float> @_mm_load_ps(ptr noundef %87)
  store <4 x float> %88, ptr %13, align 16, !tbaa !13
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %89, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !14
  %92 = load i32, ptr %32, align 4, !tbaa !12
  %93 = mul i32 4, %92
  %94 = add i32 %93, 4
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds float, ptr %91, i64 %95
  %97 = call <4 x float> @_mm_load_ps(ptr noundef %96)
  store <4 x float> %97, ptr %14, align 16, !tbaa !13
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %98, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !14
  %101 = load i32, ptr %32, align 4, !tbaa !12
  %102 = mul i32 4, %101
  %103 = add i32 %102, 8
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds float, ptr %100, i64 %104
  %106 = call <4 x float> @_mm_load_ps(ptr noundef %105)
  store <4 x float> %106, ptr %15, align 16, !tbaa !13
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %107, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !14
  %110 = load i32, ptr %32, align 4, !tbaa !12
  %111 = mul i32 4, %110
  %112 = add i32 %111, 12
  %113 = zext i32 %112 to i64
  %114 = getelementptr inbounds float, ptr %109, i64 %113
  %115 = call <4 x float> @_mm_load_ps(ptr noundef %114)
  store <4 x float> %115, ptr %16, align 16, !tbaa !13
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !15
  %119 = load i32, ptr %32, align 4, !tbaa !12
  %120 = mul i32 4, %119
  %121 = add i32 %120, 0
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds float, ptr %118, i64 %122
  %124 = call <4 x float> @_mm_load_ps(ptr noundef %123)
  store <4 x float> %124, ptr %17, align 16, !tbaa !13
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %125, i32 0, i32 2
  %127 = load ptr, ptr %126, align 8, !tbaa !15
  %128 = load i32, ptr %32, align 4, !tbaa !12
  %129 = mul i32 4, %128
  %130 = add i32 %129, 4
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds float, ptr %127, i64 %131
  %133 = call <4 x float> @_mm_load_ps(ptr noundef %132)
  store <4 x float> %133, ptr %18, align 16, !tbaa !13
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !15
  %137 = load i32, ptr %32, align 4, !tbaa !12
  %138 = mul i32 4, %137
  %139 = add i32 %138, 8
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds float, ptr %136, i64 %140
  %142 = call <4 x float> @_mm_load_ps(ptr noundef %141)
  store <4 x float> %142, ptr %19, align 16, !tbaa !13
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %143, i32 0, i32 2
  %145 = load ptr, ptr %144, align 8, !tbaa !15
  %146 = load i32, ptr %32, align 4, !tbaa !12
  %147 = mul i32 4, %146
  %148 = add i32 %147, 12
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds float, ptr %145, i64 %149
  %151 = call <4 x float> @_mm_load_ps(ptr noundef %150)
  store <4 x float> %151, ptr %20, align 16, !tbaa !13
  %152 = load <4 x float>, ptr %9, align 16, !tbaa !13
  %153 = load <4 x float>, ptr %13, align 16, !tbaa !13
  %154 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %152, <4 x float> noundef %153)
  store <4 x float> %154, ptr %21, align 16, !tbaa !13
  %155 = load <4 x float>, ptr %10, align 16, !tbaa !13
  %156 = load <4 x float>, ptr %14, align 16, !tbaa !13
  %157 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %155, <4 x float> noundef %156)
  store <4 x float> %157, ptr %22, align 16, !tbaa !13
  %158 = load <4 x float>, ptr %11, align 16, !tbaa !13
  %159 = load <4 x float>, ptr %15, align 16, !tbaa !13
  %160 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %158, <4 x float> noundef %159)
  store <4 x float> %160, ptr %23, align 16, !tbaa !13
  %161 = load <4 x float>, ptr %12, align 16, !tbaa !13
  %162 = load <4 x float>, ptr %16, align 16, !tbaa !13
  %163 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %161, <4 x float> noundef %162)
  store <4 x float> %163, ptr %24, align 16, !tbaa !13
  %164 = load <4 x float>, ptr %9, align 16, !tbaa !13
  %165 = load <4 x float>, ptr %17, align 16, !tbaa !13
  %166 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %164, <4 x float> noundef %165)
  store <4 x float> %166, ptr %25, align 16, !tbaa !13
  %167 = load <4 x float>, ptr %10, align 16, !tbaa !13
  %168 = load <4 x float>, ptr %18, align 16, !tbaa !13
  %169 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %167, <4 x float> noundef %168)
  store <4 x float> %169, ptr %26, align 16, !tbaa !13
  %170 = load <4 x float>, ptr %11, align 16, !tbaa !13
  %171 = load <4 x float>, ptr %19, align 16, !tbaa !13
  %172 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %170, <4 x float> noundef %171)
  store <4 x float> %172, ptr %27, align 16, !tbaa !13
  %173 = load <4 x float>, ptr %12, align 16, !tbaa !13
  %174 = load <4 x float>, ptr %20, align 16, !tbaa !13
  %175 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %173, <4 x float> noundef %174)
  store <4 x float> %175, ptr %28, align 16, !tbaa !13
  %176 = load <4 x float>, ptr %29, align 16, !tbaa !13
  %177 = load <4 x float>, ptr %21, align 16, !tbaa !13
  %178 = call <4 x float> @_mm_add_ps(<4 x float> noundef %176, <4 x float> noundef %177)
  store <4 x float> %178, ptr %29, align 16, !tbaa !13
  %179 = load <4 x float>, ptr %30, align 16, !tbaa !13
  %180 = load <4 x float>, ptr %25, align 16, !tbaa !13
  %181 = call <4 x float> @_mm_add_ps(<4 x float> noundef %179, <4 x float> noundef %180)
  store <4 x float> %181, ptr %30, align 16, !tbaa !13
  %182 = load <4 x float>, ptr %29, align 16, !tbaa !13
  %183 = load <4 x float>, ptr %22, align 16, !tbaa !13
  %184 = call <4 x float> @_mm_add_ps(<4 x float> noundef %182, <4 x float> noundef %183)
  store <4 x float> %184, ptr %29, align 16, !tbaa !13
  %185 = load <4 x float>, ptr %30, align 16, !tbaa !13
  %186 = load <4 x float>, ptr %26, align 16, !tbaa !13
  %187 = call <4 x float> @_mm_add_ps(<4 x float> noundef %185, <4 x float> noundef %186)
  store <4 x float> %187, ptr %30, align 16, !tbaa !13
  %188 = load <4 x float>, ptr %29, align 16, !tbaa !13
  %189 = load <4 x float>, ptr %23, align 16, !tbaa !13
  %190 = call <4 x float> @_mm_add_ps(<4 x float> noundef %188, <4 x float> noundef %189)
  store <4 x float> %190, ptr %29, align 16, !tbaa !13
  %191 = load <4 x float>, ptr %30, align 16, !tbaa !13
  %192 = load <4 x float>, ptr %27, align 16, !tbaa !13
  %193 = call <4 x float> @_mm_add_ps(<4 x float> noundef %191, <4 x float> noundef %192)
  store <4 x float> %193, ptr %30, align 16, !tbaa !13
  %194 = load <4 x float>, ptr %29, align 16, !tbaa !13
  %195 = load <4 x float>, ptr %24, align 16, !tbaa !13
  %196 = call <4 x float> @_mm_add_ps(<4 x float> noundef %194, <4 x float> noundef %195)
  store <4 x float> %196, ptr %29, align 16, !tbaa !13
  %197 = load <4 x float>, ptr %30, align 16, !tbaa !13
  %198 = load <4 x float>, ptr %28, align 16, !tbaa !13
  %199 = call <4 x float> @_mm_add_ps(<4 x float> noundef %197, <4 x float> noundef %198)
  store <4 x float> %199, ptr %30, align 16, !tbaa !13
  br label %200

200:                                              ; preds = %51
  %201 = load i32, ptr %32, align 4, !tbaa !12
  %202 = add i32 %201, 4
  store i32 %202, ptr %32, align 4, !tbaa !12
  br label %47, !llvm.loop !16

203:                                              ; preds = %47
  %204 = load <4 x float>, ptr %30, align 16, !tbaa !13
  %205 = load <4 x float>, ptr %30, align 16, !tbaa !13
  %206 = shufflevector <4 x float> %204, <4 x float> %205, <4 x i32> <i32 1, i32 0, i32 7, i32 6>
  store <4 x float> %206, ptr %30, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #3
  %207 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 0
  %208 = load <4 x float>, ptr %29, align 16, !tbaa !13
  call void @_mm_store_ps(ptr noundef %207, <4 x float> noundef %208)
  %209 = getelementptr inbounds [4 x float], ptr %34, i64 0, i64 0
  %210 = load <4 x float>, ptr %30, align 16, !tbaa !13
  call void @_mm_store_ps(ptr noundef %209, <4 x float> noundef %210)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  %211 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 0
  %212 = load float, ptr %211, align 16, !tbaa !18
  %213 = getelementptr inbounds [4 x float], ptr %34, i64 0, i64 0
  %214 = load float, ptr %213, align 16, !tbaa !18
  %215 = fsub float %212, %214
  %216 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 2
  %217 = load float, ptr %216, align 8, !tbaa !18
  %218 = getelementptr inbounds [4 x float], ptr %34, i64 0, i64 2
  %219 = load float, ptr %218, align 8, !tbaa !18
  %220 = fsub float %217, %219
  %221 = fadd float %215, %220
  %222 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 1
  %223 = load float, ptr %222, align 4, !tbaa !18
  %224 = getelementptr inbounds [4 x float], ptr %34, i64 0, i64 1
  %225 = load float, ptr %224, align 4, !tbaa !18
  %226 = fadd float %223, %225
  %227 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 3
  %228 = load float, ptr %227, align 4, !tbaa !18
  %229 = getelementptr inbounds [4 x float], ptr %34, i64 0, i64 3
  %230 = load float, ptr %229, align 4, !tbaa !18
  %231 = fadd float %228, %230
  %232 = fadd float %226, %231
  %233 = fmul float %232, 0.000000e+00
  %234 = fmul float %232, 1.000000e+00
  %235 = fadd float %221, %233
  %236 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 0
  %237 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 1
  store float %235, ptr %236, align 4
  store float %234, ptr %237, align 4
  %238 = load i32, ptr %31, align 4, !tbaa !12
  %239 = mul i32 2, %238
  store i32 %239, ptr %32, align 4, !tbaa !12
  br label %240

240:                                              ; preds = %300, %203
  %241 = load i32, ptr %32, align 4, !tbaa !12
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %242, i32 0, i32 0
  %244 = load i32, ptr %243, align 8, !tbaa !9
  %245 = icmp ult i32 %241, %244
  br i1 %245, label %246, label %303

246:                                              ; preds = %240
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = load i32, ptr %32, align 4, !tbaa !12
  %249 = zext i32 %248 to i64
  %250 = getelementptr inbounds { float, float }, ptr %247, i64 %249
  %251 = getelementptr inbounds { float, float }, ptr %250, i32 0, i32 0
  %252 = load float, ptr %251, align 4
  %253 = getelementptr inbounds { float, float }, ptr %250, i32 0, i32 1
  %254 = load float, ptr %253, align 4
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %255, i32 0, i32 1
  %257 = load ptr, ptr %256, align 8, !tbaa !14
  %258 = load i32, ptr %32, align 4, !tbaa !12
  %259 = mul i32 2, %258
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds float, ptr %257, i64 %260
  %262 = load float, ptr %261, align 4, !tbaa !18
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.dotprod_cccf_s, ptr %263, i32 0, i32 2
  %265 = load ptr, ptr %264, align 8, !tbaa !15
  %266 = load i32, ptr %32, align 4, !tbaa !12
  %267 = mul i32 2, %266
  %268 = zext i32 %267 to i64
  %269 = getelementptr inbounds float, ptr %265, i64 %268
  %270 = load float, ptr %269, align 4, !tbaa !18
  %271 = fmul float %270, 0.000000e+00
  %272 = fmul float %270, 1.000000e+00
  %273 = fadd float %262, %271
  %274 = fmul float %252, %273
  %275 = fmul float %254, %272
  %276 = fmul float %252, %272
  %277 = fmul float %254, %273
  %278 = fsub float %274, %275
  %279 = fadd float %276, %277
  %280 = fcmp uno float %278, %278
  br i1 %280, label %281, label %289, !prof !20

281:                                              ; preds = %246
  %282 = fcmp uno float %279, %279
  br i1 %282, label %283, label %289, !prof !20

283:                                              ; preds = %281
  %284 = call <2 x float> @__mulsc3(float noundef %252, float noundef %254, float noundef %273, float noundef %272) #3
  store <2 x float> %284, ptr %36, align 4
  %285 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 0
  %286 = load float, ptr %285, align 4
  %287 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 1
  %288 = load float, ptr %287, align 4
  br label %289

289:                                              ; preds = %283, %281, %246
  %290 = phi float [ %278, %246 ], [ %278, %281 ], [ %286, %283 ]
  %291 = phi float [ %279, %246 ], [ %279, %281 ], [ %288, %283 ]
  %292 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 0
  %293 = load float, ptr %292, align 4
  %294 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 1
  %295 = load float, ptr %294, align 4
  %296 = fadd float %293, %290
  %297 = fadd float %295, %291
  %298 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 0
  %299 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 1
  store float %296, ptr %298, align 4
  store float %297, ptr %299, align 4
  br label %300

300:                                              ; preds = %289
  %301 = load i32, ptr %32, align 4, !tbaa !12
  %302 = add i32 %301, 1
  store i32 %302, ptr %32, align 4, !tbaa !12
  br label %240, !llvm.loop !21

303:                                              ; preds = %240
  %304 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 0
  %305 = load float, ptr %304, align 4
  %306 = getelementptr inbounds { float, float }, ptr %35, i32 0, i32 1
  %307 = load float, ptr %306, align 4
  %308 = load ptr, ptr %6, align 8, !tbaa !5
  %309 = getelementptr inbounds { float, float }, ptr %308, i32 0, i32 0
  %310 = getelementptr inbounds { float, float }, ptr %308, i32 0, i32 1
  store float %305, ptr %309, align 4
  store float %307, ptr %310, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret i32 0
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_loadu_ps(ptr noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_load_ps(ptr noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_mul_ps(<4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @_mm_store_ps(ptr noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_setzero_ps() #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_add_ps(<4 x float> noundef, <4 x float> noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"dotprod_cccf_s", !11, i64 0, !6, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !6, i64 8}
!15 = !{!10, !6, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = !{!"branch_weights", i32 1, i32 1048575}
!21 = distinct !{!21, !17}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

declare <2 x float> @__mulsc3(float, float, float, float) local_unnamed_addr

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @dotprod_cccf_execute_sse4(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = alloca [4 x float], align 16
  %5 = alloca [4 x float], align 16
  %6 = load i32, ptr %0, align 8, !tbaa !5
  %7 = tail call <4 x float> @_mm_setzero_ps()
  %8 = tail call <4 x float> @_mm_setzero_ps()
  %9 = lshr i32 %6, 1
  %10 = and i32 %9, 1073741820
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = zext nneg i32 %10 to i64
  br label %14

14:                                               ; preds = %.lr.ph, %14
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %14 ]
  %.084 = phi <4 x float> [ %7, %.lr.ph ], [ %65, %14 ]
  %.08082 = phi <4 x float> [ %8, %.lr.ph ], [ %66, %14 ]
  %15 = shl nuw i64 %indvars.iv, 2
  %16 = getelementptr inbounds float, ptr %1, i64 %15
  %17 = tail call <4 x float> @_mm_loadu_ps(ptr noundef %16)
  %18 = or disjoint i64 %15, 4
  %19 = getelementptr inbounds float, ptr %1, i64 %18
  %20 = tail call <4 x float> @_mm_loadu_ps(ptr noundef nonnull %19)
  %21 = or disjoint i64 %15, 8
  %22 = getelementptr inbounds float, ptr %1, i64 %21
  %23 = tail call <4 x float> @_mm_loadu_ps(ptr noundef nonnull %22)
  %24 = or disjoint i64 %15, 12
  %25 = getelementptr inbounds float, ptr %1, i64 %24
  %26 = tail call <4 x float> @_mm_loadu_ps(ptr noundef nonnull %25)
  %27 = load ptr, ptr %11, align 8, !tbaa !11
  %28 = getelementptr inbounds float, ptr %27, i64 %15
  %29 = tail call <4 x float> @_mm_load_ps(ptr noundef %28)
  %30 = load ptr, ptr %11, align 8, !tbaa !11
  %31 = getelementptr inbounds float, ptr %30, i64 %18
  %32 = tail call <4 x float> @_mm_load_ps(ptr noundef nonnull %31)
  %33 = load ptr, ptr %11, align 8, !tbaa !11
  %34 = getelementptr inbounds float, ptr %33, i64 %21
  %35 = tail call <4 x float> @_mm_load_ps(ptr noundef nonnull %34)
  %36 = load ptr, ptr %11, align 8, !tbaa !11
  %37 = getelementptr inbounds float, ptr %36, i64 %24
  %38 = tail call <4 x float> @_mm_load_ps(ptr noundef nonnull %37)
  %39 = load ptr, ptr %12, align 8, !tbaa !12
  %40 = getelementptr inbounds float, ptr %39, i64 %15
  %41 = tail call <4 x float> @_mm_load_ps(ptr noundef %40)
  %42 = load ptr, ptr %12, align 8, !tbaa !12
  %43 = getelementptr inbounds float, ptr %42, i64 %18
  %44 = tail call <4 x float> @_mm_load_ps(ptr noundef nonnull %43)
  %45 = load ptr, ptr %12, align 8, !tbaa !12
  %46 = getelementptr inbounds float, ptr %45, i64 %21
  %47 = tail call <4 x float> @_mm_load_ps(ptr noundef nonnull %46)
  %48 = load ptr, ptr %12, align 8, !tbaa !12
  %49 = getelementptr inbounds float, ptr %48, i64 %24
  %50 = tail call <4 x float> @_mm_load_ps(ptr noundef nonnull %49)
  %51 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %17, <4 x float> noundef %29)
  %52 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %20, <4 x float> noundef %32)
  %53 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %23, <4 x float> noundef %35)
  %54 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %26, <4 x float> noundef %38)
  %55 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %17, <4 x float> noundef %41)
  %56 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %20, <4 x float> noundef %44)
  %57 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %23, <4 x float> noundef %47)
  %58 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %26, <4 x float> noundef %50)
  %59 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %.084, <4 x float> noundef %51)
  %60 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %.08082, <4 x float> noundef %55)
  %61 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %59, <4 x float> noundef %52)
  %62 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %60, <4 x float> noundef %56)
  %63 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %61, <4 x float> noundef %53)
  %64 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %62, <4 x float> noundef %57)
  %65 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %63, <4 x float> noundef %54)
  %66 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %64, <4 x float> noundef %58)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 4
  %67 = icmp ult i64 %indvars.iv.next, %13
  br i1 %67, label %14, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %14, %3
  %.080.lcssa = phi <4 x float> [ %8, %3 ], [ %66, %14 ]
  %.0.lcssa = phi <4 x float> [ %7, %3 ], [ %65, %14 ]
  %68 = shufflevector <4 x float> %.080.lcssa, <4 x float> poison, <4 x i32> <i32 1, i32 0, i32 3, i32 2>
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  call void @_mm_store_ps(ptr noundef nonnull %4, <4 x float> noundef %.0.lcssa)
  call void @_mm_store_ps(ptr noundef nonnull %5, <4 x float> noundef %68)
  %69 = load float, ptr %4, align 16, !tbaa !15
  %70 = load float, ptr %5, align 16, !tbaa !15
  %71 = fsub float %69, %70
  %72 = getelementptr inbounds i8, ptr %4, i64 8
  %73 = load float, ptr %72, align 8, !tbaa !15
  %74 = getelementptr inbounds i8, ptr %5, i64 8
  %75 = load float, ptr %74, align 8, !tbaa !15
  %76 = fsub float %73, %75
  %77 = fadd float %71, %76
  %78 = getelementptr inbounds i8, ptr %4, i64 4
  %79 = load float, ptr %78, align 4, !tbaa !15
  %80 = getelementptr inbounds i8, ptr %5, i64 4
  %81 = load float, ptr %80, align 4, !tbaa !15
  %82 = fadd float %79, %81
  %83 = getelementptr inbounds i8, ptr %4, i64 12
  %84 = load float, ptr %83, align 4, !tbaa !15
  %85 = getelementptr inbounds i8, ptr %5, i64 12
  %86 = load float, ptr %85, align 4, !tbaa !15
  %87 = fadd float %84, %86
  %88 = fadd float %82, %87
  %89 = fmul float %88, 0.000000e+00
  %90 = fadd float %77, %89
  %91 = shl nuw nsw i32 %10, 1
  %92 = load i32, ptr %0, align 8, !tbaa !5
  %93 = icmp ult i32 %91, %92
  %94 = insertelement <2 x float> poison, float %90, i64 0
  %95 = insertelement <2 x float> %94, float %88, i64 1
  br i1 %93, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %._crit_edge
  %96 = getelementptr inbounds i8, ptr %0, i64 8
  %97 = getelementptr inbounds i8, ptr %0, i64 16
  %98 = and i32 %6, 2147483640
  %99 = zext nneg i32 %98 to i64
  br label %100

100:                                              ; preds = %.lr.ph90, %134
  %101 = phi i32 [ %92, %.lr.ph90 ], [ %135, %134 ]
  %indvars.iv98 = phi i64 [ %99, %.lr.ph90 ], [ %indvars.iv.next99, %134 ]
  %102 = phi <2 x float> [ %95, %.lr.ph90 ], [ %137, %134 ]
  %103 = getelementptr inbounds { float, float }, ptr %1, i64 %indvars.iv98
  %104 = load ptr, ptr %96, align 8, !tbaa !11
  %105 = shl nuw nsw i64 %indvars.iv98, 1
  %106 = and i64 %105, 4294967294
  %107 = getelementptr inbounds float, ptr %104, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !15
  %109 = load ptr, ptr %97, align 8, !tbaa !12
  %110 = getelementptr inbounds float, ptr %109, i64 %106
  %111 = load float, ptr %110, align 4, !tbaa !15
  %112 = fmul float %111, 0.000000e+00
  %113 = fadd float %108, %112
  %114 = load <2 x float>, ptr %103, align 4
  %115 = insertelement <2 x float> poison, float %111, i64 0
  %116 = shufflevector <2 x float> %115, <2 x float> poison, <2 x i32> zeroinitializer
  %117 = fmul <2 x float> %114, %116
  %118 = shufflevector <2 x float> %117, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %119 = insertelement <2 x float> poison, float %113, i64 0
  %120 = shufflevector <2 x float> %119, <2 x float> poison, <2 x i32> zeroinitializer
  %121 = fmul <2 x float> %114, %120
  %122 = fsub <2 x float> %121, %118
  %123 = fadd <2 x float> %121, %118
  %124 = shufflevector <2 x float> %122, <2 x float> %123, <2 x i32> <i32 0, i32 3>
  %125 = extractelement <2 x float> %122, i64 0
  %126 = fcmp uno float %125, 0.000000e+00
  br i1 %126, label %127, label %134, !prof !17

127:                                              ; preds = %100
  %128 = extractelement <2 x float> %123, i64 1
  %129 = fcmp uno float %128, 0.000000e+00
  br i1 %129, label %130, label %134, !prof !17

130:                                              ; preds = %127
  %131 = extractelement <2 x float> %114, i64 0
  %132 = extractelement <2 x float> %114, i64 1
  %133 = call <2 x float> @__mulsc3(float noundef %131, float noundef %132, float noundef %113, float noundef %111) #3
  %.pre = load i32, ptr %0, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %130, %127, %100
  %135 = phi i32 [ %101, %100 ], [ %101, %127 ], [ %.pre, %130 ]
  %136 = phi <2 x float> [ %124, %100 ], [ %124, %127 ], [ %133, %130 ]
  %137 = fadd <2 x float> %102, %136
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %138 = zext i32 %135 to i64
  %139 = icmp ult i64 %indvars.iv.next99, %138
  br i1 %139, label %100, label %._crit_edge91, !llvm.loop !18

._crit_edge91:                                    ; preds = %134, %._crit_edge
  %140 = phi <2 x float> [ %95, %._crit_edge ], [ %137, %134 ]
  store <2 x float> %140, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  ret i32 0
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_loadu_ps(ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_load_ps(ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_mul_ps(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @_mm_store_ps(ptr noundef, <4 x float> noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_setzero_ps() local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_add_ps(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"dotprod_cccf_s", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !8, i64 0}
!17 = !{!"branch_weights", i32 1, i32 1048575}
!18 = distinct !{!18, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass