; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseGaussianBlur.ll (ZN4Simd4Base19GaussianBlurDefaultC2ERKNS_9BlurParamE)

; 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.Simd::Base::GaussianBlurDefault" = type { %"class.Simd::GaussianBlur", %"struct.Simd::Base::AlgDefault", %"struct.Simd::Array.0", %"struct.Simd::Array", ptr }
%"class.Simd::GaussianBlur" = type { %"struct.Simd::Deletable", %"struct.Simd::BlurParam" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::BlurParam" = type { i64, i64, i64, float, float, i64 }
%"struct.Simd::Base::AlgDefault" = type { i64, i64, i64, i64, i64, i64, i64, i64, %"struct.Simd::Array" }
%"struct.Simd::Array.0" = type { ptr, i64 }
%"struct.Simd::Array" = type { ptr, i64 }

@_ZTVN4Simd4Base19GaussianBlurDefaultE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd12GaussianBlurC2ERKNS_9BlurParamE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base19GaussianBlurDefaultC2ERKNS_9BlurParamE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(40) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca float, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN4Simd12GaussianBlurC2ERKNS_9BlurParamE(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(40) %12)
  store ptr getelementptr inbounds inrange(-16, 24) ({ [5 x ptr] }, ptr @_ZTVN4Simd4Base19GaussianBlurDefaultE, i32 0, i32 0, i32 2), ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  invoke void @_ZN4Simd4Base10AlgDefaultC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13)
          to label %14 unwind label %65

14:                                               ; preds = %2
  %15 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 2
  invoke void @_ZN4Simd5ArrayIhEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %15, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %16 unwind label %69

16:                                               ; preds = %14
  %17 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 3
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %18 unwind label %73

18:                                               ; preds = %16
  %19 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %20 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %19, i32 0, i32 4
  %21 = load float, ptr %20, align 4, !tbaa !11
  %22 = invoke noundef float @_ZSt3logf(float noundef %21)
          to label %23 unwind label %77

23:                                               ; preds = %18
  %24 = fneg float %22
  %25 = invoke noundef float @_ZSt4sqrtf(float noundef %24)
          to label %26 unwind label %77

26:                                               ; preds = %23
  %27 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %28 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %27, i32 0, i32 3
  %29 = load float, ptr %28, align 8, !tbaa !17
  %30 = fmul float %25, %29
  %31 = invoke noundef float @_ZSt5floorf(float noundef %30)
          to label %32 unwind label %77

32:                                               ; preds = %26
  %33 = fptosi float %31 to i32
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %36 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %35, i32 0, i32 0
  store i64 %34, ptr %36, align 8, !tbaa !18
  %37 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %38 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !18
  %40 = mul i64 2, %39
  %41 = add i64 %40, 1
  %42 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %43 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %42, i32 0, i32 1
  store i64 %41, ptr %43, align 8, !tbaa !23
  %44 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %45 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %44, i32 0, i32 8
  %46 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %47 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %46, i32 0, i32 1
  %48 = load i64, ptr %47, align 8, !tbaa !23
  %49 = mul i64 2, %48
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %45, i64 noundef %49, i1 noundef zeroext false, i64 noundef 8)
          to label %50 unwind label %77

50:                                               ; preds = %32
  %51 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %52 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %51, i32 0, i32 8
  %53 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %54 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %53, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !18
  %56 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %52, i64 noundef %55)
          to label %57 unwind label %77

57:                                               ; preds = %50
  store float 1.000000e+00, ptr %56, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !25
  br label %58

58:                                               ; preds = %126, %57
  %59 = load i64, ptr %7, align 8, !tbaa !25
  %60 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %61 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !18
  %63 = icmp ult i64 %59, %62
  br i1 %63, label %81, label %64

64:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %133

65:                                               ; preds = %2
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %5, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %6, align 4
  br label %321

69:                                               ; preds = %14
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %5, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %6, align 4
  br label %320

73:                                               ; preds = %16
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %5, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %6, align 4
  br label %319

77:                                               ; preds = %50, %32, %26, %23, %18
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %5, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %6, align 4
  br label %318

81:                                               ; preds = %58
  %82 = load i64, ptr %7, align 8, !tbaa !25
  %83 = add i64 1, %82
  %84 = uitofp i64 %83 to float
  %85 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %86 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %85, i32 0, i32 3
  %87 = load float, ptr %86, align 8, !tbaa !17
  %88 = fdiv float %84, %87
  %89 = invoke noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef %88)
          to label %90 unwind label %129

90:                                               ; preds = %81
  %91 = fneg float %89
  %92 = fdiv float %91, 2.000000e+00
  %93 = invoke noundef float @_ZSt3expf(float noundef %92)
          to label %94 unwind label %129

94:                                               ; preds = %90
  %95 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %96 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %95, i32 0, i32 8
  %97 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %98 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %97, i32 0, i32 0
  %99 = load i64, ptr %98, align 8, !tbaa !18
  %100 = add i64 %99, 1
  %101 = load i64, ptr %7, align 8, !tbaa !25
  %102 = add i64 %100, %101
  %103 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %96, i64 noundef %102)
          to label %104 unwind label %129

104:                                              ; preds = %94
  store float %93, ptr %103, align 4, !tbaa !24
  %105 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %106 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %105, i32 0, i32 8
  %107 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %108 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %107, i32 0, i32 0
  %109 = load i64, ptr %108, align 8, !tbaa !18
  %110 = add i64 %109, 1
  %111 = load i64, ptr %7, align 8, !tbaa !25
  %112 = add i64 %110, %111
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %106, i64 noundef %112)
          to label %114 unwind label %129

114:                                              ; preds = %104
  %115 = load float, ptr %113, align 4, !tbaa !24
  %116 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %117 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %116, i32 0, i32 8
  %118 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %119 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %118, i32 0, i32 0
  %120 = load i64, ptr %119, align 8, !tbaa !18
  %121 = sub i64 %120, 1
  %122 = load i64, ptr %7, align 8, !tbaa !25
  %123 = sub i64 %121, %122
  %124 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %117, i64 noundef %123)
          to label %125 unwind label %129

125:                                              ; preds = %114
  store float %115, ptr %124, align 4, !tbaa !24
  br label %126

126:                                              ; preds = %125
  %127 = load i64, ptr %7, align 8, !tbaa !25
  %128 = add i64 %127, 1
  store i64 %128, ptr %7, align 8, !tbaa !25
  br label %58, !llvm.loop !26

129:                                              ; preds = %114, %104, %94, %90, %81
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %5, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %318

133:                                              ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store float 0.000000e+00, ptr %8, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !25
  br label %134

134:                                              ; preds = %150, %133
  %135 = load i64, ptr %9, align 8, !tbaa !25
  %136 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %137 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %136, i32 0, i32 1
  %138 = load i64, ptr %137, align 8, !tbaa !23
  %139 = icmp ult i64 %135, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %157

141:                                              ; preds = %134
  %142 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %143 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %142, i32 0, i32 8
  %144 = load i64, ptr %9, align 8, !tbaa !25
  %145 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %143, i64 noundef %144)
          to label %146 unwind label %153

146:                                              ; preds = %141
  %147 = load float, ptr %145, align 4, !tbaa !24
  %148 = load float, ptr %8, align 4, !tbaa !24
  %149 = fadd float %148, %147
  store float %149, ptr %8, align 4, !tbaa !24
  br label %150

150:                                              ; preds = %146
  %151 = load i64, ptr %9, align 8, !tbaa !25
  %152 = add i64 %151, 1
  store i64 %152, ptr %9, align 8, !tbaa !25
  br label %134, !llvm.loop !28

153:                                              ; preds = %141
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %5, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %317

157:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !25
  br label %158

158:                                              ; preds = %189, %157
  %159 = load i64, ptr %10, align 8, !tbaa !25
  %160 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %161 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %160, i32 0, i32 1
  %162 = load i64, ptr %161, align 8, !tbaa !23
  %163 = icmp ult i64 %159, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %196

165:                                              ; preds = %158
  %166 = load float, ptr %8, align 4, !tbaa !24
  %167 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %168 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %167, i32 0, i32 8
  %169 = load i64, ptr %10, align 8, !tbaa !25
  %170 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %168, i64 noundef %169)
          to label %171 unwind label %192

171:                                              ; preds = %165
  %172 = load float, ptr %170, align 4, !tbaa !24
  %173 = fdiv float %172, %166
  store float %173, ptr %170, align 4, !tbaa !24
  %174 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %175 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %174, i32 0, i32 8
  %176 = load i64, ptr %10, align 8, !tbaa !25
  %177 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %175, i64 noundef %176)
          to label %178 unwind label %192

178:                                              ; preds = %171
  %179 = load float, ptr %177, align 4, !tbaa !24
  %180 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %181 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %180, i32 0, i32 8
  %182 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %183 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %182, i32 0, i32 1
  %184 = load i64, ptr %183, align 8, !tbaa !23
  %185 = load i64, ptr %10, align 8, !tbaa !25
  %186 = add i64 %184, %185
  %187 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %181, i64 noundef %186)
          to label %188 unwind label %192

188:                                              ; preds = %178
  store float %179, ptr %187, align 4, !tbaa !24
  br label %189

189:                                              ; preds = %188
  %190 = load i64, ptr %10, align 8, !tbaa !25
  %191 = add i64 %190, 1
  store i64 %191, ptr %10, align 8, !tbaa !25
  br label %158, !llvm.loop !29

192:                                              ; preds = %178, %171, %165
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %5, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %317

196:                                              ; preds = %164
  %197 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %198 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %197, i32 0, i32 0
  %199 = load i64, ptr %198, align 8, !tbaa !30
  %200 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %201 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %200, i32 0, i32 2
  %202 = load i64, ptr %201, align 8, !tbaa !31
  %203 = mul i64 %199, %202
  %204 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %205 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %204, i32 0, i32 4
  store i64 %203, ptr %205, align 8, !tbaa !32
  %206 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %207 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %206, i32 0, i32 4
  %208 = load i64, ptr %207, align 8, !tbaa !32
  %209 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %210 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %209, i32 0, i32 5
  %211 = load i64, ptr %210, align 8, !tbaa !33
  %212 = udiv i64 %211, 4
  %213 = invoke noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %208, i64 noundef %212)
          to label %214 unwind label %288

214:                                              ; preds = %196
  %215 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %216 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %215, i32 0, i32 5
  store i64 %213, ptr %216, align 8, !tbaa !34
  %217 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %218 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %217, i32 0, i32 0
  %219 = load i64, ptr %218, align 8, !tbaa !18
  %220 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %221 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %220, i32 0, i32 2
  %222 = load i64, ptr %221, align 8, !tbaa !31
  %223 = mul i64 %219, %222
  %224 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %225 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %224, i32 0, i32 5
  %226 = load i64, ptr %225, align 8, !tbaa !33
  %227 = invoke noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %223, i64 noundef %226)
          to label %228 unwind label %288

228:                                              ; preds = %214
  %229 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %230 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %229, i32 0, i32 2
  store i64 %227, ptr %230, align 8, !tbaa !35
  %231 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %232 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %231, i32 0, i32 2
  %233 = load i64, ptr %232, align 8, !tbaa !35
  %234 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %235 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %234, i32 0, i32 0
  %236 = load i64, ptr %235, align 8, !tbaa !18
  %237 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %238 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %237, i32 0, i32 2
  %239 = load i64, ptr %238, align 8, !tbaa !31
  %240 = mul i64 %236, %239
  %241 = sub i64 %233, %240
  %242 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %243 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %242, i32 0, i32 3
  store i64 %241, ptr %243, align 8, !tbaa !36
  %244 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %245 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %244, i32 0, i32 0
  %246 = load i64, ptr %245, align 8, !tbaa !18
  %247 = add i64 %246, 1
  %248 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %249 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %248, i32 0, i32 1
  %250 = load i64, ptr %249, align 8, !tbaa !37
  %251 = invoke noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %247, i64 noundef %250)
          to label %252 unwind label %288

252:                                              ; preds = %228
  %253 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %254 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %253, i32 0, i32 6
  store i64 %251, ptr %254, align 8, !tbaa !38
  %255 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %256 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %255, i32 0, i32 1
  %257 = load i64, ptr %256, align 8, !tbaa !37
  %258 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %259 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %258, i32 0, i32 0
  %260 = load i64, ptr %259, align 8, !tbaa !18
  %261 = sub i64 %257, %260
  %262 = invoke noundef i64 @_ZN4Simd3MaxIlEET_S1_S1_(i64 noundef %261, i64 noundef 1)
          to label %263 unwind label %288

263:                                              ; preds = %252
  %264 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %265 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %264, i32 0, i32 7
  store i64 %262, ptr %265, align 8, !tbaa !39
  %266 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 2
  %267 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %268 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %267, i32 0, i32 4
  %269 = load i64, ptr %268, align 8, !tbaa !32
  %270 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %271 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %270, i32 0, i32 2
  %272 = load i64, ptr %271, align 8, !tbaa !35
  %273 = mul i64 2, %272
  %274 = add i64 %269, %273
  invoke void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %266, i64 noundef %274, i1 noundef zeroext true, i64 noundef 8)
          to label %275 unwind label %288

275:                                              ; preds = %263
  %276 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 3
  %277 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %278 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %277, i32 0, i32 1
  %279 = load i64, ptr %278, align 8, !tbaa !23
  %280 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %281 = getelementptr inbounds %"struct.Simd::Base::AlgDefault", ptr %280, i32 0, i32 5
  %282 = load i64, ptr %281, align 8, !tbaa !34
  %283 = mul i64 %279, %282
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %276, i64 noundef %283, i1 noundef zeroext false, i64 noundef 8)
          to label %284 unwind label %288

284:                                              ; preds = %275
  %285 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %286 = getelementptr inbounds %"struct.Simd::BlurParam", ptr %285, i32 0, i32 2
  %287 = load i64, ptr %286, align 8, !tbaa !31
  switch i64 %287, label %316 [
    i64 1, label %292
    i64 2, label %298
    i64 3, label %304
    i64 4, label %310
  ]

288:                                              ; preds = %310, %304, %298, %292, %275, %263, %252, %228, %214, %196
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %5, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %6, align 4
  br label %317

292:                                              ; preds = %284
  %293 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %294 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %295 = invoke noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi1EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40) %293, ptr noundef nonnull align 8 dereferenceable(80) %294)
          to label %296 unwind label %288

296:                                              ; preds = %292
  %297 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 4
  store ptr %295, ptr %297, align 8, !tbaa !40
  br label %316

298:                                              ; preds = %284
  %299 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %300 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %301 = invoke noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi2EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40) %299, ptr noundef nonnull align 8 dereferenceable(80) %300)
          to label %302 unwind label %288

302:                                              ; preds = %298
  %303 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 4
  store ptr %301, ptr %303, align 8, !tbaa !40
  br label %316

304:                                              ; preds = %284
  %305 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %306 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %307 = invoke noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi3EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40) %305, ptr noundef nonnull align 8 dereferenceable(80) %306)
          to label %308 unwind label %288

308:                                              ; preds = %304
  %309 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 4
  store ptr %307, ptr %309, align 8, !tbaa !40
  br label %316

310:                                              ; preds = %284
  %311 = getelementptr inbounds %"class.Simd::GaussianBlur", ptr %11, i32 0, i32 1
  %312 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 1
  %313 = invoke noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi4EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40) %311, ptr noundef nonnull align 8 dereferenceable(80) %312)
          to label %314 unwind label %288

314:                                              ; preds = %310
  %315 = getelementptr inbounds %"class.Simd::Base::GaussianBlurDefault", ptr %11, i32 0, i32 4
  store ptr %313, ptr %315, align 8, !tbaa !40
  br label %316

316:                                              ; preds = %314, %308, %302, %296, %284
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  ret void

317:                                              ; preds = %288, %192, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %318

318:                                              ; preds = %317, %129, %77
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  br label %319

319:                                              ; preds = %318, %73
  call void @_ZN4Simd5ArrayIhED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  br label %320

320:                                              ; preds = %319, %69
  call void @_ZN4Simd4Base10AlgDefaultD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %13) #7
  br label %321

321:                                              ; preds = %320, %65
  call void @_ZN4Simd9DeletableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #7
  br label %322

322:                                              ; preds = %321
  %323 = load ptr, ptr %5, align 8
  %324 = load i32, ptr %6, align 4
  %325 = insertvalue { ptr, i32 } poison, ptr %323, 0
  %326 = insertvalue { ptr, i32 } %325, i32 %324, 1
  resume { ptr, i32 } %326
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4Simd4Base10AlgDefaultC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIhEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5floorf(float noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3logf(float noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3expf(float noundef) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef) #5

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef, i64 noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef, i64 noundef) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd3MaxIlEET_S1_S1_(i64 noundef, i64 noundef) #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi1EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi2EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi3EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi4EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIhED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4Base10AlgDefaultD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd9DeletableD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

attributes #0 = { 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 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 = { inlinehint 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 #3 = { alwaysinline 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 = { 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 #5 = { alwaysinline 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 #6 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !16, i64 36}
!12 = !{!"_ZTSN4Simd12GaussianBlurE", !13, i64 0, !14, i64 8}
!13 = !{!"_ZTSN4Simd9DeletableE"}
!14 = !{!"_ZTSN4Simd9BlurParamE", !15, i64 0, !15, i64 8, !15, i64 16, !16, i64 24, !16, i64 28, !15, i64 32}
!15 = !{!"long", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!12, !16, i64 32}
!18 = !{!19, !15, i64 48}
!19 = !{!"_ZTSN4Simd4Base19GaussianBlurDefaultE", !12, i64 0, !20, i64 48, !22, i64 128, !21, i64 144, !6, i64 160}
!20 = !{!"_ZTSN4Simd4Base10AlgDefaultE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !21, i64 64}
!21 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !15, i64 8}
!22 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !15, i64 8}
!23 = !{!19, !15, i64 56}
!24 = !{!16, !16, i64 0}
!25 = !{!15, !15, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}
!30 = !{!12, !15, i64 8}
!31 = !{!12, !15, i64 24}
!32 = !{!19, !15, i64 80}
!33 = !{!12, !15, i64 40}
!34 = !{!19, !15, i64 88}
!35 = !{!19, !15, i64 64}
!36 = !{!19, !15, i64 72}
!37 = !{!12, !15, i64 16}
!38 = !{!19, !15, i64 96}
!39 = !{!19, !15, i64 104}
!40 = !{!19, !6, i64 160}


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

@_ZTVN4Simd4Base19GaussianBlurDefaultE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd12GaussianBlurC2ERKNS_9BlurParamE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base19GaussianBlurDefaultC2ERKNS_9BlurParamE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef nonnull align 8 dereferenceable(40) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN4Simd12GaussianBlurC2ERKNS_9BlurParamE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(40) %1)
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN4Simd4Base19GaussianBlurDefaultE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 48
  invoke void @_ZN4Simd4Base10AlgDefaultC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %4 unwind label %31

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 128
  invoke void @_ZN4Simd5ArrayIhEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %6 unwind label %33

6:                                                ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 144
  invoke void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef 0, i1 noundef zeroext false, i64 noundef 8)
          to label %8 unwind label %35

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = getelementptr inbounds i8, ptr %0, i64 36
  %11 = load float, ptr %10, align 4, !tbaa !8
  %12 = tail call noundef float @_ZSt3logf(float noundef %11)
  %13 = fneg float %12
  %14 = tail call noundef float @_ZSt4sqrtf(float noundef %13)
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = load float, ptr %15, align 8, !tbaa !15
  %17 = fmul float %14, %16
  %18 = tail call noundef float @_ZSt5floorf(float noundef %17)
  %19 = fptosi float %18 to i32
  %20 = sext i32 %19 to i64
  store i64 %20, ptr %3, align 8, !tbaa !16
  %21 = shl nsw i64 %20, 1
  %22 = or disjoint i64 %21, 1
  %23 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 %22, ptr %23, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %0, i64 112
  %25 = shl nsw i64 %22, 1
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %25, i1 noundef zeroext false, i64 noundef 8)
          to label %26 unwind label %37

26:                                               ; preds = %8
  %27 = load i64, ptr %3, align 8, !tbaa !16
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %27)
  store float 1.000000e+00, ptr %28, align 4, !tbaa !23
  %29 = load i64, ptr %3, align 8, !tbaa !16
  %.not = icmp eq i64 %29, 0
  br i1 %.not, label %.preheader31, label %.lr.ph

.preheader31:                                     ; preds = %.lr.ph, %26
  %30 = load i64, ptr %23, align 8, !tbaa !22
  %.not38 = icmp eq i64 %30, 0
  br i1 %.not38, label %._crit_edge, label %.lr.ph35

31:                                               ; preds = %2
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %133

33:                                               ; preds = %4
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %132

35:                                               ; preds = %6
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %131

37:                                               ; preds = %8
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %130

.lr.ph:                                           ; preds = %26, %.lr.ph
  %.02132 = phi i64 [ %39, %.lr.ph ], [ 0, %26 ]
  %39 = add nuw i64 %.02132, 1
  %40 = uitofp i64 %39 to float
  %41 = load float, ptr %15, align 8, !tbaa !15
  %42 = fdiv float %40, %41
  %43 = tail call noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef %42)
  %44 = fmul float %43, -5.000000e-01
  %45 = tail call noundef float @_ZSt3expf(float noundef %44)
  %46 = load i64, ptr %3, align 8, !tbaa !16
  %47 = add i64 %39, %46
  %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %47)
  store float %45, ptr %48, align 4, !tbaa !23
  %49 = load i64, ptr %3, align 8, !tbaa !16
  %50 = add i64 %39, %49
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %50)
  %52 = load float, ptr %51, align 4, !tbaa !23
  %53 = load i64, ptr %3, align 8, !tbaa !16
  %54 = xor i64 %.02132, -1
  %55 = add i64 %53, %54
  %56 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %55)
  store float %52, ptr %56, align 4, !tbaa !23
  %57 = load i64, ptr %3, align 8, !tbaa !16
  %58 = icmp ult i64 %39, %57
  br i1 %58, label %.lr.ph, label %.preheader31, !llvm.loop !24

.preheader:                                       ; preds = %.lr.ph35
  %59 = icmp eq i64 %64, 0
  br i1 %59, label %._crit_edge, label %.lr.ph37

.lr.ph35:                                         ; preds = %.preheader31, %.lr.ph35
  %.01934 = phi i64 [ %63, %.lr.ph35 ], [ 0, %.preheader31 ]
  %.02033 = phi float [ %62, %.lr.ph35 ], [ 0.000000e+00, %.preheader31 ]
  %60 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %.01934)
  %61 = load float, ptr %60, align 4, !tbaa !23
  %62 = fadd float %.02033, %61
  %63 = add nuw i64 %.01934, 1
  %64 = load i64, ptr %23, align 8, !tbaa !22
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %.lr.ph35, label %.preheader, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph37, %.preheader31, %.preheader
  %66 = load i64, ptr %9, align 8, !tbaa !27
  %67 = getelementptr inbounds i8, ptr %0, i64 24
  %68 = load i64, ptr %67, align 8, !tbaa !28
  %69 = mul i64 %68, %66
  %70 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 %69, ptr %70, align 8, !tbaa !29
  %71 = getelementptr inbounds i8, ptr %0, i64 40
  %72 = load i64, ptr %71, align 8, !tbaa !30
  %73 = lshr i64 %72, 2
  %74 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %69, i64 noundef %73)
  %75 = getelementptr inbounds i8, ptr %0, i64 88
  store i64 %74, ptr %75, align 8, !tbaa !31
  %76 = load i64, ptr %3, align 8, !tbaa !16
  %77 = load i64, ptr %67, align 8, !tbaa !28
  %78 = mul i64 %77, %76
  %79 = load i64, ptr %71, align 8, !tbaa !30
  %80 = tail call noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef %78, i64 noundef %79)
  %81 = getelementptr inbounds i8, ptr %0, i64 64
  store i64 %80, ptr %81, align 8, !tbaa !32
  %82 = load i64, ptr %3, align 8, !tbaa !16
  %83 = load i64, ptr %67, align 8, !tbaa !28
  %84 = mul i64 %83, %82
  %85 = sub i64 %80, %84
  %86 = getelementptr inbounds i8, ptr %0, i64 72
  store i64 %85, ptr %86, align 8, !tbaa !33
  %87 = add i64 %82, 1
  %88 = getelementptr inbounds i8, ptr %0, i64 16
  %89 = load i64, ptr %88, align 8, !tbaa !34
  %90 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %87, i64 noundef %89)
  %91 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 %90, ptr %91, align 8, !tbaa !35
  %92 = load i64, ptr %88, align 8, !tbaa !34
  %93 = load i64, ptr %3, align 8, !tbaa !16
  %94 = sub i64 %92, %93
  %95 = tail call noundef i64 @_ZN4Simd3MaxIlEET_S1_S1_(i64 noundef %94, i64 noundef 1)
  %96 = getelementptr inbounds i8, ptr %0, i64 104
  store i64 %95, ptr %96, align 8, !tbaa !36
  %97 = load i64, ptr %70, align 8, !tbaa !29
  %98 = load i64, ptr %81, align 8, !tbaa !32
  %99 = shl i64 %98, 1
  %100 = add i64 %99, %97
  invoke void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %100, i1 noundef zeroext true, i64 noundef 8)
          to label %112 unwind label %118

.lr.ph37:                                         ; preds = %.preheader, %.lr.ph37
  %.036 = phi i64 [ %109, %.lr.ph37 ], [ 0, %.preheader ]
  %101 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %.036)
  %102 = load float, ptr %101, align 4, !tbaa !23
  %103 = fdiv float %102, %62
  store float %103, ptr %101, align 4, !tbaa !23
  %104 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %.036)
  %105 = load float, ptr %104, align 4, !tbaa !23
  %106 = load i64, ptr %23, align 8, !tbaa !22
  %107 = add i64 %106, %.036
  %108 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %107)
  store float %105, ptr %108, align 4, !tbaa !23
  %109 = add nuw i64 %.036, 1
  %110 = load i64, ptr %23, align 8, !tbaa !22
  %111 = icmp ult i64 %109, %110
  br i1 %111, label %.lr.ph37, label %._crit_edge, !llvm.loop !37

112:                                              ; preds = %._crit_edge
  %113 = load i64, ptr %23, align 8, !tbaa !22
  %114 = load i64, ptr %75, align 8, !tbaa !31
  %115 = mul i64 %114, %113
  invoke void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %115, i1 noundef zeroext false, i64 noundef 8)
          to label %116 unwind label %118

116:                                              ; preds = %112
  %117 = load i64, ptr %67, align 8, !tbaa !28
  switch i64 %117, label %129 [
    i64 1, label %120
    i64 2, label %122
    i64 3, label %124
    i64 4, label %126
  ]

118:                                              ; preds = %112, %._crit_edge
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %130

120:                                              ; preds = %116
  %121 = tail call noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi1EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(80) %3)
  br label %.sink.split

122:                                              ; preds = %116
  %123 = tail call noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi2EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(80) %3)
  br label %.sink.split

124:                                              ; preds = %116
  %125 = tail call noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi3EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(80) %3)
  br label %.sink.split

126:                                              ; preds = %116
  %127 = tail call noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi4EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(80) %3)
  br label %.sink.split

.sink.split:                                      ; preds = %120, %122, %124, %126
  %.sink = phi ptr [ %127, %126 ], [ %125, %124 ], [ %123, %122 ], [ %121, %120 ]
  %128 = getelementptr inbounds i8, ptr %0, i64 160
  store ptr %.sink, ptr %128, align 8, !tbaa !38
  br label %129

129:                                              ; preds = %.sink.split, %116
  ret void

130:                                              ; preds = %118, %37
  %.pn = phi { ptr, i32 } [ %119, %118 ], [ %38, %37 ]
  tail call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  br label %131

131:                                              ; preds = %130, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %130 ], [ %36, %35 ]
  tail call void @_ZN4Simd5ArrayIhED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  br label %132

132:                                              ; preds = %131, %33
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %131 ], [ %34, %33 ]
  tail call void @_ZN4Simd4Base10AlgDefaultD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #6
  br label %133

133:                                              ; preds = %132, %31
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %132 ], [ %32, %31 ]
  tail call void @_ZN4Simd9DeletableD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4Simd4Base10AlgDefaultC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIhEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5floorf(float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3logf(float noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIfE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3expf(float noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd6SquareIfEET_S1_(float noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd7AlignHiEmm(i64 noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd3MaxIlEET_S1_S1_(i64 noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi1EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi2EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi3EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd4Base17GetBlurDefaultPtrILi4EEEPFvRKNS_9BlurParamERKNS0_10AlgDefaultEPKhmPhPfSA_mES4_S7_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIhED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd4Base10AlgDefaultD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd9DeletableD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

attributes #0 = { 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 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 = { inlinehint 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 #3 = { alwaysinline 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 = { 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 #5 = { alwaysinline 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 #6 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !14, i64 36}
!9 = !{!"_ZTSN4Simd12GaussianBlurE", !10, i64 0, !11, i64 8}
!10 = !{!"_ZTSN4Simd9DeletableE"}
!11 = !{!"_ZTSN4Simd9BlurParamE", !12, i64 0, !12, i64 8, !12, i64 16, !14, i64 24, !14, i64 28, !12, i64 32}
!12 = !{!"long", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"float", !13, i64 0}
!15 = !{!9, !14, i64 32}
!16 = !{!17, !12, i64 48}
!17 = !{!"_ZTSN4Simd4Base19GaussianBlurDefaultE", !9, i64 0, !18, i64 48, !21, i64 128, !19, i64 144, !20, i64 160}
!18 = !{!"_ZTSN4Simd4Base10AlgDefaultE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !19, i64 64}
!19 = !{!"_ZTSN4Simd5ArrayIfEE", !20, i64 0, !12, i64 8}
!20 = !{!"any pointer", !13, i64 0}
!21 = !{!"_ZTSN4Simd5ArrayIhEE", !20, i64 0, !12, i64 8}
!22 = !{!17, !12, i64 56}
!23 = !{!14, !14, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!9, !12, i64 8}
!28 = !{!9, !12, i64 24}
!29 = !{!17, !12, i64 80}
!30 = !{!9, !12, i64 40}
!31 = !{!17, !12, i64 88}
!32 = !{!17, !12, i64 64}
!33 = !{!17, !12, i64 72}
!34 = !{!9, !12, i64 16}
!35 = !{!17, !12, i64 96}
!36 = !{!17, !12, i64 104}
!37 = distinct !{!37, !25}
!38 = !{!17, !20, i64 160}


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