; LLVM IR from sp-nitech/SPTK :: third_party/WORLD/aperiodicity.ll (ZN4sptk5world17AperiodicityRatioEPdiiS1_iS1_iPS1_)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk5world17AperiodicityRatioEPdiiS1_iS1_iPS1_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store i32 %6, ptr %15, align 4, !tbaa !9
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %35 = load i32, ptr %13, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %36, i64 8)
  %38 = extractvalue { i64, i1 } %37, 1
  %39 = extractvalue { i64, i1 } %37, 0
  %40 = select i1 %38, i64 -1, i64 %39
  %41 = call noalias noundef nonnull ptr @_Znam(i64 noundef %40) #9
  store ptr %41, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %42 = load i32, ptr %13, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %43, i64 8)
  %45 = extractvalue { i64, i1 } %44, 1
  %46 = extractvalue { i64, i1 } %44, 0
  %47 = select i1 %45, i64 -1, i64 %46
  %48 = call noalias noundef nonnull ptr @_Znam(i64 noundef %47) #9
  store ptr %48, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %79, %8
  %50 = load i32, ptr %19, align 4, !tbaa !9
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %82

54:                                               ; preds = %49
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = call noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef %55)
  %57 = sext i32 %56 to i64
  %58 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %57, i64 8)
  %59 = extractvalue { i64, i1 } %58, 1
  %60 = extractvalue { i64, i1 } %58, 0
  %61 = select i1 %59, i64 -1, i64 %60
  %62 = call noalias noundef nonnull ptr @_Znam(i64 noundef %61) #9
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = load i32, ptr %19, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds ptr, ptr %63, i64 %65
  store ptr %62, ptr %66, align 8, !tbaa !5
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = call noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef %67)
  %69 = sext i32 %68 to i64
  %70 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %69, i64 8)
  %71 = extractvalue { i64, i1 } %70, 1
  %72 = extractvalue { i64, i1 } %70, 0
  %73 = select i1 %71, i64 -1, i64 %72
  %74 = call noalias noundef nonnull ptr @_Znam(i64 noundef %73) #9
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = load i32, ptr %19, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds ptr, ptr %75, i64 %77
  store ptr %74, ptr %78, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %54
  %80 = load i32, ptr %19, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %19, align 4, !tbaa !9
  br label %49, !llvm.loop !11

82:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store double 3.200000e+01, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store double 2.000000e+02, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  store double 2.000000e+02, ptr %22, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %110, %82
  %84 = load i32, ptr %23, align 4, !tbaa !9
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %113

88:                                               ; preds = %83
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load i32, ptr %23, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %89, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !13
  %94 = load double, ptr %22, align 8, !tbaa !13
  %95 = fcmp olt double %93, %94
  br i1 %95, label %96, label %109

96:                                               ; preds = %88
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = load i32, ptr %23, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %97, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !13
  %102 = fcmp ogt double %101, 3.200000e+01
  br i1 %102, label %103, label %109

103:                                              ; preds = %96
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = load i32, ptr %23, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !13
  store double %108, ptr %22, align 8, !tbaa !13
  br label %109

109:                                              ; preds = %103, %96, %88
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %23, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %23, align 4, !tbaa !9
  br label %83, !llvm.loop !15

113:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %114 = load double, ptr %22, align 8, !tbaa !13
  %115 = call noundef double @_ZN4sptk5world11MyMinDoubleEdd(double noundef 2.000000e+02, double noundef %114)
  %116 = call noundef double @_ZN4sptk5world11MyMaxDoubleEdd(double noundef 3.200000e+01, double noundef %115)
  store double %116, ptr %24, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store ptr null, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  store ptr null, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = getelementptr inbounds double, ptr %122, i64 1
  %124 = load double, ptr %123, align 8, !tbaa !13
  %125 = load double, ptr %24, align 8, !tbaa !13
  %126 = call noundef i32 @_ZN4sptk5world12_GLOBAL__N_119GetNormalizedSignalEPdiiS2_iddPS2_S3_(ptr noundef %117, i32 noundef %118, i32 noundef %119, ptr noundef %120, i32 noundef %121, double noundef %124, double noundef %125, ptr noundef %25, ptr noundef %26)
  store i32 %126, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %128, i64 8)
  %130 = extractvalue { i64, i1 } %129, 1
  %131 = extractvalue { i64, i1 } %129, 0
  %132 = select i1 %130, i64 -1, i64 %131
  %133 = call noalias noundef nonnull ptr @_Znam(i64 noundef %132) #9
  store ptr %133, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %155, %113
  %135 = load i32, ptr %29, align 4, !tbaa !9
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = icmp slt i32 %135, %136
  br i1 %137, label %139, label %138

138:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %158

139:                                              ; preds = %134
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = load i32, ptr %29, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds double, ptr %140, i64 %142
  %144 = load double, ptr %143, align 8, !tbaa !13
  %145 = fcmp oeq double %144, 0.000000e+00
  br i1 %145, label %146, label %147

146:                                              ; preds = %139
  br label %149

147:                                              ; preds = %139
  %148 = load double, ptr %24, align 8, !tbaa !13
  br label %149

149:                                              ; preds = %147, %146
  %150 = phi double [ 0.000000e+00, %146 ], [ %148, %147 ]
  %151 = load ptr, ptr %28, align 8, !tbaa !5
  %152 = load i32, ptr %29, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  store double %150, ptr %154, align 8, !tbaa !13
  br label %155

155:                                              ; preds = %149
  %156 = load i32, ptr %29, align 4, !tbaa !9
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %29, align 4, !tbaa !9
  br label %134, !llvm.loop !16

158:                                              ; preds = %138
  %159 = load ptr, ptr %25, align 8, !tbaa !5
  %160 = load i32, ptr %27, align 4, !tbaa !9
  %161 = load i32, ptr %11, align 4, !tbaa !9
  %162 = load ptr, ptr %28, align 8, !tbaa !5
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = load ptr, ptr %26, align 8, !tbaa !5
  %165 = load double, ptr %24, align 8, !tbaa !13
  %166 = fdiv double 2.000000e+03, %165
  %167 = call noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef %166)
  %168 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN4sptk5world12_GLOBAL__N_120BandwiseAperiodicityEPdiiS2_iS2_iPS2_(ptr noundef %159, i32 noundef %160, i32 noundef %161, ptr noundef %162, i32 noundef %163, ptr noundef %164, i32 noundef %167, ptr noundef %168)
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = load i32, ptr %10, align 4, !tbaa !9
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = load ptr, ptr %14, align 8, !tbaa !5
  %175 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN4sptk5world12_GLOBAL__N_120BandwiseAperiodicityEPdiiS2_iS2_iPS2_(ptr noundef %169, i32 noundef %170, i32 noundef %171, ptr noundef %172, i32 noundef %173, ptr noundef %174, i32 noundef 30, ptr noundef %175)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %176 = load i32, ptr %15, align 4, !tbaa !9
  %177 = sdiv i32 %176, 2
  %178 = add nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %179, i64 8)
  %181 = extractvalue { i64, i1 } %180, 1
  %182 = extractvalue { i64, i1 } %180, 0
  %183 = select i1 %181, i64 -1, i64 %182
  %184 = call noalias noundef nonnull ptr @_Znam(i64 noundef %183) #9
  store ptr %184, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %259, %158
  %186 = load i32, ptr %31, align 4, !tbaa !9
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  store i32 11, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %262

190:                                              ; preds = %185
  %191 = load ptr, ptr %18, align 8, !tbaa !5
  %192 = load i32, ptr %31, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds ptr, ptr %191, i64 %193
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = call noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef %196)
  %198 = load i32, ptr %15, align 4, !tbaa !9
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = load i32, ptr %31, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !13
  %204 = load double, ptr %24, align 8, !tbaa !13
  %205 = call noundef double @_ZN4sptk5world11MyMaxDoubleEdd(double noundef %203, double noundef %204)
  %206 = load double, ptr %24, align 8, !tbaa !13
  %207 = fdiv double %205, %206
  %208 = load i32, ptr %11, align 4, !tbaa !9
  %209 = load ptr, ptr %16, align 8, !tbaa !5
  %210 = load i32, ptr %31, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds ptr, ptr %209, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  call void @_ZN4sptk5world12_GLOBAL__N_121CalculateAperiodicityEPdiidiS2_(ptr noundef %195, i32 noundef %197, i32 noundef %198, double noundef %207, i32 noundef %208, ptr noundef %213)
  %214 = load ptr, ptr %17, align 8, !tbaa !5
  %215 = load i32, ptr %31, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds ptr, ptr %214, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = load i32, ptr %11, align 4, !tbaa !9
  %220 = call noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef %219)
  %221 = load i32, ptr %15, align 4, !tbaa !9
  %222 = load i32, ptr %11, align 4, !tbaa !9
  %223 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN4sptk5world12_GLOBAL__N_121CalculateAperiodicityEPdiidiS2_(ptr noundef %218, i32 noundef %220, i32 noundef %221, double noundef 1.000000e+00, i32 noundef %222, ptr noundef %223)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %224

224:                                              ; preds = %255, %190
  %225 = load i32, ptr %33, align 4, !tbaa !9
  %226 = load i32, ptr %15, align 4, !tbaa !9
  %227 = sdiv i32 %226, 2
  %228 = add nsw i32 %227, 1
  %229 = icmp slt i32 %225, %228
  br i1 %229, label %231, label %230

230:                                              ; preds = %224
  store i32 14, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %258

231:                                              ; preds = %224
  %232 = load ptr, ptr %16, align 8, !tbaa !5
  %233 = load i32, ptr %31, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds ptr, ptr %232, i64 %234
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = load i32, ptr %33, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds double, ptr %236, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !13
  %241 = load ptr, ptr %30, align 8, !tbaa !5
  %242 = load i32, ptr %33, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds double, ptr %241, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !13
  %246 = call noundef double @_ZN4sptk5world11MyMinDoubleEdd(double noundef %240, double noundef %245)
  %247 = load ptr, ptr %16, align 8, !tbaa !5
  %248 = load i32, ptr %31, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds ptr, ptr %247, i64 %249
  %251 = load ptr, ptr %250, align 8, !tbaa !5
  %252 = load i32, ptr %33, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds double, ptr %251, i64 %253
  store double %246, ptr %254, align 8, !tbaa !13
  br label %255

255:                                              ; preds = %231
  %256 = load i32, ptr %33, align 4, !tbaa !9
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %33, align 4, !tbaa !9
  br label %224, !llvm.loop !17

258:                                              ; preds = %230
  br label %259

259:                                              ; preds = %258
  %260 = load i32, ptr %31, align 4, !tbaa !9
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %31, align 4, !tbaa !9
  br label %185, !llvm.loop !18

262:                                              ; preds = %189
  %263 = load ptr, ptr %30, align 8, !tbaa !5
  %264 = icmp eq ptr %263, null
  br i1 %264, label %266, label %265

265:                                              ; preds = %262
  call void @_ZdaPv(ptr noundef %263) #10
  br label %266

266:                                              ; preds = %265, %262
  %267 = load ptr, ptr %28, align 8, !tbaa !5
  %268 = icmp eq ptr %267, null
  br i1 %268, label %270, label %269

269:                                              ; preds = %266
  call void @_ZdaPv(ptr noundef %267) #10
  br label %270

270:                                              ; preds = %269, %266
  %271 = load ptr, ptr %25, align 8, !tbaa !5
  %272 = icmp eq ptr %271, null
  br i1 %272, label %274, label %273

273:                                              ; preds = %270
  call void @_ZdaPv(ptr noundef %271) #10
  br label %274

274:                                              ; preds = %273, %270
  %275 = load ptr, ptr %26, align 8, !tbaa !5
  %276 = icmp eq ptr %275, null
  br i1 %276, label %278, label %277

277:                                              ; preds = %274
  call void @_ZdaPv(ptr noundef %275) #10
  br label %278

278:                                              ; preds = %277, %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %279

279:                                              ; preds = %301, %278
  %280 = load i32, ptr %34, align 4, !tbaa !9
  %281 = load i32, ptr %13, align 4, !tbaa !9
  %282 = icmp slt i32 %280, %281
  br i1 %282, label %284, label %283

283:                                              ; preds = %279
  store i32 17, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %304

284:                                              ; preds = %279
  %285 = load ptr, ptr %17, align 8, !tbaa !5
  %286 = load i32, ptr %34, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds ptr, ptr %285, i64 %287
  %289 = load ptr, ptr %288, align 8, !tbaa !5
  %290 = icmp eq ptr %289, null
  br i1 %290, label %292, label %291

291:                                              ; preds = %284
  call void @_ZdaPv(ptr noundef %289) #10
  br label %292

292:                                              ; preds = %291, %284
  %293 = load ptr, ptr %18, align 8, !tbaa !5
  %294 = load i32, ptr %34, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds ptr, ptr %293, i64 %295
  %297 = load ptr, ptr %296, align 8, !tbaa !5
  %298 = icmp eq ptr %297, null
  br i1 %298, label %300, label %299

299:                                              ; preds = %292
  call void @_ZdaPv(ptr noundef %297) #10
  br label %300

300:                                              ; preds = %299, %292
  br label %301

301:                                              ; preds = %300
  %302 = load i32, ptr %34, align 4, !tbaa !9
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %34, align 4, !tbaa !9
  br label %279, !llvm.loop !19

304:                                              ; preds = %283
  %305 = load ptr, ptr %17, align 8, !tbaa !5
  %306 = icmp eq ptr %305, null
  br i1 %306, label %308, label %307

307:                                              ; preds = %304
  call void @_ZdaPv(ptr noundef %305) #10
  br label %308

308:                                              ; preds = %307, %304
  %309 = load ptr, ptr %18, align 8, !tbaa !5
  %310 = icmp eq ptr %309, null
  br i1 %310, label %312, label %311

311:                                              ; preds = %308
  call void @_ZdaPv(ptr noundef %309) #10
  br label %312

312:                                              ; preds = %311, %308
  store i32 1, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sptk5world11MyMaxDoubleEdd(double noundef, double noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sptk5world11MyMinDoubleEdd(double noundef, double noundef) #5

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4sptk5world12_GLOBAL__N_120BandwiseAperiodicityEPdiiS2_iS2_iPS2_(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #0

declare noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef) #6

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { "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 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


; 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 void @_ZN4sptk5world17AperiodicityRatioEPdiiS1_iS1_iPS1_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6, ptr nocapture noundef readonly %7) local_unnamed_addr #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = zext i32 %4 to i64
  %12 = icmp slt i32 %4, 0
  %13 = shl nuw nsw i64 %11, 3
  %14 = select i1 %12, i64 -1, i64 %13
  %15 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %14) #7
  %16 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %14) #7
  %17 = icmp sgt i32 %4, 0
  br i1 %17, label %.lr.ph, label %._crit_edge

.preheader:                                       ; preds = %.lr.ph
  br i1 %17, label %.lr.ph108.preheader, label %._crit_edge

.lr.ph108.preheader:                              ; preds = %.preheader
  %xtraiter = and i64 %11, 1
  %18 = icmp eq i32 %4, 1
  br i1 %18, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph108.preheader.new

.lr.ph108.preheader.new:                          ; preds = %.lr.ph108.preheader
  %unroll_iter = and i64 %11, 2147483646
  br label %.lr.ph108

.lr.ph:                                           ; preds = %8, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %8 ]
  %19 = tail call noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef %2)
  %20 = zext nneg i32 %19 to i64
  %21 = icmp slt i32 %19, 0
  %22 = shl nuw nsw i64 %20, 3
  %23 = select i1 %21, i64 -1, i64 %22
  %24 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #7
  %25 = getelementptr inbounds ptr, ptr %15, i64 %indvars.iv
  store ptr %24, ptr %25, align 8, !tbaa !5
  %26 = tail call noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef %2)
  %27 = zext nneg i32 %26 to i64
  %28 = icmp slt i32 %26, 0
  %29 = shl nuw nsw i64 %27, 3
  %30 = select i1 %28, i64 -1, i64 %29
  %31 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %30) #7
  %32 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv
  store ptr %31, ptr %32, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %11
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !9

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph108, %.lr.ph108.preheader
  %.1.lcssa.ph = phi double [ poison, %.lr.ph108.preheader ], [ %.1.1, %.lr.ph108 ]
  %indvars.iv127.unr = phi i64 [ 0, %.lr.ph108.preheader ], [ %indvars.iv.next128.1, %.lr.ph108 ]
  %.097107.unr = phi double [ 2.000000e+02, %.lr.ph108.preheader ], [ %.1.1, %.lr.ph108 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph108.epil

.lr.ph108.epil:                                   ; preds = %._crit_edge.loopexit.unr-lcssa
  %33 = getelementptr inbounds double, ptr %3, i64 %indvars.iv127.unr
  %34 = load double, ptr %33, align 8, !tbaa !11
  %35 = fcmp olt double %34, %.097107.unr
  %36 = fcmp ogt double %34, 3.200000e+01
  %or.cond.epil = and i1 %35, %36
  %.1.epil = select i1 %or.cond.epil, double %34, double %.097107.unr
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph108.epil, %._crit_edge.loopexit.unr-lcssa, %8, %.preheader
  %.097.lcssa = phi double [ 2.000000e+02, %.preheader ], [ 2.000000e+02, %8 ], [ %.1.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.1.epil, %.lr.ph108.epil ]
  %37 = tail call noundef double @_ZN4sptk5world11MyMinDoubleEdd(double noundef 2.000000e+02, double noundef %.097.lcssa)
  %38 = tail call noundef double @_ZN4sptk5world11MyMaxDoubleEdd(double noundef 3.200000e+01, double noundef %37)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  store ptr null, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %5, i64 8
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = call noundef i32 @_ZN4sptk5world12_GLOBAL__N_119GetNormalizedSignalEPdiiS2_iddPS2_S3_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, double noundef %40, double noundef %38, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %42 = call noalias noundef nonnull ptr @_Znam(i64 noundef %14) #7
  br i1 %17, label %.lr.ph111.preheader, label %._crit_edge112

.lr.ph111.preheader:                              ; preds = %._crit_edge
  %min.iters.check = icmp ult i32 %4, 4
  br i1 %min.iters.check, label %.lr.ph111.preheader153, label %vector.ph

.lr.ph111.preheader153:                           ; preds = %middle.block, %.lr.ph111.preheader
  %indvars.iv132.ph = phi i64 [ 0, %.lr.ph111.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph111

vector.ph:                                        ; preds = %.lr.ph111.preheader
  %n.vec = and i64 %11, 2147483644
  %broadcast.splatinsert = insertelement <2 x double> poison, double %38, 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 ]
  %43 = getelementptr inbounds double, ptr %3, i64 %index
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %wide.load = load <2 x double>, ptr %43, align 8, !tbaa !11
  %wide.load152 = load <2 x double>, ptr %44, align 8, !tbaa !11
  %45 = fcmp oeq <2 x double> %wide.load, zeroinitializer
  %46 = fcmp oeq <2 x double> %wide.load152, zeroinitializer
  %47 = select <2 x i1> %45, <2 x double> zeroinitializer, <2 x double> %broadcast.splat
  %48 = select <2 x i1> %46, <2 x double> zeroinitializer, <2 x double> %broadcast.splat
  %49 = getelementptr inbounds double, ptr %42, i64 %index
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  store <2 x double> %47, ptr %49, align 8, !tbaa !11
  store <2 x double> %48, ptr %50, align 8, !tbaa !11
  %index.next = add nuw i64 %index, 4
  %51 = icmp eq i64 %index.next, %n.vec
  br i1 %51, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %11
  br i1 %cmp.n, label %._crit_edge112, label %.lr.ph111.preheader153

.lr.ph108:                                        ; preds = %.lr.ph108, %.lr.ph108.preheader.new
  %indvars.iv127 = phi i64 [ 0, %.lr.ph108.preheader.new ], [ %indvars.iv.next128.1, %.lr.ph108 ]
  %.097107 = phi double [ 2.000000e+02, %.lr.ph108.preheader.new ], [ %.1.1, %.lr.ph108 ]
  %niter = phi i64 [ 0, %.lr.ph108.preheader.new ], [ %niter.next.1, %.lr.ph108 ]
  %52 = getelementptr inbounds double, ptr %3, i64 %indvars.iv127
  %53 = load double, ptr %52, align 8, !tbaa !11
  %54 = fcmp olt double %53, %.097107
  %55 = fcmp ogt double %53, 3.200000e+01
  %or.cond = and i1 %54, %55
  %.1 = select i1 %or.cond, double %53, double %.097107
  %indvars.iv.next128 = or disjoint i64 %indvars.iv127, 1
  %56 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next128
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = fcmp olt double %57, %.1
  %59 = fcmp ogt double %57, 3.200000e+01
  %or.cond.1 = and i1 %58, %59
  %.1.1 = select i1 %or.cond.1, double %57, double %.1
  %indvars.iv.next128.1 = add nuw nsw i64 %indvars.iv127, 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.ph108, !llvm.loop !16

._crit_edge112:                                   ; preds = %.lr.ph111, %middle.block, %._crit_edge
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = fdiv double 2.000000e+03, %38
  %63 = call noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef %62)
  call void @_ZN4sptk5world12_GLOBAL__N_120BandwiseAperiodicityEPdiiS2_iS2_iPS2_(ptr noundef %60, i32 noundef %41, i32 noundef %2, ptr noundef nonnull %42, i32 noundef %4, ptr noundef %61, i32 noundef %63, ptr noundef nonnull %16)
  call void @_ZN4sptk5world12_GLOBAL__N_120BandwiseAperiodicityEPdiiS2_iS2_iPS2_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef 30, ptr noundef nonnull %15)
  %64 = sdiv i32 %6, 2
  %65 = add nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = icmp slt i32 %6, -3
  %68 = shl nsw i64 %66, 3
  %69 = select i1 %67, i64 -1, i64 %68
  %70 = call noalias noundef nonnull ptr @_Znam(i64 noundef %69) #7
  br i1 %17, label %.lr.ph120, label %._crit_edge121

.lr.ph120:                                        ; preds = %._crit_edge112
  %.not113 = icmp slt i32 %6, -1
  %wide.trip.count140 = zext i32 %65 to i64
  br label %76

.lr.ph111:                                        ; preds = %.lr.ph111.preheader153, %.lr.ph111
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %.lr.ph111 ], [ %indvars.iv132.ph, %.lr.ph111.preheader153 ]
  %71 = getelementptr inbounds double, ptr %3, i64 %indvars.iv132
  %72 = load double, ptr %71, align 8, !tbaa !11
  %73 = fcmp oeq double %72, 0.000000e+00
  %74 = select i1 %73, double 0.000000e+00, double %38
  %75 = getelementptr inbounds double, ptr %42, i64 %indvars.iv132
  store double %74, ptr %75, align 8, !tbaa !11
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %exitcond136.not = icmp eq i64 %indvars.iv.next133, %11
  br i1 %exitcond136.not, label %._crit_edge112, label %.lr.ph111, !llvm.loop !17

76:                                               ; preds = %.lr.ph120, %._crit_edge117
  %indvars.iv142 = phi i64 [ 0, %.lr.ph120 ], [ %indvars.iv.next143, %._crit_edge117 ]
  %77 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv142
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = call noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef %2)
  %80 = getelementptr inbounds double, ptr %3, i64 %indvars.iv142
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = call noundef double @_ZN4sptk5world11MyMaxDoubleEdd(double noundef %81, double noundef %38)
  %83 = fdiv double %82, %38
  %84 = getelementptr inbounds ptr, ptr %7, i64 %indvars.iv142
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  call void @_ZN4sptk5world12_GLOBAL__N_121CalculateAperiodicityEPdiidiS2_(ptr noundef %78, i32 noundef %79, i32 noundef %6, double noundef %83, i32 noundef %2, ptr noundef %85)
  %86 = getelementptr inbounds ptr, ptr %15, i64 %indvars.iv142
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = call noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef %2)
  call void @_ZN4sptk5world12_GLOBAL__N_121CalculateAperiodicityEPdiidiS2_(ptr noundef %87, i32 noundef %88, i32 noundef %6, double noundef 1.000000e+00, i32 noundef %2, ptr noundef nonnull %70)
  br i1 %.not113, label %._crit_edge117, label %.lr.ph116.preheader

.lr.ph116.preheader:                              ; preds = %76
  %.pre = load ptr, ptr %84, align 8, !tbaa !5
  br label %.lr.ph116

._crit_edge117:                                   ; preds = %.lr.ph116, %76
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next143, %11
  br i1 %exitcond146.not, label %._crit_edge121, label %76, !llvm.loop !18

.lr.ph116:                                        ; preds = %.lr.ph116.preheader, %.lr.ph116
  %89 = phi ptr [ %.pre, %.lr.ph116.preheader ], [ %95, %.lr.ph116 ]
  %indvars.iv137 = phi i64 [ 0, %.lr.ph116.preheader ], [ %indvars.iv.next138, %.lr.ph116 ]
  %90 = getelementptr inbounds double, ptr %89, i64 %indvars.iv137
  %91 = load double, ptr %90, align 8, !tbaa !11
  %92 = getelementptr inbounds double, ptr %70, i64 %indvars.iv137
  %93 = load double, ptr %92, align 8, !tbaa !11
  %94 = call noundef double @_ZN4sptk5world11MyMinDoubleEdd(double noundef %91, double noundef %93)
  %95 = load ptr, ptr %84, align 8, !tbaa !5
  %96 = getelementptr inbounds double, ptr %95, i64 %indvars.iv137
  store double %94, ptr %96, align 8, !tbaa !11
  %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 %._crit_edge117, label %.lr.ph116, !llvm.loop !19

._crit_edge121:                                   ; preds = %._crit_edge117, %._crit_edge112
  call void @_ZdaPv(ptr noundef nonnull %70) #9
  call void @_ZdaPv(ptr noundef nonnull %42) #9
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = icmp eq ptr %97, null
  br i1 %98, label %100, label %99

99:                                               ; preds = %._crit_edge121
  call void @_ZdaPv(ptr noundef nonnull %97) #9
  br label %100

100:                                              ; preds = %99, %._crit_edge121
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = icmp eq ptr %101, null
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  call void @_ZdaPv(ptr noundef nonnull %101) #9
  br label %104

104:                                              ; preds = %103, %100
  br i1 %17, label %.lr.ph124, label %._crit_edge125

.lr.ph124:                                        ; preds = %104, %114
  %indvars.iv147 = phi i64 [ %indvars.iv.next148, %114 ], [ 0, %104 ]
  %105 = getelementptr inbounds ptr, ptr %15, i64 %indvars.iv147
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = icmp eq ptr %106, null
  br i1 %107, label %109, label %108

108:                                              ; preds = %.lr.ph124
  call void @_ZdaPv(ptr noundef nonnull %106) #9
  br label %109

109:                                              ; preds = %108, %.lr.ph124
  %110 = getelementptr inbounds ptr, ptr %16, i64 %indvars.iv147
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = icmp eq ptr %111, null
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  call void @_ZdaPv(ptr noundef nonnull %111) #9
  br label %114

114:                                              ; preds = %109, %113
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond151.not = icmp eq i64 %indvars.iv.next148, %11
  br i1 %exitcond151.not, label %._crit_edge125, label %.lr.ph124, !llvm.loop !20

._crit_edge125:                                   ; preds = %114, %104
  call void @_ZdaPv(ptr noundef nonnull %15) #9
  call void @_ZdaPv(ptr noundef nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  ret void
}

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN4sptk5world12_GLOBAL__N_116GetNumberOfBandsEi(i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sptk5world11MyMaxDoubleEdd(double noundef, double noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4sptk5world11MyMinDoubleEdd(double noundef, double noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4sptk5world12_GLOBAL__N_120BandwiseAperiodicityEPdiiS2_iS2_iPS2_(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare noundef i32 @_ZN4sptk5world12matlab_roundEd(double noundef) local_unnamed_addr #5

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin allocsize(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 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { nobuiltin 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 #7 = { builtin allocsize(0) }
attributes #8 = { nounwind }
attributes #9 = { builtin 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !15, !14}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


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