; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/gauss_iir (gauss_iir)

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

%class.ImageContent = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9DerHConv8P12ImageContentS0_(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %14)
  store i32 %15, ptr %5, align 4, !tbaa !9
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %16)
  store i32 %17, ptr %6, align 4, !tbaa !9
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %class.ImageContent, ptr %18, i32 0, i32 4
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  store ptr %20, ptr %9, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %class.ImageContent, ptr %21, i32 0, i32 4
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  store ptr %23, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %279, %2
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %28, label %282

28:                                               ; preds = %24
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds ptr, ptr %29, i64 %31
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %33, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = load i32, ptr %7, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds ptr, ptr %34, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  store ptr %38, ptr %13, align 8, !tbaa !5
  store i32 4, ptr %8, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %95, %28
  %40 = load i32, ptr %8, align 4, !tbaa !9
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = sub nsw i32 %41, 4
  %43 = icmp slt i32 %40, %42
  br i1 %43, label %44, label %98

44:                                               ; preds = %39
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds float, ptr %45, i64 %47
  store ptr %48, ptr %11, align 8, !tbaa !5
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = getelementptr inbounds float, ptr %49, i64 -4
  %51 = load float, ptr %50, align 4, !tbaa !13
  %52 = fpext float %51 to double
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds float, ptr %53, i64 -3
  %55 = load float, ptr %54, align 4, !tbaa !13
  %56 = fpext float %55 to double
  %57 = fmul double 4.860000e-02, %56
  %58 = fneg double %57
  %59 = call double @llvm.fmuladd.f64(double -2.700000e-02, double %52, double %58)
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds float, ptr %60, i64 -2
  %62 = load float, ptr %61, align 4, !tbaa !13
  %63 = fpext float %62 to double
  %64 = call double @llvm.fmuladd.f64(double -6.050000e-02, double %63, double %59)
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds float, ptr %65, i64 -1
  %67 = load float, ptr %66, align 4, !tbaa !13
  %68 = fpext float %67 to double
  %69 = call double @llvm.fmuladd.f64(double -4.860000e-02, double %68, double %64)
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds float, ptr %70, i64 1
  %72 = load float, ptr %71, align 4, !tbaa !13
  %73 = fpext float %72 to double
  %74 = call double @llvm.fmuladd.f64(double 4.860000e-02, double %73, double %69)
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds float, ptr %75, i64 2
  %77 = load float, ptr %76, align 4, !tbaa !13
  %78 = fpext float %77 to double
  %79 = call double @llvm.fmuladd.f64(double 6.050000e-02, double %78, double %74)
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds float, ptr %80, i64 3
  %82 = load float, ptr %81, align 4, !tbaa !13
  %83 = fpext float %82 to double
  %84 = call double @llvm.fmuladd.f64(double 4.860000e-02, double %83, double %79)
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds float, ptr %85, i64 4
  %87 = load float, ptr %86, align 4, !tbaa !13
  %88 = fpext float %87 to double
  %89 = call double @llvm.fmuladd.f64(double 2.700000e-02, double %88, double %84)
  %90 = fptrunc double %89 to float
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = load i32, ptr %8, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds float, ptr %91, i64 %93
  store float %90, ptr %94, align 4, !tbaa !13
  br label %95

95:                                               ; preds = %44
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %8, align 4, !tbaa !9
  br label %39, !llvm.loop !15

98:                                               ; preds = %39
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = getelementptr inbounds float, ptr %99, i64 3
  store ptr %100, ptr %11, align 8, !tbaa !5
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = getelementptr inbounds float, ptr %101, i64 -3
  %103 = load float, ptr %102, align 4, !tbaa !13
  %104 = fpext float %103 to double
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = getelementptr inbounds float, ptr %105, i64 -2
  %107 = load float, ptr %106, align 4, !tbaa !13
  %108 = fpext float %107 to double
  %109 = fmul double 6.050000e-02, %108
  %110 = fneg double %109
  %111 = call double @llvm.fmuladd.f64(double -6.050000e-02, double %104, double %110)
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = getelementptr inbounds float, ptr %112, i64 -1
  %114 = load float, ptr %113, align 4, !tbaa !13
  %115 = fpext float %114 to double
  %116 = call double @llvm.fmuladd.f64(double -4.860000e-02, double %115, double %111)
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds float, ptr %117, i64 1
  %119 = load float, ptr %118, align 4, !tbaa !13
  %120 = fpext float %119 to double
  %121 = call double @llvm.fmuladd.f64(double 4.860000e-02, double %120, double %116)
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds float, ptr %122, i64 2
  %124 = load float, ptr %123, align 4, !tbaa !13
  %125 = fpext float %124 to double
  %126 = call double @llvm.fmuladd.f64(double 6.050000e-02, double %125, double %121)
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds float, ptr %127, i64 3
  %129 = load float, ptr %128, align 4, !tbaa !13
  %130 = fpext float %129 to double
  %131 = call double @llvm.fmuladd.f64(double 4.860000e-02, double %130, double %126)
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds float, ptr %132, i64 4
  %134 = load float, ptr %133, align 4, !tbaa !13
  %135 = fpext float %134 to double
  %136 = call double @llvm.fmuladd.f64(double 2.700000e-02, double %135, double %131)
  %137 = fptrunc double %136 to float
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = getelementptr inbounds float, ptr %138, i64 3
  store float %137, ptr %139, align 4, !tbaa !13
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = getelementptr inbounds float, ptr %140, i64 2
  store ptr %141, ptr %11, align 8, !tbaa !5
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = getelementptr inbounds float, ptr %142, i64 -2
  %144 = load float, ptr %143, align 4, !tbaa !13
  %145 = fpext float %144 to double
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds float, ptr %146, i64 -1
  %148 = load float, ptr %147, align 4, !tbaa !13
  %149 = fpext float %148 to double
  %150 = fmul double 4.860000e-02, %149
  %151 = fneg double %150
  %152 = call double @llvm.fmuladd.f64(double -1.361000e-01, double %145, double %151)
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds float, ptr %153, i64 1
  %155 = load float, ptr %154, align 4, !tbaa !13
  %156 = fpext float %155 to double
  %157 = call double @llvm.fmuladd.f64(double 4.860000e-02, double %156, double %152)
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  %159 = getelementptr inbounds float, ptr %158, i64 2
  %160 = load float, ptr %159, align 4, !tbaa !13
  %161 = fpext float %160 to double
  %162 = call double @llvm.fmuladd.f64(double 6.050000e-02, double %161, double %157)
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = getelementptr inbounds float, ptr %163, i64 3
  %165 = load float, ptr %164, align 4, !tbaa !13
  %166 = fpext float %165 to double
  %167 = call double @llvm.fmuladd.f64(double 4.860000e-02, double %166, double %162)
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = getelementptr inbounds float, ptr %168, i64 4
  %170 = load float, ptr %169, align 4, !tbaa !13
  %171 = fpext float %170 to double
  %172 = call double @llvm.fmuladd.f64(double 2.700000e-02, double %171, double %167)
  %173 = fptrunc double %172 to float
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = getelementptr inbounds float, ptr %174, i64 2
  store float %173, ptr %175, align 4, !tbaa !13
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = getelementptr inbounds float, ptr %176, i64 1
  store float 0.000000e+00, ptr %177, align 4, !tbaa !13
  %178 = load ptr, ptr %13, align 8, !tbaa !5
  %179 = getelementptr inbounds float, ptr %178, i64 0
  store float 0.000000e+00, ptr %179, align 4, !tbaa !13
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = load i32, ptr %6, align 4, !tbaa !9
  %182 = sub nsw i32 %181, 1
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds float, ptr %180, i64 %183
  store float 0.000000e+00, ptr %184, align 4, !tbaa !13
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = load i32, ptr %6, align 4, !tbaa !9
  %187 = sub nsw i32 %186, 2
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds float, ptr %185, i64 %188
  store float 0.000000e+00, ptr %189, align 4, !tbaa !13
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = load i32, ptr %6, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds float, ptr %190, i64 %192
  %194 = getelementptr inbounds float, ptr %193, i64 -3
  store ptr %194, ptr %11, align 8, !tbaa !5
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds float, ptr %195, i64 -7
  %197 = load float, ptr %196, align 4, !tbaa !13
  %198 = fpext float %197 to double
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = getelementptr inbounds float, ptr %199, i64 -6
  %201 = load float, ptr %200, align 4, !tbaa !13
  %202 = fpext float %201 to double
  %203 = fmul double 4.860000e-02, %202
  %204 = fneg double %203
  %205 = call double @llvm.fmuladd.f64(double -2.700000e-02, double %198, double %204)
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = getelementptr inbounds float, ptr %206, i64 -5
  %208 = load float, ptr %207, align 4, !tbaa !13
  %209 = fpext float %208 to double
  %210 = call double @llvm.fmuladd.f64(double -6.050000e-02, double %209, double %205)
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = getelementptr inbounds float, ptr %211, i64 -4
  %213 = load float, ptr %212, align 4, !tbaa !13
  %214 = fpext float %213 to double
  %215 = call double @llvm.fmuladd.f64(double -4.860000e-02, double %214, double %210)
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = getelementptr inbounds float, ptr %216, i64 -2
  %218 = load float, ptr %217, align 4, !tbaa !13
  %219 = fpext float %218 to double
  %220 = call double @llvm.fmuladd.f64(double 4.860000e-02, double %219, double %215)
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  %222 = getelementptr inbounds float, ptr %221, i64 2
  %223 = load float, ptr %222, align 4, !tbaa !13
  %224 = fpext float %223 to double
  %225 = call double @llvm.fmuladd.f64(double 1.361000e-01, double %224, double %220)
  %226 = fptrunc double %225 to float
  %227 = load ptr, ptr %13, align 8, !tbaa !5
  %228 = load i32, ptr %6, align 4, !tbaa !9
  %229 = sub nsw i32 %228, 3
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds float, ptr %227, i64 %230
  store float %226, ptr %231, align 4, !tbaa !13
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = load i32, ptr %6, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds float, ptr %232, i64 %234
  %236 = getelementptr inbounds float, ptr %235, i64 -4
  store ptr %236, ptr %11, align 8, !tbaa !5
  %237 = load ptr, ptr %11, align 8, !tbaa !5
  %238 = getelementptr inbounds float, ptr %237, i64 -4
  %239 = load float, ptr %238, align 4, !tbaa !13
  %240 = fpext float %239 to double
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  %242 = getelementptr inbounds float, ptr %241, i64 -3
  %243 = load float, ptr %242, align 4, !tbaa !13
  %244 = fpext float %243 to double
  %245 = fmul double 4.860000e-02, %244
  %246 = fneg double %245
  %247 = call double @llvm.fmuladd.f64(double -2.700000e-02, double %240, double %246)
  %248 = load ptr, ptr %11, align 8, !tbaa !5
  %249 = getelementptr inbounds float, ptr %248, i64 -2
  %250 = load float, ptr %249, align 4, !tbaa !13
  %251 = fpext float %250 to double
  %252 = call double @llvm.fmuladd.f64(double -6.050000e-02, double %251, double %247)
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = getelementptr inbounds float, ptr %253, i64 -1
  %255 = load float, ptr %254, align 4, !tbaa !13
  %256 = fpext float %255 to double
  %257 = call double @llvm.fmuladd.f64(double -4.860000e-02, double %256, double %252)
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = getelementptr inbounds float, ptr %258, i64 1
  %260 = load float, ptr %259, align 4, !tbaa !13
  %261 = fpext float %260 to double
  %262 = call double @llvm.fmuladd.f64(double 4.860000e-02, double %261, double %257)
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  %264 = getelementptr inbounds float, ptr %263, i64 2
  %265 = load float, ptr %264, align 4, !tbaa !13
  %266 = fpext float %265 to double
  %267 = call double @llvm.fmuladd.f64(double 6.050000e-02, double %266, double %262)
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = getelementptr inbounds float, ptr %268, i64 3
  %270 = load float, ptr %269, align 4, !tbaa !13
  %271 = fpext float %270 to double
  %272 = call double @llvm.fmuladd.f64(double 7.560000e-02, double %271, double %267)
  %273 = fptrunc double %272 to float
  %274 = load ptr, ptr %13, align 8, !tbaa !5
  %275 = load i32, ptr %6, align 4, !tbaa !9
  %276 = sub nsw i32 %275, 4
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds float, ptr %274, i64 %277
  store float %273, ptr %278, align 4, !tbaa !13
  br label %279

279:                                              ; preds = %98
  %280 = load i32, ptr %7, align 4, !tbaa !9
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %7, align 4, !tbaa !9
  br label %24, !llvm.loop !17

282:                                              ; preds = %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress 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 #4 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTS12ImageContent", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z9DerHConv8P12ImageContentS0_(ptr noundef nonnull %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %4 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %1, i64 16
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = icmp sgt i32 %3, 0
  br i1 %9, label %.lr.ph74, label %._crit_edge75

.lr.ph74:                                         ; preds = %2
  %10 = add i32 %4, -4
  %11 = icmp sgt i32 %4, 8
  %12 = sext i32 %4 to i64
  %13 = sext i32 %10 to i64
  %wide.trip.count80 = zext nneg i32 %3 to i64
  %wide.trip.count = zext i32 %10 to i64
  %14 = shl nuw nsw i64 %wide.trip.count, 2
  %15 = add nsw i64 %wide.trip.count, -4
  %min.iters.check = icmp ult i64 %15, 4
  %n.vec = and i64 %15, -4
  %ind.end = add nsw i64 %n.vec, 4
  %cmp.n = icmp eq i64 %15, %n.vec
  br label %16

16:                                               ; preds = %.lr.ph74, %._crit_edge
  %indvars.iv77 = phi i64 [ 0, %.lr.ph74 ], [ %indvars.iv.next78, %._crit_edge ]
  %17 = getelementptr inbounds ptr, ptr %6, i64 %indvars.iv77
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = getelementptr inbounds ptr, ptr %8, i64 %indvars.iv77
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  br i1 %11, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %16
  br i1 %min.iters.check, label %.lr.ph.preheader91, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %scevgep82 = getelementptr i8, ptr %20, i64 %14
  %21 = getelementptr i8, ptr %18, i64 %14
  %bound0 = icmp ult ptr %20, %21
  %bound1 = icmp ult ptr %18, %scevgep82
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader91, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %offset.idx = add i64 %index, 4
  %22 = getelementptr inbounds float, ptr %18, i64 %offset.idx
  %23 = getelementptr inbounds i8, ptr %22, i64 -16
  %wide.load = load <4 x float>, ptr %23, align 4, !tbaa !12, !alias.scope !14
  %24 = fpext <4 x float> %wide.load to <4 x double>
  %25 = getelementptr inbounds i8, ptr %22, i64 -12
  %wide.load84 = load <4 x float>, ptr %25, align 4, !tbaa !12, !alias.scope !14
  %26 = fpext <4 x float> %wide.load84 to <4 x double>
  %27 = fmul <4 x double> %26, <double -4.860000e-02, double -4.860000e-02, double -4.860000e-02, double -4.860000e-02>
  %28 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %24, <4 x double> <double -2.700000e-02, double -2.700000e-02, double -2.700000e-02, double -2.700000e-02>, <4 x double> %27)
  %29 = getelementptr inbounds i8, ptr %22, i64 -8
  %wide.load85 = load <4 x float>, ptr %29, align 4, !tbaa !12, !alias.scope !14
  %30 = fpext <4 x float> %wide.load85 to <4 x double>
  %31 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %30, <4 x double> <double -6.050000e-02, double -6.050000e-02, double -6.050000e-02, double -6.050000e-02>, <4 x double> %28)
  %32 = getelementptr inbounds i8, ptr %22, i64 -4
  %wide.load86 = load <4 x float>, ptr %32, align 4, !tbaa !12, !alias.scope !14
  %33 = fpext <4 x float> %wide.load86 to <4 x double>
  %34 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %33, <4 x double> <double -4.860000e-02, double -4.860000e-02, double -4.860000e-02, double -4.860000e-02>, <4 x double> %31)
  %35 = getelementptr inbounds i8, ptr %22, i64 4
  %wide.load87 = load <4 x float>, ptr %35, align 4, !tbaa !12, !alias.scope !14
  %36 = fpext <4 x float> %wide.load87 to <4 x double>
  %37 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %36, <4 x double> <double 4.860000e-02, double 4.860000e-02, double 4.860000e-02, double 4.860000e-02>, <4 x double> %34)
  %38 = getelementptr inbounds i8, ptr %22, i64 8
  %wide.load88 = load <4 x float>, ptr %38, align 4, !tbaa !12, !alias.scope !14
  %39 = fpext <4 x float> %wide.load88 to <4 x double>
  %40 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %39, <4 x double> <double 6.050000e-02, double 6.050000e-02, double 6.050000e-02, double 6.050000e-02>, <4 x double> %37)
  %41 = getelementptr inbounds i8, ptr %22, i64 12
  %wide.load89 = load <4 x float>, ptr %41, align 4, !tbaa !12, !alias.scope !14
  %42 = fpext <4 x float> %wide.load89 to <4 x double>
  %43 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %42, <4 x double> <double 4.860000e-02, double 4.860000e-02, double 4.860000e-02, double 4.860000e-02>, <4 x double> %40)
  %44 = getelementptr inbounds i8, ptr %22, i64 16
  %wide.load90 = load <4 x float>, ptr %44, align 4, !tbaa !12, !alias.scope !14
  %45 = fpext <4 x float> %wide.load90 to <4 x double>
  %46 = tail call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %45, <4 x double> <double 2.700000e-02, double 2.700000e-02, double 2.700000e-02, double 2.700000e-02>, <4 x double> %43)
  %47 = fptrunc <4 x double> %46 to <4 x float>
  %48 = getelementptr inbounds float, ptr %20, i64 %offset.idx
  store <4 x float> %47, ptr %48, align 4, !tbaa !12, !alias.scope !17, !noalias !14
  %index.next = add nuw i64 %index, 4
  %49 = icmp eq i64 %index.next, %n.vec
  br i1 %49, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader91

.lr.ph.preheader91:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 4, %vector.memcheck ], [ 4, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader91, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader91 ]
  %50 = getelementptr inbounds float, ptr %18, i64 %indvars.iv
  %51 = getelementptr inbounds i8, ptr %50, i64 -16
  %52 = load float, ptr %51, align 4, !tbaa !12
  %53 = fpext float %52 to double
  %54 = getelementptr inbounds i8, ptr %50, i64 -12
  %55 = load float, ptr %54, align 4, !tbaa !12
  %56 = fpext float %55 to double
  %57 = fmul double %56, -4.860000e-02
  %58 = tail call double @llvm.fmuladd.f64(double %53, double -2.700000e-02, double %57)
  %59 = getelementptr inbounds i8, ptr %50, i64 -8
  %60 = load float, ptr %59, align 4, !tbaa !12
  %61 = fpext float %60 to double
  %62 = tail call double @llvm.fmuladd.f64(double %61, double -6.050000e-02, double %58)
  %63 = getelementptr inbounds i8, ptr %50, i64 -4
  %64 = load float, ptr %63, align 4, !tbaa !12
  %65 = fpext float %64 to double
  %66 = tail call double @llvm.fmuladd.f64(double %65, double -4.860000e-02, double %62)
  %67 = getelementptr inbounds i8, ptr %50, i64 4
  %68 = load float, ptr %67, align 4, !tbaa !12
  %69 = fpext float %68 to double
  %70 = tail call double @llvm.fmuladd.f64(double %69, double 4.860000e-02, double %66)
  %71 = getelementptr inbounds i8, ptr %50, i64 8
  %72 = load float, ptr %71, align 4, !tbaa !12
  %73 = fpext float %72 to double
  %74 = tail call double @llvm.fmuladd.f64(double %73, double 6.050000e-02, double %70)
  %75 = getelementptr inbounds i8, ptr %50, i64 12
  %76 = load float, ptr %75, align 4, !tbaa !12
  %77 = fpext float %76 to double
  %78 = tail call double @llvm.fmuladd.f64(double %77, double 4.860000e-02, double %74)
  %79 = getelementptr inbounds i8, ptr %50, i64 16
  %80 = load float, ptr %79, align 4, !tbaa !12
  %81 = fpext float %80 to double
  %82 = tail call double @llvm.fmuladd.f64(double %81, double 2.700000e-02, double %78)
  %83 = fptrunc double %82 to float
  %84 = getelementptr inbounds float, ptr %20, i64 %indvars.iv
  store float %83, ptr %84, align 4, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %16
  %85 = load float, ptr %18, align 4, !tbaa !12
  %86 = fpext float %85 to double
  %87 = getelementptr inbounds i8, ptr %18, i64 4
  %88 = load float, ptr %87, align 4, !tbaa !12
  %89 = fpext float %88 to double
  %90 = fmul double %89, -6.050000e-02
  %91 = tail call double @llvm.fmuladd.f64(double %86, double -6.050000e-02, double %90)
  %92 = getelementptr inbounds i8, ptr %18, i64 8
  %93 = load float, ptr %92, align 4, !tbaa !12
  %94 = fpext float %93 to double
  %95 = tail call double @llvm.fmuladd.f64(double %94, double -4.860000e-02, double %91)
  %96 = getelementptr inbounds i8, ptr %18, i64 16
  %97 = load float, ptr %96, align 4, !tbaa !12
  %98 = fpext float %97 to double
  %99 = tail call double @llvm.fmuladd.f64(double %98, double 4.860000e-02, double %95)
  %100 = getelementptr inbounds i8, ptr %18, i64 20
  %101 = load float, ptr %100, align 4, !tbaa !12
  %102 = fpext float %101 to double
  %103 = tail call double @llvm.fmuladd.f64(double %102, double 6.050000e-02, double %99)
  %104 = getelementptr inbounds i8, ptr %18, i64 24
  %105 = load float, ptr %104, align 4, !tbaa !12
  %106 = fpext float %105 to double
  %107 = tail call double @llvm.fmuladd.f64(double %106, double 4.860000e-02, double %103)
  %108 = getelementptr inbounds i8, ptr %18, i64 28
  %109 = load float, ptr %108, align 4, !tbaa !12
  %110 = fpext float %109 to double
  %111 = tail call double @llvm.fmuladd.f64(double %110, double 2.700000e-02, double %107)
  %112 = fptrunc double %111 to float
  %113 = getelementptr inbounds i8, ptr %20, i64 12
  store float %112, ptr %113, align 4, !tbaa !12
  %114 = load float, ptr %18, align 4, !tbaa !12
  %115 = fpext float %114 to double
  %116 = load float, ptr %87, align 4, !tbaa !12
  %117 = fpext float %116 to double
  %118 = fmul double %117, -4.860000e-02
  %119 = tail call double @llvm.fmuladd.f64(double %115, double -1.361000e-01, double %118)
  %120 = getelementptr inbounds i8, ptr %18, i64 12
  %121 = load float, ptr %120, align 4, !tbaa !12
  %122 = fpext float %121 to double
  %123 = tail call double @llvm.fmuladd.f64(double %122, double 4.860000e-02, double %119)
  %124 = load float, ptr %96, align 4, !tbaa !12
  %125 = fpext float %124 to double
  %126 = tail call double @llvm.fmuladd.f64(double %125, double 6.050000e-02, double %123)
  %127 = load float, ptr %100, align 4, !tbaa !12
  %128 = fpext float %127 to double
  %129 = tail call double @llvm.fmuladd.f64(double %128, double 4.860000e-02, double %126)
  %130 = load float, ptr %104, align 4, !tbaa !12
  %131 = fpext float %130 to double
  %132 = tail call double @llvm.fmuladd.f64(double %131, double 2.700000e-02, double %129)
  %133 = fptrunc double %132 to float
  %134 = getelementptr inbounds i8, ptr %20, i64 8
  store float %133, ptr %134, align 4, !tbaa !12
  store <2 x float> zeroinitializer, ptr %20, align 4, !tbaa !12
  %135 = getelementptr float, ptr %20, i64 %12
  %136 = getelementptr i8, ptr %135, i64 -8
  store <2 x float> zeroinitializer, ptr %136, align 4, !tbaa !12
  %137 = getelementptr inbounds float, ptr %18, i64 %12
  %138 = getelementptr inbounds i8, ptr %137, i64 -40
  %139 = load float, ptr %138, align 4, !tbaa !12
  %140 = fpext float %139 to double
  %141 = getelementptr inbounds i8, ptr %137, i64 -36
  %142 = load float, ptr %141, align 4, !tbaa !12
  %143 = fpext float %142 to double
  %144 = fmul double %143, -4.860000e-02
  %145 = tail call double @llvm.fmuladd.f64(double %140, double -2.700000e-02, double %144)
  %146 = getelementptr inbounds i8, ptr %137, i64 -32
  %147 = load float, ptr %146, align 4, !tbaa !12
  %148 = fpext float %147 to double
  %149 = tail call double @llvm.fmuladd.f64(double %148, double -6.050000e-02, double %145)
  %150 = getelementptr inbounds i8, ptr %137, i64 -28
  %151 = load float, ptr %150, align 4, !tbaa !12
  %152 = fpext float %151 to double
  %153 = tail call double @llvm.fmuladd.f64(double %152, double -4.860000e-02, double %149)
  %154 = getelementptr inbounds i8, ptr %137, i64 -20
  %155 = load float, ptr %154, align 4, !tbaa !12
  %156 = fpext float %155 to double
  %157 = tail call double @llvm.fmuladd.f64(double %156, double 4.860000e-02, double %153)
  %158 = getelementptr inbounds i8, ptr %137, i64 -4
  %159 = load float, ptr %158, align 4, !tbaa !12
  %160 = fpext float %159 to double
  %161 = tail call double @llvm.fmuladd.f64(double %160, double 1.361000e-01, double %157)
  %162 = fptrunc double %161 to float
  %163 = getelementptr i8, ptr %135, i64 -12
  store float %162, ptr %163, align 4, !tbaa !12
  %164 = load float, ptr %146, align 4, !tbaa !12
  %165 = fpext float %164 to double
  %166 = load float, ptr %150, align 4, !tbaa !12
  %167 = fpext float %166 to double
  %168 = fmul double %167, -4.860000e-02
  %169 = tail call double @llvm.fmuladd.f64(double %165, double -2.700000e-02, double %168)
  %170 = getelementptr inbounds i8, ptr %137, i64 -24
  %171 = load float, ptr %170, align 4, !tbaa !12
  %172 = fpext float %171 to double
  %173 = tail call double @llvm.fmuladd.f64(double %172, double -6.050000e-02, double %169)
  %174 = load float, ptr %154, align 4, !tbaa !12
  %175 = fpext float %174 to double
  %176 = tail call double @llvm.fmuladd.f64(double %175, double -4.860000e-02, double %173)
  %177 = getelementptr inbounds i8, ptr %137, i64 -12
  %178 = load float, ptr %177, align 4, !tbaa !12
  %179 = fpext float %178 to double
  %180 = tail call double @llvm.fmuladd.f64(double %179, double 4.860000e-02, double %176)
  %181 = getelementptr inbounds i8, ptr %137, i64 -8
  %182 = load float, ptr %181, align 4, !tbaa !12
  %183 = fpext float %182 to double
  %184 = tail call double @llvm.fmuladd.f64(double %183, double 6.050000e-02, double %180)
  %185 = load float, ptr %158, align 4, !tbaa !12
  %186 = fpext float %185 to double
  %187 = tail call double @llvm.fmuladd.f64(double %186, double 7.560000e-02, double %184)
  %188 = fptrunc double %187 to float
  %189 = getelementptr inbounds float, ptr %20, i64 %13
  store float %188, ptr %189, align 4, !tbaa !12
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %exitcond81.not = icmp eq i64 %indvars.iv.next78, %wide.trip.count80
  br i1 %exitcond81.not, label %._crit_edge75, label %16, !llvm.loop !24

._crit_edge75:                                    ; preds = %._crit_edge, %2
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x double> @llvm.fmuladd.v4f64(<4 x double>, <4 x double>, <4 x double>) #3

attributes #0 = { inlinehint mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress 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 nosync nounwind speculatable willreturn memory(none) }

!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, !10, i64 16}
!6 = !{!"_ZTS12ImageContent", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = !{!15}
!15 = distinct !{!15, !16}
!16 = distinct !{!16, !"LVerDomain"}
!17 = !{!18}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !20, !21}
!24 = distinct !{!24, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass