; LLVM IR from sp-nitech/SPTK :: src/input (input_source_interpolation_with_magic_number)

; 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" = type { ptr }
%"class.sptk::InputSourceInterpolationWithMagicNumber" = type { %"class.sptk::InputSourceInterface", i32, i32, i32, i8, double, i32, i32, i32, ptr, i8, %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.sptk::InputSourceInterface" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk39InputSourceInterpolationWithMagicNumber3GetEPSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef %1) unnamed_addr #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = icmp eq ptr null, %24
  br i1 %25, label %30, label %26

26:                                               ; preds = %2
  %27 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 10
  %28 = load i8, ptr %27, align 8, !tbaa !9, !range !19, !noundef !20
  %29 = trunc i8 %28 to i1
  br i1 %29, label %31, label %30

30:                                               ; preds = %26, %2
  store i1 false, ptr %3, align 1
  br label %229

31:                                               ; preds = %26
  %32 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 6
  %33 = load i32, ptr %32, align 8, !tbaa !21
  %34 = icmp sle i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  store i1 false, ptr %3, align 1
  br label %229

36:                                               ; preds = %31
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #4
  %39 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 7
  %40 = load i32, ptr %39, align 4, !tbaa !22
  %41 = sext i32 %40 to i64
  %42 = icmp ne i64 %38, %41
  br i1 %42, label %43, label %48

43:                                               ; preds = %36
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 7
  %46 = load i32, ptr %45, align 4, !tbaa !22
  %47 = sext i32 %46 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %47)
  br label %48

48:                                               ; preds = %43, %36
  %49 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 11
  %50 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #4
  %51 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  %52 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 11
  %53 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #4
  %54 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #4
  %57 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %56, ptr %57, align 8
  %58 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8
  %60 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8
  %64 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %59, ptr %61, ptr %63)
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  %66 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 6
  %67 = load i32, ptr %66, align 8, !tbaa !21
  %68 = add nsw i32 %67, -1
  store i32 %68, ptr %66, align 8, !tbaa !21
  %69 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 6
  %70 = load i32, ptr %69, align 8, !tbaa !21
  %71 = icmp sle i32 %70, 0
  br i1 %71, label %72, label %79

72:                                               ; preds = %48
  %73 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 4
  %74 = load i8, ptr %73, align 4, !tbaa !23, !range !19, !noundef !20
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  %77 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 6
  store i32 1, ptr %77, align 8, !tbaa !21
  br label %78

78:                                               ; preds = %76, %72
  store i1 true, ptr %3, align 1
  br label %229

79:                                               ; preds = %48
  %80 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 8
  %81 = load i32, ptr %80, align 8, !tbaa !24
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %80, align 8, !tbaa !24
  %83 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 8
  %84 = load i32, ptr %83, align 8, !tbaa !24
  %85 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !25
  %87 = srem i32 %84, %86
  %88 = icmp eq i32 0, %87
  br i1 %88, label %89, label %145

89:                                               ; preds = %79
  %90 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 12
  %91 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #4
  %92 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %91, ptr %92, align 8
  %93 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 12
  %94 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #4
  %95 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %94, ptr %95, align 8
  %96 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 11
  %97 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #4
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  %105 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %100, ptr %102, ptr %104)
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %105, ptr %106, align 8
  %107 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 9
  %108 = load ptr, ptr %107, align 8, !tbaa !26
  %109 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 12
  %110 = load ptr, ptr %108, align 8, !tbaa !27
  %111 = getelementptr inbounds ptr, ptr %110, i64 4
  %112 = load ptr, ptr %111, align 8
  %113 = call noundef zeroext i1 %112(ptr noundef nonnull align 8 dereferenceable(8) %108, ptr noundef %109)
  br i1 %113, label %133, label %114

114:                                              ; preds = %89
  %115 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 11
  %116 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #4
  %117 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %116, ptr %117, align 8
  %118 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 11
  %119 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #4
  %120 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %119, ptr %120, align 8
  %121 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 12
  %122 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %121) #4
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %122, ptr %123, align 8
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8
  %130 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %125, ptr %127, ptr %129)
  %131 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %130, ptr %131, align 8
  %132 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 6
  store i32 1, ptr %132, align 8, !tbaa !21
  br label %138

133:                                              ; preds = %89
  %134 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 1
  %135 = load i32, ptr %134, align 8, !tbaa !25
  %136 = add nsw i32 %135, 1
  %137 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 6
  store i32 %136, ptr %137, align 8, !tbaa !21
  br label %138

138:                                              ; preds = %133, %114
  %139 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 2
  %140 = load i32, ptr %139, align 4, !tbaa !29
  %141 = icmp slt i32 0, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %138
  call void @_ZN4sptk39InputSourceInterpolationWithMagicNumber18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(136) %23)
  br label %143

143:                                              ; preds = %142, %138
  %144 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 8
  store i32 0, ptr %144, align 8, !tbaa !24
  br label %228

145:                                              ; preds = %79
  %146 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 2
  %147 = load i32, ptr %146, align 4, !tbaa !29
  %148 = icmp slt i32 0, %147
  br i1 %148, label %149, label %197

149:                                              ; preds = %145
  %150 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 8
  %151 = load i32, ptr %150, align 8, !tbaa !24
  %152 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 3
  %153 = load i32, ptr %152, align 8, !tbaa !30
  %154 = add nsw i32 %151, %153
  %155 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 2
  %156 = load i32, ptr %155, align 4, !tbaa !29
  %157 = srem i32 %154, %156
  %158 = icmp eq i32 0, %157
  br i1 %158, label %159, label %197

159:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !31
  br label %160

160:                                              ; preds = %193, %159
  %161 = load i32, ptr %18, align 4, !tbaa !31
  %162 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 7
  %163 = load i32, ptr %162, align 4, !tbaa !22
  %164 = icmp slt i32 %161, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %196

166:                                              ; preds = %160
  %167 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 13
  %168 = load i32, ptr %18, align 4, !tbaa !31
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #4
  %171 = load double, ptr %170, align 8, !tbaa !32
  %172 = fcmp oeq double 0x7FEFFFFFFFFFFFFF, %171
  br i1 %172, label %173, label %180

173:                                              ; preds = %166
  %174 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 5
  %175 = load double, ptr %174, align 8, !tbaa !33
  %176 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 11
  %177 = load i32, ptr %18, align 4, !tbaa !31
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %178) #4
  store double %175, ptr %179, align 8, !tbaa !32
  br label %192

180:                                              ; preds = %166
  %181 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 13
  %182 = load i32, ptr %18, align 4, !tbaa !31
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %183) #4
  %185 = load double, ptr %184, align 8, !tbaa !32
  %186 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 11
  %187 = load i32, ptr %18, align 4, !tbaa !31
  %188 = sext i32 %187 to i64
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %188) #4
  %190 = load double, ptr %189, align 8, !tbaa !32
  %191 = fadd double %190, %185
  store double %191, ptr %189, align 8, !tbaa !32
  br label %192

192:                                              ; preds = %180, %173
  br label %193

193:                                              ; preds = %192
  %194 = load i32, ptr %18, align 4, !tbaa !31
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr %18, align 4, !tbaa !31
  br label %160, !llvm.loop !34

196:                                              ; preds = %165
  br label %227

197:                                              ; preds = %149, %145
  %198 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 2
  %199 = load i32, ptr %198, align 4, !tbaa !29
  %200 = icmp eq i32 0, %199
  br i1 %200, label %201, label %226

201:                                              ; preds = %197
  %202 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 1
  %203 = load i32, ptr %202, align 8, !tbaa !25
  %204 = sdiv i32 %203, 2
  %205 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 8
  %206 = load i32, ptr %205, align 8, !tbaa !24
  %207 = icmp eq i32 %204, %206
  br i1 %207, label %208, label %226

208:                                              ; preds = %201
  %209 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 12
  %210 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %209) #4
  %211 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %210, ptr %211, align 8
  %212 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 12
  %213 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %212) #4
  %214 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %213, ptr %214, align 8
  %215 = getelementptr inbounds %"class.sptk::InputSourceInterpolationWithMagicNumber", ptr %23, i32 0, i32 11
  %216 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %215) #4
  %217 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %216, ptr %217, align 8
  %218 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %219 = load ptr, ptr %218, align 8
  %220 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %221 = load ptr, ptr %220, align 8
  %222 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %223 = load ptr, ptr %222, align 8
  %224 = call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %219, ptr %221, ptr %223)
  %225 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %224, ptr %225, align 8
  br label %226

226:                                              ; preds = %208, %201, %197
  br label %227

227:                                              ; preds = %226, %196
  br label %228

228:                                              ; preds = %227, %143
  store i1 true, ptr %3, align 1
  br label %229

229:                                              ; preds = %228, %78, %35, %30
  %230 = load i1, ptr %3, align 1
  ret i1 %230
}

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 56}
!10 = !{!"_ZTSN4sptk39InputSourceInterpolationWithMagicNumberE", !11, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !13, i64 20, !14, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !6, i64 48, !13, i64 56, !15, i64 64, !15, i64 88, !15, i64 112}
!11 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!10, !12, i64 32}
!22 = !{!10, !12, i64 36}
!23 = !{!10, !13, i64 20}
!24 = !{!10, !12, i64 40}
!25 = !{!10, !12, i64 8}
!26 = !{!10, !6, i64 48}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}
!29 = !{!10, !12, i64 12}
!30 = !{!10, !12, i64 16}
!31 = !{!12, !12, i64 0}
!32 = !{!14, !14, i64 0}
!33 = !{!10, !14, i64 24}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE6resizeEm(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_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr, ptr, ptr) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4sptk39InputSourceInterpolationWithMagicNumber3GetEPSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(136) %0, ptr noundef %1) unnamed_addr #1 align 2 {
  %3 = icmp eq ptr %1, null
  br i1 %3, label %.thread, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  %6 = load i8, ptr %5, align 8, !tbaa !5, !range !18, !noundef !19
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %8, label %.thread

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 32
  %10 = load i32, ptr %9, align 8, !tbaa !20
  %11 = icmp slt i32 %10, 1
  br i1 %11, label %.thread, label %12

12:                                               ; preds = %8
  %13 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %14 = getelementptr inbounds i8, ptr %0, i64 36
  %15 = load i32, ptr %14, align 4, !tbaa !21
  %16 = sext i32 %15 to i64
  %.not = icmp eq i64 %13, %16
  br i1 %.not, label %18, label %17

17:                                               ; preds = %12
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %16)
  br label %18

18:                                               ; preds = %17, %12
  %19 = getelementptr inbounds i8, ptr %0, i64 64
  %20 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %21 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %22 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %23 = tail call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %20, ptr %21, ptr %22)
  %24 = load i32, ptr %9, align 8, !tbaa !20
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr %9, align 8, !tbaa !20
  %26 = icmp slt i32 %24, 2
  br i1 %26, label %27, label %32

27:                                               ; preds = %18
  %28 = getelementptr inbounds i8, ptr %0, i64 20
  %29 = load i8, ptr %28, align 4, !tbaa !22, !range !18, !noundef !19
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %31, label %.thread

31:                                               ; preds = %27
  store i32 1, ptr %9, align 8, !tbaa !20
  br label %.thread

32:                                               ; preds = %18
  %33 = getelementptr inbounds i8, ptr %0, i64 40
  %34 = load i32, ptr %33, align 8, !tbaa !23
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %33, align 8, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load i32, ptr %36, align 8, !tbaa !24
  %38 = srem i32 %35, %37
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %66

40:                                               ; preds = %32
  %41 = getelementptr inbounds i8, ptr %0, i64 88
  %42 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #3
  %43 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #3
  %44 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %45 = tail call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %42, ptr %43, ptr %44)
  %46 = getelementptr inbounds i8, ptr %0, i64 48
  %47 = load ptr, ptr %46, align 8, !tbaa !25
  %48 = load ptr, ptr %47, align 8, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %48, i64 32
  %50 = load ptr, ptr %49, align 8
  %51 = tail call noundef zeroext i1 %50(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull %41)
  br i1 %51, label %57, label %52

52:                                               ; preds = %40
  %53 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %54 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %55 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #3
  %56 = tail call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %53, ptr %54, ptr %55)
  br label %60

57:                                               ; preds = %40
  %58 = load i32, ptr %36, align 8, !tbaa !24
  %59 = add nsw i32 %58, 1
  br label %60

60:                                               ; preds = %57, %52
  %storemerge = phi i32 [ 1, %52 ], [ %59, %57 ]
  store i32 %storemerge, ptr %9, align 8, !tbaa !20
  %61 = getelementptr inbounds i8, ptr %0, i64 12
  %62 = load i32, ptr %61, align 4, !tbaa !28
  %63 = icmp sgt i32 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %60
  tail call void @_ZN4sptk39InputSourceInterpolationWithMagicNumber18CalculateIncrementEv(ptr noundef nonnull align 8 dereferenceable(136) %0)
  br label %65

65:                                               ; preds = %64, %60
  store i32 0, ptr %33, align 8, !tbaa !23
  br label %.thread

66:                                               ; preds = %32
  %67 = getelementptr inbounds i8, ptr %0, i64 12
  %68 = load i32, ptr %67, align 4, !tbaa !28
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %97

70:                                               ; preds = %66
  %71 = getelementptr inbounds i8, ptr %0, i64 16
  %72 = load i32, ptr %71, align 8, !tbaa !29
  %73 = add nsw i32 %72, %35
  %74 = srem i32 %73, %68
  %75 = icmp eq i32 %74, 0
  %76 = load i32, ptr %14, align 4
  %77 = icmp sgt i32 %76, 0
  %or.cond33 = select i1 %75, i1 %77, i1 false
  br i1 %or.cond33, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %70
  %78 = getelementptr inbounds i8, ptr %0, i64 112
  %79 = getelementptr inbounds i8, ptr %0, i64 24
  br label %80

80:                                               ; preds = %.lr.ph, %93
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %93 ]
  %81 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %indvars.iv) #3
  %82 = load double, ptr %81, align 8, !tbaa !30
  %83 = fcmp oeq double %82, 0x7FEFFFFFFFFFFFFF
  br i1 %83, label %84, label %87

84:                                               ; preds = %80
  %85 = load double, ptr %79, align 8, !tbaa !31
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv) #3
  store double %85, ptr %86, align 8, !tbaa !30
  br label %93

87:                                               ; preds = %80
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %indvars.iv) #3
  %89 = load double, ptr %88, align 8, !tbaa !30
  %90 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv) #3
  %91 = load double, ptr %90, align 8, !tbaa !30
  %92 = fadd double %89, %91
  store double %92, ptr %90, align 8, !tbaa !30
  br label %93

93:                                               ; preds = %84, %87
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %94 = load i32, ptr %14, align 4, !tbaa !21
  %95 = sext i32 %94 to i64
  %96 = icmp slt i64 %indvars.iv.next, %95
  br i1 %96, label %80, label %.thread, !llvm.loop !32

97:                                               ; preds = %66
  %98 = icmp eq i32 %68, 0
  %99 = sdiv i32 %37, 2
  %100 = icmp eq i32 %99, %35
  %or.cond = and i1 %100, %98
  br i1 %or.cond, label %101, label %.thread

101:                                              ; preds = %97
  %102 = getelementptr inbounds i8, ptr %0, i64 88
  %103 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #3
  %104 = tail call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #3
  %105 = tail call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #3
  %106 = tail call ptr @_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEES6_ET0_T_S8_S7_(ptr %103, ptr %104, ptr %105)
  br label %.thread

.thread:                                          ; preds = %93, %70, %65, %97, %101, %27, %31, %8, %2, %4
  %.0 = phi i1 [ false, %4 ], [ false, %2 ], [ false, %8 ], [ true, %31 ], [ true, %27 ], [ true, %101 ], [ true, %97 ], [ true, %65 ], [ true, %70 ], [ true, %93 ]
  ret i1 %.0
}

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 56}
!6 = !{!"_ZTSN4sptk39InputSourceInterpolationWithMagicNumberE", !7, i64 0, !8, i64 8, !8, i64 12, !8, i64 16, !11, i64 20, !12, i64 24, !8, i64 32, !8, i64 36, !8, i64 40, !13, i64 48, !11, i64 56, !14, i64 64, !14, i64 88, !14, i64 112}
!7 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"_ZTSSt6vectorIdSaIdEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!6, !8, i64 32}
!21 = !{!6, !8, i64 36}
!22 = !{!6, !11, i64 20}
!23 = !{!6, !8, i64 40}
!24 = !{!6, !8, i64 8}
!25 = !{!6, !13, i64 48}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !10, i64 0}
!28 = !{!6, !8, i64 12}
!29 = !{!6, !8, i64 16}
!30 = !{!12, !12, i64 0}
!31 = !{!6, !12, i64 24}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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