; LLVM IR from sp-nitech/SPTK :: third_party/SWIPE/swipe.ll (ZN4sptk5swipe5pitchENS0_6matrixENS0_6vectorEd)

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

%"struct.sptk::swipe::vector" = type { i32, ptr }
%"struct.sptk::swipe::matrix" = type { i32, i32, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sptk5swipe4log2Ed(double noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sptk5swipe5roundEd(double noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, double noundef) #1

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

declare { i32, ptr } @_ZN4sptk5swipe5makevEi(i32 noundef) #3

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

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

declare void @_ZN4sptk5swipe5freevENS0_6vectorE(i32, ptr) #3

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

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN4sptk5swipe5pitchENS0_6matrixENS0_6vectorEd(i64 %0, ptr %1, i32 %2, ptr %3, double noundef %4) #6 {
  %6 = alloca %"struct.sptk::swipe::vector", align 8
  %7 = alloca %"struct.sptk::swipe::matrix", align 8
  %8 = alloca %"struct.sptk::swipe::vector", align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %"struct.sptk::swipe::vector", align 8
  %19 = alloca %"struct.sptk::swipe::vector", align 8
  %20 = alloca %"struct.sptk::swipe::vector", align 8
  %21 = alloca %"struct.sptk::swipe::vector", align 8
  %22 = alloca %"struct.sptk::swipe::vector", align 8
  %23 = alloca %"struct.sptk::swipe::vector", align 8
  %24 = alloca %"struct.sptk::swipe::vector", align 8
  %25 = alloca %"struct.sptk::swipe::vector", align 8
  %26 = alloca %"struct.sptk::swipe::vector", align 8
  %27 = alloca %"struct.sptk::swipe::vector", align 8
  %28 = getelementptr inbounds { i64, ptr }, ptr %7, i32 0, i32 0
  store i64 %0, ptr %28, align 8
  %29 = getelementptr inbounds { i64, ptr }, ptr %7, i32 0, i32 1
  store ptr %1, ptr %29, align 8
  %30 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 0
  store i32 %2, ptr %30, align 8
  %31 = getelementptr inbounds { i32, ptr }, ptr %8, i32 0, i32 1
  store ptr %3, ptr %31, align 8
  store double %4, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 -1, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %32 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %8, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = getelementptr inbounds double, ptr %33, i64 2
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = call noundef double @_ZN4sptk5swipe4log2Ed(double noundef %35)
  %37 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %8, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = getelementptr inbounds double, ptr %38, i64 0
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = call noundef double @_ZN4sptk5swipe4log2Ed(double noundef %40)
  %42 = fsub double %36, %41
  %43 = fdiv double %42, 1.302800e-03
  %44 = fadd double %43, 1.000000e+00
  %45 = call noundef double @_ZN4sptk5swipe5roundEd(double noundef %44)
  %46 = fptosi double %45 to i32
  store i32 %46, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %47 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %8, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !11
  %49 = getelementptr inbounds double, ptr %48, i64 1
  %50 = load double, ptr %49, align 8, !tbaa !5
  %51 = fdiv double 1.000000e+00, %50
  store double %51, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %52 = call { i32, ptr } @_ZN4sptk5swipe5makevEi(i32 noundef 3)
  %53 = getelementptr inbounds { i32, ptr }, ptr %19, i32 0, i32 0
  %54 = extractvalue { i32, ptr } %52, 0
  store i32 %54, ptr %53, align 8
  %55 = getelementptr inbounds { i32, ptr }, ptr %19, i32 0, i32 1
  %56 = extractvalue { i32, ptr } %52, 1
  store ptr %56, ptr %55, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  %57 = call { i32, ptr } @_ZN4sptk5swipe5makevEi(i32 noundef 3)
  %58 = getelementptr inbounds { i32, ptr }, ptr %20, i32 0, i32 0
  %59 = extractvalue { i32, ptr } %57, 0
  store i32 %59, ptr %58, align 8
  %60 = getelementptr inbounds { i32, ptr }, ptr %20, i32 0, i32 1
  %61 = extractvalue { i32, ptr } %57, 1
  store ptr %61, ptr %60, align 8
  %62 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %8, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !11
  %64 = getelementptr inbounds double, ptr %63, i64 0
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = fdiv double 1.000000e+00, %65
  %67 = load double, ptr %17, align 8, !tbaa !5
  %68 = fdiv double %66, %67
  %69 = fsub double %68, 1.000000e+00
  %70 = fmul double %69, 2.000000e+00
  %71 = fmul double %70, 0x400921FB54442D18
  %72 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %20, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !11
  %74 = getelementptr inbounds double, ptr %73, i64 0
  store double %71, ptr %74, align 8, !tbaa !5
  %75 = load double, ptr %17, align 8, !tbaa !5
  %76 = load double, ptr %17, align 8, !tbaa !5
  %77 = fdiv double %75, %76
  %78 = fsub double %77, 1.000000e+00
  %79 = fmul double %78, 2.000000e+00
  %80 = fmul double %79, 0x400921FB54442D18
  %81 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %20, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  %83 = getelementptr inbounds double, ptr %82, i64 1
  store double %80, ptr %83, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %8, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds double, ptr %85, i64 2
  %87 = load double, ptr %86, align 8, !tbaa !5
  %88 = fdiv double 1.000000e+00, %87
  %89 = load double, ptr %17, align 8, !tbaa !5
  %90 = fdiv double %88, %89
  %91 = fsub double %90, 1.000000e+00
  %92 = fmul double %91, 2.000000e+00
  %93 = fmul double %92, 0x400921FB54442D18
  %94 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %20, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !11
  %96 = getelementptr inbounds double, ptr %95, i64 2
  store double %93, ptr %96, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.sptk::swipe::matrix", ptr %7, i32 0, i32 1
  %98 = load i32, ptr %97, align 4, !tbaa !14
  %99 = call { i32, ptr } @_ZN4sptk5swipe5makevEi(i32 noundef %98)
  %100 = getelementptr inbounds { i32, ptr }, ptr %6, i32 0, i32 0
  %101 = extractvalue { i32, ptr } %99, 0
  store i32 %101, ptr %100, align 8
  %102 = getelementptr inbounds { i32, ptr }, ptr %6, i32 0, i32 1
  %103 = extractvalue { i32, ptr } %99, 1
  store ptr %103, ptr %102, align 8
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %291, %5
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = getelementptr inbounds %"struct.sptk::swipe::matrix", ptr %7, i32 0, i32 1
  %107 = load i32, ptr %106, align 4, !tbaa !14
  %108 = icmp slt i32 %105, %107
  br i1 %108, label %109, label %294

109:                                              ; preds = %104
  store double -3.276800e+04, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %141, %109
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = getelementptr inbounds %"struct.sptk::swipe::matrix", ptr %7, i32 0, i32 0
  %113 = load i32, ptr %112, align 8, !tbaa !16
  %114 = icmp slt i32 %111, %113
  br i1 %114, label %115, label %144

115:                                              ; preds = %110
  %116 = getelementptr inbounds %"struct.sptk::swipe::matrix", ptr %7, i32 0, i32 2
  %117 = load ptr, ptr %116, align 8, !tbaa !17
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds ptr, ptr %117, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !18
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %121, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !5
  %126 = load double, ptr %15, align 8, !tbaa !5
  %127 = fcmp ogt double %125, %126
  br i1 %127, label %128, label %140

128:                                              ; preds = %115
  %129 = getelementptr inbounds %"struct.sptk::swipe::matrix", ptr %7, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !17
  %131 = load i32, ptr %10, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds ptr, ptr %130, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !18
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %134, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !5
  store double %138, ptr %15, align 8, !tbaa !5
  %139 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %139, ptr %12, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %128, %115
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %10, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %10, align 4, !tbaa !9
  br label %110, !llvm.loop !19

144:                                              ; preds = %110
  %145 = load double, ptr %15, align 8, !tbaa !5
  %146 = load double, ptr %9, align 8, !tbaa !5
  %147 = fcmp ogt double %145, %146
  br i1 %147, label %148, label %284

148:                                              ; preds = %144
  %149 = load i32, ptr %12, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %157, label %151

151:                                              ; preds = %148
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = getelementptr inbounds %"struct.sptk::swipe::matrix", ptr %7, i32 0, i32 0
  %154 = load i32, ptr %153, align 8, !tbaa !16
  %155 = sub nsw i32 %154, 1
  %156 = icmp eq i32 %152, %155
  br i1 %156, label %157, label %167

157:                                              ; preds = %151, %148
  %158 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %8, i32 0, i32 1
  %159 = load ptr, ptr %158, align 8, !tbaa !11
  %160 = getelementptr inbounds double, ptr %159, i64 0
  %161 = load double, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %6, i32 0, i32 1
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds double, ptr %163, i64 %165
  store double %161, ptr %166, align 8, !tbaa !5
  br label %283

167:                                              ; preds = %151
  %168 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %8, i32 0, i32 1
  %169 = load ptr, ptr %168, align 8, !tbaa !11
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds double, ptr %169, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !5
  %174 = fdiv double 1.000000e+00, %173
  store double %174, ptr %17, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %8, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !11
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = sub nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds double, ptr %176, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !5
  %182 = call noundef double @_ZN4sptk5swipe4log2Ed(double noundef %181)
  store double %182, ptr %16, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.sptk::swipe::matrix", ptr %7, i32 0, i32 2
  %184 = load ptr, ptr %183, align 8, !tbaa !17
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = sub nsw i32 %185, 1
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds ptr, ptr %184, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !18
  %190 = load i32, ptr %11, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds double, ptr %189, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !5
  %194 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %19, i32 0, i32 1
  %195 = load ptr, ptr %194, align 8, !tbaa !11
  %196 = getelementptr inbounds double, ptr %195, i64 0
  store double %193, ptr %196, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.sptk::swipe::matrix", ptr %7, i32 0, i32 2
  %198 = load ptr, ptr %197, align 8, !tbaa !17
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds ptr, ptr %198, i64 %200
  %202 = load ptr, ptr %201, align 8, !tbaa !18
  %203 = load i32, ptr %11, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %202, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %19, i32 0, i32 1
  %208 = load ptr, ptr %207, align 8, !tbaa !11
  %209 = getelementptr inbounds double, ptr %208, i64 1
  store double %206, ptr %209, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.sptk::swipe::matrix", ptr %7, i32 0, i32 2
  %211 = load ptr, ptr %210, align 8, !tbaa !17
  %212 = load i32, ptr %12, align 4, !tbaa !9
  %213 = add nsw i32 %212, 1
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds ptr, ptr %211, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !18
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds double, ptr %216, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %19, i32 0, i32 1
  %222 = load ptr, ptr %221, align 8, !tbaa !11
  %223 = getelementptr inbounds double, ptr %222, i64 2
  store double %220, ptr %223, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !21
  %224 = getelementptr inbounds { i32, ptr }, ptr %22, i32 0, i32 0
  %225 = load i32, ptr %224, align 8
  %226 = getelementptr inbounds { i32, ptr }, ptr %22, i32 0, i32 1
  %227 = load ptr, ptr %226, align 8
  %228 = getelementptr inbounds { i32, ptr }, ptr %23, i32 0, i32 0
  %229 = load i32, ptr %228, align 8
  %230 = getelementptr inbounds { i32, ptr }, ptr %23, i32 0, i32 1
  %231 = load ptr, ptr %230, align 8
  %232 = call { i32, ptr } @_ZN4sptk5swipe7polyfitENS0_6vectorES1_i(i32 %225, ptr %227, i32 %229, ptr %231, i32 noundef 2)
  %233 = getelementptr inbounds { i32, ptr }, ptr %21, i32 0, i32 0
  %234 = extractvalue { i32, ptr } %232, 0
  store i32 %234, ptr %233, align 8
  %235 = getelementptr inbounds { i32, ptr }, ptr %21, i32 0, i32 1
  %236 = extractvalue { i32, ptr } %232, 1
  store ptr %236, ptr %235, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %21, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  store double -3.276800e+04, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %237

237:                                              ; preds = %265, %167
  %238 = load i32, ptr %10, align 4, !tbaa !9
  %239 = load i32, ptr %13, align 4, !tbaa !9
  %240 = icmp slt i32 %238, %239
  br i1 %240, label %241, label %268

241:                                              ; preds = %237
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !21
  %242 = load i32, ptr %10, align 4, !tbaa !9
  %243 = sitofp i32 %242 to double
  %244 = load double, ptr %16, align 8, !tbaa !5
  %245 = call double @llvm.fmuladd.f64(double %243, double 1.302800e-03, double %244)
  %246 = call noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 2, double noundef %245)
  %247 = fdiv double 1.000000e+00, %246
  %248 = load double, ptr %17, align 8, !tbaa !5
  %249 = fdiv double %247, %248
  %250 = fsub double %249, 1.000000e+00
  %251 = fmul double %250, 2.000000e+00
  %252 = fmul double %251, 0x400921FB54442D18
  %253 = getelementptr inbounds { i32, ptr }, ptr %24, i32 0, i32 0
  %254 = load i32, ptr %253, align 8
  %255 = getelementptr inbounds { i32, ptr }, ptr %24, i32 0, i32 1
  %256 = load ptr, ptr %255, align 8
  %257 = call noundef double @_ZN4sptk5swipe7polyvalENS0_6vectorEd(i32 %254, ptr %256, double noundef %252)
  store double %257, ptr %14, align 8, !tbaa !5
  %258 = load double, ptr %14, align 8, !tbaa !5
  %259 = load double, ptr %15, align 8, !tbaa !5
  %260 = fcmp ogt double %258, %259
  br i1 %260, label %261, label %264

261:                                              ; preds = %241
  %262 = load double, ptr %14, align 8, !tbaa !5
  store double %262, ptr %15, align 8, !tbaa !5
  %263 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %263, ptr %12, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %261, %241
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %10, align 4, !tbaa !9
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %10, align 4, !tbaa !9
  br label %237, !llvm.loop !22

268:                                              ; preds = %237
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !21
  %269 = getelementptr inbounds { i32, ptr }, ptr %25, i32 0, i32 0
  %270 = load i32, ptr %269, align 8
  %271 = getelementptr inbounds { i32, ptr }, ptr %25, i32 0, i32 1
  %272 = load ptr, ptr %271, align 8
  call void @_ZN4sptk5swipe5freevENS0_6vectorE(i32 %270, ptr %272)
  %273 = load double, ptr %16, align 8, !tbaa !5
  %274 = load i32, ptr %12, align 4, !tbaa !9
  %275 = sitofp i32 %274 to double
  %276 = call double @llvm.fmuladd.f64(double %275, double 1.302800e-03, double %273)
  %277 = call noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 2, double noundef %276)
  %278 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %6, i32 0, i32 1
  %279 = load ptr, ptr %278, align 8, !tbaa !11
  %280 = load i32, ptr %11, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds double, ptr %279, i64 %281
  store double %277, ptr %282, align 8, !tbaa !5
  br label %283

283:                                              ; preds = %268, %157
  br label %290

284:                                              ; preds = %144
  %285 = getelementptr inbounds %"struct.sptk::swipe::vector", ptr %6, i32 0, i32 1
  %286 = load ptr, ptr %285, align 8, !tbaa !11
  %287 = load i32, ptr %11, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds double, ptr %286, i64 %288
  store double 0.000000e+00, ptr %289, align 8, !tbaa !5
  br label %290

290:                                              ; preds = %284, %283
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %11, align 4, !tbaa !9
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %11, align 4, !tbaa !9
  br label %104, !llvm.loop !23

294:                                              ; preds = %104
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !21
  %295 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 0
  %296 = load i32, ptr %295, align 8
  %297 = getelementptr inbounds { i32, ptr }, ptr %26, i32 0, i32 1
  %298 = load ptr, ptr %297, align 8
  call void @_ZN4sptk5swipe5freevENS0_6vectorE(i32 %296, ptr %298)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !21
  %299 = getelementptr inbounds { i32, ptr }, ptr %27, i32 0, i32 0
  %300 = load i32, ptr %299, align 8
  %301 = getelementptr inbounds { i32, ptr }, ptr %27, i32 0, i32 1
  %302 = load ptr, ptr %301, align 8
  call void @_ZN4sptk5swipe5freevENS0_6vectorE(i32 %300, ptr %302)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #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 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %303 = load { i32, ptr }, ptr %6, align 8
  ret { i32, ptr } %303
}

declare { i32, ptr } @_ZN4sptk5swipe7polyfitENS0_6vectorES1_i(i32, ptr, i32, ptr, i32 noundef) #3

declare noundef double @_ZN4sptk5swipe7polyvalENS0_6vectorEd(i32, ptr, double noundef) #3

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #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 = !{!"double", !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, !13, i64 8}
!12 = !{!"_ZTSN4sptk5swipe6vectorE", !10, i64 0, !13, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !10, i64 4}
!15 = !{!"_ZTSN4sptk5swipe6matrixE", !10, i64 0, !10, i64 4, !13, i64 8}
!16 = !{!15, !10, i64 0}
!17 = !{!15, !13, i64 8}
!18 = !{!13, !13, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{i64 0, i64 4, !9, i64 8, i64 8, !18}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


; 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 nounwind uwtable
declare dso_local noundef double @_ZN4sptk5swipe4log2Ed(double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sptk5swipe5roundEd(double noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef, double noundef) local_unnamed_addr #1

declare { i32, ptr } @_ZN4sptk5swipe5makevEi(i32 noundef) local_unnamed_addr #2

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

declare void @_ZN4sptk5swipe5freevENS0_6vectorE(i32, ptr) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local { i32, ptr } @_ZN4sptk5swipe5pitchENS0_6matrixENS0_6vectorEd(i64 %0, ptr nocapture readonly %1, i32 %2, ptr nocapture readonly %3, double noundef %4) local_unnamed_addr #4 {
  %.sroa.3.0.extract.shift = lshr i64 %0, 32
  %.sroa.3.0.extract.trunc = trunc nuw i64 %.sroa.3.0.extract.shift to i32
  %6 = getelementptr inbounds i8, ptr %3, i64 16
  %7 = load double, ptr %6, align 8, !tbaa !5
  %8 = tail call noundef double @_ZN4sptk5swipe4log2Ed(double noundef %7)
  %9 = load double, ptr %3, align 8, !tbaa !5
  %10 = tail call noundef double @_ZN4sptk5swipe4log2Ed(double noundef %9)
  %11 = fsub double %8, %10
  %12 = fdiv double %11, 1.302800e-03
  %13 = fadd double %12, 1.000000e+00
  %14 = tail call noundef double @_ZN4sptk5swipe5roundEd(double noundef %13)
  %15 = fptosi double %14 to i32
  %16 = getelementptr inbounds i8, ptr %3, i64 8
  %17 = load double, ptr %16, align 8, !tbaa !5
  %18 = tail call { i32, ptr } @_ZN4sptk5swipe5makevEi(i32 noundef 3)
  %19 = extractvalue { i32, ptr } %18, 0
  %20 = extractvalue { i32, ptr } %18, 1
  %21 = tail call { i32, ptr } @_ZN4sptk5swipe5makevEi(i32 noundef 3)
  %22 = extractvalue { i32, ptr } %21, 0
  %23 = extractvalue { i32, ptr } %21, 1
  %24 = load double, ptr %3, align 8, !tbaa !5
  %25 = insertelement <2 x double> poison, double %24, i64 0
  %26 = insertelement <2 x double> %25, double %17, i64 1
  %27 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %26
  %28 = shufflevector <2 x double> %27, <2 x double> poison, <2 x i32> <i32 1, i32 1>
  %29 = fdiv <2 x double> %27, %28
  %30 = fadd <2 x double> %29, <double -1.000000e+00, double -1.000000e+00>
  %31 = fmul <2 x double> %30, <double 2.000000e+00, double 2.000000e+00>
  %32 = fmul <2 x double> %31, <double 0x400921FB54442D18, double 0x400921FB54442D18>
  store <2 x double> %32, ptr %23, align 8, !tbaa !5
  %33 = load double, ptr %6, align 8, !tbaa !5
  %34 = fdiv double 1.000000e+00, %33
  %35 = extractelement <2 x double> %27, i64 1
  %36 = fdiv double %34, %35
  %37 = fadd double %36, -1.000000e+00
  %38 = fmul double %37, 2.000000e+00
  %39 = fmul double %38, 0x400921FB54442D18
  %40 = getelementptr inbounds i8, ptr %23, i64 16
  store double %39, ptr %40, align 8, !tbaa !5
  %41 = tail call { i32, ptr } @_ZN4sptk5swipe5makevEi(i32 noundef %.sroa.3.0.extract.trunc)
  %42 = extractvalue { i32, ptr } %41, 1
  %43 = icmp sgt i32 %.sroa.3.0.extract.trunc, 0
  br i1 %43, label %.preheader.lr.ph, label %._crit_edge117

.preheader.lr.ph:                                 ; preds = %5
  %.sroa.082.0.extract.trunc = trunc i64 %0 to i32
  %44 = icmp sgt i32 %.sroa.082.0.extract.trunc, 0
  %45 = add nsw i32 %.sroa.082.0.extract.trunc, -1
  %46 = getelementptr inbounds i8, ptr %20, i64 8
  %47 = getelementptr inbounds i8, ptr %20, i64 16
  %48 = icmp sgt i32 %15, 0
  %wide.trip.count = and i64 %0, 2147483647
  %xtraiter = and i64 %0, 1
  %49 = icmp eq i64 %wide.trip.count, 1
  %unroll_iter = sub nsw i64 %wide.trip.count, %xtraiter
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %113
  %indvars.iv120 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next121, %113 ]
  %.095115 = phi i32 [ -1, %.preheader.lr.ph ], [ %.5, %113 ]
  br i1 %44, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  br i1 %49, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.196105 = phi i32 [ %.2.1, %.lr.ph ], [ %.095115, %.lr.ph.preheader ]
  %.097104 = phi double [ %.198.1, %.lr.ph ], [ -3.276800e+04, %.lr.ph.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %50 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = getelementptr inbounds double, ptr %51, i64 %indvars.iv120
  %53 = load double, ptr %52, align 8, !tbaa !5
  %54 = fcmp ogt double %53, %.097104
  %.198 = select i1 %54, double %53, double %.097104
  %55 = trunc nuw nsw i64 %indvars.iv to i32
  %.2 = select i1 %54, i32 %55, i32 %.196105
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %56 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv.next
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = getelementptr inbounds double, ptr %57, i64 %indvars.iv120
  %59 = load double, ptr %58, align 8, !tbaa !5
  %60 = fcmp ogt double %59, %.198
  %.198.1 = select i1 %60, double %59, double %.198
  %61 = trunc nuw nsw i64 %indvars.iv.next to i32
  %.2.1 = select i1 %60, i32 %61, i32 %.2
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %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 !11

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.198.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %.198.1, %.lr.ph ]
  %.2.lcssa.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %.2.1, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %.196105.unr = phi i32 [ %.095115, %.lr.ph.preheader ], [ %.2.1, %.lr.ph ]
  %.097104.unr = phi double [ -3.276800e+04, %.lr.ph.preheader ], [ %.198.1, %.lr.ph ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %62 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv.unr
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds double, ptr %63, i64 %indvars.iv120
  %65 = load double, ptr %64, align 8, !tbaa !5
  %66 = fcmp ogt double %65, %.097104.unr
  %.198.epil = select i1 %66, double %65, double %.097104.unr
  %67 = trunc nuw nsw i64 %indvars.iv.unr to i32
  %.2.epil = select i1 %66, i32 %67, i32 %.196105.unr
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %.preheader
  %.097.lcssa = phi double [ -3.276800e+04, %.preheader ], [ %.198.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.198.epil, %.lr.ph.epil ]
  %.196.lcssa = phi i32 [ %.095115, %.preheader ], [ %.2.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.2.epil, %.lr.ph.epil ]
  %68 = fcmp ogt double %.097.lcssa, %4
  br i1 %68, label %69, label %113

69:                                               ; preds = %._crit_edge
  %70 = icmp eq i32 %.196.lcssa, 0
  %71 = icmp eq i32 %.196.lcssa, %45
  %or.cond = select i1 %70, i1 true, i1 %71
  br i1 %or.cond, label %72, label %74

72:                                               ; preds = %69
  %73 = load double, ptr %3, align 8, !tbaa !5
  br label %113

74:                                               ; preds = %69
  %75 = sext i32 %.196.lcssa to i64
  %76 = getelementptr inbounds double, ptr %3, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !5
  %78 = fdiv double 1.000000e+00, %77
  %79 = add nsw i32 %.196.lcssa, -1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds double, ptr %3, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !5
  %83 = tail call noundef double @_ZN4sptk5swipe4log2Ed(double noundef %82)
  %84 = getelementptr inbounds ptr, ptr %1, i64 %80
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = getelementptr inbounds double, ptr %85, i64 %indvars.iv120
  %87 = load double, ptr %86, align 8, !tbaa !5
  store double %87, ptr %20, align 8, !tbaa !5
  %88 = getelementptr inbounds ptr, ptr %1, i64 %75
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = getelementptr inbounds double, ptr %89, i64 %indvars.iv120
  %91 = load double, ptr %90, align 8, !tbaa !5
  store double %91, ptr %46, align 8, !tbaa !5
  %92 = getelementptr i8, ptr %88, i64 8
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds double, ptr %93, i64 %indvars.iv120
  %95 = load double, ptr %94, align 8, !tbaa !5
  store double %95, ptr %47, align 8, !tbaa !5
  %96 = tail call { i32, ptr } @_ZN4sptk5swipe7polyfitENS0_6vectorES1_i(i32 %22, ptr nonnull %23, i32 %19, ptr nonnull %20, i32 noundef 2)
  %97 = extractvalue { i32, ptr } %96, 0
  %98 = extractvalue { i32, ptr } %96, 1
  br i1 %48, label %.lr.ph112, label %._crit_edge113

.lr.ph112:                                        ; preds = %74, %.lr.ph112
  %.1110 = phi i32 [ %109, %.lr.ph112 ], [ 0, %74 ]
  %.3109 = phi i32 [ %.4, %.lr.ph112 ], [ %.196.lcssa, %74 ]
  %.299108 = phi double [ %.3100, %.lr.ph112 ], [ -3.276800e+04, %74 ]
  %99 = uitofp nneg i32 %.1110 to double
  %100 = tail call double @llvm.fmuladd.f64(double %99, double 1.302800e-03, double %83)
  %101 = tail call noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 2, double noundef %100)
  %102 = fdiv double 1.000000e+00, %101
  %103 = fdiv double %102, %78
  %104 = fadd double %103, -1.000000e+00
  %105 = fmul double %104, 2.000000e+00
  %106 = fmul double %105, 0x400921FB54442D18
  %107 = tail call noundef double @_ZN4sptk5swipe7polyvalENS0_6vectorEd(i32 %97, ptr %98, double noundef %106)
  %108 = fcmp ogt double %107, %.299108
  %.3100 = select i1 %108, double %107, double %.299108
  %.4 = select i1 %108, i32 %.1110, i32 %.3109
  %109 = add nuw nsw i32 %.1110, 1
  %exitcond119.not = icmp eq i32 %109, %15
  br i1 %exitcond119.not, label %._crit_edge113, label %.lr.ph112, !llvm.loop !13

._crit_edge113:                                   ; preds = %.lr.ph112, %74
  %.3.lcssa = phi i32 [ %.196.lcssa, %74 ], [ %.4, %.lr.ph112 ]
  tail call void @_ZN4sptk5swipe5freevENS0_6vectorE(i32 %97, ptr %98)
  %110 = sitofp i32 %.3.lcssa to double
  %111 = tail call double @llvm.fmuladd.f64(double %110, double 1.302800e-03, double %83)
  %112 = tail call noundef double @_ZSt3powIidEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 2, double noundef %111)
  br label %113

113:                                              ; preds = %._crit_edge, %._crit_edge113, %72
  %.sink = phi double [ %112, %._crit_edge113 ], [ %73, %72 ], [ 0.000000e+00, %._crit_edge ]
  %.5 = phi i32 [ %.3.lcssa, %._crit_edge113 ], [ %.196.lcssa, %72 ], [ %.196.lcssa, %._crit_edge ]
  %114 = getelementptr inbounds double, ptr %42, i64 %indvars.iv120
  store double %.sink, ptr %114, align 8, !tbaa !5
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond124.not = icmp eq i64 %indvars.iv.next121, %.sroa.3.0.extract.shift
  br i1 %exitcond124.not, label %._crit_edge117, label %.preheader, !llvm.loop !14

._crit_edge117:                                   ; preds = %113, %5
  tail call void @_ZN4sptk5swipe5freevENS0_6vectorE(i32 %22, ptr nonnull %23)
  tail call void @_ZN4sptk5swipe5freevENS0_6vectorE(i32 %19, ptr %20)
  ret { i32, ptr } %41
}

declare { i32, ptr } @_ZN4sptk5swipe7polyfitENS0_6vectorES1_i(i32, ptr, i32, ptr, i32 noundef) local_unnamed_addr #2

declare noundef double @_ZN4sptk5swipe7polyvalENS0_6vectorEd(i32, ptr, double noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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" }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass