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

; 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.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.sptk::RecursiveMaximumLikelihoodParameterGeneration" = type { %"class.sptk::InputSourceInterface", i32, i32, %"class.std::vector", ptr, i8, i32, i32, i32, %"struct.sptk::RecursiveMaximumLikelihoodParameterGeneration::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 }
%"struct.sptk::RecursiveMaximumLikelihoodParameterGeneration::Buffer" = type { %"class.std::vector.0", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector.5", %"class.std::vector" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::vector<double>>, std::allocator<std::vector<std::vector<double>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZTVN4sptk45RecursiveMaximumLikelihoodParameterGenerationE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8
@_ZN12_GLOBAL__N_14kInfE = external hidden constant double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGenerationC2EiiRKSt6vectorIS1_IdSaIdEESaIS3_EEPNS_20InputSourceInterfaceE(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8
  call void @_ZN4sptk20InputSourceInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  store ptr getelementptr inbounds inrange(-16, 40) ({ [7 x ptr] }, ptr @_ZTVN4sptk45RecursiveMaximumLikelihoodParameterGenerationE, i32 0, i32 0, i32 2), ptr %29, align 8, !tbaa !11
  %30 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 1
  %31 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %31, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 2
  %33 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %33, ptr %32, align 4, !tbaa !30
  %34 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 3
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %35)
          to label %36 unwind label %62

36:                                               ; preds = %5
  %37 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 4
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %38, ptr %37, align 8, !tbaa !31
  %39 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 5
  store i8 1, ptr %39, align 8, !tbaa !32
  %40 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 9
  call void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGeneration6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(168) %40) #5
  %41 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !13
  %43 = icmp slt i32 %42, 0
  br i1 %43, label %60, label %44

44:                                               ; preds = %36
  %45 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 2
  %46 = load i32, ptr %45, align 4, !tbaa !30
  %47 = icmp slt i32 %46, 0
  br i1 %47, label %60, label %48

48:                                               ; preds = %44
  %49 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !31
  %51 = icmp eq ptr null, %50
  br i1 %51, label %60, label %52

52:                                               ; preds = %48
  %53 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !31
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = getelementptr inbounds ptr, ptr %55, i64 3
  %57 = load ptr, ptr %56, align 8
  %58 = invoke noundef zeroext i1 %57(ptr noundef nonnull align 8 dereferenceable(8) %54)
          to label %59 unwind label %66

59:                                               ; preds = %52
  br i1 %58, label %70, label %60

60:                                               ; preds = %59, %48, %44, %36
  %61 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 5
  store i8 0, ptr %61, align 8, !tbaa !32
  br label %205

62:                                               ; preds = %5
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %11, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %12, align 4
  br label %208

66:                                               ; preds = %52
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %11, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %12, align 4
  br label %207

70:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %71 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 3
  %72 = call ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #5
  %73 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %72, ptr %73, align 8
  br label %74

74:                                               ; preds = %103, %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %75 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 3
  %76 = call ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #5
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %76, ptr %77, align 8
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br i1 %78, label %80, label %79

79:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %105

80:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %81 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  %82 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #5
  %83 = trunc i64 %82 to i32
  store i32 %83, ptr %16, align 4, !tbaa !9
  %84 = load i32, ptr %16, align 4, !tbaa !9
  %85 = srem i32 %84, 2
  %86 = icmp eq i32 0, %85
  br i1 %86, label %87, label %94

87:                                               ; preds = %80
  %88 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store double 0.000000e+00, ptr %17, align 8, !tbaa !33
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %89 unwind label %90

89:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %94

90:                                               ; preds = %87
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %11, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %206

94:                                               ; preds = %89, %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %95 = load i32, ptr %16, align 4, !tbaa !9
  %96 = sdiv i32 %95, 2
  store i32 %96, ptr %18, align 4, !tbaa !9
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = load i32, ptr %18, align 4, !tbaa !9
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %100, label %102

100:                                              ; preds = %94
  %101 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %101, ptr %13, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %100, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %103

103:                                              ; preds = %102
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %74, !llvm.loop !35

105:                                              ; preds = %79
  %106 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 2
  %107 = load i32, ptr %106, align 4, !tbaa !30
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %110, label %112

110:                                              ; preds = %105
  %111 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 5
  store i8 0, ptr %111, align 8, !tbaa !32
  store i32 1, ptr %19, align 4
  br label %203

112:                                              ; preds = %105
  %113 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 2
  %114 = load i32, ptr %113, align 4, !tbaa !30
  %115 = add nsw i32 %114, 1
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = add nsw i32 %115, %116
  %118 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 6
  store i32 %117, ptr %118, align 4, !tbaa !37
  %119 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 6
  %120 = load i32, ptr %119, align 4, !tbaa !37
  %121 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 7
  store i32 %120, ptr %121, align 8, !tbaa !38
  %122 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 2
  %123 = load i32, ptr %122, align 4, !tbaa !30
  %124 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 8
  store i32 %123, ptr %124, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %198, %112
  %126 = load i32, ptr %20, align 4, !tbaa !9
  %127 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 6
  %128 = load i32, ptr %127, align 4, !tbaa !37
  %129 = icmp slt i32 %126, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %125
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %202

131:                                              ; preds = %125
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 9
  %134 = getelementptr inbounds %"struct.sptk::RecursiveMaximumLikelihoodParameterGeneration::Buffer", ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %132, align 8, !tbaa !11
  %136 = getelementptr inbounds ptr, ptr %135, i64 4
  %137 = load ptr, ptr %136, align 8
  %138 = invoke noundef zeroext i1 %137(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef %134)
          to label %139 unwind label %183

139:                                              ; preds = %131
  br i1 %138, label %196, label %140

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %141 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 9
  %142 = getelementptr inbounds %"struct.sptk::RecursiveMaximumLikelihoodParameterGeneration::Buffer", ptr %141, i32 0, i32 0
  %143 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #5
  %144 = udiv i64 %143, 2
  %145 = trunc i64 %144 to i32
  store i32 %145, ptr %21, align 4, !tbaa !9
  %146 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 9
  %147 = getelementptr inbounds %"struct.sptk::RecursiveMaximumLikelihoodParameterGeneration::Buffer", ptr %146, i32 0, i32 0
  %148 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #5
  %149 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %22, i32 0, i32 0
  store ptr %148, ptr %149, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %150 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 9
  %151 = getelementptr inbounds %"struct.sptk::RecursiveMaximumLikelihoodParameterGeneration::Buffer", ptr %150, i32 0, i32 0
  %152 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #5
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %24, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  %154 = load i32, ptr %21, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %24, i64 noundef %155) #5
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %23, i32 0, i32 0
  store ptr %156, ptr %157, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  store double 0.000000e+00, ptr %25, align 8, !tbaa !33
  %158 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %22, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8
  %160 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %23, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8
  invoke void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %159, ptr %161, ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %162 unwind label %187

162:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %163 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 9
  %164 = getelementptr inbounds %"struct.sptk::RecursiveMaximumLikelihoodParameterGeneration::Buffer", ptr %163, i32 0, i32 0
  %165 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #5
  %166 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %27, i32 0, i32 0
  store ptr %165, ptr %166, align 8
  %167 = load i32, ptr %21, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef %168) #5
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %26, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  %171 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 9
  %172 = getelementptr inbounds %"struct.sptk::RecursiveMaximumLikelihoodParameterGeneration::Buffer", ptr %171, i32 0, i32 0
  %173 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %172) #5
  %174 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %28, i32 0, i32 0
  store ptr %173, ptr %174, align 8
  %175 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %26, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %28, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8
  invoke void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %176, ptr %178, ptr noundef nonnull align 8 dereferenceable(8) @_ZN12_GLOBAL__N_14kInfE)
          to label %179 unwind label %191

179:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  %180 = getelementptr inbounds %"class.sptk::RecursiveMaximumLikelihoodParameterGeneration", ptr %29, i32 0, i32 7
  %181 = load i32, ptr %180, align 8, !tbaa !38
  %182 = add nsw i32 %181, -1
  store i32 %182, ptr %180, align 8, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %196

183:                                              ; preds = %196, %131
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %11, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %12, align 4
  br label %201

187:                                              ; preds = %140
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %11, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %195

191:                                              ; preds = %162
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %11, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br label %195

195:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %201

196:                                              ; preds = %179, %139
  invoke void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGeneration7ForwardEv(ptr noundef nonnull align 8 dereferenceable(232) %29)
          to label %197 unwind label %183

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %20, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %20, align 4, !tbaa !9
  br label %125, !llvm.loop !40

201:                                              ; preds = %195, %183
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %206

202:                                              ; preds = %130
  store i32 0, ptr %19, align 4
  br label %203

203:                                              ; preds = %202, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %204 = load i32, ptr %19, align 4
  switch i32 %204, label %214 [
    i32 0, label %205
    i32 1, label %205
  ]

205:                                              ; preds = %203, %203, %60
  ret void

206:                                              ; preds = %201, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %207

207:                                              ; preds = %206, %66
  call void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGeneration6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %40) #5
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  br label %208

208:                                              ; preds = %207, %62
  call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  br label %209

209:                                              ; preds = %208
  %210 = load ptr, ptr %11, align 8
  %211 = load i32, ptr %12, align 4
  %212 = insertvalue { ptr, i32 } poison, ptr %210, 0
  %213 = insertvalue { ptr, i32 } %212, i32 %211, 1
  resume { ptr, i32 } %213

214:                                              ; preds = %203
  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 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGeneration6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(168)) 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) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 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)) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEE9push_backEOd(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 nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN4sptk45RecursiveMaximumLikelihoodParameterGenerationE", !15, i64 0, !10, i64 8, !10, i64 12, !16, i64 16, !6, i64 40, !20, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !21, i64 64}
!15 = !{!"_ZTSN4sptk20InputSourceInterfaceE"}
!16 = !{!"_ZTSSt6vectorIS_IdSaIdEESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN4sptk45RecursiveMaximumLikelihoodParameterGeneration6BufferE", !22, i64 0, !16, i64 24, !16, i64 48, !16, i64 72, !16, i64 96, !26, i64 120, !16, i64 144}
!22 = !{!"_ZTSSt6vectorIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt6vectorIS_IS_IdSaIdEESaIS1_EESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseISt6vectorIS0_IdSaIdEESaIS2_EESaIS4_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt6vectorIS0_IdSaIdEESaIS2_EESaIS4_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt6vectorIS0_IdSaIdEESaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!14, !10, i64 12}
!31 = !{!14, !6, i64 40}
!32 = !{!14, !20, i64 48}
!33 = !{!34, !34, i64 0}
!34 = !{!"double", !7, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!14, !10, i64 52}
!38 = !{!14, !10, i64 56}
!39 = !{!14, !10, i64 60}
!40 = distinct !{!40, !36}


; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }

@_ZTVN4sptk45RecursiveMaximumLikelihoodParameterGenerationE = external dso_local unnamed_addr constant { [7 x ptr] }, align 8
@_ZN12_GLOBAL__N_14kInfE = external hidden constant double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGenerationC2EiiRKSt6vectorIS1_IdSaIdEESaIS3_EEPNS_20InputSourceInterfaceE(ptr noundef nonnull align 8 dereferenceable(232) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef %4) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca double, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %10 = alloca double, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  tail call void @_ZN4sptk20InputSourceInterfaceC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN4sptk45RecursiveMaximumLikelihoodParameterGenerationE, i64 16), ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %1, ptr %12, align 8, !tbaa !8
  %13 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %2, ptr %13, align 4, !tbaa !28
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %15 unwind label %32

15:                                               ; preds = %5
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %4, ptr %16, align 8, !tbaa !29
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  store i8 1, ptr %17, align 8, !tbaa !30
  %18 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGeneration6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(168) %18) #6
  %19 = load i32, ptr %12, align 8, !tbaa !8
  %20 = icmp slt i32 %19, 0
  %21 = load i32, ptr %13, align 4
  %22 = icmp slt i32 %21, 0
  %or.cond = select i1 %20, i1 true, i1 %22
  br i1 %or.cond, label %.loopexit.sink.split, label %23

23:                                               ; preds = %15
  %24 = load ptr, ptr %16, align 8, !tbaa !29
  %25 = icmp eq ptr %24, null
  br i1 %25, label %.loopexit.sink.split, label %26

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

31:                                               ; preds = %26
  br i1 %30, label %36, label %.loopexit.sink.split

32:                                               ; preds = %5
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %95

34:                                               ; preds = %26
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %94

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %37 = tail call ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  store ptr %37, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %38 = tail call ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  store ptr %38, ptr %7, align 8
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br i1 %39, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %52, %36
  %.026.lcssa = phi i32 [ 0, %36 ], [ %spec.select, %52 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  %40 = load i32, ptr %13, align 4, !tbaa !28
  %41 = icmp slt i32 %40, %.026.lcssa
  br i1 %41, label %.loopexit.sink.split, label %57

.lr.ph:                                           ; preds = %36, %52
  %.02641 = phi i32 [ %spec.select, %52 ], [ 0, %36 ]
  %42 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  %43 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %44 = trunc i64 %43 to i32
  %45 = and i32 %44, 1
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %52

47:                                               ; preds = %.lr.ph
  %48 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !31
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %49 unwind label %50

49:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %52

50:                                               ; preds = %47
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %94

52:                                               ; preds = %49, %.lr.ph
  %53 = sdiv i32 %44, 2
  %spec.select = call i32 @llvm.smax.i32(i32 %.02641, i32 %53)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %55 = call ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  store ptr %55, ptr %7, align 8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIdSaIdEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  br i1 %56, label %.lr.ph, label %._crit_edge, !llvm.loop !33

57:                                               ; preds = %._crit_edge
  %58 = add nuw nsw i32 %.026.lcssa, 1
  %59 = add nuw nsw i32 %58, %40
  %60 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 %59, ptr %60, align 4, !tbaa !35
  %61 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %59, ptr %61, align 8, !tbaa !36
  %62 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %40, ptr %62, align 4, !tbaa !37
  %63 = icmp sgt i32 %59, 1
  br i1 %63, label %.lr.ph44, label %.loopexit

.lr.ph44:                                         ; preds = %57, %90
  %.02842 = phi i32 [ %91, %90 ], [ 1, %57 ]
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 32
  %66 = load ptr, ptr %65, align 8
  %67 = invoke noundef zeroext i1 %66(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %18)
          to label %68 unwind label %83

68:                                               ; preds = %.lr.ph44
  br i1 %67, label %89, label %69

69:                                               ; preds = %68
  %70 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %71 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %72 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  store ptr %72, ptr %9, align 8
  %73 = shl i64 %70, 31
  %74 = ashr i64 %73, 32
  %75 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %74) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  store double 0.000000e+00, ptr %10, align 8, !tbaa !31
  invoke void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %71, ptr %75, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %76 unwind label %85

76:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %77 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  store ptr %77, ptr %11, align 8
  %78 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef %74) #6
  %79 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  invoke void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr %78, ptr %79, ptr noundef nonnull align 8 dereferenceable(8) @_ZN12_GLOBAL__N_14kInfE)
          to label %80 unwind label %87

80:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %81 = load i32, ptr %61, align 8, !tbaa !36
  %82 = add nsw i32 %81, -1
  store i32 %82, ptr %61, align 8, !tbaa !36
  br label %89

83:                                               ; preds = %89, %.lr.ph44
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %94

85:                                               ; preds = %69
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %94

87:                                               ; preds = %76
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %94

89:                                               ; preds = %80, %68
  invoke void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGeneration7ForwardEv(ptr noundef nonnull align 8 dereferenceable(232) %0)
          to label %90 unwind label %83

90:                                               ; preds = %89
  %91 = add nuw nsw i32 %.02842, 1
  %92 = load i32, ptr %60, align 4, !tbaa !35
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %.lr.ph44, label %.loopexit, !llvm.loop !38

.loopexit.sink.split:                             ; preds = %._crit_edge, %15, %23, %31
  store i8 0, ptr %17, align 8, !tbaa !30
  br label %.loopexit

.loopexit:                                        ; preds = %90, %.loopexit.sink.split, %57
  ret void

94:                                               ; preds = %50, %85, %87, %83, %34
  %.pn35.pn = phi { ptr, i32 } [ %35, %34 ], [ %51, %50 ], [ %84, %83 ], [ %88, %87 ], [ %86, %85 ]
  call void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGeneration6BufferD2Ev(ptr noundef nonnull align 8 dereferenceable(168) %18) #6
  call void @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %95

95:                                               ; preds = %94, %32
  %.pn35.pn.pn = phi { ptr, i32 } [ %.pn35.pn, %94 ], [ %33, %32 ]
  call void @_ZN4sptk20InputSourceInterfaceD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #6
  resume { ptr, i32 } %.pn35.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 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: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4sptk45RecursiveMaximumLikelihoodParameterGeneration6BufferC2Ev(ptr noundef nonnull align 8 dereferenceable(168)) 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 ptr @_ZNSt6vectorIS_IdSaIdEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 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 #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEdEvT_S7_RKT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!"_ZTSN4sptk45RecursiveMaximumLikelihoodParameterGenerationE", !10, i64 0, !11, i64 8, !11, i64 12, !13, i64 16, !17, i64 40, !18, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !19, i64 64}
!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 = !{!"_ZTSN4sptk45RecursiveMaximumLikelihoodParameterGeneration6BufferE", !20, i64 0, !13, i64 24, !13, i64 48, !13, i64 72, !13, i64 96, !24, i64 120, !13, i64 144}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!24 = !{!"_ZTSSt6vectorIS_IS_IdSaIdEESaIS1_EESaIS3_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseISt6vectorIS0_IdSaIdEESaIS2_EESaIS4_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt6vectorIS0_IdSaIdEESaIS2_EESaIS4_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt6vectorIS0_IdSaIdEESaIS2_EESaIS4_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!28 = !{!9, !11, i64 12}
!29 = !{!9, !17, i64 40}
!30 = !{!9, !18, i64 48}
!31 = !{!32, !32, i64 0}
!32 = !{!"double", !12, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!9, !11, i64 52}
!36 = !{!9, !11, i64 56}
!37 = !{!9, !11, i64 60}
!38 = distinct !{!38, !34}


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