; LLVM IR from sp-nitech/SPTK :: src/generation (delta_calculation)

; 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.sptk::DeltaCalculation" = type { %"class.sptk::InputSourceInterface", i32, i32, %"class.std::vector", ptr, i8, double, i8, i32, %"class.std::vector.0", %"class.std::vector.0", %"struct.sptk::DeltaCalculation::Buffer" }
%"class.sptk::InputSourceInterface" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.sptk::DeltaCalculation::Buffer" = type <{ %"class.std::vector", i32, i32, i8, [7 x i8] }>

@_ZTVN4sptk16DeltaCalculationE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk16DeltaCalculationC2EiRKSt6vectorIS1_IdSaIdEESaIS3_EEPNS_20InputSourceInterfaceEbd(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, i1 noundef zeroext %4, double noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  %21 = zext i1 %4 to i8
  store i8 %21, ptr %11, align 1, !tbaa !11
  store double %5, ptr %12, align 8, !tbaa !13
  %22 = load ptr, ptr %7, align 8
  call void @_ZN4sptk20InputSourceInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTVN4sptk16DeltaCalculationE, i32 0, i32 0, i32 2), ptr %22, align 8, !tbaa !15
  %23 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 1
  %24 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %24, ptr %23, align 8, !tbaa !17
  %25 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 2
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  %28 = trunc i64 %27 to i32
  store i32 %28, ptr %25, align 4, !tbaa !29
  %29 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 3
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %30)
          to label %31 unwind label %75

31:                                               ; preds = %6
  %32 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 4
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %33, ptr %32, align 8, !tbaa !30
  %34 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 5
  %35 = load i8, ptr %11, align 1, !tbaa !11, !range !31, !noundef !32
  %36 = trunc i8 %35 to i1
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %34, align 8, !tbaa !33
  %38 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 6
  %39 = load double, ptr %12, align 8, !tbaa !13
  store double %39, ptr %38, align 8, !tbaa !34
  %40 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 7
  store i8 1, ptr %40, align 8, !tbaa !35
  %41 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #4
  %42 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 10
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #4
  %43 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 11
  call void @_ZN4sptk16DeltaCalculation6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(33) %43) #4
  %44 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 1
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = icmp slt i32 %45, 0
  br i1 %46, label %73, label %47

47:                                               ; preds = %31
  %48 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 2
  %49 = load i32, ptr %48, align 4, !tbaa !29
  %50 = icmp sle i32 %49, 0
  br i1 %50, label %73, label %51

51:                                               ; preds = %47
  %52 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !30
  %54 = icmp eq ptr null, %53
  br i1 %54, label %73, label %55

55:                                               ; preds = %51
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = load ptr, ptr %56, align 8, !tbaa !15
  %58 = getelementptr inbounds ptr, ptr %57, i64 3
  %59 = load ptr, ptr %58, align 8
  %60 = invoke noundef zeroext i1 %59(ptr noundef nonnull align 8 dereferenceable(8) %56)
          to label %61 unwind label %79

61:                                               ; preds = %55
  br i1 %60, label %62, label %73

62:                                               ; preds = %61
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = load ptr, ptr %63, align 8, !tbaa !15
  %65 = getelementptr inbounds ptr, ptr %64, i64 2
  %66 = load ptr, ptr %65, align 8
  %67 = invoke noundef i32 %66(ptr noundef nonnull align 8 dereferenceable(8) %63)
          to label %68 unwind label %79

68:                                               ; preds = %62
  %69 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 1
  %70 = load i32, ptr %69, align 8, !tbaa !17
  %71 = add nsw i32 %70, 1
  %72 = icmp ne i32 %67, %71
  br i1 %72, label %73, label %83

73:                                               ; preds = %68, %61, %51, %47, %31
  %74 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 7
  store i8 0, ptr %74, align 8, !tbaa !35
  br label %248

75:                                               ; preds = %6
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %13, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %14, align 4
  br label %250

79:                                               ; preds = %182, %128, %123, %62, %55
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %13, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %14, align 4
  br label %249

83:                                               ; preds = %68
  %84 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 8
  store i32 0, ptr %84, align 4, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %118, %83
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 2
  %88 = load i32, ptr %87, align 4, !tbaa !29
  %89 = icmp slt i32 %86, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %85
  store i32 2, ptr %16, align 4
  br label %121

91:                                               ; preds = %85
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #4
  %96 = call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #4
  br i1 %96, label %97, label %99

97:                                               ; preds = %91
  %98 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 7
  store i8 0, ptr %98, align 8, !tbaa !35
  store i32 1, ptr %16, align 4
  br label %121

99:                                               ; preds = %91
  %100 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 8
  %101 = load i32, ptr %100, align 4, !tbaa !36
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %104) #4
  %106 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #4
  %107 = trunc i64 %106 to i32
  %108 = icmp slt i32 %101, %107
  br i1 %108, label %109, label %117

109:                                              ; preds = %99
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load i32, ptr %15, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %110, i64 noundef %112) #4
  %114 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #4
  %115 = trunc i64 %114 to i32
  %116 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 8
  store i32 %115, ptr %116, align 4, !tbaa !36
  br label %117

117:                                              ; preds = %109, %99
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %15, align 4, !tbaa !9
  br label %85, !llvm.loop !37

121:                                              ; preds = %97, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  %122 = load i32, ptr %16, align 4
  switch i32 %122, label %256 [
    i32 2, label %123
    i32 1, label %248
  ]

123:                                              ; preds = %121
  %124 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 9
  %125 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 2
  %126 = load i32, ptr %125, align 4, !tbaa !29
  %127 = sext i32 %126 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %127)
          to label %128 unwind label %79

128:                                              ; preds = %123
  %129 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 10
  %130 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !29
  %132 = sext i32 %131 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %132)
          to label %133 unwind label %79

133:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %179, %133
  %135 = load i32, ptr %17, align 4, !tbaa !9
  %136 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 2
  %137 = load i32, ptr %136, align 4, !tbaa !29
  %138 = icmp slt i32 %135, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %134
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %182

140:                                              ; preds = %134
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = load i32, ptr %17, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %143) #4
  %145 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %144) #4
  %146 = udiv i64 %145, 2
  %147 = trunc i64 %146 to i32
  %148 = sub nsw i32 0, %147
  %149 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 9
  %150 = load i32, ptr %17, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #4
  store i32 %148, ptr %152, align 4, !tbaa !9
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = load i32, ptr %17, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %155) #4
  %157 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #4
  %158 = udiv i64 %157, 2
  %159 = trunc i64 %158 to i32
  %160 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 10
  %161 = load i32, ptr %17, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #4
  store i32 %159, ptr %163, align 4, !tbaa !9
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = load i32, ptr %17, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %164, i64 noundef %166) #4
  %168 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #4
  %169 = urem i64 %168, 2
  %170 = icmp eq i64 0, %169
  br i1 %170, label %171, label %178

171:                                              ; preds = %140
  %172 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 10
  %173 = load i32, ptr %17, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %174) #4
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = add nsw i32 %176, -1
  store i32 %177, ptr %175, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %171, %140
  br label %179

179:                                              ; preds = %178
  %180 = load i32, ptr %17, align 4, !tbaa !9
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %17, align 4, !tbaa !9
  br label %134, !llvm.loop !39

182:                                              ; preds = %139
  %183 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 11
  %184 = getelementptr inbounds %"struct.sptk::DeltaCalculation::Buffer", ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 8
  %186 = load i32, ptr %185, align 4, !tbaa !36
  %187 = sext i32 %186 to i64
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %184, i64 noundef %187)
          to label %188 unwind label %79

188:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %206, %188
  %190 = load i32, ptr %18, align 4, !tbaa !9
  %191 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 8
  %192 = load i32, ptr %191, align 4, !tbaa !36
  %193 = icmp slt i32 %190, %192
  br i1 %193, label %195, label %194

194:                                              ; preds = %189
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %213

195:                                              ; preds = %189
  %196 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 11
  %197 = getelementptr inbounds %"struct.sptk::DeltaCalculation::Buffer", ptr %196, i32 0, i32 0
  %198 = load i32, ptr %18, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %197, i64 noundef %199) #4
  %201 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 1
  %202 = load i32, ptr %201, align 8, !tbaa !17
  %203 = add nsw i32 %202, 1
  %204 = sext i32 %203 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %204)
          to label %205 unwind label %209

205:                                              ; preds = %195
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %18, align 4, !tbaa !9
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %18, align 4, !tbaa !9
  br label %189, !llvm.loop !40

209:                                              ; preds = %195
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %13, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %249

213:                                              ; preds = %194
  %214 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 11
  %215 = getelementptr inbounds %"struct.sptk::DeltaCalculation::Buffer", ptr %214, i32 0, i32 1
  store i32 0, ptr %215, align 8, !tbaa !41
  %216 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 11
  %217 = getelementptr inbounds %"struct.sptk::DeltaCalculation::Buffer", ptr %216, i32 0, i32 3
  store i8 1, ptr %217, align 8, !tbaa !42
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %218 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 8
  %219 = load i32, ptr %218, align 4, !tbaa !36
  %220 = sub nsw i32 %219, 1
  %221 = sdiv i32 %220, 2
  store i32 %221, ptr %19, align 4, !tbaa !9
  %222 = load i32, ptr %19, align 4, !tbaa !9
  %223 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 11
  %224 = getelementptr inbounds %"struct.sptk::DeltaCalculation::Buffer", ptr %223, i32 0, i32 2
  store i32 %222, ptr %224, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %240, %213
  %226 = load i32, ptr %20, align 4, !tbaa !9
  %227 = load i32, ptr %19, align 4, !tbaa !9
  %228 = icmp slt i32 %226, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %225
  store i32 11, ptr %16, align 4
  br label %243

230:                                              ; preds = %225
  %231 = invoke noundef zeroext i1 @_ZN4sptk16DeltaCalculation7ForwardEv(ptr noundef nonnull align 8 dereferenceable(160) %22)
          to label %232 unwind label %235

232:                                              ; preds = %230
  br i1 %231, label %239, label %233

233:                                              ; preds = %232
  %234 = getelementptr inbounds %"class.sptk::DeltaCalculation", ptr %22, i32 0, i32 7
  store i8 0, ptr %234, align 8, !tbaa !35
  store i32 1, ptr %16, align 4
  br label %243

235:                                              ; preds = %230
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %13, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %249

239:                                              ; preds = %232
  br label %240

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

243:                                              ; preds = %233, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %244 = load i32, ptr %16, align 4
  switch i32 %244, label %246 [
    i32 11, label %245
  ]

245:                                              ; preds = %243
  store i32 0, ptr %16, align 4
  br label %246

246:                                              ; preds = %245, %243
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %247 = load i32, ptr %16, align 4
  switch i32 %247, label %256 [
    i32 0, label %248
    i32 1, label %248
  ]

248:                                              ; preds = %246, %246, %121, %73
  ret void

249:                                              ; preds = %235, %209, %79
  call void @_ZN4sptk16DeltaCalculation6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(33) %43) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %42) #4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %41) #4
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #4
  br label %250

250:                                              ; preds = %249, %75
  call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  br label %251

251:                                              ; preds = %250
  %252 = load ptr, ptr %13, align 8
  %253 = load i32, ptr %14, align 4
  %254 = insertvalue { ptr, i32 } poison, ptr %252, 0
  %255 = insertvalue { ptr, i32 } %254, i32 %253, 1
  resume { ptr, i32 } %255

256:                                              ; preds = %246, %121
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 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) #2 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 uwtable
declare dso_local noundef zeroext i1 @_ZN4sptk16DeltaCalculation7ForwardEv(ptr noundef nonnull align 8 dereferenceable(160)) #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"_ZTSN4sptk16DeltaCalculationE", !19, i64 0, !10, i64 8, !10, i64 12, !20, i64 16, !6, i64 40, !12, i64 48, !14, i64 56, !12, i64 64, !10, i64 68, !24, i64 72, !24, i64 96, !28, i64 120}
!19 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!20 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTSSt6vectorIiSaIiEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSN4sptk16DeltaCalculation6BufferE", !20, i64 0, !10, i64 24, !10, i64 28, !12, i64 32}
!29 = !{!18, !10, i64 12}
!30 = !{!18, !6, i64 40}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!18, !12, i64 48}
!34 = !{!18, !14, i64 56}
!35 = !{!18, !12, i64 64}
!36 = !{!18, !10, i64 68}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = distinct !{!39, !38}
!40 = distinct !{!40, !38}
!41 = !{!18, !10, i64 144}
!42 = !{!18, !12, i64 152}
!43 = !{!18, !10, i64 148}
!44 = distinct !{!44, !38}


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

@_ZTVN4sptk16DeltaCalculationE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk16DeltaCalculationC2EiRKSt6vectorIS1_IdSaIdEESaIS3_EEPNS_20InputSourceInterfaceEbd(ptr noundef nonnull align 8 dereferenceable(160) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, i1 noundef zeroext %4, double noundef %5) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN4sptk20InputSourceInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN4sptk16DeltaCalculationE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %7, align 8, !tbaa !8
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  %9 = tail call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %10 = trunc i64 %9 to i32
  store i32 %10, ptr %8, align 4, !tbaa !25
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %12 unwind label %42

12:                                               ; preds = %6
  %13 = zext i1 %4 to i8
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %3, ptr %14, align 8, !tbaa !26
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  store i8 %13, ptr %15, align 8, !tbaa !27
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  store double %5, ptr %16, align 8, !tbaa !28
  %17 = getelementptr inbounds i8, ptr %0, i64 64
  store i8 1, ptr %17, align 8, !tbaa !29
  %18 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  %19 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  %20 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZN4sptk16DeltaCalculation6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(33) %20) #4
  %21 = load i32, ptr %7, align 8, !tbaa !8
  %22 = icmp slt i32 %21, 0
  %23 = load i32, ptr %8, align 4
  %24 = icmp slt i32 %23, 1
  %or.cond = select i1 %22, i1 true, i1 %24
  %25 = load ptr, ptr %14, align 8
  %26 = icmp eq ptr %25, null
  %or.cond50 = select i1 %or.cond, i1 true, i1 %26
  br i1 %or.cond50, label %41, label %27

27:                                               ; preds = %12
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 24
  %30 = load ptr, ptr %29, align 8
  %31 = invoke noundef zeroext i1 %30(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %32 unwind label %44

32:                                               ; preds = %27
  br i1 %31, label %33, label %41

33:                                               ; preds = %32
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef i32 %36(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %38 unwind label %44

38:                                               ; preds = %33
  %39 = load i32, ptr %7, align 8, !tbaa !8
  %40 = add nsw i32 %39, 1
  %.not = icmp eq i32 %37, %40
  br i1 %.not, label %46, label %41

41:                                               ; preds = %38, %32, %12
  store i8 0, ptr %17, align 8, !tbaa !29
  br label %.loopexit

42:                                               ; preds = %6
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %127

44:                                               ; preds = %._crit_edge59, %67, %._crit_edge, %33, %27
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %126

46:                                               ; preds = %38
  %47 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 0, ptr %47, align 4, !tbaa !30
  %48 = load i32, ptr %8, align 4, !tbaa !25
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %46
  %.pre = sext i32 %48 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %46, %62
  %indvars.iv = phi i64 [ %indvars.iv.next, %62 ], [ 0, %46 ]
  %50 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %51 = tail call noundef zeroext i1 @_ZNKSt6vectorIdSaIdEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #4
  br i1 %51, label %66, label %52

52:                                               ; preds = %.lr.ph
  %53 = load i32, ptr %47, align 4, !tbaa !30
  %54 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %55 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #4
  %56 = trunc i64 %55 to i32
  %57 = icmp slt i32 %53, %56
  br i1 %57, label %58, label %62

58:                                               ; preds = %52
  %59 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %60 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #4
  %61 = trunc i64 %60 to i32
  store i32 %61, ptr %47, align 4, !tbaa !30
  br label %62

62:                                               ; preds = %52, %58
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %63 = load i32, ptr %8, align 4, !tbaa !25
  %64 = sext i32 %63 to i64
  %65 = icmp slt i64 %indvars.iv.next, %64
  br i1 %65, label %.lr.ph, label %._crit_edge, !llvm.loop !31

66:                                               ; preds = %.lr.ph
  store i8 0, ptr %17, align 8, !tbaa !29
  br label %.loopexit

._crit_edge:                                      ; preds = %62, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %64, %62 ]
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %.pre-phi)
          to label %67 unwind label %44

67:                                               ; preds = %._crit_edge
  %68 = load i32, ptr %8, align 4, !tbaa !25
  %69 = sext i32 %68 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %69)
          to label %.preheader54 unwind label %44

.preheader54:                                     ; preds = %67
  %70 = load i32, ptr %8, align 4, !tbaa !25
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %.lr.ph58, label %._crit_edge59

._crit_edge59:                                    ; preds = %99, %.preheader54
  %72 = load i32, ptr %47, align 4, !tbaa !30
  %73 = sext i32 %72 to i64
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %73)
          to label %.preheader unwind label %44

.preheader:                                       ; preds = %._crit_edge59
  %74 = load i32, ptr %47, align 4, !tbaa !30
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %.lr.ph61, label %._crit_edge62.thread

._crit_edge62.thread:                             ; preds = %.preheader
  %76 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 0, ptr %76, align 8, !tbaa !33
  %77 = getelementptr inbounds i8, ptr %0, i64 152
  store i8 1, ptr %77, align 8, !tbaa !34
  %.nonneg = sub i32 1, %74
  %78 = lshr i32 %.nonneg, 1
  %.neg = sub nsw i32 0, %78
  %79 = getelementptr inbounds i8, ptr %0, i64 148
  store i32 %.neg, ptr %79, align 4, !tbaa !35
  br label %.loopexit

.lr.ph58:                                         ; preds = %.preheader54, %99
  %indvars.iv68 = phi i64 [ %indvars.iv.next69, %99 ], [ 0, %.preheader54 ]
  %80 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv68) #4
  %81 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #4
  %82 = lshr i64 %81, 1
  %83 = trunc i64 %82 to i32
  %84 = sub nsw i32 0, %83
  %85 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv68) #4
  store i32 %84, ptr %85, align 4, !tbaa !36
  %86 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv68) #4
  %87 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #4
  %88 = lshr i64 %87, 1
  %89 = trunc i64 %88 to i32
  %90 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv68) #4
  store i32 %89, ptr %90, align 4, !tbaa !36
  %91 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv68) #4
  %92 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #4
  %93 = and i64 %92, 1
  %94 = icmp eq i64 %93, 0
  br i1 %94, label %95, label %99

95:                                               ; preds = %.lr.ph58
  %96 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv68) #4
  %97 = load i32, ptr %96, align 4, !tbaa !36
  %98 = add nsw i32 %97, -1
  store i32 %98, ptr %96, align 4, !tbaa !36
  br label %99

99:                                               ; preds = %.lr.ph58, %95
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %100 = load i32, ptr %8, align 4, !tbaa !25
  %101 = sext i32 %100 to i64
  %102 = icmp slt i64 %indvars.iv.next69, %101
  br i1 %102, label %.lr.ph58, label %._crit_edge59, !llvm.loop !37

._crit_edge62:                                    ; preds = %113
  %103 = getelementptr inbounds i8, ptr %0, i64 144
  store i32 0, ptr %103, align 8, !tbaa !33
  %104 = getelementptr inbounds i8, ptr %0, i64 152
  store i8 1, ptr %104, align 8, !tbaa !34
  %105 = add nsw i32 %114, -1
  %106 = sdiv i32 %105, 2
  %107 = getelementptr inbounds i8, ptr %0, i64 148
  store i32 %106, ptr %107, align 4, !tbaa !35
  %108 = icmp sgt i32 %114, 2
  br i1 %108, label %.lr.ph65.preheader, label %.loopexit

.lr.ph65.preheader:                               ; preds = %._crit_edge62
  %smax = tail call i32 @llvm.smax.i32(i32 %106, i32 1)
  br label %.lr.ph65

.lr.ph61:                                         ; preds = %.preheader, %113
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %113 ], [ 0, %.preheader ]
  %109 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv71) #4
  %110 = load i32, ptr %7, align 8, !tbaa !8
  %111 = add nsw i32 %110, 1
  %112 = sext i32 %111 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %112)
          to label %113 unwind label %117

113:                                              ; preds = %.lr.ph61
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %114 = load i32, ptr %47, align 4, !tbaa !30
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv.next72, %115
  br i1 %116, label %.lr.ph61, label %._crit_edge62, !llvm.loop !38

117:                                              ; preds = %.lr.ph61
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %126

119:                                              ; preds = %122
  %120 = add nuw nsw i32 %.063, 1
  %exitcond.not = icmp eq i32 %120, %smax
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph65, !llvm.loop !39

.lr.ph65:                                         ; preds = %.lr.ph65.preheader, %119
  %.063 = phi i32 [ %120, %119 ], [ 0, %.lr.ph65.preheader ]
  %121 = invoke noundef zeroext i1 @_ZN4sptk16DeltaCalculation7ForwardEv(ptr noundef nonnull align 8 dereferenceable(160) %0)
          to label %122 unwind label %124

122:                                              ; preds = %.lr.ph65
  br i1 %121, label %119, label %123

123:                                              ; preds = %122
  store i8 0, ptr %17, align 8, !tbaa !29
  br label %.loopexit

124:                                              ; preds = %.lr.ph65
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %126

.loopexit:                                        ; preds = %119, %._crit_edge62.thread, %._crit_edge62, %66, %123, %41
  ret void

126:                                              ; preds = %124, %117, %44
  %.pn = phi { ptr, i32 } [ %118, %117 ], [ %125, %124 ], [ %45, %44 ]
  tail call void @_ZN4sptk16DeltaCalculation6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(33) %20) #4
  tail call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  tail call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  tail call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %127

127:                                              ; preds = %126, %42
  %.pn.pn = phi { ptr, i32 } [ %.pn, %126 ], [ %43, %42 ]
  tail call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  resume { ptr, i32 } %.pn.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(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 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 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 #2 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 uwtable
declare dso_local noundef zeroext i1 @_ZN4sptk16DeltaCalculation7ForwardEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 8}
!9 = !{!"_ZTSN4sptk16DeltaCalculationE", !10, i64 0, !11, i64 8, !11, i64 12, !13, i64 16, !17, i64 40, !18, i64 48, !19, i64 56, !18, i64 64, !11, i64 68, !20, i64 72, !20, i64 96, !24, i64 120}
!10 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !12, i64 0}
!18 = !{!"bool", !12, i64 0}
!19 = !{!"double", !12, i64 0}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!24 = !{!"_ZTSN4sptk16DeltaCalculation6BufferE", !13, i64 0, !11, i64 24, !11, i64 28, !18, i64 32}
!25 = !{!9, !11, i64 12}
!26 = !{!9, !17, i64 40}
!27 = !{!9, !18, i64 48}
!28 = !{!9, !19, i64 56}
!29 = !{!9, !18, i64 64}
!30 = !{!9, !11, i64 68}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!9, !11, i64 144}
!34 = !{!9, !18, i64 152}
!35 = !{!9, !11, i64 148}
!36 = !{!11, !11, i64 0}
!37 = distinct !{!37, !32}
!38 = distinct !{!38, !32}
!39 = distinct !{!39, !32}


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