; LLVM IR from sp-nitech/SPTK :: src/check (line_spectral_pairs_stability_check)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::LineSpectralPairsStabilityCheck" = type <{ ptr, i32, [4 x i8], double, i8, [7 x i8] }>

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

29:                                               ; preds = %4
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #4
  %32 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !16
  %34 = add nsw i32 %33, 1
  %35 = sext i32 %34 to i64
  %36 = icmp ne i64 %31, %35
  br i1 %36, label %40, label %37

37:                                               ; preds = %29
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = icmp eq ptr null, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %37, %29, %4
  store i1 false, ptr %5, align 1
  br label %247

41:                                               ; preds = %37
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = icmp ne ptr null, %42
  br i1 %43, label %44, label %58

44:                                               ; preds = %41
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %45) #4
  %47 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 1
  %48 = load i32, ptr %47, align 8, !tbaa !16
  %49 = add nsw i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = icmp ne i64 %46, %50
  br i1 %51, label %52, label %58

52:                                               ; preds = %44
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 1
  %55 = load i32, ptr %54, align 8, !tbaa !16
  %56 = add nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %57)
  br label %58

58:                                               ; preds = %52, %44, %41
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 1, ptr %59, align 1, !tbaa !17
  %60 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !16
  %62 = icmp eq i32 0, %61
  br i1 %62, label %63, label %73

63:                                               ; preds = %58
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = icmp ne ptr null, %64
  br i1 %65, label %66, label %72

66:                                               ; preds = %63
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef 0) #4
  %69 = load double, ptr %68, align 8, !tbaa !18
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef 0) #4
  store double %69, ptr %71, align 8, !tbaa !18
  br label %72

72:                                               ; preds = %66, %63
  store i1 true, ptr %5, align 1
  br label %247

73:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef 0) #4
  store ptr %75, ptr %10, align 8, !tbaa !5
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %76, i64 1
  %78 = load double, ptr %77, align 8, !tbaa !18
  %79 = fcmp ole double %78, 0.000000e+00
  br i1 %79, label %88, label %80

80:                                               ; preds = %73
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !16
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds double, ptr %81, i64 %84
  %86 = load double, ptr %85, align 8, !tbaa !18
  %87 = fcmp ole double 0x400921FB54442D18, %86
  br i1 %87, label %88, label %90

88:                                               ; preds = %80, %73
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 0, ptr %89, align 1, !tbaa !17
  br label %90

90:                                               ; preds = %88, %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 2, ptr %11, align 4, !tbaa !19
  br label %91

91:                                               ; preds = %113, %90
  %92 = load i32, ptr %11, align 4, !tbaa !19
  %93 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 1
  %94 = load i32, ptr %93, align 8, !tbaa !16
  %95 = icmp sle i32 %92, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %91
  store i32 2, ptr %12, align 4
  br label %116

97:                                               ; preds = %91
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i32, ptr %11, align 4, !tbaa !19
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %98, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !18
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load i32, ptr %11, align 4, !tbaa !19
  %105 = sub nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %103, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !18
  %109 = fcmp ole double %102, %108
  br i1 %109, label %110, label %112

110:                                              ; preds = %97
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 0, ptr %111, align 1, !tbaa !17
  store i32 2, ptr %12, align 4
  br label %116

112:                                              ; preds = %97
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %11, align 4, !tbaa !19
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %11, align 4, !tbaa !19
  br label %91, !llvm.loop !20

116:                                              ; preds = %110, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %117

117:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = icmp ne ptr null, %118
  br i1 %119, label %120, label %246

120:                                              ; preds = %117
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #4
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %13, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #4
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %14, i32 0, i32 0
  store ptr %125, ptr %126, align 8
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #4
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %128, ptr %129, align 8
  %130 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %13, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %14, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8
  %136 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %131, ptr %133, ptr %135)
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load i8, ptr %138, align 1, !tbaa !17, !range !14, !noundef !15
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %145

141:                                              ; preds = %120
  %142 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 3
  %143 = load double, ptr %142, align 8, !tbaa !22
  %144 = fcmp olt double 0.000000e+00, %143
  br i1 %144, label %145, label %245

145:                                              ; preds = %141, %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %146 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 3
  %147 = load double, ptr %146, align 8, !tbaa !22
  store double %147, ptr %17, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %148 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 3
  %149 = load double, ptr %148, align 8, !tbaa !22
  %150 = fsub double 0x400921FB54442D18, %149
  store double %150, ptr %18, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef 0) #4
  store ptr %152, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !19
  br label %153

153:                                              ; preds = %240, %145
  %154 = load i32, ptr %20, align 4, !tbaa !19
  %155 = icmp slt i32 %154, 100
  br i1 %155, label %157, label %156

156:                                              ; preds = %153
  store i32 5, ptr %12, align 4
  br label %243

157:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  store i8 1, ptr %21, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 2, ptr %22, align 4, !tbaa !19
  br label %158

158:                                              ; preds = %203, %157
  %159 = load i32, ptr %22, align 4, !tbaa !19
  %160 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !16
  %162 = icmp sle i32 %159, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %158
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %206

164:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %165 = load ptr, ptr %19, align 8, !tbaa !5
  %166 = load i32, ptr %22, align 4, !tbaa !19
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds double, ptr %165, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !18
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = load i32, ptr %22, align 4, !tbaa !19
  %172 = sub nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %170, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !18
  %176 = fsub double %169, %175
  store double %176, ptr %23, align 8, !tbaa !18
  %177 = load double, ptr %23, align 8, !tbaa !18
  %178 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 3
  %179 = load double, ptr %178, align 8, !tbaa !22
  %180 = fcmp olt double %177, %179
  br i1 %180, label %181, label %202

181:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %182 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 3
  %183 = load double, ptr %182, align 8, !tbaa !22
  %184 = load double, ptr %23, align 8, !tbaa !18
  %185 = fsub double %183, %184
  %186 = fmul double 5.000000e-01, %185
  store double %186, ptr %24, align 8, !tbaa !18
  %187 = load double, ptr %24, align 8, !tbaa !18
  %188 = load ptr, ptr %19, align 8, !tbaa !5
  %189 = load i32, ptr %22, align 4, !tbaa !19
  %190 = sub nsw i32 %189, 1
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds double, ptr %188, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !18
  %194 = fsub double %193, %187
  store double %194, ptr %192, align 8, !tbaa !18
  %195 = load double, ptr %24, align 8, !tbaa !18
  %196 = load ptr, ptr %19, align 8, !tbaa !5
  %197 = load i32, ptr %22, align 4, !tbaa !19
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds double, ptr %196, i64 %198
  %200 = load double, ptr %199, align 8, !tbaa !18
  %201 = fadd double %200, %195
  store double %201, ptr %199, align 8, !tbaa !18
  store i8 0, ptr %21, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %202

202:                                              ; preds = %181, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %22, align 4, !tbaa !19
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %22, align 4, !tbaa !19
  br label %158, !llvm.loop !23

206:                                              ; preds = %163
  %207 = load ptr, ptr %19, align 8, !tbaa !5
  %208 = getelementptr inbounds double, ptr %207, i64 1
  %209 = load double, ptr %208, align 8, !tbaa !18
  %210 = load double, ptr %17, align 8, !tbaa !18
  %211 = fcmp olt double %209, %210
  br i1 %211, label %212, label %216

212:                                              ; preds = %206
  %213 = load double, ptr %17, align 8, !tbaa !18
  %214 = load ptr, ptr %19, align 8, !tbaa !5
  %215 = getelementptr inbounds double, ptr %214, i64 1
  store double %213, ptr %215, align 8, !tbaa !18
  store i8 0, ptr %21, align 1, !tbaa !17
  br label %216

216:                                              ; preds = %212, %206
  %217 = load double, ptr %18, align 8, !tbaa !18
  %218 = load ptr, ptr %19, align 8, !tbaa !5
  %219 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 1
  %220 = load i32, ptr %219, align 8, !tbaa !16
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds double, ptr %218, i64 %221
  %223 = load double, ptr %222, align 8, !tbaa !18
  %224 = fcmp olt double %217, %223
  br i1 %224, label %225, label %232

225:                                              ; preds = %216
  %226 = load double, ptr %18, align 8, !tbaa !18
  %227 = load ptr, ptr %19, align 8, !tbaa !5
  %228 = getelementptr inbounds %"class.sptk::LineSpectralPairsStabilityCheck", ptr %25, i32 0, i32 1
  %229 = load i32, ptr %228, align 8, !tbaa !16
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds double, ptr %227, i64 %230
  store double %226, ptr %231, align 8, !tbaa !18
  store i8 0, ptr %21, align 1, !tbaa !17
  br label %232

232:                                              ; preds = %225, %216
  %233 = load i8, ptr %21, align 1, !tbaa !17, !range !14, !noundef !15
  %234 = trunc i8 %233 to i1
  br i1 %234, label %235, label %236

235:                                              ; preds = %232
  store i32 5, ptr %12, align 4
  br label %237

236:                                              ; preds = %232
  store i32 0, ptr %12, align 4
  br label %237

237:                                              ; preds = %236, %235
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  %238 = load i32, ptr %12, align 4
  switch i32 %238, label %243 [
    i32 0, label %239
  ]

239:                                              ; preds = %237
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %20, align 4, !tbaa !19
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %20, align 4, !tbaa !19
  br label %153, !llvm.loop !24

243:                                              ; preds = %237, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %244

244:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %245

245:                                              ; preds = %244, %141
  br label %246

246:                                              ; preds = %245, %117
  store i1 true, ptr %5, align 1
  br label %247

247:                                              ; preds = %246, %72, %40
  %248 = load i1, ptr %5, align 1
  ret i1 %248
}

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr, ptr, ptr) #3

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

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

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

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


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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk31LineSpectralPairsStabilityCheck3RunERKSt6vectorIdSaIdEEPS3_Pb(ptr nocapture noundef nonnull readonly align 8 dereferenceable(25) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i8, ptr %5, align 8, !tbaa !5, !range !12, !noundef !13
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %8, label %.loopexit

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

16:                                               ; preds = %8
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %22, label %17

17:                                               ; preds = %16
  %18 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  %19 = load i32, ptr %10, align 8, !tbaa !14
  %20 = add nsw i32 %19, 1
  %21 = sext i32 %20 to i64
  %.not71 = icmp eq i64 %18, %21
  br i1 %.not71, label %.thread, label %.thread81

22:                                               ; preds = %16
  store i8 1, ptr %3, align 1, !tbaa !15
  %23 = icmp eq i32 %11, 0
  br i1 %23, label %.loopexit, label %29

.thread81:                                        ; preds = %17
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %21)
  %.pr82 = load i32, ptr %10, align 8, !tbaa !14
  store i8 1, ptr %3, align 1, !tbaa !15
  %24 = icmp eq i32 %.pr82, 0
  br i1 %24, label %.thread78, label %29

.thread:                                          ; preds = %17
  store i8 1, ptr %3, align 1, !tbaa !15
  %25 = icmp eq i32 %19, 0
  br i1 %25, label %.thread78, label %29

.thread78:                                        ; preds = %.thread81, %.thread
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #3
  %27 = load double, ptr %26, align 8, !tbaa !16
  %28 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #3
  store double %27, ptr %28, align 8, !tbaa !16
  br label %.loopexit

29:                                               ; preds = %.thread81, %.thread, %22
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef 0) #3
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load double, ptr %31, align 8, !tbaa !16
  %33 = fcmp ugt double %32, 0.000000e+00
  %.pre.pre = load i32, ptr %10, align 8, !tbaa !14
  br i1 %33, label %34, label %39

34:                                               ; preds = %29
  %35 = sext i32 %.pre.pre to i64
  %36 = getelementptr inbounds double, ptr %30, i64 %35
  %37 = load double, ptr %36, align 8, !tbaa !16
  %38 = fcmp ult double %37, 0x400921FB54442D18
  br i1 %38, label %40, label %39

39:                                               ; preds = %34, %29
  store i8 0, ptr %3, align 1, !tbaa !15
  br label %40

40:                                               ; preds = %39, %34
  %.not7286 = icmp slt i32 %.pre.pre, 2
  br i1 %.not7286, label %.loopexit85, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %40
  %41 = add nuw i32 %.pre.pre, 1
  %wide.trip.count = zext i32 %41 to i64
  br label %.lr.ph

42:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit85, label %.lr.ph, !llvm.loop !17

.lr.ph:                                           ; preds = %.lr.ph.preheader, %42
  %indvars.iv = phi i64 [ 2, %.lr.ph.preheader ], [ %indvars.iv.next, %42 ]
  %43 = getelementptr inbounds double, ptr %30, i64 %indvars.iv
  %44 = load double, ptr %43, align 8, !tbaa !16
  %45 = getelementptr i8, ptr %43, i64 -8
  %46 = load double, ptr %45, align 8, !tbaa !16
  %47 = fcmp ugt double %44, %46
  br i1 %47, label %42, label %48

48:                                               ; preds = %.lr.ph
  store i8 0, ptr %3, align 1, !tbaa !15
  br label %.loopexit85

.loopexit85:                                      ; preds = %42, %40, %48
  br i1 %.not, label %.loopexit, label %49

49:                                               ; preds = %.loopexit85
  %50 = tail call ptr @_ZNKSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %51 = tail call ptr @_ZNKSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %52 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  %53 = tail call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr %50, ptr %51, ptr %52)
  %54 = load i8, ptr %3, align 1, !tbaa !15, !range !12, !noundef !13
  %55 = trunc nuw i8 %54 to i1
  %56 = getelementptr inbounds i8, ptr %0, i64 16
  %57 = load double, ptr %56, align 8
  %58 = fcmp ule double %57, 0.000000e+00
  %or.cond77.not = select i1 %55, i1 %58, i1 false
  br i1 %or.cond77.not, label %.loopexit, label %59

59:                                               ; preds = %49
  %60 = fsub double 0x400921FB54442D18, %57
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #3
  %62 = load i32, ptr %10, align 8, !tbaa !14
  %.not7388 = icmp slt i32 %62, 2
  %63 = getelementptr inbounds i8, ptr %61, i64 8
  %64 = sext i32 %62 to i64
  %65 = getelementptr inbounds double, ptr %61, i64 %64
  br i1 %.not7388, label %.preheader.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %59
  %66 = add nuw i32 %62, 1
  %wide.trip.count104 = zext i32 %66 to i64
  br label %.preheader

.preheader.us:                                    ; preds = %59, %.preheader.us.backedge
  %.06093.us = phi i32 [ %.06093.us.be, %.preheader.us.backedge ], [ 0, %59 ]
  %67 = load double, ptr %63, align 8, !tbaa !16
  %68 = fcmp olt double %67, %57
  br i1 %68, label %69, label %70

69:                                               ; preds = %.preheader.us
  store double %57, ptr %63, align 8, !tbaa !16
  br label %70

70:                                               ; preds = %69, %.preheader.us
  %71 = load double, ptr %65, align 8, !tbaa !16
  %72 = fcmp olt double %60, %71
  br i1 %72, label %.thread79.us, label %73

73:                                               ; preds = %70
  %74 = icmp ult i32 %.06093.us, 99
  %or.cond95 = select i1 %68, i1 %74, i1 false
  br i1 %or.cond95, label %.preheader.us.backedge, label %.loopexit

.thread79.us:                                     ; preds = %70
  store double %60, ptr %65, align 8, !tbaa !16
  %.old94 = icmp ult i32 %.06093.us, 99
  br i1 %.old94, label %.preheader.us.backedge, label %.loopexit

.preheader.us.backedge:                           ; preds = %.thread79.us, %73
  %.06093.us.be = add nuw nsw i32 %.06093.us, 1
  br label %.preheader.us, !llvm.loop !19

.preheader:                                       ; preds = %.preheader.backedge, %.preheader.preheader
  %.06093 = phi i32 [ 0, %.preheader.preheader ], [ %.06093.be, %.preheader.backedge ]
  br label %77

._crit_edge:                                      ; preds = %90
  %75 = load double, ptr %63, align 8, !tbaa !16
  %76 = fcmp olt double %75, %57
  br i1 %76, label %91, label %92

77:                                               ; preds = %.preheader, %90
  %indvars.iv102 = phi i64 [ 2, %.preheader ], [ %indvars.iv.next103, %90 ]
  %.05989 = phi i1 [ true, %.preheader ], [ %.1, %90 ]
  %78 = getelementptr inbounds double, ptr %61, i64 %indvars.iv102
  %79 = load double, ptr %78, align 8, !tbaa !16
  %80 = getelementptr i8, ptr %78, i64 -8
  %81 = load double, ptr %80, align 8, !tbaa !16
  %82 = fsub double %79, %81
  %83 = load double, ptr %56, align 8, !tbaa !20
  %84 = fcmp olt double %82, %83
  br i1 %84, label %85, label %90

85:                                               ; preds = %77
  %86 = fsub double %83, %82
  %87 = fmul double %86, 5.000000e-01
  %88 = fsub double %81, %87
  store double %88, ptr %80, align 8, !tbaa !16
  %89 = fadd double %79, %87
  store double %89, ptr %78, align 8, !tbaa !16
  br label %90

90:                                               ; preds = %85, %77
  %.1 = phi i1 [ false, %85 ], [ %.05989, %77 ]
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %exitcond105.not = icmp eq i64 %indvars.iv.next103, %wide.trip.count104
  br i1 %exitcond105.not, label %._crit_edge, label %77, !llvm.loop !21

91:                                               ; preds = %._crit_edge
  store double %57, ptr %63, align 8, !tbaa !16
  br label %92

92:                                               ; preds = %91, %._crit_edge
  %.2 = phi i1 [ false, %91 ], [ %.1, %._crit_edge ]
  %93 = load double, ptr %65, align 8, !tbaa !16
  %94 = fcmp olt double %60, %93
  br i1 %94, label %.thread79, label %95

.thread79:                                        ; preds = %92
  store double %60, ptr %65, align 8, !tbaa !16
  %.old97 = icmp ult i32 %.06093, 99
  br i1 %.old97, label %.preheader.backedge, label %.loopexit

.preheader.backedge:                              ; preds = %.thread79, %95
  %.06093.be = add nuw nsw i32 %.06093, 1
  br label %.preheader, !llvm.loop !19

95:                                               ; preds = %92
  %96 = icmp ugt i32 %.06093, 98
  %or.cond98.not = select i1 %.2, i1 true, i1 %96
  br i1 %or.cond98.not, label %.loopexit, label %.preheader.backedge

.loopexit:                                        ; preds = %95, %.thread79, %.thread79.us, %73, %22, %.loopexit85, %49, %.thread78, %4, %8
  %.0 = phi i1 [ false, %8 ], [ false, %4 ], [ true, %.thread78 ], [ true, %49 ], [ true, %.loopexit85 ], [ true, %22 ], [ true, %73 ], [ true, %.thread79.us ], [ true, %.thread79 ], [ true, %95 ]
  ret i1 %.0
}

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPKdSt6vectorIdSaIdEEEENS1_IPdS6_EEET0_T_SB_SA_(ptr, ptr, ptr) local_unnamed_addr #2

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 24}
!6 = !{!"_ZTSN4sptk31LineSpectralPairsStabilityCheckE", !7, i64 8, !10, i64 16, !11, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!6, !7, i64 8}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !10, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!6, !10, i64 16}
!21 = distinct !{!21, !18}


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