; LLVM IR from sp-nitech/SPTK :: src/window/chebyshev_window.ll (ZN4sptk15ChebyshevWindowC2Eidb)

; 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.sptk::ChebyshevWindow" = type { %"class.sptk::WindowInterface", i32, double, i8, i8, %"class.std::vector" }
%"class.sptk::WindowInterface" = type { ptr }
%"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 }

@_ZTVN4sptk15ChebyshevWindowE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk15ChebyshevWindowC2Eidb(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %1, double noundef %2, i1 noundef zeroext %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !11
  %32 = zext i1 %3 to i8
  store i8 %32, ptr %8, align 1, !tbaa !13
  %33 = load ptr, ptr %5, align 8
  call void @_ZN4sptk15WindowInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTVN4sptk15ChebyshevWindowE, i32 0, i32 0, i32 2), ptr %33, align 8, !tbaa !15
  %34 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %35 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %35, ptr %34, align 8, !tbaa !17
  %36 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 2
  %37 = load double, ptr %7, align 8, !tbaa !11
  store double %37, ptr %36, align 8, !tbaa !24
  %38 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 3
  %39 = load i8, ptr %8, align 1, !tbaa !13, !range !25, !noundef !26
  %40 = trunc i8 %39 to i1
  %41 = zext i1 %40 to i8
  store i8 %41, ptr %38, align 8, !tbaa !27
  %42 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 4
  store i8 1, ptr %42, align 1, !tbaa !28
  %43 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 5
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %44 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = icmp sle i32 %45, 0
  br i1 %46, label %51, label %47

47:                                               ; preds = %4
  %48 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 2
  %49 = load double, ptr %48, align 8, !tbaa !24
  %50 = fcmp ole double %49, 0.000000e+00
  br i1 %50, label %51, label %53

51:                                               ; preds = %47, %4
  %52 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 4
  store i8 0, ptr %52, align 1, !tbaa !28
  br label %267

53:                                               ; preds = %47
  %54 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 5
  %55 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !17
  %57 = sext i32 %56 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %57)
          to label %58 unwind label %65

58:                                               ; preds = %53
  %59 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !17
  %61 = icmp eq i32 1, %60
  br i1 %61, label %62, label %69

62:                                               ; preds = %58
  %63 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 5
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef 0) #7
  store double 1.000000e+00, ptr %64, align 8, !tbaa !11
  br label %267

65:                                               ; preds = %53
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %269

69:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %70 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 3
  %71 = load i8, ptr %70, align 8, !tbaa !27, !range !25, !noundef !26
  %72 = trunc i8 %71 to i1
  br i1 %72, label %73, label %77

73:                                               ; preds = %69
  %74 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %75 = load i32, ptr %74, align 8, !tbaa !17
  %76 = add nsw i32 %75, 1
  br label %80

77:                                               ; preds = %69
  %78 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %79 = load i32, ptr %78, align 8, !tbaa !17
  br label %80

80:                                               ; preds = %77, %73
  %81 = phi i32 [ %76, %73 ], [ %79, %77 ]
  store i32 %81, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %82 = load i32, ptr %11, align 4, !tbaa !9
  %83 = sub nsw i32 %82, 1
  store i32 %83, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %84 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 2
  %85 = load double, ptr %84, align 8, !tbaa !24
  %86 = fdiv double 1.000000e+00, %85
  store double %86, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %87 = load double, ptr %13, align 8, !tbaa !11
  %88 = call double @acosh(double noundef %87) #7
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = sitofp i32 %89 to double
  %91 = fdiv double %88, %90
  %92 = call double @cosh(double noundef %91) #7
  store double %92, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %93 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 5
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef 0) #7
  store ptr %94, ptr %15, align 8, !tbaa !5
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = invoke noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef %95)
          to label %97 unwind label %105

97:                                               ; preds = %80
  br i1 %96, label %98, label %161

98:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %157, %98
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %102 = load i32, ptr %101, align 8, !tbaa !17
  %103 = icmp slt i32 %100, %102
  br i1 %103, label %109, label %104

104:                                              ; preds = %99
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %160

105:                                              ; preds = %80
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %9, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %10, align 4
  br label %268

109:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = mul nsw i32 2, %110
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 1, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %144, %109
  %114 = load i32, ptr %21, align 4, !tbaa !9
  %115 = load i32, ptr %12, align 4, !tbaa !9
  %116 = icmp sle i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %151

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %119 = load i32, ptr %21, align 4, !tbaa !9
  %120 = sitofp i32 %119 to double
  %121 = fmul double 0x400921FB54442D18, %120
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = sitofp i32 %122 to double
  %124 = fdiv double %121, %123
  store double %124, ptr %22, align 8, !tbaa !11
  %125 = load i32, ptr %20, align 4, !tbaa !9
  %126 = sitofp i32 %125 to double
  %127 = load double, ptr %14, align 8, !tbaa !11
  %128 = load double, ptr %22, align 8, !tbaa !11
  %129 = call double @cos(double noundef %128) #7
  %130 = fmul double %127, %129
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = invoke noundef double @_ZN12_GLOBAL__N_11TEdi(double noundef %130, i32 noundef %131)
          to label %133 unwind label %147

133:                                              ; preds = %118
  %134 = fmul double %126, %132
  %135 = load double, ptr %22, align 8, !tbaa !11
  %136 = load i32, ptr %18, align 4, !tbaa !9
  %137 = sitofp i32 %136 to double
  %138 = fmul double %135, %137
  %139 = call double @cos(double noundef %138) #7
  %140 = load double, ptr %19, align 8, !tbaa !11
  %141 = call double @llvm.fmuladd.f64(double %134, double %139, double %140)
  store double %141, ptr %19, align 8, !tbaa !11
  %142 = load i32, ptr %20, align 4, !tbaa !9
  %143 = mul nsw i32 %142, -1
  store i32 %143, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %144

144:                                              ; preds = %133
  %145 = load i32, ptr %21, align 4, !tbaa !9
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %21, align 4, !tbaa !9
  br label %113, !llvm.loop !29

147:                                              ; preds = %118
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %9, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %268

151:                                              ; preds = %117
  %152 = load double, ptr %19, align 8, !tbaa !11
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = load i32, ptr %16, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %153, i64 %155
  store double %152, ptr %156, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %157

157:                                              ; preds = %151
  %158 = load i32, ptr %16, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %16, align 4, !tbaa !9
  br label %99, !llvm.loop !31

160:                                              ; preds = %104
  br label %220

161:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %216, %161
  %163 = load i32, ptr %23, align 4, !tbaa !9
  %164 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %165 = load i32, ptr %164, align 8, !tbaa !17
  %166 = icmp slt i32 %163, %165
  br i1 %166, label %168, label %167

167:                                              ; preds = %162
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %219

168:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = sdiv i32 %169, 2
  store i32 %170, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %171 = load i32, ptr %23, align 4, !tbaa !9
  %172 = load i32, ptr %24, align 4, !tbaa !9
  %173 = sub nsw i32 %171, %172
  %174 = mul nsw i32 2, %173
  store i32 %174, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  store double 0.000000e+00, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %201, %168
  %176 = load i32, ptr %27, align 4, !tbaa !9
  %177 = load i32, ptr %24, align 4, !tbaa !9
  %178 = icmp sle i32 %176, %177
  br i1 %178, label %180, label %179

179:                                              ; preds = %175
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %208

180:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %181 = load i32, ptr %27, align 4, !tbaa !9
  %182 = sitofp i32 %181 to double
  %183 = fmul double 0x400921FB54442D18, %182
  %184 = load i32, ptr %11, align 4, !tbaa !9
  %185 = sitofp i32 %184 to double
  %186 = fdiv double %183, %185
  store double %186, ptr %28, align 8, !tbaa !11
  %187 = load double, ptr %14, align 8, !tbaa !11
  %188 = load double, ptr %28, align 8, !tbaa !11
  %189 = call double @cos(double noundef %188) #7
  %190 = fmul double %187, %189
  %191 = load i32, ptr %12, align 4, !tbaa !9
  %192 = invoke noundef double @_ZN12_GLOBAL__N_11TEdi(double noundef %190, i32 noundef %191)
          to label %193 unwind label %204

193:                                              ; preds = %180
  %194 = load double, ptr %28, align 8, !tbaa !11
  %195 = load i32, ptr %25, align 4, !tbaa !9
  %196 = sitofp i32 %195 to double
  %197 = fmul double %194, %196
  %198 = call double @cos(double noundef %197) #7
  %199 = load double, ptr %26, align 8, !tbaa !11
  %200 = call double @llvm.fmuladd.f64(double %192, double %198, double %199)
  store double %200, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %201

201:                                              ; preds = %193
  %202 = load i32, ptr %27, align 4, !tbaa !9
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %27, align 4, !tbaa !9
  br label %175, !llvm.loop !32

204:                                              ; preds = %180
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %9, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %268

208:                                              ; preds = %179
  %209 = load double, ptr %13, align 8, !tbaa !11
  %210 = load double, ptr %26, align 8, !tbaa !11
  %211 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %210, double %209)
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = load i32, ptr %23, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  store double %211, ptr %215, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %216

216:                                              ; preds = %208
  %217 = load i32, ptr %23, align 4, !tbaa !9
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %23, align 4, !tbaa !9
  br label %162, !llvm.loop !33

219:                                              ; preds = %167
  br label %220

220:                                              ; preds = %219, %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store double 0.000000e+00, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %243, %220
  %222 = load i32, ptr %30, align 4, !tbaa !9
  %223 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %224 = load i32, ptr %223, align 8, !tbaa !17
  %225 = sdiv i32 %224, 2
  %226 = icmp sle i32 %222, %225
  br i1 %226, label %228, label %227

227:                                              ; preds = %221
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %246

228:                                              ; preds = %221
  %229 = load double, ptr %29, align 8, !tbaa !11
  %230 = load ptr, ptr %15, align 8, !tbaa !5
  %231 = load i32, ptr %30, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds double, ptr %230, i64 %232
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = fcmp olt double %229, %234
  br i1 %235, label %236, label %242

236:                                              ; preds = %228
  %237 = load ptr, ptr %15, align 8, !tbaa !5
  %238 = load i32, ptr %30, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds double, ptr %237, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !11
  store double %241, ptr %29, align 8, !tbaa !11
  br label %242

242:                                              ; preds = %236, %228
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %30, align 4, !tbaa !9
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %30, align 4, !tbaa !9
  br label %221, !llvm.loop !34

246:                                              ; preds = %227
  %247 = load double, ptr %29, align 8, !tbaa !11
  %248 = fdiv double 1.000000e+00, %247
  store double %248, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %249

249:                                              ; preds = %263, %246
  %250 = load i32, ptr %31, align 4, !tbaa !9
  %251 = getelementptr inbounds %"class.sptk::ChebyshevWindow", ptr %33, i32 0, i32 1
  %252 = load i32, ptr %251, align 8, !tbaa !17
  %253 = icmp slt i32 %250, %252
  br i1 %253, label %255, label %254

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

255:                                              ; preds = %249
  %256 = load double, ptr %29, align 8, !tbaa !11
  %257 = load ptr, ptr %15, align 8, !tbaa !5
  %258 = load i32, ptr %31, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !11
  %262 = fmul double %261, %256
  store double %262, ptr %260, align 8, !tbaa !11
  br label %263

263:                                              ; preds = %255
  %264 = load i32, ptr %31, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %31, align 4, !tbaa !9
  br label %249, !llvm.loop !35

266:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %267

267:                                              ; preds = %266, %62, %51
  ret void

268:                                              ; preds = %204, %147, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %269

269:                                              ; preds = %268, %65
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  call void @_ZN4sptk15WindowInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br label %270

270:                                              ; preds = %269
  %271 = load ptr, ptr %9, align 8
  %272 = load i32, ptr %10, align 4
  %273 = insertvalue { ptr, i32 } poison, ptr %271, 0
  %274 = insertvalue { ptr, i32 } %273, i32 %272, 1
  resume { ptr, i32 } %274
}

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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) #2 align 2

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

; Function Attrs: nounwind
declare double @cosh(double noundef) #4

; Function Attrs: nounwind
declare double @acosh(double noundef) #4

declare noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN12_GLOBAL__N_11TEdi(double noundef, i32 noundef) #0

; Function Attrs: nounwind
declare double @cos(double noundef) #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk15WindowInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { "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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"_ZTSN4sptk15ChebyshevWindowE", !19, i64 0, !10, i64 8, !12, i64 16, !14, i64 24, !14, i64 25, !20, i64 32}
!19 = !{!"_ZTSN4sptk15WindowInterfaceE"}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!18, !12, i64 16}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!18, !14, i64 24}
!28 = !{!18, !14, i64 25}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !30}
!35 = distinct !{!35, !30}


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

@_ZTVN4sptk15ChebyshevWindowE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk15ChebyshevWindowC2Eidb(ptr noundef nonnull align 8 dereferenceable(56) %0, i32 noundef %1, double noundef %2, i1 noundef zeroext %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = zext i1 %3 to i8
  tail call void @_ZN4sptk15WindowInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN4sptk15ChebyshevWindowE, i64 16), ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %6, align 8, !tbaa !8
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  store double %2, ptr %7, align 8, !tbaa !20
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 %5, ptr %8, align 8, !tbaa !21
  %9 = getelementptr inbounds i8, ptr %0, i64 25
  store i8 1, ptr %9, align 1, !tbaa !22
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %11 = load i32, ptr %6, align 8, !tbaa !8
  %12 = icmp sgt i32 %11, 0
  %13 = load double, ptr %7, align 8
  %14 = fcmp ugt double %13, 0.000000e+00
  %or.cond = select i1 %12, i1 %14, i1 false
  br i1 %or.cond, label %16, label %15

15:                                               ; preds = %4
  store i8 0, ptr %9, align 1, !tbaa !22
  br label %.loopexit

16:                                               ; preds = %4
  %17 = zext nneg i32 %11 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %17)
          to label %18 unwind label %23

18:                                               ; preds = %16
  %19 = load i32, ptr %6, align 8, !tbaa !8
  %20 = icmp eq i32 %19, 1
  br i1 %20, label %21, label %25

21:                                               ; preds = %18
  %22 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #7
  store double 1.000000e+00, ptr %22, align 8, !tbaa !23
  br label %.loopexit

23:                                               ; preds = %16
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %128

25:                                               ; preds = %18
  %26 = load i8, ptr %8, align 8, !tbaa !21, !range !24, !noundef !25
  %27 = zext nneg i8 %26 to i32
  %28 = add nsw i32 %19, %27
  %29 = add nsw i32 %28, -1
  %30 = load double, ptr %7, align 8, !tbaa !20
  %31 = fdiv double 1.000000e+00, %30
  %32 = tail call double @acosh(double noundef %31) #7
  %33 = sitofp i32 %29 to double
  %34 = fdiv double %32, %33
  %35 = tail call double @cosh(double noundef %34) #7
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #7
  %37 = invoke noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef %28)
          to label %38 unwind label %74

38:                                               ; preds = %25
  %39 = load i32, ptr %6, align 8, !tbaa !8
  %40 = icmp sgt i32 %39, 0
  br i1 %37, label %.preheader, label %.preheader84

.preheader84:                                     ; preds = %38
  br i1 %40, label %.lr.ph92, label %.loopexit83

.lr.ph92:                                         ; preds = %.preheader84
  %.not88 = icmp slt i32 %28, 3
  %41 = sitofp i32 %28 to double
  br i1 %.not88, label %.lr.ph92.split.us, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph92
  %42 = lshr i32 %29, 1
  br label %.lr.ph

.lr.ph92.split.us:                                ; preds = %.lr.ph92
  %43 = fadd double %31, 0.000000e+00
  %wide.trip.count = zext nneg i32 %39 to i64
  %min.iters.check = icmp ult i32 %39, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph92.split.us
  %n.vec = and i64 %wide.trip.count, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %43, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %44 = getelementptr inbounds double, ptr %36, i64 %index
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  store <2 x double> %broadcast.splat, ptr %44, align 8, !tbaa !23
  store <2 x double> %broadcast.splat, ptr %45, align 8, !tbaa !23
  %index.next = add nuw i64 %index, 4
  %46 = icmp eq i64 %index.next, %n.vec
  br i1 %46, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit83, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph92.split.us
  %indvars.iv119.ph = phi i64 [ 0, %.lr.ph92.split.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %scalar.ph ], [ %indvars.iv119.ph, %scalar.ph.preheader ]
  %47 = getelementptr inbounds double, ptr %36, i64 %indvars.iv119
  store double %43, ptr %47, align 8, !tbaa !23
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next120, %wide.trip.count
  br i1 %exitcond123.not, label %.loopexit83, label %scalar.ph, !llvm.loop !30

.preheader:                                       ; preds = %38
  br i1 %40, label %.lr.ph102, label %.loopexit83

.lr.ph102:                                        ; preds = %.preheader
  %.not79.not93 = icmp sgt i32 %28, 0
  %48 = sitofp i32 %28 to double
  br i1 %.not79.not93, label %.lr.ph98.us, label %.loopexit83.thread

.lr.ph98.us:                                      ; preds = %.lr.ph102, %._crit_edge99.us
  %indvars.iv129 = phi i64 [ %indvars.iv.next130, %._crit_edge99.us ], [ 0, %.lr.ph102 ]
  %indvars.iv129.tr = trunc i64 %indvars.iv129 to i32
  %49 = shl i32 %indvars.iv129.tr, 1
  %50 = or disjoint i32 %49, 1
  %51 = uitofp nneg i32 %50 to double
  br label %52

52:                                               ; preds = %.lr.ph98.us, %59
  %.07196.us = phi i32 [ 0, %.lr.ph98.us ], [ %66, %59 ]
  %.07295.us = phi i32 [ 1, %.lr.ph98.us ], [ %65, %59 ]
  %.07394.us = phi double [ 0.000000e+00, %.lr.ph98.us ], [ %64, %59 ]
  %53 = uitofp nneg i32 %.07196.us to double
  %54 = fmul double %53, 0x400921FB54442D18
  %55 = fdiv double %54, %48
  %56 = tail call double @cos(double noundef %55) #7
  %57 = fmul double %35, %56
  %58 = invoke noundef double @_ZN12_GLOBAL__N_11TEdi(double noundef %57, i32 noundef %29)
          to label %59 unwind label %.split.us

59:                                               ; preds = %52
  %60 = sitofp i32 %.07295.us to double
  %61 = fmul double %58, %60
  %62 = fmul double %55, %51
  %63 = tail call double @cos(double noundef %62) #7
  %64 = tail call double @llvm.fmuladd.f64(double %61, double %63, double %.07394.us)
  %65 = sub nsw i32 0, %.07295.us
  %66 = add nuw nsw i32 %.07196.us, 1
  %exitcond128.not = icmp eq i32 %66, %28
  br i1 %exitcond128.not, label %._crit_edge99.us, label %52, !llvm.loop !31

._crit_edge99.us:                                 ; preds = %59
  %67 = getelementptr inbounds double, ptr %36, i64 %indvars.iv129
  store double %64, ptr %67, align 8, !tbaa !23
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %68 = load i32, ptr %6, align 8, !tbaa !8
  %69 = sext i32 %68 to i64
  %70 = icmp slt i64 %indvars.iv.next130, %69
  br i1 %70, label %.lr.ph98.us, label %.loopexit83, !llvm.loop !32

.split.us:                                        ; preds = %52
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %128

.loopexit83.thread:                               ; preds = %.lr.ph102
  %72 = zext nneg i32 %39 to i64
  %73 = shl nuw nsw i64 %72, 3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %36, i8 0, i64 %73, i1 false), !tbaa !23
  br label %.lr.ph107.preheader

74:                                               ; preds = %25
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %128

.lr.ph:                                           ; preds = %.lr.ph.preheader, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %76 = trunc i64 %indvars.iv to i32
  %.tr = sub i32 %76, %42
  %77 = shl i32 %.tr, 1
  %78 = sitofp i32 %77 to double
  br label %84

._crit_edge:                                      ; preds = %91
  %79 = tail call double @llvm.fmuladd.f64(double %94, double 2.000000e+00, double %31)
  %80 = getelementptr inbounds double, ptr %36, i64 %indvars.iv
  store double %79, ptr %80, align 8, !tbaa !23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %81 = load i32, ptr %6, align 8, !tbaa !8
  %82 = sext i32 %81 to i64
  %83 = icmp slt i64 %indvars.iv.next, %82
  br i1 %83, label %.lr.ph, label %.loopexit83, !llvm.loop !33

84:                                               ; preds = %.lr.ph, %91
  %.06590 = phi i32 [ 1, %.lr.ph ], [ %95, %91 ]
  %.06689 = phi double [ 0.000000e+00, %.lr.ph ], [ %94, %91 ]
  %85 = uitofp nneg i32 %.06590 to double
  %86 = fmul double %85, 0x400921FB54442D18
  %87 = fdiv double %86, %41
  %88 = tail call double @cos(double noundef %87) #7
  %89 = fmul double %35, %88
  %90 = invoke noundef double @_ZN12_GLOBAL__N_11TEdi(double noundef %89, i32 noundef %29)
          to label %91 unwind label %96

91:                                               ; preds = %84
  %92 = fmul double %87, %78
  %93 = tail call double @cos(double noundef %92) #7
  %94 = tail call double @llvm.fmuladd.f64(double %90, double %93, double %.06689)
  %95 = add nuw nsw i32 %.06590, 1
  %exitcond.not = icmp eq i32 %.06590, %42
  br i1 %exitcond.not, label %._crit_edge, label %84, !llvm.loop !34

96:                                               ; preds = %84
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %128

.loopexit83:                                      ; preds = %._crit_edge, %scalar.ph, %._crit_edge99.us, %middle.block, %.preheader84, %.preheader
  %98 = phi i32 [ %39, %.preheader84 ], [ %39, %.preheader ], [ %39, %middle.block ], [ %68, %._crit_edge99.us ], [ %39, %scalar.ph ], [ %81, %._crit_edge ]
  %.not78103 = icmp slt i32 %98, -1
  br i1 %.not78103, label %.loopexit, label %.lr.ph107.preheader

.lr.ph107.preheader:                              ; preds = %.loopexit83.thread, %.loopexit83
  %99 = phi i32 [ %39, %.loopexit83.thread ], [ %98, %.loopexit83 ]
  %100 = sdiv i32 %99, 2
  %101 = add nuw nsw i32 %100, 1
  %wide.trip.count135 = zext nneg i32 %101 to i64
  %xtraiter = and i64 %wide.trip.count135, 3
  %102 = icmp ult i32 %100, 3
  br i1 %102, label %._crit_edge108.unr-lcssa, label %.lr.ph107.preheader.new

.lr.ph107.preheader.new:                          ; preds = %.lr.ph107.preheader
  %unroll_iter = and i64 %wide.trip.count135, 2147483644
  br label %.lr.ph107

._crit_edge108.unr-lcssa:                         ; preds = %.lr.ph107, %.lr.ph107.preheader
  %.1.lcssa.ph = phi double [ poison, %.lr.ph107.preheader ], [ %.1.3, %.lr.ph107 ]
  %indvars.iv132.unr = phi i64 [ 0, %.lr.ph107.preheader ], [ %indvars.iv.next133.3, %.lr.ph107 ]
  %.062104.unr = phi double [ 0.000000e+00, %.lr.ph107.preheader ], [ %.1.3, %.lr.ph107 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge108, label %.lr.ph107.epil

.lr.ph107.epil:                                   ; preds = %._crit_edge108.unr-lcssa, %.lr.ph107.epil
  %indvars.iv132.epil = phi i64 [ %indvars.iv.next133.epil, %.lr.ph107.epil ], [ %indvars.iv132.unr, %._crit_edge108.unr-lcssa ]
  %.062104.epil = phi double [ %.1.epil, %.lr.ph107.epil ], [ %.062104.unr, %._crit_edge108.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph107.epil ], [ 0, %._crit_edge108.unr-lcssa ]
  %103 = getelementptr inbounds double, ptr %36, i64 %indvars.iv132.epil
  %104 = load double, ptr %103, align 8, !tbaa !23
  %105 = fcmp olt double %.062104.epil, %104
  %.1.epil = select i1 %105, double %104, double %.062104.epil
  %indvars.iv.next133.epil = add nuw nsw i64 %indvars.iv132.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge108, label %.lr.ph107.epil, !llvm.loop !35

._crit_edge108:                                   ; preds = %.lr.ph107.epil, %._crit_edge108.unr-lcssa
  %.1.lcssa = phi double [ %.1.lcssa.ph, %._crit_edge108.unr-lcssa ], [ %.1.epil, %.lr.ph107.epil ]
  %106 = fdiv double 1.000000e+00, %.1.lcssa
  %107 = icmp sgt i32 %99, 0
  br i1 %107, label %.lr.ph113.preheader, label %.loopexit

.lr.ph113.preheader:                              ; preds = %._crit_edge108
  %wide.trip.count140 = zext nneg i32 %99 to i64
  %min.iters.check156 = icmp ult i32 %99, 4
  br i1 %min.iters.check156, label %.lr.ph113.preheader168, label %vector.ph157

.lr.ph113.preheader168:                           ; preds = %middle.block154, %.lr.ph113.preheader
  %indvars.iv137.ph = phi i64 [ 0, %.lr.ph113.preheader ], [ %n.vec159, %middle.block154 ]
  br label %.lr.ph113

vector.ph157:                                     ; preds = %.lr.ph113.preheader
  %n.vec159 = and i64 %wide.trip.count140, 2147483644
  %broadcast.splatinsert164 = insertelement <2 x double> poison, double %106, i64 0
  %broadcast.splat165 = shufflevector <2 x double> %broadcast.splatinsert164, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body161

vector.body161:                                   ; preds = %vector.body161, %vector.ph157
  %index162 = phi i64 [ 0, %vector.ph157 ], [ %index.next166, %vector.body161 ]
  %108 = getelementptr inbounds double, ptr %36, i64 %index162
  %109 = getelementptr inbounds i8, ptr %108, i64 16
  %wide.load = load <2 x double>, ptr %108, align 8, !tbaa !23
  %wide.load163 = load <2 x double>, ptr %109, align 8, !tbaa !23
  %110 = fmul <2 x double> %broadcast.splat165, %wide.load
  %111 = fmul <2 x double> %broadcast.splat165, %wide.load163
  store <2 x double> %110, ptr %108, align 8, !tbaa !23
  store <2 x double> %111, ptr %109, align 8, !tbaa !23
  %index.next166 = add nuw i64 %index162, 4
  %112 = icmp eq i64 %index.next166, %n.vec159
  br i1 %112, label %middle.block154, label %vector.body161, !llvm.loop !37

middle.block154:                                  ; preds = %vector.body161
  %cmp.n167 = icmp eq i64 %n.vec159, %wide.trip.count140
  br i1 %cmp.n167, label %.loopexit, label %.lr.ph113.preheader168

.lr.ph107:                                        ; preds = %.lr.ph107, %.lr.ph107.preheader.new
  %indvars.iv132 = phi i64 [ 0, %.lr.ph107.preheader.new ], [ %indvars.iv.next133.3, %.lr.ph107 ]
  %.062104 = phi double [ 0.000000e+00, %.lr.ph107.preheader.new ], [ %.1.3, %.lr.ph107 ]
  %niter = phi i64 [ 0, %.lr.ph107.preheader.new ], [ %niter.next.3, %.lr.ph107 ]
  %113 = getelementptr inbounds double, ptr %36, i64 %indvars.iv132
  %114 = load double, ptr %113, align 8, !tbaa !23
  %115 = fcmp olt double %.062104, %114
  %.1 = select i1 %115, double %114, double %.062104
  %indvars.iv.next133 = or disjoint i64 %indvars.iv132, 1
  %116 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next133
  %117 = load double, ptr %116, align 8, !tbaa !23
  %118 = fcmp olt double %.1, %117
  %.1.1 = select i1 %118, double %117, double %.1
  %indvars.iv.next133.1 = or disjoint i64 %indvars.iv132, 2
  %119 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next133.1
  %120 = load double, ptr %119, align 8, !tbaa !23
  %121 = fcmp olt double %.1.1, %120
  %.1.2 = select i1 %121, double %120, double %.1.1
  %indvars.iv.next133.2 = or disjoint i64 %indvars.iv132, 3
  %122 = getelementptr inbounds double, ptr %36, i64 %indvars.iv.next133.2
  %123 = load double, ptr %122, align 8, !tbaa !23
  %124 = fcmp olt double %.1.2, %123
  %.1.3 = select i1 %124, double %123, double %.1.2
  %indvars.iv.next133.3 = add nuw nsw i64 %indvars.iv132, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge108.unr-lcssa, label %.lr.ph107, !llvm.loop !38

.lr.ph113:                                        ; preds = %.lr.ph113.preheader168, %.lr.ph113
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %.lr.ph113 ], [ %indvars.iv137.ph, %.lr.ph113.preheader168 ]
  %125 = getelementptr inbounds double, ptr %36, i64 %indvars.iv137
  %126 = load double, ptr %125, align 8, !tbaa !23
  %127 = fmul double %106, %126
  store double %127, ptr %125, align 8, !tbaa !23
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %exitcond141.not = icmp eq i64 %indvars.iv.next138, %wide.trip.count140
  br i1 %exitcond141.not, label %.loopexit, label %.lr.ph113, !llvm.loop !39

.loopexit:                                        ; preds = %.lr.ph113, %middle.block154, %.loopexit83, %._crit_edge108, %21, %15
  ret void

128:                                              ; preds = %74, %.split.us, %96, %23
  %.pn.pn = phi { ptr, i32 } [ %24, %23 ], [ %71, %.split.us ], [ %97, %96 ], [ %75, %74 ]
  tail call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  tail call void @_ZN4sptk15WindowInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #7
  resume { ptr, i32 } %.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 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

declare i32 @__gxx_personality_v0(...)

; 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 #2 align 2

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

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

declare noundef zeroext i1 @_ZN4sptk6IsEvenEi(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN12_GLOBAL__N_11TEdi(double noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTSN4sptk15ChebyshevWindowE", !10, i64 0, !11, i64 8, !13, i64 16, !14, i64 24, !14, i64 25, !15, i64 32}
!10 = !{!"_ZTSN4sptk15WindowInterfaceE"}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"double", !12, i64 0}
!14 = !{!"bool", !12, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !12, i64 0}
!20 = !{!9, !13, i64 16}
!21 = !{!9, !14, i64 24}
!22 = !{!9, !14, i64 25}
!23 = !{!13, !13, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = distinct !{!26, !27, !28, !29}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!"llvm.loop.isvectorized", i32 1}
!29 = !{!"llvm.loop.unroll.runtime.disable"}
!30 = distinct !{!30, !27, !29, !28}
!31 = distinct !{!31, !27}
!32 = distinct !{!32, !27}
!33 = distinct !{!33, !27}
!34 = distinct !{!34, !27}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.unroll.disable"}
!37 = distinct !{!37, !27, !28, !29}
!38 = distinct !{!38, !27}
!39 = distinct !{!39, !27, !29, !28}


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