; LLVM IR from sp-nitech/SPTK :: src/filter (mglsa_digital_filter)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::MglsaDigitalFilter" = type <{ ptr, i32, i32, double, i8, [7 x i8], %"class.sptk::MlsaDigitalFilter", i8, [7 x i8] }>
%"class.sptk::MlsaDigitalFilter" = type { ptr, i32, i32, double, i8, i8, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.sptk::MglsaDigitalFilter::Buffer" = type { ptr, %"class.std::vector", %"class.sptk::MlsaDigitalFilter::Buffer" }
%"class.sptk::MlsaDigitalFilter::Buffer" = type { ptr, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk18MglsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %2, ptr noundef %3, ptr noundef %4) #0 align 2 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store double %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %27 = load ptr, ptr %7, align 8
  %28 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 7
  %29 = load i8, ptr %28, align 8, !tbaa !11, !range !20, !noundef !21
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %45

31:                                               ; preds = %5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %34 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %35 = load i32, ptr %34, align 8, !tbaa !22
  %36 = add nsw i32 %35, 1
  %37 = sext i32 %36 to i64
  %38 = icmp ne i64 %33, %37
  br i1 %38, label %45, label %39

39:                                               ; preds = %31
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = icmp eq ptr null, %40
  br i1 %41, label %45, label %42

42:                                               ; preds = %39
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = icmp eq ptr null, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %42, %39, %31, %5
  store i1 false, ptr %6, align 1
  br label %324

46:                                               ; preds = %42
  %47 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !23
  %49 = icmp eq i32 0, %48
  br i1 %49, label %50, label %58

50:                                               ; preds = %46
  %51 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 6
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load double, ptr %9, align 8, !tbaa !9
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter::Buffer", ptr %55, i32 0, i32 2
  %57 = call noundef zeroext i1 @_ZNK4sptk17MlsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(56) %51, ptr noundef nonnull align 8 dereferenceable(24) %52, double noundef %53, ptr noundef %54, ptr noundef %56)
  store i1 %57, ptr %6, align 1
  br label %324

58:                                               ; preds = %46
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter::Buffer", ptr %59, i32 0, i32 1
  %61 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #7
  %62 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %63 = load i32, ptr %62, align 8, !tbaa !22
  %64 = add nsw i32 %63, 1
  %65 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 2
  %66 = load i32, ptr %65, align 4, !tbaa !23
  %67 = mul nsw i32 %64, %66
  %68 = sext i32 %67 to i64
  %69 = icmp ne i64 %61, %68
  br i1 %69, label %70, label %92

70:                                               ; preds = %58
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter::Buffer", ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !22
  %75 = add nsw i32 %74, 1
  %76 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 2
  %77 = load i32, ptr %76, align 4, !tbaa !23
  %78 = mul nsw i32 %75, %77
  %79 = sext i32 %78 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %79)
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter::Buffer", ptr %80, i32 0, i32 1
  %82 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #7
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %82, ptr %83, align 8
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter::Buffer", ptr %84, i32 0, i32 1
  %86 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store double 0.000000e+00, ptr %14, align 8, !tbaa !9
  %88 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %89, ptr %91, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %92

92:                                               ; preds = %70, %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %93 = load double, ptr %9, align 8, !tbaa !9
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef 0) #7
  %96 = load double, ptr %95, align 8, !tbaa !9
  %97 = call double @exp(double noundef %96) #7
  %98 = fmul double %93, %97
  store double %98, ptr %15, align 8, !tbaa !9
  %99 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %100 = load i32, ptr %99, align 8, !tbaa !22
  %101 = icmp eq i32 0, %100
  br i1 %101, label %102, label %105

102:                                              ; preds = %92
  %103 = load double, ptr %15, align 8, !tbaa !9
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  store double %103, ptr %104, align 8, !tbaa !9
  store i1 true, ptr %6, align 1
  store i32 1, ptr %16, align 4
  br label %323

105:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef 1) #7
  store ptr %107, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %108 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 3
  %109 = load double, ptr %108, align 8, !tbaa !24
  %110 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 3
  %111 = load double, ptr %110, align 8, !tbaa !24
  %112 = fneg double %109
  %113 = call double @llvm.fmuladd.f64(double %112, double %111, double 1.000000e+00)
  store double %113, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %114 = load double, ptr %15, align 8, !tbaa !9
  store double %114, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !25
  br label %115

115:                                              ; preds = %317, %105
  %116 = load i32, ptr %20, align 4, !tbaa !25
  %117 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 2
  %118 = load i32, ptr %117, align 4, !tbaa !23
  %119 = icmp slt i32 %116, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %115
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %320

121:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter::Buffer", ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %125 = load i32, ptr %124, align 8, !tbaa !22
  %126 = add nsw i32 %125, 1
  %127 = load i32, ptr %20, align 4, !tbaa !25
  %128 = mul nsw i32 %126, %127
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %129) #7
  store ptr %130, ptr %21, align 8, !tbaa !5
  %131 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 4
  %132 = load i8, ptr %131, align 8, !tbaa !26, !range !20, !noundef !21
  %133 = trunc i8 %132 to i1
  br i1 %133, label %134, label %229

134:                                              ; preds = %121
  %135 = load double, ptr %18, align 8, !tbaa !9
  %136 = load ptr, ptr %21, align 8, !tbaa !5
  %137 = getelementptr inbounds double, ptr %136, i64 0
  %138 = load double, ptr %137, align 8, !tbaa !9
  %139 = load double, ptr %19, align 8, !tbaa !9
  %140 = fneg double %135
  %141 = call double @llvm.fmuladd.f64(double %140, double %138, double %139)
  store double %141, ptr %19, align 8, !tbaa !9
  %142 = load ptr, ptr %17, align 8, !tbaa !5
  %143 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %144 = load i32, ptr %143, align 8, !tbaa !22
  %145 = sub nsw i32 %144, 1
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %142, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !9
  %149 = load double, ptr %19, align 8, !tbaa !9
  %150 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 3
  %151 = load double, ptr %150, align 8, !tbaa !24
  %152 = load ptr, ptr %21, align 8, !tbaa !5
  %153 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %154 = load i32, ptr %153, align 8, !tbaa !22
  %155 = sub nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds double, ptr %152, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !9
  %159 = fmul double %151, %158
  %160 = call double @llvm.fmuladd.f64(double %148, double %149, double %159)
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  %162 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %163 = load i32, ptr %162, align 8, !tbaa !22
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds double, ptr %161, i64 %164
  store double %160, ptr %165, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %166 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %167 = load i32, ptr %166, align 8, !tbaa !22
  %168 = sub nsw i32 %167, 1
  store i32 %168, ptr %22, align 4, !tbaa !25
  br label %169

169:                                              ; preds = %204, %134
  %170 = load i32, ptr %22, align 4, !tbaa !25
  %171 = icmp slt i32 0, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %169
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %207

173:                                              ; preds = %169
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = load i32, ptr %22, align 4, !tbaa !25
  %176 = sub nsw i32 %175, 1
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds double, ptr %174, i64 %177
  %179 = load double, ptr %178, align 8, !tbaa !9
  %180 = load double, ptr %19, align 8, !tbaa !9
  %181 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 3
  %182 = load double, ptr %181, align 8, !tbaa !24
  %183 = load ptr, ptr %21, align 8, !tbaa !5
  %184 = load i32, ptr %22, align 4, !tbaa !25
  %185 = sub nsw i32 %184, 1
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %183, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !9
  %189 = load ptr, ptr %21, align 8, !tbaa !5
  %190 = load i32, ptr %22, align 4, !tbaa !25
  %191 = add nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds double, ptr %189, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !9
  %195 = fsub double %188, %194
  %196 = fmul double %182, %195
  %197 = call double @llvm.fmuladd.f64(double %179, double %180, double %196)
  %198 = load ptr, ptr %21, align 8, !tbaa !5
  %199 = load i32, ptr %22, align 4, !tbaa !25
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds double, ptr %198, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !9
  %203 = fadd double %202, %197
  store double %203, ptr %201, align 8, !tbaa !9
  br label %204

204:                                              ; preds = %173
  %205 = load i32, ptr %22, align 4, !tbaa !25
  %206 = add nsw i32 %205, -1
  store i32 %206, ptr %22, align 4, !tbaa !25
  br label %169, !llvm.loop !27

207:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !25
  br label %208

208:                                              ; preds = %225, %207
  %209 = load i32, ptr %23, align 4, !tbaa !25
  %210 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %211 = load i32, ptr %210, align 8, !tbaa !22
  %212 = icmp slt i32 %209, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %208
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %228

214:                                              ; preds = %208
  %215 = load ptr, ptr %21, align 8, !tbaa !5
  %216 = load i32, ptr %23, align 4, !tbaa !25
  %217 = add nsw i32 %216, 1
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds double, ptr %215, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !9
  %221 = load ptr, ptr %21, align 8, !tbaa !5
  %222 = load i32, ptr %23, align 4, !tbaa !25
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds double, ptr %221, i64 %223
  store double %220, ptr %224, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %214
  %226 = load i32, ptr %23, align 4, !tbaa !25
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %23, align 4, !tbaa !25
  br label %208, !llvm.loop !29

228:                                              ; preds = %213
  br label %316

229:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %230 = load ptr, ptr %21, align 8, !tbaa !5
  %231 = getelementptr inbounds double, ptr %230, i64 0
  %232 = load double, ptr %231, align 8, !tbaa !9
  %233 = load ptr, ptr %17, align 8, !tbaa !5
  %234 = getelementptr inbounds double, ptr %233, i64 0
  %235 = load double, ptr %234, align 8, !tbaa !9
  %236 = fmul double %232, %235
  store double %236, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 1, ptr %25, align 4, !tbaa !25
  br label %237

237:                                              ; preds = %277, %229
  %238 = load i32, ptr %25, align 4, !tbaa !25
  %239 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %240 = load i32, ptr %239, align 8, !tbaa !22
  %241 = icmp slt i32 %238, %240
  br i1 %241, label %243, label %242

242:                                              ; preds = %237
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %280

243:                                              ; preds = %237
  %244 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 3
  %245 = load double, ptr %244, align 8, !tbaa !24
  %246 = load ptr, ptr %21, align 8, !tbaa !5
  %247 = load i32, ptr %25, align 4, !tbaa !25
  %248 = add nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds double, ptr %246, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !9
  %252 = load ptr, ptr %21, align 8, !tbaa !5
  %253 = load i32, ptr %25, align 4, !tbaa !25
  %254 = sub nsw i32 %253, 1
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds double, ptr %252, i64 %255
  %257 = load double, ptr %256, align 8, !tbaa !9
  %258 = fsub double %251, %257
  %259 = load ptr, ptr %21, align 8, !tbaa !5
  %260 = load i32, ptr %25, align 4, !tbaa !25
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds double, ptr %259, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !9
  %264 = call double @llvm.fmuladd.f64(double %245, double %258, double %263)
  store double %264, ptr %262, align 8, !tbaa !9
  %265 = load ptr, ptr %21, align 8, !tbaa !5
  %266 = load i32, ptr %25, align 4, !tbaa !25
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds double, ptr %265, i64 %267
  %269 = load double, ptr %268, align 8, !tbaa !9
  %270 = load ptr, ptr %17, align 8, !tbaa !5
  %271 = load i32, ptr %25, align 4, !tbaa !25
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds double, ptr %270, i64 %272
  %274 = load double, ptr %273, align 8, !tbaa !9
  %275 = load double, ptr %24, align 8, !tbaa !9
  %276 = call double @llvm.fmuladd.f64(double %269, double %274, double %275)
  store double %276, ptr %24, align 8, !tbaa !9
  br label %277

277:                                              ; preds = %243
  %278 = load i32, ptr %25, align 4, !tbaa !25
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %25, align 4, !tbaa !25
  br label %237, !llvm.loop !30

280:                                              ; preds = %242
  %281 = load double, ptr %24, align 8, !tbaa !9
  %282 = load double, ptr %19, align 8, !tbaa !9
  %283 = fsub double %282, %281
  store double %283, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %284 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 1
  %285 = load i32, ptr %284, align 8, !tbaa !22
  store i32 %285, ptr %26, align 4, !tbaa !25
  br label %286

286:                                              ; preds = %301, %280
  %287 = load i32, ptr %26, align 4, !tbaa !25
  %288 = icmp slt i32 0, %287
  br i1 %288, label %290, label %289

289:                                              ; preds = %286
  store i32 14, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %304

290:                                              ; preds = %286
  %291 = load ptr, ptr %21, align 8, !tbaa !5
  %292 = load i32, ptr %26, align 4, !tbaa !25
  %293 = sub nsw i32 %292, 1
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds double, ptr %291, i64 %294
  %296 = load double, ptr %295, align 8, !tbaa !9
  %297 = load ptr, ptr %21, align 8, !tbaa !5
  %298 = load i32, ptr %26, align 4, !tbaa !25
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds double, ptr %297, i64 %299
  store double %296, ptr %300, align 8, !tbaa !9
  br label %301

301:                                              ; preds = %290
  %302 = load i32, ptr %26, align 4, !tbaa !25
  %303 = add nsw i32 %302, -1
  store i32 %303, ptr %26, align 4, !tbaa !25
  br label %286, !llvm.loop !31

304:                                              ; preds = %289
  %305 = getelementptr inbounds %"class.sptk::MglsaDigitalFilter", ptr %27, i32 0, i32 3
  %306 = load double, ptr %305, align 8, !tbaa !24
  %307 = load ptr, ptr %21, align 8, !tbaa !5
  %308 = getelementptr inbounds double, ptr %307, i64 0
  %309 = load double, ptr %308, align 8, !tbaa !9
  %310 = load double, ptr %18, align 8, !tbaa !9
  %311 = load double, ptr %19, align 8, !tbaa !9
  %312 = fmul double %310, %311
  %313 = call double @llvm.fmuladd.f64(double %306, double %309, double %312)
  %314 = load ptr, ptr %21, align 8, !tbaa !5
  %315 = getelementptr inbounds double, ptr %314, i64 0
  store double %313, ptr %315, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %316

316:                                              ; preds = %304, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %20, align 4, !tbaa !25
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %20, align 4, !tbaa !25
  br label %115, !llvm.loop !32

320:                                              ; preds = %120
  %321 = load double, ptr %19, align 8, !tbaa !9
  %322 = load ptr, ptr %10, align 8, !tbaa !5
  store double %321, ptr %322, align 8, !tbaa !9
  store i1 true, ptr %6, align 1
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %323

323:                                              ; preds = %320, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %324

324:                                              ; preds = %323, %50, %45
  %325 = load i1, ptr %6, align 1
  ret i1 %325
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

declare noundef zeroext i1 @_ZNK4sptk17MlsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24), double noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

; Function Attrs: nounwind
declare double @exp(double noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

attributes #0 = { 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 #1 = { 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 = { "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 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!11 = !{!12, !14, i64 88}
!12 = !{!"_ZTSN4sptk18MglsaDigitalFilterE", !13, i64 8, !13, i64 12, !10, i64 16, !14, i64 24, !15, i64 32, !14, i64 88}
!13 = !{!"int", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN4sptk17MlsaDigitalFilterE", !13, i64 8, !13, i64 12, !10, i64 16, !14, i64 24, !14, i64 25, !16, i64 32}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!12, !13, i64 8}
!23 = !{!12, !13, i64 12}
!24 = !{!12, !10, i64 16}
!25 = !{!13, !13, i64 0}
!26 = !{!12, !14, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !28}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !28}


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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk18MglsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 align 2 {
  %6 = alloca double, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 88
  %8 = load i8, ptr %7, align 8, !tbaa !5, !range !18, !noundef !19
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %154

10:                                               ; preds = %5
  %11 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !20
  %14 = add nsw i32 %13, 1
  %15 = sext i32 %14 to i64
  %16 = icmp ne i64 %11, %15
  %17 = icmp eq ptr %3, null
  %or.cond = or i1 %17, %16
  %18 = icmp eq ptr %4, null
  %or.cond3 = or i1 %18, %or.cond
  br i1 %or.cond3, label %154, label %19

19:                                               ; preds = %10
  %20 = getelementptr inbounds i8, ptr %0, i64 12
  %21 = load i32, ptr %20, align 4, !tbaa !21
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %27

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 32
  %25 = getelementptr inbounds i8, ptr %4, i64 32
  %26 = tail call noundef zeroext i1 @_ZNK4sptk17MlsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(56) %24, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %25)
  br label %154

27:                                               ; preds = %19
  %28 = getelementptr inbounds i8, ptr %4, i64 8
  %29 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  %30 = load i32, ptr %12, align 8, !tbaa !20
  %31 = add nsw i32 %30, 1
  %32 = load i32, ptr %20, align 4, !tbaa !21
  %33 = mul nsw i32 %31, %32
  %34 = sext i32 %33 to i64
  %.not = icmp eq i64 %29, %34
  br i1 %.not, label %38, label %35

35:                                               ; preds = %27
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %34)
  %36 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  %37 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  store double 0.000000e+00, ptr %6, align 8, !tbaa !22
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %36, ptr %37, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %38

38:                                               ; preds = %35, %27
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #8
  %40 = load double, ptr %39, align 8, !tbaa !22
  %41 = call double @exp(double noundef %40) #8
  %42 = fmul double %41, %2
  %43 = load i32, ptr %12, align 8, !tbaa !20
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %.loopexit91, label %45

45:                                               ; preds = %38
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #8
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  %48 = load double, ptr %47, align 8, !tbaa !23
  %49 = fneg double %48
  %50 = call double @llvm.fmuladd.f64(double %49, double %48, double 1.000000e+00)
  %51 = load i32, ptr %20, align 4, !tbaa !21
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.lr.ph107, label %.loopexit91

.lr.ph107:                                        ; preds = %45
  %53 = getelementptr inbounds i8, ptr %0, i64 24
  %54 = fneg double %50
  %.pre = load i32, ptr %12, align 8, !tbaa !20
  br label %55

55:                                               ; preds = %.lr.ph107, %.loopexit
  %56 = phi i32 [ %.pre, %.lr.ph107 ], [ %150, %.loopexit ]
  %.084105 = phi i32 [ 0, %.lr.ph107 ], [ %151, %.loopexit ]
  %.085104 = phi double [ %42, %.lr.ph107 ], [ %.186, %.loopexit ]
  %57 = add nsw i32 %56, 1
  %58 = mul nsw i32 %57, %.084105
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %59) #8
  %61 = load i8, ptr %53, align 8, !tbaa !24, !range !18, !noundef !19
  %62 = trunc nuw i8 %61 to i1
  %63 = load double, ptr %60, align 8, !tbaa !22
  br i1 %62, label %64, label %97

64:                                               ; preds = %55
  %65 = call double @llvm.fmuladd.f64(double %54, double %63, double %.085104)
  %66 = load i32, ptr %12, align 8, !tbaa !20
  %67 = add nsw i32 %66, -1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %46, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !22
  %71 = load double, ptr %47, align 8, !tbaa !23
  %72 = getelementptr inbounds double, ptr %60, i64 %68
  %73 = load double, ptr %72, align 8, !tbaa !22
  %74 = fmul double %71, %73
  %75 = call double @llvm.fmuladd.f64(double %70, double %65, double %74)
  %76 = sext i32 %66 to i64
  %77 = getelementptr inbounds double, ptr %60, i64 %76
  store double %75, ptr %77, align 8, !tbaa !22
  %78 = icmp sgt i32 %66, 1
  br i1 %78, label %.lr.ph101.preheader, label %.preheader

.lr.ph101.preheader:                              ; preds = %64
  %79 = zext nneg i32 %66 to i64
  %.phi.trans.insert122 = getelementptr inbounds double, ptr %60, i64 %79
  %.pre123 = load double, ptr %.phi.trans.insert122, align 8, !tbaa !22
  br label %.lr.ph101

.preheader:                                       ; preds = %.lr.ph101, %64
  %80 = icmp sgt i32 %66, 0
  br i1 %80, label %.lr.ph103.preheader, label %.loopexit

.lr.ph103.preheader:                              ; preds = %.preheader
  %scevgep = getelementptr inbounds i8, ptr %60, i64 8
  %81 = zext nneg i32 %66 to i64
  %82 = shl nuw nsw i64 %81, 3
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 8 %60, ptr nonnull align 8 %scevgep, i64 %82, i1 false), !tbaa !22
  br label %.loopexit

.lr.ph101:                                        ; preds = %.lr.ph101.preheader, %.lr.ph101
  %83 = phi double [ %.pre123, %.lr.ph101.preheader ], [ %95, %.lr.ph101 ]
  %indvars.iv115 = phi i64 [ %79, %.lr.ph101.preheader ], [ %indvars.iv.next116, %.lr.ph101 ]
  %indvars.iv.next116 = add nsw i64 %indvars.iv115, -1
  %84 = add nsw i64 %indvars.iv115, -2
  %85 = getelementptr inbounds double, ptr %46, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !22
  %87 = load double, ptr %47, align 8, !tbaa !23
  %88 = getelementptr inbounds double, ptr %60, i64 %84
  %89 = load double, ptr %88, align 8, !tbaa !22
  %90 = fsub double %89, %83
  %91 = fmul double %87, %90
  %92 = call double @llvm.fmuladd.f64(double %86, double %65, double %91)
  %93 = getelementptr inbounds double, ptr %60, i64 %indvars.iv.next116
  %94 = load double, ptr %93, align 8, !tbaa !22
  %95 = fadd double %94, %92
  store double %95, ptr %93, align 8, !tbaa !22
  %96 = icmp ugt i64 %indvars.iv115, 2
  br i1 %96, label %.lr.ph101, label %.preheader, !llvm.loop !25

97:                                               ; preds = %55
  %98 = load double, ptr %46, align 8, !tbaa !22
  %99 = fmul double %63, %98
  %100 = load i32, ptr %12, align 8, !tbaa !20
  %101 = icmp sgt i32 %100, 1
  br i1 %101, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %97
  %wide.trip.count = zext nneg i32 %100 to i64
  %.phi.trans.insert = getelementptr inbounds i8, ptr %60, i64 8
  %.pre121 = load double, ptr %.phi.trans.insert, align 8, !tbaa !22
  %load_initial = load double, ptr %60, align 8
  %102 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %102, 1
  %103 = icmp eq i32 %100, 2
  br i1 %103, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %102, -2
  br label %.lr.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %141, %.lr.ph ]
  %store_forwarded.unr = phi double [ %load_initial, %.lr.ph.preheader ], [ %138, %.lr.ph ]
  %.unr = phi double [ %.pre121, %.lr.ph.preheader ], [ %135, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %.08092.unr = phi double [ %99, %.lr.ph.preheader ], [ %141, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %104 = load double, ptr %47, align 8, !tbaa !23
  %105 = getelementptr double, ptr %60, i64 %indvars.iv.unr
  %106 = getelementptr i8, ptr %105, i64 8
  %107 = load double, ptr %106, align 8, !tbaa !22
  %108 = getelementptr double, ptr %60, i64 %indvars.iv.unr
  %109 = fsub double %107, %store_forwarded.unr
  %110 = call double @llvm.fmuladd.f64(double %104, double %109, double %.unr)
  store double %110, ptr %108, align 8, !tbaa !22
  %111 = getelementptr inbounds double, ptr %46, i64 %indvars.iv.unr
  %112 = load double, ptr %111, align 8, !tbaa !22
  %113 = call double @llvm.fmuladd.f64(double %110, double %112, double %.08092.unr)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %97
  %.080.lcssa = phi double [ %99, %97 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %113, %.lr.ph.epil ]
  %114 = fsub double %.085104, %.080.lcssa
  %115 = icmp sgt i32 %100, 0
  br i1 %115, label %.lr.ph97.preheader, label %._crit_edge98

.lr.ph97.preheader:                               ; preds = %._crit_edge
  %116 = zext nneg i32 %100 to i64
  %min.iters.check = icmp ult i32 %100, 4
  br i1 %min.iters.check, label %.lr.ph97.preheader128, label %vector.ph

.lr.ph97.preheader128:                            ; preds = %middle.block, %.lr.ph97.preheader
  %indvars.iv112.ph = phi i64 [ %116, %.lr.ph97.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph97

vector.ph:                                        ; preds = %.lr.ph97.preheader
  %n.vec = and i64 %116, 2147483644
  %ind.end = and i64 %116, 3
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = sub i64 %116, %index
  %117 = getelementptr double, ptr %60, i64 %offset.idx
  %118 = getelementptr i8, ptr %117, i64 -16
  %119 = getelementptr i8, ptr %117, i64 -32
  %wide.load = load <2 x double>, ptr %118, align 8, !tbaa !22
  %wide.load124 = load <2 x double>, ptr %119, align 8, !tbaa !22
  %120 = getelementptr i8, ptr %117, i64 -8
  %121 = getelementptr i8, ptr %117, i64 -24
  store <2 x double> %wide.load, ptr %120, align 8, !tbaa !22
  store <2 x double> %wide.load124, ptr %121, align 8, !tbaa !22
  %index.next = add nuw i64 %index, 4
  %122 = icmp eq i64 %index.next, %n.vec
  br i1 %122, label %middle.block, label %vector.body, !llvm.loop !27

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %116
  br i1 %cmp.n, label %._crit_edge98, label %.lr.ph97.preheader128

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %store_forwarded = phi double [ %load_initial, %.lr.ph.preheader.new ], [ %138, %.lr.ph ]
  %123 = phi double [ %.pre121, %.lr.ph.preheader.new ], [ %135, %.lr.ph ]
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %.08092 = phi double [ %99, %.lr.ph.preheader.new ], [ %141, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %124 = load double, ptr %47, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %125 = getelementptr inbounds double, ptr %60, i64 %indvars.iv.next
  %126 = load double, ptr %125, align 8, !tbaa !22
  %127 = getelementptr double, ptr %60, i64 %indvars.iv
  %128 = fsub double %126, %store_forwarded
  %129 = call double @llvm.fmuladd.f64(double %124, double %128, double %123)
  store double %129, ptr %127, align 8, !tbaa !22
  %130 = getelementptr inbounds double, ptr %46, i64 %indvars.iv
  %131 = load double, ptr %130, align 8, !tbaa !22
  %132 = call double @llvm.fmuladd.f64(double %129, double %131, double %.08092)
  %133 = load double, ptr %47, align 8, !tbaa !23
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %134 = getelementptr inbounds double, ptr %60, i64 %indvars.iv.next.1
  %135 = load double, ptr %134, align 8, !tbaa !22
  %136 = getelementptr double, ptr %60, i64 %indvars.iv.next
  %137 = fsub double %135, %129
  %138 = call double @llvm.fmuladd.f64(double %133, double %137, double %126)
  store double %138, ptr %136, align 8, !tbaa !22
  %139 = getelementptr inbounds double, ptr %46, i64 %indvars.iv.next
  %140 = load double, ptr %139, align 8, !tbaa !22
  %141 = call double @llvm.fmuladd.f64(double %138, double %140, double %132)
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !30

._crit_edge98:                                    ; preds = %.lr.ph97, %middle.block, %._crit_edge
  %142 = load double, ptr %47, align 8, !tbaa !23
  %143 = load double, ptr %60, align 8, !tbaa !22
  %144 = fmul double %50, %114
  %145 = call double @llvm.fmuladd.f64(double %142, double %143, double %144)
  store double %145, ptr %60, align 8, !tbaa !22
  br label %.loopexit

.lr.ph97:                                         ; preds = %.lr.ph97.preheader128, %.lr.ph97
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %.lr.ph97 ], [ %indvars.iv112.ph, %.lr.ph97.preheader128 ]
  %146 = getelementptr double, ptr %60, i64 %indvars.iv112
  %147 = getelementptr i8, ptr %146, i64 -8
  %148 = load double, ptr %147, align 8, !tbaa !22
  store double %148, ptr %146, align 8, !tbaa !22
  %indvars.iv.next113 = add nsw i64 %indvars.iv112, -1
  %149 = icmp ugt i64 %indvars.iv112, 1
  br i1 %149, label %.lr.ph97, label %._crit_edge98, !llvm.loop !31

.loopexit:                                        ; preds = %.lr.ph103.preheader, %.preheader, %._crit_edge98
  %150 = phi i32 [ %100, %._crit_edge98 ], [ %66, %.preheader ], [ %66, %.lr.ph103.preheader ]
  %.186 = phi double [ %114, %._crit_edge98 ], [ %65, %.preheader ], [ %65, %.lr.ph103.preheader ]
  %151 = add nuw nsw i32 %.084105, 1
  %152 = load i32, ptr %20, align 4, !tbaa !21
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %55, label %.loopexit91, !llvm.loop !32

.loopexit91:                                      ; preds = %.loopexit, %45, %38
  %storemerge = phi double [ %42, %38 ], [ %42, %45 ], [ %.186, %.loopexit ]
  store double %storemerge, ptr %3, align 8, !tbaa !22
  br label %154

154:                                              ; preds = %5, %10, %.loopexit91, %23
  %.1 = phi i1 [ %26, %23 ], [ true, %.loopexit91 ], [ false, %10 ], [ false, %5 ]
  ret i1 %.1
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK4sptk17MlsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(24), double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

attributes #0 = { 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 #1 = { 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 = { "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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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, !11, i64 88}
!6 = !{!"_ZTSN4sptk18MglsaDigitalFilterE", !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 24, !12, i64 32, !11, i64 88}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN4sptk17MlsaDigitalFilterE", !7, i64 8, !7, i64 12, !10, i64 16, !11, i64 24, !11, i64 25, !13, i64 32}
!13 = !{!"_ZTSSt6vectorIdSaIdEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!6, !7, i64 8}
!21 = !{!6, !7, i64 12}
!22 = !{!10, !10, i64 0}
!23 = !{!6, !10, i64 16}
!24 = !{!6, !11, i64 24}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26, !28, !29}
!28 = !{!"llvm.loop.isvectorized", i32 1}
!29 = !{!"llvm.loop.unroll.runtime.disable"}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26, !29, !28}
!32 = distinct !{!32, !26}


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