; LLVM IR from sp-nitech/SPTK :: src/filter (inverse_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.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::negate" = type { i8 }
%"class.sptk::InverseMglsaDigitalFilter" = 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::InverseMglsaDigitalFilter::Buffer" = type { ptr, %"class.std::vector", %"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 @_ZNK4sptk25InverseMglsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_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.0", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"struct.std::negate", align 1
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = 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
  %33 = load ptr, ptr %7, align 8
  %34 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 7
  %35 = load i8, ptr %34, align 8, !tbaa !11, !range !20, !noundef !21
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %51

37:                                               ; preds = %5
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #7
  %40 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !22
  %42 = add nsw i32 %41, 1
  %43 = sext i32 %42 to i64
  %44 = icmp ne i64 %39, %43
  br i1 %44, label %51, label %45

45:                                               ; preds = %37
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = icmp eq ptr null, %46
  br i1 %47, label %51, label %48

48:                                               ; preds = %45
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = icmp eq ptr null, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %48, %45, %37, %5
  store i1 false, ptr %6, align 1
  br label %367

52:                                               ; preds = %48
  %53 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 2
  %54 = load i32, ptr %53, align 4, !tbaa !23
  %55 = icmp eq i32 0, %54
  br i1 %55, label %56, label %99

56:                                               ; preds = %52
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %57, i32 0, i32 2
  %59 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #7
  %60 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !22
  %62 = add nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = icmp ne i64 %59, %63
  br i1 %64, label %65, label %72

65:                                               ; preds = %56
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %69 = load i32, ptr %68, align 8, !tbaa !22
  %70 = add nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %71)
  br label %72

72:                                               ; preds = %65, %56
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #7
  %75 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %12, i32 0, i32 0
  store ptr %74, ptr %75, align 8
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #7
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %13, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %79, i32 0, i32 2
  %81 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #7
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %12, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %13, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8
  %89 = call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EESt6negateIdEET0_T_SD_SC_T1_(ptr %84, ptr %86, ptr %88)
  %90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %89, ptr %90, align 8
  %91 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 6
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %92, i32 0, i32 2
  %94 = load double, ptr %9, align 8, !tbaa !9
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %96, i32 0, i32 3
  %98 = call noundef zeroext i1 @_ZNK4sptk17MlsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(56) %91, ptr noundef nonnull align 8 dereferenceable(24) %93, double noundef %94, ptr noundef %95, ptr noundef %97)
  store i1 %98, ptr %6, align 1
  br label %367

99:                                               ; preds = %52
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %100, i32 0, i32 1
  %102 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %101) #7
  %103 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %104 = load i32, ptr %103, align 8, !tbaa !22
  %105 = add nsw i32 %104, 1
  %106 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 2
  %107 = load i32, ptr %106, align 4, !tbaa !23
  %108 = mul nsw i32 %105, %107
  %109 = sext i32 %108 to i64
  %110 = icmp ne i64 %102, %109
  br i1 %110, label %111, label %133

111:                                              ; preds = %99
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %112, i32 0, i32 1
  %114 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %115 = load i32, ptr %114, align 8, !tbaa !22
  %116 = add nsw i32 %115, 1
  %117 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 2
  %118 = load i32, ptr %117, align 4, !tbaa !23
  %119 = mul nsw i32 %116, %118
  %120 = sext i32 %119 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %120)
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %121, i32 0, i32 1
  %123 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #7
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %125, i32 0, i32 1
  %127 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #7
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %127, ptr %128, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store double 0.000000e+00, ptr %19, align 8, !tbaa !9
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8
  %131 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8
  call void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %130, ptr %132, ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %133

133:                                              ; preds = %111, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %134 = load double, ptr %9, align 8, !tbaa !9
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef 0) #7
  %137 = load double, ptr %136, align 8, !tbaa !9
  %138 = fneg double %137
  %139 = call double @exp(double noundef %138) #7
  %140 = fmul double %134, %139
  store double %140, ptr %20, align 8, !tbaa !9
  %141 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %142 = load i32, ptr %141, align 8, !tbaa !22
  %143 = icmp eq i32 0, %142
  br i1 %143, label %144, label %147

144:                                              ; preds = %133
  %145 = load double, ptr %20, align 8, !tbaa !9
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  store double %145, ptr %146, align 8, !tbaa !9
  store i1 true, ptr %6, align 1
  store i32 1, ptr %21, align 4
  br label %366

147:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef 1) #7
  store ptr %149, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %150 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 3
  %151 = load double, ptr %150, align 8, !tbaa !24
  %152 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 3
  %153 = load double, ptr %152, align 8, !tbaa !24
  %154 = fneg double %151
  %155 = call double @llvm.fmuladd.f64(double %154, double %153, double 1.000000e+00)
  store double %155, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %156 = load double, ptr %20, align 8, !tbaa !9
  store double %156, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !25
  br label %157

157:                                              ; preds = %360, %147
  %158 = load i32, ptr %25, align 4, !tbaa !25
  %159 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 2
  %160 = load i32, ptr %159, align 4, !tbaa !23
  %161 = icmp slt i32 %158, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %157
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %363

163:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter::Buffer", ptr %164, i32 0, i32 1
  %166 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %167 = load i32, ptr %166, align 8, !tbaa !22
  %168 = add nsw i32 %167, 1
  %169 = load i32, ptr %25, align 4, !tbaa !25
  %170 = mul nsw i32 %168, %169
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %165, i64 noundef %171) #7
  store ptr %172, ptr %26, align 8, !tbaa !5
  %173 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 4
  %174 = load i8, ptr %173, align 8, !tbaa !26, !range !20, !noundef !21
  %175 = trunc i8 %174 to i1
  br i1 %175, label %176, label %271

176:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %177 = load double, ptr %24, align 8, !tbaa !9
  %178 = load double, ptr %23, align 8, !tbaa !9
  %179 = load ptr, ptr %26, align 8, !tbaa !5
  %180 = getelementptr inbounds double, ptr %179, i64 0
  %181 = load double, ptr %180, align 8, !tbaa !9
  %182 = call double @llvm.fmuladd.f64(double %178, double %181, double %177)
  store double %182, ptr %27, align 8, !tbaa !9
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  %184 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %185 = load i32, ptr %184, align 8, !tbaa !22
  %186 = sub nsw i32 %185, 1
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds double, ptr %183, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !9
  %190 = load double, ptr %24, align 8, !tbaa !9
  %191 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 3
  %192 = load double, ptr %191, align 8, !tbaa !24
  %193 = load ptr, ptr %26, align 8, !tbaa !5
  %194 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %195 = load i32, ptr %194, align 8, !tbaa !22
  %196 = sub nsw i32 %195, 1
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %193, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !9
  %200 = fmul double %192, %199
  %201 = call double @llvm.fmuladd.f64(double %189, double %190, double %200)
  %202 = load ptr, ptr %26, align 8, !tbaa !5
  %203 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %204 = load i32, ptr %203, align 8, !tbaa !22
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds double, ptr %202, i64 %205
  store double %201, ptr %206, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %207 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %208 = load i32, ptr %207, align 8, !tbaa !22
  %209 = sub nsw i32 %208, 1
  store i32 %209, ptr %28, align 4, !tbaa !25
  br label %210

210:                                              ; preds = %245, %176
  %211 = load i32, ptr %28, align 4, !tbaa !25
  %212 = icmp slt i32 0, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %210
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %248

214:                                              ; preds = %210
  %215 = load ptr, ptr %22, align 8, !tbaa !5
  %216 = load i32, ptr %28, align 4, !tbaa !25
  %217 = sub 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 double, ptr %24, align 8, !tbaa !9
  %222 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 3
  %223 = load double, ptr %222, align 8, !tbaa !24
  %224 = load ptr, ptr %26, align 8, !tbaa !5
  %225 = load i32, ptr %28, align 4, !tbaa !25
  %226 = sub nsw i32 %225, 1
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds double, ptr %224, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !9
  %230 = load ptr, ptr %26, align 8, !tbaa !5
  %231 = load i32, ptr %28, align 4, !tbaa !25
  %232 = add nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds double, ptr %230, i64 %233
  %235 = load double, ptr %234, align 8, !tbaa !9
  %236 = fsub double %229, %235
  %237 = fmul double %223, %236
  %238 = call double @llvm.fmuladd.f64(double %220, double %221, double %237)
  %239 = load ptr, ptr %26, align 8, !tbaa !5
  %240 = load i32, ptr %28, align 4, !tbaa !25
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds double, ptr %239, i64 %241
  %243 = load double, ptr %242, align 8, !tbaa !9
  %244 = fadd double %243, %238
  store double %244, ptr %242, align 8, !tbaa !9
  br label %245

245:                                              ; preds = %214
  %246 = load i32, ptr %28, align 4, !tbaa !25
  %247 = add nsw i32 %246, -1
  store i32 %247, ptr %28, align 4, !tbaa !25
  br label %210, !llvm.loop !27

248:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !25
  br label %249

249:                                              ; preds = %266, %248
  %250 = load i32, ptr %29, align 4, !tbaa !25
  %251 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %252 = load i32, ptr %251, align 8, !tbaa !22
  %253 = icmp slt i32 %250, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %249
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %269

255:                                              ; preds = %249
  %256 = load ptr, ptr %26, align 8, !tbaa !5
  %257 = load i32, ptr %29, align 4, !tbaa !25
  %258 = add nsw i32 %257, 1
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %256, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !9
  %262 = load ptr, ptr %26, align 8, !tbaa !5
  %263 = load i32, ptr %29, align 4, !tbaa !25
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds double, ptr %262, i64 %264
  store double %261, ptr %265, align 8, !tbaa !9
  br label %266

266:                                              ; preds = %255
  %267 = load i32, ptr %29, align 4, !tbaa !25
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %29, align 4, !tbaa !25
  br label %249, !llvm.loop !29

269:                                              ; preds = %254
  %270 = load double, ptr %27, align 8, !tbaa !9
  store double %270, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %359

271:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %272 = load ptr, ptr %26, align 8, !tbaa !5
  %273 = getelementptr inbounds double, ptr %272, i64 0
  %274 = load double, ptr %273, align 8, !tbaa !9
  %275 = load ptr, ptr %22, align 8, !tbaa !5
  %276 = getelementptr inbounds double, ptr %275, i64 0
  %277 = load double, ptr %276, align 8, !tbaa !9
  %278 = fmul double %274, %277
  store double %278, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 1, ptr %31, align 4, !tbaa !25
  br label %279

279:                                              ; preds = %319, %271
  %280 = load i32, ptr %31, align 4, !tbaa !25
  %281 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %282 = load i32, ptr %281, align 8, !tbaa !22
  %283 = icmp slt i32 %280, %282
  br i1 %283, label %285, label %284

284:                                              ; preds = %279
  store i32 11, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %322

285:                                              ; preds = %279
  %286 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 3
  %287 = load double, ptr %286, align 8, !tbaa !24
  %288 = load ptr, ptr %26, align 8, !tbaa !5
  %289 = load i32, ptr %31, align 4, !tbaa !25
  %290 = add nsw i32 %289, 1
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds double, ptr %288, i64 %291
  %293 = load double, ptr %292, align 8, !tbaa !9
  %294 = load ptr, ptr %26, align 8, !tbaa !5
  %295 = load i32, ptr %31, align 4, !tbaa !25
  %296 = sub nsw i32 %295, 1
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds double, ptr %294, i64 %297
  %299 = load double, ptr %298, align 8, !tbaa !9
  %300 = fsub double %293, %299
  %301 = load ptr, ptr %26, align 8, !tbaa !5
  %302 = load i32, ptr %31, align 4, !tbaa !25
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds double, ptr %301, i64 %303
  %305 = load double, ptr %304, align 8, !tbaa !9
  %306 = call double @llvm.fmuladd.f64(double %287, double %300, double %305)
  store double %306, ptr %304, align 8, !tbaa !9
  %307 = load ptr, ptr %26, align 8, !tbaa !5
  %308 = load i32, ptr %31, align 4, !tbaa !25
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds double, ptr %307, i64 %309
  %311 = load double, ptr %310, align 8, !tbaa !9
  %312 = load ptr, ptr %22, align 8, !tbaa !5
  %313 = load i32, ptr %31, align 4, !tbaa !25
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds double, ptr %312, i64 %314
  %316 = load double, ptr %315, align 8, !tbaa !9
  %317 = load double, ptr %30, align 8, !tbaa !9
  %318 = call double @llvm.fmuladd.f64(double %311, double %316, double %317)
  store double %318, ptr %30, align 8, !tbaa !9
  br label %319

319:                                              ; preds = %285
  %320 = load i32, ptr %31, align 4, !tbaa !25
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %31, align 4, !tbaa !25
  br label %279, !llvm.loop !30

322:                                              ; preds = %284
  %323 = load double, ptr %24, align 8, !tbaa !9
  %324 = load double, ptr %30, align 8, !tbaa !9
  %325 = fadd double %324, %323
  store double %325, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %326 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 1
  %327 = load i32, ptr %326, align 8, !tbaa !22
  store i32 %327, ptr %32, align 4, !tbaa !25
  br label %328

328:                                              ; preds = %343, %322
  %329 = load i32, ptr %32, align 4, !tbaa !25
  %330 = icmp slt i32 0, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %328
  store i32 14, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %346

332:                                              ; preds = %328
  %333 = load ptr, ptr %26, align 8, !tbaa !5
  %334 = load i32, ptr %32, align 4, !tbaa !25
  %335 = sub nsw i32 %334, 1
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds double, ptr %333, i64 %336
  %338 = load double, ptr %337, align 8, !tbaa !9
  %339 = load ptr, ptr %26, align 8, !tbaa !5
  %340 = load i32, ptr %32, align 4, !tbaa !25
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds double, ptr %339, i64 %341
  store double %338, ptr %342, align 8, !tbaa !9
  br label %343

343:                                              ; preds = %332
  %344 = load i32, ptr %32, align 4, !tbaa !25
  %345 = add nsw i32 %344, -1
  store i32 %345, ptr %32, align 4, !tbaa !25
  br label %328, !llvm.loop !31

346:                                              ; preds = %331
  %347 = getelementptr inbounds %"class.sptk::InverseMglsaDigitalFilter", ptr %33, i32 0, i32 3
  %348 = load double, ptr %347, align 8, !tbaa !24
  %349 = load ptr, ptr %26, align 8, !tbaa !5
  %350 = getelementptr inbounds double, ptr %349, i64 0
  %351 = load double, ptr %350, align 8, !tbaa !9
  %352 = load double, ptr %23, align 8, !tbaa !9
  %353 = load double, ptr %24, align 8, !tbaa !9
  %354 = fmul double %352, %353
  %355 = call double @llvm.fmuladd.f64(double %348, double %351, double %354)
  %356 = load ptr, ptr %26, align 8, !tbaa !5
  %357 = getelementptr inbounds double, ptr %356, i64 0
  store double %355, ptr %357, align 8, !tbaa !9
  %358 = load double, ptr %30, align 8, !tbaa !9
  store double %358, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %359

359:                                              ; preds = %346, %269
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %360

360:                                              ; preds = %359
  %361 = load i32, ptr %25, align 4, !tbaa !25
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %25, align 4, !tbaa !25
  br label %157, !llvm.loop !32

363:                                              ; preds = %162
  %364 = load double, ptr %24, align 8, !tbaa !9
  %365 = load ptr, ptr %10, align 8, !tbaa !5
  store double %364, ptr %365, align 8, !tbaa !9
  store i1 true, ptr %6, align 1
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %366

366:                                              ; preds = %363, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %367

367:                                              ; preds = %366, %72, %51
  %368 = load i1, ptr %6, align 1
  ret i1 %368
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EESt6negateIdEET0_T_SD_SC_T1_(ptr, ptr, ptr) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(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: 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 @_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 = !{!"_ZTSN4sptk25InverseMglsaDigitalFilterE", !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 @_ZNK4sptk25InverseMglsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_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 %165

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 %165, 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 %38

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

29:                                               ; preds = %23
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %28)
  br label %30

30:                                               ; preds = %29, %23
  %31 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %32 = tail call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %33 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #8
  %34 = tail call ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EESt6negateIdEET0_T_SD_SC_T1_(ptr %31, ptr %32, ptr %33)
  %35 = getelementptr inbounds i8, ptr %0, i64 32
  %36 = getelementptr inbounds i8, ptr %4, i64 56
  %37 = tail call noundef zeroext i1 @_ZNK4sptk17MlsaDigitalFilter3RunERKSt6vectorIdSaIdEEdPdPNS0_6BufferE(ptr noundef nonnull align 8 dereferenceable(56) %35, ptr noundef nonnull align 8 dereferenceable(24) %24, double noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %36)
  br label %165

38:                                               ; preds = %19
  %39 = getelementptr inbounds i8, ptr %4, i64 8
  %40 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #8
  %41 = load i32, ptr %12, align 8, !tbaa !20
  %42 = add nsw i32 %41, 1
  %43 = load i32, ptr %20, align 4, !tbaa !21
  %44 = mul nsw i32 %42, %43
  %45 = sext i32 %44 to i64
  %.not = icmp eq i64 %40, %45
  br i1 %.not, label %49, label %46

46:                                               ; preds = %38
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %45)
  %47 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #8
  %48 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #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 %47, ptr %48, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %49

49:                                               ; preds = %46, %38
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #8
  %51 = load double, ptr %50, align 8, !tbaa !22
  %52 = fneg double %51
  %53 = call double @exp(double noundef %52) #8
  %54 = fmul double %53, %2
  %55 = load i32, ptr %12, align 8, !tbaa !20
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %.loopexit104, label %57

57:                                               ; preds = %49
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 1) #8
  %59 = getelementptr inbounds i8, ptr %0, i64 16
  %60 = load double, ptr %59, align 8, !tbaa !23
  %61 = fneg double %60
  %62 = call double @llvm.fmuladd.f64(double %61, double %60, double 1.000000e+00)
  %63 = load i32, ptr %20, align 4, !tbaa !21
  %64 = icmp sgt i32 %63, 0
  br i1 %64, label %.lr.ph120, label %.loopexit104

.lr.ph120:                                        ; preds = %57
  %65 = getelementptr inbounds i8, ptr %0, i64 24
  %.pre = load i32, ptr %12, align 8, !tbaa !20
  br label %66

66:                                               ; preds = %.lr.ph120, %.loopexit
  %67 = phi i32 [ %.pre, %.lr.ph120 ], [ %161, %.loopexit ]
  %.095118 = phi i32 [ 0, %.lr.ph120 ], [ %162, %.loopexit ]
  %.096117 = phi double [ %54, %.lr.ph120 ], [ %.197, %.loopexit ]
  %68 = add nsw i32 %67, 1
  %69 = mul nsw i32 %68, %.095118
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %70) #8
  %72 = load i8, ptr %65, align 8, !tbaa !24, !range !18, !noundef !19
  %73 = trunc nuw i8 %72 to i1
  %74 = load double, ptr %71, align 8, !tbaa !22
  br i1 %73, label %75, label %108

75:                                               ; preds = %66
  %76 = call double @llvm.fmuladd.f64(double %62, double %74, double %.096117)
  %77 = load i32, ptr %12, align 8, !tbaa !20
  %78 = add nsw i32 %77, -1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %58, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !22
  %82 = load double, ptr %59, align 8, !tbaa !23
  %83 = getelementptr inbounds double, ptr %71, i64 %79
  %84 = load double, ptr %83, align 8, !tbaa !22
  %85 = fmul double %82, %84
  %86 = call double @llvm.fmuladd.f64(double %81, double %.096117, double %85)
  %87 = sext i32 %77 to i64
  %88 = getelementptr inbounds double, ptr %71, i64 %87
  store double %86, ptr %88, align 8, !tbaa !22
  %89 = icmp sgt i32 %77, 1
  br i1 %89, label %.lr.ph114.preheader, label %.preheader

.lr.ph114.preheader:                              ; preds = %75
  %90 = zext nneg i32 %77 to i64
  %.phi.trans.insert135 = getelementptr inbounds double, ptr %71, i64 %90
  %.pre136 = load double, ptr %.phi.trans.insert135, align 8, !tbaa !22
  br label %.lr.ph114

.preheader:                                       ; preds = %.lr.ph114, %75
  %91 = icmp sgt i32 %77, 0
  br i1 %91, label %.lr.ph116.preheader, label %.loopexit

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

.lr.ph114:                                        ; preds = %.lr.ph114.preheader, %.lr.ph114
  %94 = phi double [ %.pre136, %.lr.ph114.preheader ], [ %106, %.lr.ph114 ]
  %indvars.iv128 = phi i64 [ %90, %.lr.ph114.preheader ], [ %indvars.iv.next129, %.lr.ph114 ]
  %indvars.iv.next129 = add nsw i64 %indvars.iv128, -1
  %95 = add nsw i64 %indvars.iv128, -2
  %96 = getelementptr inbounds double, ptr %58, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !22
  %98 = load double, ptr %59, align 8, !tbaa !23
  %99 = getelementptr inbounds double, ptr %71, i64 %95
  %100 = load double, ptr %99, align 8, !tbaa !22
  %101 = fsub double %100, %94
  %102 = fmul double %98, %101
  %103 = call double @llvm.fmuladd.f64(double %97, double %.096117, double %102)
  %104 = getelementptr inbounds double, ptr %71, i64 %indvars.iv.next129
  %105 = load double, ptr %104, align 8, !tbaa !22
  %106 = fadd double %105, %103
  store double %106, ptr %104, align 8, !tbaa !22
  %107 = icmp ugt i64 %indvars.iv128, 2
  br i1 %107, label %.lr.ph114, label %.preheader, !llvm.loop !25

108:                                              ; preds = %66
  %109 = load double, ptr %58, align 8, !tbaa !22
  %110 = fmul double %74, %109
  %111 = load i32, ptr %12, align 8, !tbaa !20
  %112 = icmp sgt i32 %111, 1
  br i1 %112, label %.lr.ph.preheader, label %._crit_edge

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

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

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %152, %.lr.ph ]
  %store_forwarded.unr = phi double [ %load_initial, %.lr.ph.preheader ], [ %149, %.lr.ph ]
  %.unr = phi double [ %.pre134, %.lr.ph.preheader ], [ %146, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %.091105.unr = phi double [ %110, %.lr.ph.preheader ], [ %152, %.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
  %115 = load double, ptr %59, align 8, !tbaa !23
  %116 = getelementptr double, ptr %71, i64 %indvars.iv.unr
  %117 = getelementptr i8, ptr %116, i64 8
  %118 = load double, ptr %117, align 8, !tbaa !22
  %119 = getelementptr double, ptr %71, i64 %indvars.iv.unr
  %120 = fsub double %118, %store_forwarded.unr
  %121 = call double @llvm.fmuladd.f64(double %115, double %120, double %.unr)
  store double %121, ptr %119, align 8, !tbaa !22
  %122 = getelementptr inbounds double, ptr %58, i64 %indvars.iv.unr
  %123 = load double, ptr %122, align 8, !tbaa !22
  %124 = call double @llvm.fmuladd.f64(double %121, double %123, double %.091105.unr)
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %108
  %.091.lcssa = phi double [ %110, %108 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %124, %.lr.ph.epil ]
  %125 = fadd double %.096117, %.091.lcssa
  %126 = icmp sgt i32 %111, 0
  br i1 %126, label %.lr.ph110.preheader, label %._crit_edge111

.lr.ph110.preheader:                              ; preds = %._crit_edge
  %127 = zext nneg i32 %111 to i64
  %min.iters.check = icmp ult i32 %111, 4
  br i1 %min.iters.check, label %.lr.ph110.preheader141, label %vector.ph

.lr.ph110.preheader141:                           ; preds = %middle.block, %.lr.ph110.preheader
  %indvars.iv125.ph = phi i64 [ %127, %.lr.ph110.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph110

vector.ph:                                        ; preds = %.lr.ph110.preheader
  %n.vec = and i64 %127, 2147483644
  %ind.end = and i64 %127, 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 %127, %index
  %128 = getelementptr double, ptr %71, i64 %offset.idx
  %129 = getelementptr i8, ptr %128, i64 -16
  %130 = getelementptr i8, ptr %128, i64 -32
  %wide.load = load <2 x double>, ptr %129, align 8, !tbaa !22
  %wide.load137 = load <2 x double>, ptr %130, align 8, !tbaa !22
  %131 = getelementptr i8, ptr %128, i64 -8
  %132 = getelementptr i8, ptr %128, i64 -24
  store <2 x double> %wide.load, ptr %131, align 8, !tbaa !22
  store <2 x double> %wide.load137, ptr %132, align 8, !tbaa !22
  %index.next = add nuw i64 %index, 4
  %133 = icmp eq i64 %index.next, %n.vec
  br i1 %133, label %middle.block, label %vector.body, !llvm.loop !27

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %127
  br i1 %cmp.n, label %._crit_edge111, label %.lr.ph110.preheader141

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %store_forwarded = phi double [ %load_initial, %.lr.ph.preheader.new ], [ %149, %.lr.ph ]
  %134 = phi double [ %.pre134, %.lr.ph.preheader.new ], [ %146, %.lr.ph ]
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %.091105 = phi double [ %110, %.lr.ph.preheader.new ], [ %152, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %135 = load double, ptr %59, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %136 = getelementptr inbounds double, ptr %71, i64 %indvars.iv.next
  %137 = load double, ptr %136, align 8, !tbaa !22
  %138 = getelementptr double, ptr %71, i64 %indvars.iv
  %139 = fsub double %137, %store_forwarded
  %140 = call double @llvm.fmuladd.f64(double %135, double %139, double %134)
  store double %140, ptr %138, align 8, !tbaa !22
  %141 = getelementptr inbounds double, ptr %58, i64 %indvars.iv
  %142 = load double, ptr %141, align 8, !tbaa !22
  %143 = call double @llvm.fmuladd.f64(double %140, double %142, double %.091105)
  %144 = load double, ptr %59, align 8, !tbaa !23
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %145 = getelementptr inbounds double, ptr %71, i64 %indvars.iv.next.1
  %146 = load double, ptr %145, align 8, !tbaa !22
  %147 = getelementptr double, ptr %71, i64 %indvars.iv.next
  %148 = fsub double %146, %140
  %149 = call double @llvm.fmuladd.f64(double %144, double %148, double %137)
  store double %149, ptr %147, align 8, !tbaa !22
  %150 = getelementptr inbounds double, ptr %58, i64 %indvars.iv.next
  %151 = load double, ptr %150, align 8, !tbaa !22
  %152 = call double @llvm.fmuladd.f64(double %149, double %151, double %143)
  %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_edge111:                                   ; preds = %.lr.ph110, %middle.block, %._crit_edge
  %153 = load double, ptr %59, align 8, !tbaa !23
  %154 = load double, ptr %71, align 8, !tbaa !22
  %155 = fmul double %62, %.096117
  %156 = call double @llvm.fmuladd.f64(double %153, double %154, double %155)
  store double %156, ptr %71, align 8, !tbaa !22
  br label %.loopexit

.lr.ph110:                                        ; preds = %.lr.ph110.preheader141, %.lr.ph110
  %indvars.iv125 = phi i64 [ %indvars.iv.next126, %.lr.ph110 ], [ %indvars.iv125.ph, %.lr.ph110.preheader141 ]
  %157 = getelementptr double, ptr %71, i64 %indvars.iv125
  %158 = getelementptr i8, ptr %157, i64 -8
  %159 = load double, ptr %158, align 8, !tbaa !22
  store double %159, ptr %157, align 8, !tbaa !22
  %indvars.iv.next126 = add nsw i64 %indvars.iv125, -1
  %160 = icmp ugt i64 %indvars.iv125, 1
  br i1 %160, label %.lr.ph110, label %._crit_edge111, !llvm.loop !31

.loopexit:                                        ; preds = %.lr.ph116.preheader, %.preheader, %._crit_edge111
  %161 = phi i32 [ %111, %._crit_edge111 ], [ %77, %.preheader ], [ %77, %.lr.ph116.preheader ]
  %.197 = phi double [ %125, %._crit_edge111 ], [ %76, %.preheader ], [ %76, %.lr.ph116.preheader ]
  %162 = add nuw nsw i32 %.095118, 1
  %163 = load i32, ptr %20, align 4, !tbaa !21
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %66, label %.loopexit104, !llvm.loop !32

.loopexit104:                                     ; preds = %.loopexit, %57, %49
  %storemerge = phi double [ %54, %49 ], [ %54, %57 ], [ %.197, %.loopexit ]
  store double %storemerge, ptr %3, align 8, !tbaa !22
  br label %165

165:                                              ; preds = %5, %10, %.loopexit104, %30
  %.1 = phi i1 [ %37, %30 ], [ true, %.loopexit104 ], [ 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

; 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: mustprogress uwtable
declare dso_local ptr @_ZSt9transformIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EESt6negateIdEET0_T_SD_SC_T1_(ptr, ptr, ptr) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIdSaIdEE5beginEv(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: 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 @_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 = !{!"_ZTSN4sptk25InverseMglsaDigitalFilterE", !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