; LLVM IR from sp-nitech/SPTK :: src/analysis (spectrum_extraction_by_world)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.sptk::world::CheapTrickOption" = type { double, double, i32 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::SpectrumExtractionByWorld" = type <{ %"class.sptk::SpectrumExtractionInterface", i32, i32, double, i8, i8, [6 x i8] }>
%"class.sptk::SpectrumExtractionInterface" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk25SpectrumExtractionByWorld3RunERKSt6vectorIdSaIdEES5_PS1_IS3_SaIS3_EE(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %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 i32, align 4
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"struct.sptk::world::CheapTrickOption", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::vector.5", align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"class.std::vector", align 8
  %32 = alloca %"class.std::allocator", align 1
  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
  %33 = load ptr, ptr %6, align 8
  %34 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 5
  %35 = load i8, ptr %34, align 1, !tbaa !9, !range !15, !noundef !16
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %46

37:                                               ; preds = %4
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #5
  br i1 %39, label %46, label %40

40:                                               ; preds = %37
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #5
  br i1 %42, label %46, label %43

43:                                               ; preds = %40
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = icmp eq ptr null, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %43, %40, %37, %4
  store i1 false, ptr %5, align 1
  br label %300

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #5
  %50 = trunc i64 %49 to i32
  store i32 %50, ptr %10, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %51 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 3
  %52 = load double, ptr %51, align 8, !tbaa !18
  %53 = fmul double 5.000000e-01, %52
  store double %53, ptr %11, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !17
  br label %54

54:                                               ; preds = %76, %47
  %55 = load i32, ptr %12, align 4, !tbaa !17
  %56 = load i32, ptr %10, align 4, !tbaa !17
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  store i32 2, ptr %13, align 4
  br label %79

59:                                               ; preds = %54
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = load i32, ptr %12, align 4, !tbaa !17
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %62) #5
  %64 = load double, ptr %63, align 8, !tbaa !19
  %65 = fcmp olt double %64, 0.000000e+00
  br i1 %65, label %74, label %66

66:                                               ; preds = %59
  %67 = load double, ptr %11, align 8, !tbaa !19
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load i32, ptr %12, align 4, !tbaa !17
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70) #5
  %72 = load double, ptr %71, align 8, !tbaa !19
  %73 = fcmp olt double %67, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %66, %59
  store i1 false, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %79

75:                                               ; preds = %66
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %12, align 4, !tbaa !17
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %12, align 4, !tbaa !17
  br label %54, !llvm.loop !20

79:                                               ; preds = %74, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %80 = load i32, ptr %13, align 4
  switch i32 %80, label %299 [
    i32 2, label %81
  ]

81:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store double 7.100000e+01, ptr %14, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !17
  br label %82

82:                                               ; preds = %109, %81
  %83 = load i32, ptr %15, align 4, !tbaa !17
  %84 = load i32, ptr %10, align 4, !tbaa !17
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %112

87:                                               ; preds = %82
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load i32, ptr %15, align 4, !tbaa !17
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90) #5
  %92 = load double, ptr %91, align 8, !tbaa !19
  %93 = fcmp olt double 0.000000e+00, %92
  br i1 %93, label %94, label %108

94:                                               ; preds = %87
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load i32, ptr %15, align 4, !tbaa !17
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %97) #5
  %99 = load double, ptr %98, align 8, !tbaa !19
  %100 = load double, ptr %14, align 8, !tbaa !19
  %101 = fcmp olt double %99, %100
  br i1 %101, label %102, label %108

102:                                              ; preds = %94
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load i32, ptr %15, align 4, !tbaa !17
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %105) #5
  %107 = load double, ptr %106, align 8, !tbaa !19
  store double %107, ptr %14, align 8, !tbaa !19
  br label %108

108:                                              ; preds = %102, %94, %87
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %15, align 4, !tbaa !17
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %15, align 4, !tbaa !17
  br label %82, !llvm.loop !22

112:                                              ; preds = %86
  %113 = load double, ptr %14, align 8, !tbaa !19
  %114 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 3
  %115 = load double, ptr %114, align 8, !tbaa !18
  %116 = fptosi double %115 to i32
  %117 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 1
  %118 = load i32, ptr %117, align 8, !tbaa !23
  %119 = call noundef double @_ZN4sptk5world23GetF0FloorForCheapTrickEii(i32 noundef %116, i32 noundef %118)
  %120 = fcmp olt double %113, %119
  br i1 %120, label %121, label %122

121:                                              ; preds = %112
  store i1 false, ptr %5, align 1
  store i32 1, ptr %13, align 4
  br label %298

122:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %123 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 2
  %124 = load i32, ptr %123, align 4, !tbaa !24
  %125 = sitofp i32 %124 to double
  %126 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 3
  %127 = load double, ptr %126, align 8, !tbaa !18
  %128 = fdiv double %125, %127
  store double %128, ptr %16, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  %129 = load i32, ptr %10, align 4, !tbaa !17
  %130 = sext i32 %129 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %130, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %131 unwind label %137

131:                                              ; preds = %122
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !17
  br label %132

132:                                              ; preds = %149, %131
  %133 = load i32, ptr %21, align 4, !tbaa !17
  %134 = load i32, ptr %10, align 4, !tbaa !17
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %141, label %136

136:                                              ; preds = %132
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %152

137:                                              ; preds = %122
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %19, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %20, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  br label %297

141:                                              ; preds = %132
  %142 = load i32, ptr %21, align 4, !tbaa !17
  %143 = sitofp i32 %142 to double
  %144 = load double, ptr %16, align 8, !tbaa !19
  %145 = fmul double %143, %144
  %146 = load i32, ptr %21, align 4, !tbaa !17
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %147) #5
  store double %145, ptr %148, align 8, !tbaa !19
  br label %149

149:                                              ; preds = %141
  %150 = load i32, ptr %21, align 4, !tbaa !17
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %21, align 4, !tbaa !17
  br label %132, !llvm.loop !25

152:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #5
  %153 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 3
  %154 = load double, ptr %153, align 8, !tbaa !18
  %155 = fptosi double %154 to i32
  invoke void @_ZN4sptk5world26InitializeCheapTrickOptionEiPNS0_16CheapTrickOptionE(i32 noundef %155, ptr noundef %22)
          to label %156 unwind label %172

156:                                              ; preds = %152
  %157 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 1
  %158 = load i32, ptr %157, align 8, !tbaa !23
  %159 = getelementptr inbounds %"struct.sptk::world::CheapTrickOption", ptr %22, i32 0, i32 2
  store i32 %158, ptr %159, align 8, !tbaa !26
  %160 = load double, ptr %14, align 8, !tbaa !19
  %161 = getelementptr inbounds %"struct.sptk::world::CheapTrickOption", ptr %22, i32 0, i32 1
  store double %160, ptr %161, align 8, !tbaa !28
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #5
  %164 = load i32, ptr %10, align 4, !tbaa !17
  %165 = sext i32 %164 to i64
  %166 = icmp ne i64 %163, %165
  br i1 %166, label %167, label %176

167:                                              ; preds = %156
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = load i32, ptr %10, align 4, !tbaa !17
  %170 = sext i32 %169 to i64
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %170)
          to label %171 unwind label %172

171:                                              ; preds = %167
  br label %176

172:                                              ; preds = %167, %152
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %19, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %20, align 4
  br label %296

176:                                              ; preds = %171, %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %177 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 1
  %178 = load i32, ptr %177, align 8, !tbaa !23
  %179 = sdiv i32 %178, 2
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %23, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !17
  br label %181

181:                                              ; preds = %208, %176
  %182 = load i32, ptr %24, align 4, !tbaa !17
  %183 = load i32, ptr %10, align 4, !tbaa !17
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %211

186:                                              ; preds = %181
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = load i32, ptr %24, align 4, !tbaa !17
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %189) #5
  %191 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %190) #5
  %192 = load i32, ptr %23, align 4, !tbaa !17
  %193 = sext i32 %192 to i64
  %194 = icmp ne i64 %191, %193
  br i1 %194, label %195, label %207

195:                                              ; preds = %186
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = load i32, ptr %24, align 4, !tbaa !17
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %198) #5
  %200 = load i32, ptr %23, align 4, !tbaa !17
  %201 = sext i32 %200 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %201)
          to label %202 unwind label %203

202:                                              ; preds = %195
  br label %207

203:                                              ; preds = %195
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %19, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %295

207:                                              ; preds = %202, %186
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %24, align 4, !tbaa !17
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %24, align 4, !tbaa !17
  br label %181, !llvm.loop !29

211:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #5
  call void @_ZNSt6vectorIPdSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  %212 = load i32, ptr %10, align 4, !tbaa !17
  %213 = sext i32 %212 to i64
  invoke void @_ZNSt6vectorIPdSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %213)
          to label %214 unwind label %225

214:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %215, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %216 = load ptr, ptr %26, align 8, !tbaa !5
  %217 = call ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %216) #5
  %218 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %217, ptr %218, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %219 = load ptr, ptr %26, align 8, !tbaa !5
  %220 = call ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %219) #5
  %221 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %220, ptr %221, align 8
  br label %222

222:                                              ; preds = %234, %214
  %223 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #5
  br i1 %223, label %229, label %224

224:                                              ; preds = %222
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %240

225:                                              ; preds = %211
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %19, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %20, align 4
  br label %294

229:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %230 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  store ptr %230, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %231 = load ptr, ptr %29, align 8, !tbaa !5
  %232 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %231) #5
  store ptr %232, ptr %30, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIPdSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %233 unwind label %236

233:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %234

234:                                              ; preds = %233
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  br label %222

236:                                              ; preds = %229
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %19, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %294

240:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #5
  %241 = load i32, ptr %10, align 4, !tbaa !17
  %242 = sext i32 %241 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %242, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %243 unwind label %262

243:                                              ; preds = %240
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #5
  %244 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 4
  %245 = load i8, ptr %244, align 8, !tbaa !30, !range !15, !noundef !16
  %246 = trunc i8 %245 to i1
  br i1 %246, label %247, label %270

247:                                              ; preds = %243
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %248) #5
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %250) #5
  %252 = trunc i64 %251 to i32
  %253 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 3
  %254 = load double, ptr %253, align 8, !tbaa !18
  %255 = fptosi double %254 to i32
  %256 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %257) #5
  %259 = load i32, ptr %10, align 4, !tbaa !17
  %260 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  invoke void @_ZN4sptk5world9StoneMaskEPKdiiS2_S2_iPd(ptr noundef %249, i32 noundef %252, i32 noundef %255, ptr noundef %256, ptr noundef %258, i32 noundef %259, ptr noundef %260)
          to label %261 unwind label %266

261:                                              ; preds = %247
  br label %270

262:                                              ; preds = %240
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %19, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %20, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #5
  br label %293

266:                                              ; preds = %288, %247
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %19, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %20, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  br label %293

270:                                              ; preds = %261, %243
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  %272 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %271) #5
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %273) #5
  %275 = trunc i64 %274 to i32
  %276 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 3
  %277 = load double, ptr %276, align 8, !tbaa !18
  %278 = fptosi double %277 to i32
  %279 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %280 = getelementptr inbounds %"class.sptk::SpectrumExtractionByWorld", ptr %33, i32 0, i32 4
  %281 = load i8, ptr %280, align 8, !tbaa !30, !range !15, !noundef !16
  %282 = trunc i8 %281 to i1
  br i1 %282, label %283, label %285

283:                                              ; preds = %270
  %284 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  br label %288

285:                                              ; preds = %270
  %286 = load ptr, ptr %8, align 8, !tbaa !5
  %287 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %286) #5
  br label %288

288:                                              ; preds = %285, %283
  %289 = phi ptr [ %284, %283 ], [ %287, %285 ]
  %290 = load i32, ptr %10, align 4, !tbaa !17
  %291 = call noundef ptr @_ZNSt6vectorIPdSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  invoke void @_ZN4sptk5world10CheapTrickEPKdiiS2_S2_iPKNS0_16CheapTrickOptionEPPd(ptr noundef %272, i32 noundef %275, i32 noundef %278, ptr noundef %279, ptr noundef %289, i32 noundef %290, ptr noundef %22, ptr noundef %291)
          to label %292 unwind label %266

292:                                              ; preds = %288
  store i1 true, ptr %5, align 1
  store i32 1, ptr %13, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #5
  call void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %298

293:                                              ; preds = %266, %262
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #5
  br label %294

294:                                              ; preds = %293, %236, %225
  call void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #5
  br label %295

295:                                              ; preds = %294, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %296

296:                                              ; preds = %295, %172
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %297

297:                                              ; preds = %296, %137
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %302

298:                                              ; preds = %292, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %299

299:                                              ; preds = %298, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %300

300:                                              ; preds = %299, %46
  %301 = load i1, ptr %5, align 1
  ret i1 %301

302:                                              ; preds = %297
  %303 = load ptr, ptr %19, align 8
  %304 = load i32, ptr %20, align 4
  %305 = insertvalue { ptr, i32 } poison, ptr %303, 0
  %306 = insertvalue { ptr, i32 } %305, i32 %304, 1
  resume { ptr, i32 } %306
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

declare noundef double @_ZN4sptk5world23GetF0FloorForCheapTrickEii(i32 noundef, i32 noundef) #3

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

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

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

declare void @_ZN4sptk5world26InitializeCheapTrickOptionEiPNS0_16CheapTrickOptionE(i32 noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(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(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #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 void @_ZNSt6vectorIPdSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

declare void @_ZN4sptk5world9StoneMaskEPKdiiS2_S2_iPd(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

declare void @_ZN4sptk5world10CheapTrickEPKdiiS2_S2_iPKNS0_16CheapTrickOptionEPPd(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { 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 = { 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 = { 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, !14, i64 25}
!10 = !{!"_ZTSN4sptk25SpectrumExtractionByWorldE", !11, i64 0, !12, i64 8, !12, i64 12, !13, i64 16, !14, i64 24, !14, i64 25}
!11 = !{!"_ZTSN4sptk27SpectrumExtractionInterfaceE"}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!12, !12, i64 0}
!18 = !{!10, !13, i64 16}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!10, !12, i64 8}
!24 = !{!10, !12, i64 12}
!25 = distinct !{!25, !21}
!26 = !{!27, !12, i64 16}
!27 = !{!"_ZTSN4sptk5world16CheapTrickOptionE", !13, i64 0, !13, i64 8, !12, i64 16}
!28 = !{!27, !13, i64 8}
!29 = distinct !{!29, !21}
!30 = !{!10, !14, i64 24}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"struct.sptk::world::CheapTrickOption" = type { double, double, i32 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl" = type { %"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double *, std::allocator<double *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk25SpectrumExtractionByWorld3RunERKSt6vectorIdSaIdEES5_PS1_IS3_SaIS3_EE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(26) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"struct.sptk::world::CheapTrickOption", align 8
  %8 = alloca %"class.std::vector.5", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = getelementptr inbounds i8, ptr %0, i64 25
  %15 = load i8, ptr %14, align 1, !tbaa !5, !range !13, !noundef !14
  %16 = trunc nuw i8 %15 to i1
  br i1 %16, label %17, label %.loopexit

17:                                               ; preds = %4
  %18 = tail call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  br i1 %18, label %.loopexit, label %19

19:                                               ; preds = %17
  %20 = tail call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %21 = icmp eq ptr %3, null
  %or.cond = or i1 %21, %20
  br i1 %or.cond, label %.loopexit, label %22

22:                                               ; preds = %19
  %23 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %24 = trunc i64 %23 to i32
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = fmul double %26, 5.000000e-01
  %.not91 = icmp sgt i32 %24, 0
  br i1 %.not91, label %.lr.ph.preheader, label %.critedge._crit_edge

.lr.ph.preheader:                                 ; preds = %22
  %wide.trip.count = and i64 %23, 2147483647
  br label %.lr.ph

28:                                               ; preds = %32
  %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 %.critedge.preheader, label %.lr.ph, !llvm.loop !16

.critedge.preheader:                              ; preds = %28
  br i1 %.not91, label %.lr.ph95.preheader, label %.critedge._crit_edge

.lr.ph95.preheader:                               ; preds = %.critedge.preheader
  %wide.trip.count109 = and i64 %23, 2147483647
  br label %.lr.ph95

.lr.ph:                                           ; preds = %.lr.ph.preheader, %28
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %28 ]
  %29 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #5
  %30 = load double, ptr %29, align 8, !tbaa !18
  %31 = fcmp olt double %30, 0.000000e+00
  br i1 %31, label %.loopexit, label %32

32:                                               ; preds = %.lr.ph
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #5
  %34 = load double, ptr %33, align 8, !tbaa !18
  %35 = fcmp olt double %27, %34
  br i1 %35, label %.loopexit, label %28

.critedge._crit_edge:                             ; preds = %.critedge, %22, %.critedge.preheader
  %.076.lcssa = phi double [ 7.100000e+01, %.critedge.preheader ], [ 7.100000e+01, %22 ], [ %.177, %.critedge ]
  %36 = load double, ptr %25, align 8, !tbaa !15
  %37 = fptosi double %36 to i32
  %38 = getelementptr inbounds i8, ptr %0, i64 8
  %39 = load i32, ptr %38, align 8, !tbaa !19
  %40 = tail call noundef double @_ZN4sptk5world23GetF0FloorForCheapTrickEii(i32 noundef %37, i32 noundef %39)
  %41 = fcmp uge double %.076.lcssa, %40
  br i1 %41, label %52, label %.loopexit

.lr.ph95:                                         ; preds = %.lr.ph95.preheader, %.critedge
  %indvars.iv106 = phi i64 [ 0, %.lr.ph95.preheader ], [ %indvars.iv.next107, %.critedge ]
  %.07694 = phi double [ 7.100000e+01, %.lr.ph95.preheader ], [ %.177, %.critedge ]
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv106) #5
  %43 = load double, ptr %42, align 8, !tbaa !18
  %44 = fcmp ogt double %43, 0.000000e+00
  br i1 %44, label %45, label %.critedge

45:                                               ; preds = %.lr.ph95
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv106) #5
  %47 = load double, ptr %46, align 8, !tbaa !18
  %48 = fcmp olt double %47, %.07694
  br i1 %48, label %49, label %.critedge

49:                                               ; preds = %45
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv106) #5
  %51 = load double, ptr %50, align 8, !tbaa !18
  br label %.critedge

.critedge:                                        ; preds = %.lr.ph95, %45, %49
  %.177 = phi double [ %51, %49 ], [ %.07694, %45 ], [ %.07694, %.lr.ph95 ]
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next107, %wide.trip.count109
  br i1 %exitcond110.not, label %.critedge._crit_edge, label %.lr.ph95, !llvm.loop !20

52:                                               ; preds = %.critedge._crit_edge
  %53 = getelementptr inbounds i8, ptr %0, i64 12
  %54 = load i32, ptr %53, align 4, !tbaa !21
  %55 = sitofp i32 %54 to double
  %56 = load double, ptr %25, align 8, !tbaa !15
  %57 = fdiv double %55, %56
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  %sext = shl i64 %23, 32
  %58 = ashr exact i64 %sext, 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %58, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %59 unwind label %62

59:                                               ; preds = %52
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br i1 %.not91, label %.lr.ph97.preheader, label %._crit_edge

.lr.ph97.preheader:                               ; preds = %59
  %wide.trip.count114 = and i64 %23, 2147483647
  br label %.lr.ph97

._crit_edge:                                      ; preds = %.lr.ph97, %59
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %60 = load double, ptr %25, align 8, !tbaa !15
  %61 = fptosi double %60 to i32
  invoke void @_ZN4sptk5world26InitializeCheapTrickOptionEiPNS0_16CheapTrickOptionE(i32 noundef %61, ptr noundef nonnull %7)
          to label %68 unwind label %74

62:                                               ; preds = %52
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #5
  br label %139

.lr.ph97:                                         ; preds = %.lr.ph97.preheader, %.lr.ph97
  %indvars.iv111 = phi i64 [ 0, %.lr.ph97.preheader ], [ %indvars.iv.next112, %.lr.ph97 ]
  %64 = trunc nuw nsw i64 %indvars.iv111 to i32
  %65 = uitofp nneg i32 %64 to double
  %66 = fmul double %57, %65
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv111) #5
  store double %66, ptr %67, align 8, !tbaa !18
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %._crit_edge, label %.lr.ph97, !llvm.loop !22

68:                                               ; preds = %._crit_edge
  %69 = load i32, ptr %38, align 8, !tbaa !19
  %70 = getelementptr inbounds i8, ptr %7, i64 16
  store i32 %69, ptr %70, align 8, !tbaa !23
  %71 = getelementptr inbounds i8, ptr %7, i64 8
  store double %.076.lcssa, ptr %71, align 8, !tbaa !25
  %72 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %.not82 = icmp eq i64 %72, %58
  br i1 %.not82, label %76, label %73

73:                                               ; preds = %68
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %58)
          to label %76 unwind label %74

74:                                               ; preds = %73, %._crit_edge
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %138

76:                                               ; preds = %73, %68
  br i1 %.not91, label %.lr.ph100, label %._crit_edge101

.lr.ph100:                                        ; preds = %76
  %77 = load i32, ptr %38, align 8, !tbaa !19
  %78 = sdiv i32 %77, 2
  %79 = add nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  %wide.trip.count119 = and i64 %23, 2147483647
  br label %81

._crit_edge101:                                   ; preds = %88, %76
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @_ZNSt6vectorIPdSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  invoke void @_ZNSt6vectorIPdSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %58)
          to label %89 unwind label %93

81:                                               ; preds = %.lr.ph100, %88
  %indvars.iv116 = phi i64 [ 0, %.lr.ph100 ], [ %indvars.iv.next117, %88 ]
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv116) #5
  %83 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #5
  %.not86 = icmp eq i64 %83, %80
  br i1 %.not86, label %88, label %84

84:                                               ; preds = %81
  %85 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv116) #5
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %80)
          to label %88 unwind label %86

86:                                               ; preds = %84
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %138

88:                                               ; preds = %81, %84
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count119
  br i1 %exitcond120.not, label %._crit_edge101, label %81, !llvm.loop !26

89:                                               ; preds = %._crit_edge101
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %90 = call ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %90, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %91 = call ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %91, ptr %10, align 8
  %92 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %92, label %.lr.ph103, label %._crit_edge104

._crit_edge104:                                   ; preds = %97, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #5
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %58, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %102 unwind label %115

93:                                               ; preds = %._crit_edge101
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %137

.lr.ph103:                                        ; preds = %89, %97
  %95 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %96 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #5
  store ptr %96, ptr %11, align 8, !tbaa !27
  invoke void @_ZNSt6vectorIPdSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %97 unwind label %100

97:                                               ; preds = %.lr.ph103
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %99 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %99, label %.lr.ph103, label %._crit_edge104

100:                                              ; preds = %.lr.ph103
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %137

102:                                              ; preds = %._crit_edge104
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  %103 = getelementptr inbounds i8, ptr %0, i64 24
  %104 = load i8, ptr %103, align 8, !tbaa !29, !range !13, !noundef !14
  %105 = trunc nuw i8 %104 to i1
  br i1 %105, label %106, label %119

106:                                              ; preds = %102
  %107 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %108 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %109 = trunc i64 %108 to i32
  %110 = load double, ptr %25, align 8, !tbaa !15
  %111 = fptosi double %110 to i32
  %112 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %113 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %114 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  invoke void @_ZN4sptk5world9StoneMaskEPKdiiS2_S2_iPd(ptr noundef %107, i32 noundef %109, i32 noundef %111, ptr noundef %112, ptr noundef %113, i32 noundef %24, ptr noundef %114)
          to label %119 unwind label %117

115:                                              ; preds = %._crit_edge104
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #5
  br label %136

117:                                              ; preds = %132, %106
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %136

119:                                              ; preds = %106, %102
  %120 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %121 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %122 = trunc i64 %121 to i32
  %123 = load double, ptr %25, align 8, !tbaa !15
  %124 = fptosi double %123 to i32
  %125 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %126 = load i8, ptr %103, align 8, !tbaa !29, !range !13, !noundef !14
  %127 = trunc nuw i8 %126 to i1
  br i1 %127, label %128, label %130

128:                                              ; preds = %119
  %129 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %132

130:                                              ; preds = %119
  %131 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  br label %132

132:                                              ; preds = %130, %128
  %133 = phi ptr [ %129, %128 ], [ %131, %130 ]
  %134 = call noundef ptr @_ZNSt6vectorIPdSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  invoke void @_ZN4sptk5world10CheapTrickEPKdiiS2_S2_iPKNS0_16CheapTrickOptionEPPd(ptr noundef %120, i32 noundef %122, i32 noundef %124, ptr noundef %125, ptr noundef %133, i32 noundef %24, ptr noundef nonnull %7, ptr noundef %134)
          to label %135 unwind label %117

135:                                              ; preds = %132
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br label %.loopexit

136:                                              ; preds = %117, %115
  %.pn = phi { ptr, i32 } [ %118, %117 ], [ %116, %115 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  br label %137

137:                                              ; preds = %136, %100, %93
  %.pn84 = phi { ptr, i32 } [ %101, %100 ], [ %.pn, %136 ], [ %94, %93 ]
  call void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %138

138:                                              ; preds = %86, %137, %74
  %.pn87.pn = phi { ptr, i32 } [ %75, %74 ], [ %87, %86 ], [ %.pn84, %137 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %139

139:                                              ; preds = %138, %62
  %.pn87.pn.pn = phi { ptr, i32 } [ %.pn87.pn, %138 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  resume { ptr, i32 } %.pn87.pn.pn

.loopexit:                                        ; preds = %32, %.lr.ph, %.critedge._crit_edge, %135, %4, %17, %19
  %.3 = phi i1 [ false, %19 ], [ false, %17 ], [ false, %4 ], [ false, %.critedge._crit_edge ], [ true, %135 ], [ false, %.lr.ph ], [ false, %32 ]
  ret i1 %.3
}

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

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

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

declare noundef double @_ZN4sptk5world23GetF0FloorForCheapTrickEii(i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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

declare void @_ZN4sptk5world26InitializeCheapTrickOptionEiPNS0_16CheapTrickOptionE(i32 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(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(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) 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 void @_ZNSt6vectorIPdSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

declare void @_ZN4sptk5world9StoneMaskEPKdiiS2_S2_iPd(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

declare void @_ZN4sptk5world10CheapTrickEPKdiiS2_S2_iPKNS0_16CheapTrickOptionEPPd(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPdSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 = { mustprogress 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 = { 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 = { 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, !12, i64 25}
!6 = !{!"_ZTSN4sptk25SpectrumExtractionByWorldE", !7, i64 0, !8, i64 8, !8, i64 12, !11, i64 16, !12, i64 24, !12, i64 25}
!7 = !{!"_ZTSN4sptk27SpectrumExtractionInterfaceE"}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!6, !11, i64 16}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!11, !11, i64 0}
!19 = !{!6, !8, i64 8}
!20 = distinct !{!20, !17}
!21 = !{!6, !8, i64 12}
!22 = distinct !{!22, !17}
!23 = !{!24, !8, i64 16}
!24 = !{!"_ZTSN4sptk5world16CheapTrickOptionE", !11, i64 0, !11, i64 8, !8, i64 16}
!25 = !{!24, !11, i64 8}
!26 = distinct !{!26, !17}
!27 = !{!28, !28, i64 0}
!28 = !{!"any pointer", !9, i64 0}
!29 = !{!6, !12, i64 24}


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