; LLVM IR from EbTech/Elo-MMR :: deprecated/cpp/trueskill/src (trueskill)

; 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.Constants = type { double, double, double }
%"class.__gnu_cxx::__normal_iterator.20" = type { ptr }
%struct.player_sorter = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Variable *, std::allocator<Variable *>>::_Vector_impl" }
%"struct.std::_Vector_base<Variable *, std::allocator<Variable *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Variable *, std::allocator<Variable *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Variable *, std::allocator<Variable *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<PriorFactor *, std::allocator<PriorFactor *>>::_Vector_impl" }
%"struct.std::_Vector_base<PriorFactor *, std::allocator<PriorFactor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<PriorFactor *, std::allocator<PriorFactor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PriorFactor *, std::allocator<PriorFactor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<LikelihoodFactor *, std::allocator<LikelihoodFactor *>>::_Vector_impl" }
%"struct.std::_Vector_base<LikelihoodFactor *, std::allocator<LikelihoodFactor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<LikelihoodFactor *, std::allocator<LikelihoodFactor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<LikelihoodFactor *, std::allocator<LikelihoodFactor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<SumFactor *, std::allocator<SumFactor *>>::_Vector_impl" }
%"struct.std::_Vector_base<SumFactor *, std::allocator<SumFactor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SumFactor *, std::allocator<SumFactor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SumFactor *, std::allocator<SumFactor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<TruncateFactor *, std::allocator<TruncateFactor *>>::_Vector_impl" }
%"struct.std::_Vector_base<TruncateFactor *, std::allocator<TruncateFactor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<TruncateFactor *, std::allocator<TruncateFactor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TruncateFactor *, std::allocator<TruncateFactor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.41" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.42" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.43" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.44" = type { ptr }
%class.Player = type { double, double, i32 }
%class.Variable = type { ptr, %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<Factor, std::pair<const Factor, Gaussian *>, std::_Select1st<std::pair<const Factor, Gaussian *>>, FactorKeyMapper>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<Factor, std::pair<const Factor, Gaussian *>, std::_Select1st<std::pair<const Factor, Gaussian *>>, FactorKeyMapper>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Gaussian13init_mu_sigmaEdd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) #0 align 2

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

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #1

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16LikelihoodFactor12update_valueEv(ptr noundef nonnull align 8 dereferenceable(40)) #5 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16LikelihoodFactor11update_meanEv(ptr noundef nonnull align 8 dereferenceable(40)) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SumFactor10update_sumEv(ptr noundef nonnull align 8 dereferenceable(40)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SumFactor11update_termEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9TrueSkill14adjust_playersESt6vectorIP6PlayerSaIS2_EE(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1) #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.Constants, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.20", align 8
  %8 = alloca %struct.player_sorter, align 1
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::vector.21", align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.std::vector.26", align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.std::vector.31", align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca double, align 8
  %36 = alloca ptr, align 8
  %37 = alloca %"class.std::vector.31", align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca ptr, align 8
  %43 = alloca %"class.std::vector.36", align 8
  %44 = alloca ptr, align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %46 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %47 = alloca %"class.__gnu_cxx::__normal_iterator.42", align 8
  %48 = alloca %"class.__gnu_cxx::__normal_iterator.42", align 8
  %49 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %50 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %53 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %54 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %55 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %56 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %57 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %58 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %59 = alloca %"class.__gnu_cxx::__normal_iterator.42", align 8
  %60 = alloca %"class.__gnu_cxx::__normal_iterator.42", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %61 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #10
  call void @_ZN9ConstantsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %62 = call ptr @_ZNSt6vectorIP6PlayerSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %63 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %6, i32 0, i32 0
  store ptr %62, ptr %63, align 8
  %64 = call ptr @_ZNSt6vectorIP6PlayerSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %7, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  %66 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %6, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8
  %68 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.20", ptr %7, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP6PlayerSt6vectorIS3_SaIS3_EEEE13player_sorterEvT_SA_T0_(ptr %67, ptr %69)
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  %70 = call noundef i64 @_ZNKSt6vectorIP6PlayerSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %71 = trunc i64 %70 to i32
  store i32 %71, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %72 = getelementptr inbounds %class.Constants, ptr %5, i32 0, i32 2
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = getelementptr inbounds %class.Constants, ptr %5, i32 0, i32 2
  %75 = load double, ptr %74, align 8, !tbaa !11
  %76 = fmul double %73, %75
  store double %76, ptr %15, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %77 = getelementptr inbounds %class.Constants, ptr %5, i32 0, i32 0
  %78 = load double, ptr %77, align 8, !tbaa !15
  %79 = getelementptr inbounds %class.Constants, ptr %5, i32 0, i32 0
  %80 = load double, ptr %79, align 8, !tbaa !15
  %81 = fmul double %78, %80
  store double %81, ptr %16, align 8, !tbaa !14
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %99, %2
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = icmp ult i32 %83, %84
  br i1 %85, label %86, label %129

86:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %87 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %88 unwind label %102

88:                                               ; preds = %86
  invoke void @_ZN8VariableC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %87)
          to label %89 unwind label %106

89:                                               ; preds = %88
  store ptr %87, ptr %17, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %90 unwind label %102

90:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %91 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %92 unwind label %111

92:                                               ; preds = %90
  invoke void @_ZN8VariableC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %91)
          to label %93 unwind label %115

93:                                               ; preds = %92
  store ptr %91, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %94 unwind label %111

94:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %95 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %96 unwind label %120

96:                                               ; preds = %94
  invoke void @_ZN8VariableC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %95)
          to label %97 unwind label %124

97:                                               ; preds = %96
  store ptr %95, ptr %21, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %98 unwind label %120

98:                                               ; preds = %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = add i32 %100, 1
  store i32 %101, ptr %13, align 4, !tbaa !9
  br label %82, !llvm.loop !16

102:                                              ; preds = %89, %86
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %18, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %19, align 4
  br label %110

106:                                              ; preds = %88
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %18, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %87, i64 noundef 56) #12
  br label %110

110:                                              ; preds = %106, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %710

111:                                              ; preds = %93, %90
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %18, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %19, align 4
  br label %119

115:                                              ; preds = %92
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %18, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %91, i64 noundef 56) #12
  br label %119

119:                                              ; preds = %115, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  br label %710

120:                                              ; preds = %97, %94
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %18, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %19, align 4
  br label %128

124:                                              ; preds = %96
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %18, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %95, i64 noundef 56) #12
  br label %128

128:                                              ; preds = %124, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %710

129:                                              ; preds = %82
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %140, %129
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = sub i32 %132, 1
  %134 = icmp ult i32 %131, %133
  br i1 %134, label %135, label %152

135:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %136 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #11
          to label %137 unwind label %143

137:                                              ; preds = %135
  invoke void @_ZN8VariableC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %136)
          to label %138 unwind label %147

138:                                              ; preds = %137
  store ptr %136, ptr %22, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %139 unwind label %143

139:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = add i32 %141, 1
  store i32 %142, ptr %13, align 4, !tbaa !9
  br label %130, !llvm.loop !18

143:                                              ; preds = %138, %135
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %18, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %19, align 4
  br label %151

147:                                              ; preds = %137
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %18, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %136, i64 noundef 56) #12
  br label %151

151:                                              ; preds = %147, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %710

152:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #10
  call void @_ZNSt6vectorIP11PriorFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %188, %152
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = icmp ult i32 %154, %155
  br i1 %156, label %157, label %209

157:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %158 = load i32, ptr %13, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %159) #10
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  store ptr %161, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %163) #10
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  store ptr %165, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %166 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #11
          to label %167 unwind label %191

167:                                              ; preds = %157
  invoke void @_ZN8GaussianC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %166)
          to label %168 unwind label %195

168:                                              ; preds = %167
  store ptr %166, ptr %26, align 8, !tbaa !5
  %169 = load ptr, ptr %26, align 8, !tbaa !5
  %170 = load ptr, ptr %24, align 8, !tbaa !5
  %171 = getelementptr inbounds %class.Player, ptr %170, i32 0, i32 0
  %172 = load double, ptr %171, align 8, !tbaa !19
  %173 = load ptr, ptr %24, align 8, !tbaa !5
  %174 = getelementptr inbounds %class.Player, ptr %173, i32 0, i32 1
  %175 = load double, ptr %174, align 8, !tbaa !21
  %176 = load ptr, ptr %24, align 8, !tbaa !5
  %177 = getelementptr inbounds %class.Player, ptr %176, i32 0, i32 1
  %178 = load double, ptr %177, align 8, !tbaa !21
  %179 = load double, ptr %15, align 8, !tbaa !14
  %180 = call double @llvm.fmuladd.f64(double %175, double %178, double %179)
  %181 = call double @sqrt(double noundef %180) #10
  call void @_ZN8Gaussian13init_mu_sigmaEdd(ptr noundef nonnull align 8 dereferenceable(16) %169, double noundef %172, double noundef %181)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %182 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #11
          to label %183 unwind label %199

183:                                              ; preds = %168
  %184 = load ptr, ptr %25, align 8, !tbaa !5
  %185 = load ptr, ptr %26, align 8, !tbaa !5
  invoke void @_ZN11PriorFactorC2EP8VariableP8Gaussian(ptr noundef nonnull align 8 dereferenceable(24) %182, ptr noundef %184, ptr noundef %185)
          to label %186 unwind label %203

186:                                              ; preds = %183
  store ptr %182, ptr %27, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP11PriorFactorSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %187 unwind label %199

187:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = add i32 %189, 1
  store i32 %190, ptr %13, align 4, !tbaa !9
  br label %153, !llvm.loop !22

191:                                              ; preds = %157
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %18, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %19, align 4
  br label %208

195:                                              ; preds = %167
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %18, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %166, i64 noundef 16) #12
  br label %208

199:                                              ; preds = %186, %168
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %18, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %19, align 4
  br label %207

203:                                              ; preds = %183
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %18, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %182, i64 noundef 24) #12
  br label %207

207:                                              ; preds = %203, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %208

208:                                              ; preds = %207, %195, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %709

209:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #10
  call void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %210

210:                                              ; preds = %230, %209
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = load i32, ptr %14, align 4, !tbaa !9
  %213 = icmp ult i32 %211, %212
  br i1 %213, label %214, label %242

214:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %215 = load i32, ptr %13, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %216) #10
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  store ptr %218, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #10
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %220) #10
  %222 = load ptr, ptr %221, align 8, !tbaa !5
  store ptr %222, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %223 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #11
          to label %224 unwind label %233

224:                                              ; preds = %214
  %225 = load ptr, ptr %29, align 8, !tbaa !5
  %226 = load ptr, ptr %30, align 8, !tbaa !5
  %227 = load double, ptr %16, align 8, !tbaa !14
  invoke void @_ZN16LikelihoodFactorC2EP8VariableS1_d(ptr noundef nonnull align 8 dereferenceable(40) %223, ptr noundef %225, ptr noundef %226, double noundef %227)
          to label %228 unwind label %237

228:                                              ; preds = %224
  store ptr %223, ptr %31, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %229 unwind label %233

229:                                              ; preds = %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %230

230:                                              ; preds = %229
  %231 = load i32, ptr %13, align 4, !tbaa !9
  %232 = add i32 %231, 1
  store i32 %232, ptr %13, align 4, !tbaa !9
  br label %210, !llvm.loop !23

233:                                              ; preds = %228, %214
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %18, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %19, align 4
  br label %241

237:                                              ; preds = %224
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %18, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %223, i64 noundef 40) #12
  br label %241

241:                                              ; preds = %237, %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  br label %708

242:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %243

243:                                              ; preds = %269, %242
  %244 = load i32, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = icmp ult i32 %244, %245
  br i1 %246, label %247, label %295

247:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #10
  %248 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #11
          to label %249 unwind label %272

249:                                              ; preds = %247
  call void @llvm.memset.p0.i64(ptr align 16 %248, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %248) #10
  store ptr %248, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #10
  %250 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #11
          to label %251 unwind label %276

251:                                              ; preds = %249
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %250) #10
  store ptr %250, ptr %34, align 8, !tbaa !5
  %252 = load ptr, ptr %33, align 8, !tbaa !5
  %253 = load i32, ptr %13, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %254) #10
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %252, ptr noundef nonnull align 8 dereferenceable(8) %255)
          to label %256 unwind label %276

256:                                              ; preds = %251
  %257 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #10
  store double 1.000000e+00, ptr %35, align 8, !tbaa !14
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %257, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %258 unwind label %280

258:                                              ; preds = %256
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #10
  %259 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #11
          to label %260 unwind label %284

260:                                              ; preds = %258
  %261 = load i32, ptr %13, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %262) #10
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  %265 = load ptr, ptr %33, align 8, !tbaa !5
  %266 = load ptr, ptr %34, align 8, !tbaa !5
  invoke void @_ZN9SumFactorC1EP8VariablePSt6vectorIS1_SaIS1_EEPS2_IdSaIdEE(ptr noundef nonnull align 8 dereferenceable(40) %259, ptr noundef %264, ptr noundef %265, ptr noundef %266)
          to label %267 unwind label %288

267:                                              ; preds = %260
  store ptr %259, ptr %36, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP9SumFactorSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %268 unwind label %284

268:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr %13, align 4, !tbaa !9
  %271 = add i32 %270, 1
  store i32 %271, ptr %13, align 4, !tbaa !9
  br label %243, !llvm.loop !24

272:                                              ; preds = %247
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %18, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %19, align 4
  br label %294

276:                                              ; preds = %251, %249
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %18, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %19, align 4
  br label %293

280:                                              ; preds = %256
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %18, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #10
  br label %293

284:                                              ; preds = %267, %258
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %18, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %19, align 4
  br label %292

288:                                              ; preds = %260
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %18, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %259, i64 noundef 40) #12
  br label %292

292:                                              ; preds = %288, %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #10
  br label %293

293:                                              ; preds = %292, %280, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  br label %294

294:                                              ; preds = %293, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %707

295:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 24, ptr %37) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %296

296:                                              ; preds = %331, %295
  %297 = load i32, ptr %13, align 4, !tbaa !9
  %298 = load i32, ptr %14, align 4, !tbaa !9
  %299 = sub i32 %298, 1
  %300 = icmp ult i32 %297, %299
  br i1 %300, label %301, label %361

301:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #10
  %302 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #11
          to label %303 unwind label %334

303:                                              ; preds = %301
  call void @llvm.memset.p0.i64(ptr align 16 %302, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %302) #10
  store ptr %302, ptr %38, align 8, !tbaa !5
  %304 = load ptr, ptr %38, align 8, !tbaa !5
  %305 = load i32, ptr %13, align 4, !tbaa !9
  %306 = zext i32 %305 to i64
  %307 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %306) #10
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %304, ptr noundef nonnull align 8 dereferenceable(8) %307)
          to label %308 unwind label %334

308:                                              ; preds = %303
  %309 = load ptr, ptr %38, align 8, !tbaa !5
  %310 = load i32, ptr %13, align 4, !tbaa !9
  %311 = add i32 %310, 1
  %312 = zext i32 %311 to i64
  %313 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %312) #10
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %309, ptr noundef nonnull align 8 dereferenceable(8) %313)
          to label %314 unwind label %334

314:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #10
  %315 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #11
          to label %316 unwind label %338

316:                                              ; preds = %314
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %315) #10
  store ptr %315, ptr %39, align 8, !tbaa !5
  %317 = load ptr, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #10
  store double 1.000000e+00, ptr %40, align 8, !tbaa !14
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %317, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %318 unwind label %342

318:                                              ; preds = %316
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  %319 = load ptr, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #10
  store double -1.000000e+00, ptr %41, align 8, !tbaa !14
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %319, ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %320 unwind label %346

320:                                              ; preds = %318
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #10
  %321 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #11
          to label %322 unwind label %350

322:                                              ; preds = %320
  %323 = load i32, ptr %13, align 4, !tbaa !9
  %324 = zext i32 %323 to i64
  %325 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %324) #10
  %326 = load ptr, ptr %325, align 8, !tbaa !5
  %327 = load ptr, ptr %38, align 8, !tbaa !5
  %328 = load ptr, ptr %39, align 8, !tbaa !5
  invoke void @_ZN9SumFactorC1EP8VariablePSt6vectorIS1_SaIS1_EEPS2_IdSaIdEE(ptr noundef nonnull align 8 dereferenceable(40) %321, ptr noundef %326, ptr noundef %327, ptr noundef %328)
          to label %329 unwind label %354

329:                                              ; preds = %322
  store ptr %321, ptr %42, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIP9SumFactorSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(8) %42)
          to label %330 unwind label %350

330:                                              ; preds = %329
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  br label %331

331:                                              ; preds = %330
  %332 = load i32, ptr %13, align 4, !tbaa !9
  %333 = add i32 %332, 1
  store i32 %333, ptr %13, align 4, !tbaa !9
  br label %296, !llvm.loop !25

334:                                              ; preds = %308, %303, %301
  %335 = landingpad { ptr, i32 }
          cleanup
  %336 = extractvalue { ptr, i32 } %335, 0
  store ptr %336, ptr %18, align 8
  %337 = extractvalue { ptr, i32 } %335, 1
  store i32 %337, ptr %19, align 4
  br label %360

338:                                              ; preds = %314
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %18, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %19, align 4
  br label %359

342:                                              ; preds = %316
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %18, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #10
  br label %359

346:                                              ; preds = %318
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %18, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #10
  br label %359

350:                                              ; preds = %329, %320
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %18, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %19, align 4
  br label %358

354:                                              ; preds = %322
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %18, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %321, i64 noundef 40) #12
  br label %358

358:                                              ; preds = %354, %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #10
  br label %359

359:                                              ; preds = %358, %346, %342, %338
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #10
  br label %360

360:                                              ; preds = %359, %334
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #10
  br label %706

361:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #10
  call void @_ZNSt6vectorIP14TruncateFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #10
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %362

362:                                              ; preds = %416, %361
  %363 = load i32, ptr %13, align 4, !tbaa !9
  %364 = load i32, ptr %14, align 4, !tbaa !9
  %365 = sub i32 %364, 1
  %366 = icmp ult i32 %363, %365
  br i1 %366, label %367, label %420

367:                                              ; preds = %362
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #10
  %368 = load i32, ptr %13, align 4, !tbaa !9
  %369 = zext i32 %368 to i64
  %370 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %369) #10
  %371 = load ptr, ptr %370, align 8, !tbaa !5
  %372 = getelementptr inbounds %class.Player, ptr %371, i32 0, i32 2
  %373 = load i32, ptr %372, align 8, !tbaa !26
  %374 = load i32, ptr %13, align 4, !tbaa !9
  %375 = add i32 %374, 1
  %376 = zext i32 %375 to i64
  %377 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %376) #10
  %378 = load ptr, ptr %377, align 8, !tbaa !5
  %379 = getelementptr inbounds %class.Player, ptr %378, i32 0, i32 2
  %380 = load i32, ptr %379, align 8, !tbaa !26
  %381 = icmp eq i32 %373, %380
  br i1 %381, label %382, label %400

382:                                              ; preds = %367
  %383 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #11
          to label %384 unwind label %392

384:                                              ; preds = %382
  %385 = load i32, ptr %13, align 4, !tbaa !9
  %386 = zext i32 %385 to i64
  %387 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %386) #10
  %388 = load ptr, ptr %387, align 8, !tbaa !5
  %389 = getelementptr inbounds %class.Constants, ptr %5, i32 0, i32 1
  %390 = load double, ptr %389, align 8, !tbaa !27
  invoke void @_ZN18TruncateFactorDrawC2EP8Variabled(ptr noundef nonnull align 8 dereferenceable(40) %383, ptr noundef %388, double noundef %390)
          to label %391 unwind label %396

391:                                              ; preds = %384
  store ptr %383, ptr %44, align 8, !tbaa !5
  br label %414

392:                                              ; preds = %414, %400, %382
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %18, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %19, align 4
  br label %419

396:                                              ; preds = %384
  %397 = landingpad { ptr, i32 }
          cleanup
  %398 = extractvalue { ptr, i32 } %397, 0
  store ptr %398, ptr %18, align 8
  %399 = extractvalue { ptr, i32 } %397, 1
  store i32 %399, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %383, i64 noundef 40) #12
  br label %419

400:                                              ; preds = %367
  %401 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #11
          to label %402 unwind label %392

402:                                              ; preds = %400
  %403 = load i32, ptr %13, align 4, !tbaa !9
  %404 = zext i32 %403 to i64
  %405 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %404) #10
  %406 = load ptr, ptr %405, align 8, !tbaa !5
  %407 = getelementptr inbounds %class.Constants, ptr %5, i32 0, i32 1
  %408 = load double, ptr %407, align 8, !tbaa !27
  invoke void @_ZN17TruncateFactorWinC2EP8Variabled(ptr noundef nonnull align 8 dereferenceable(40) %401, ptr noundef %406, double noundef %408)
          to label %409 unwind label %410

409:                                              ; preds = %402
  store ptr %401, ptr %44, align 8, !tbaa !5
  br label %414

410:                                              ; preds = %402
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %18, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %401, i64 noundef 40) #12
  br label %419

414:                                              ; preds = %409, %391
  invoke void @_ZNSt6vectorIP14TruncateFactorSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(8) %44)
          to label %415 unwind label %392

415:                                              ; preds = %414
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  br label %416

416:                                              ; preds = %415
  %417 = load i32, ptr %13, align 4, !tbaa !9
  %418 = add i32 %417, 1
  store i32 %418, ptr %13, align 4, !tbaa !9
  br label %362, !llvm.loop !28

419:                                              ; preds = %410, %396, %392
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #10
  br label %705

420:                                              ; preds = %362
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #10
  %421 = call ptr @_ZNSt6vectorIP11PriorFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %422 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %45, i32 0, i32 0
  store ptr %421, ptr %422, align 8
  br label %423

423:                                              ; preds = %432, %420
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #10
  %424 = call ptr @_ZNSt6vectorIP11PriorFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %425 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.41", ptr %46, i32 0, i32 0
  store ptr %424, ptr %425, align 8
  %426 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP11PriorFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %46) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #10
  br i1 %426, label %428, label %427

427:                                              ; preds = %423
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  br label %438

428:                                              ; preds = %423
  %429 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP11PriorFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #10
  %430 = load ptr, ptr %429, align 8, !tbaa !5
  invoke void @_ZN11PriorFactor5startEv(ptr noundef nonnull align 8 dereferenceable(24) %430)
          to label %431 unwind label %434

431:                                              ; preds = %428
  br label %432

432:                                              ; preds = %431
  %433 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP11PriorFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %45) #10
  br label %423, !llvm.loop !29

434:                                              ; preds = %428
  %435 = landingpad { ptr, i32 }
          cleanup
  %436 = extractvalue { ptr, i32 } %435, 0
  store ptr %436, ptr %18, align 8
  %437 = extractvalue { ptr, i32 } %435, 1
  store i32 %437, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #10
  br label %705

438:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #10
  %439 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  %440 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.42", ptr %47, i32 0, i32 0
  store ptr %439, ptr %440, align 8
  br label %441

441:                                              ; preds = %450, %438
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #10
  %442 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  %443 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.42", ptr %48, i32 0, i32 0
  store ptr %442, ptr %443, align 8
  %444 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %48) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #10
  br i1 %444, label %446, label %445

445:                                              ; preds = %441
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  br label %456

446:                                              ; preds = %441
  %447 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #10
  %448 = load ptr, ptr %447, align 8, !tbaa !5
  invoke void @_ZN16LikelihoodFactor12update_valueEv(ptr noundef nonnull align 8 dereferenceable(40) %448)
          to label %449 unwind label %452

449:                                              ; preds = %446
  br label %450

450:                                              ; preds = %449
  %451 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %47) #10
  br label %441, !llvm.loop !30

452:                                              ; preds = %446
  %453 = landingpad { ptr, i32 }
          cleanup
  %454 = extractvalue { ptr, i32 } %453, 0
  store ptr %454, ptr %18, align 8
  %455 = extractvalue { ptr, i32 } %453, 1
  store i32 %455, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #10
  br label %705

456:                                              ; preds = %445
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #10
  %457 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  %458 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %49, i32 0, i32 0
  store ptr %457, ptr %458, align 8
  br label %459

459:                                              ; preds = %468, %456
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #10
  %460 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  %461 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %50, i32 0, i32 0
  store ptr %460, ptr %461, align 8
  %462 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %50) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #10
  br i1 %462, label %464, label %463

463:                                              ; preds = %459
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  br label %474

464:                                              ; preds = %459
  %465 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #10
  %466 = load ptr, ptr %465, align 8, !tbaa !5
  invoke void @_ZN9SumFactor10update_sumEv(ptr noundef nonnull align 8 dereferenceable(40) %466)
          to label %467 unwind label %470

467:                                              ; preds = %464
  br label %468

468:                                              ; preds = %467
  %469 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %49) #10
  br label %459, !llvm.loop !31

470:                                              ; preds = %464
  %471 = landingpad { ptr, i32 }
          cleanup
  %472 = extractvalue { ptr, i32 } %471, 0
  store ptr %472, ptr %18, align 8
  %473 = extractvalue { ptr, i32 } %471, 1
  store i32 %473, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #10
  br label %705

474:                                              ; preds = %463
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %475

475:                                              ; preds = %539, %474
  %476 = load i32, ptr %13, align 4, !tbaa !9
  %477 = icmp ult i32 %476, 5
  br i1 %477, label %478, label %542

478:                                              ; preds = %475
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #10
  %479 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  %480 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %51, i32 0, i32 0
  store ptr %479, ptr %480, align 8
  br label %481

481:                                              ; preds = %490, %478
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #10
  %482 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  %483 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %52, i32 0, i32 0
  store ptr %482, ptr %483, align 8
  %484 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %52) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #10
  br i1 %484, label %486, label %485

485:                                              ; preds = %481
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #10
  br label %496

486:                                              ; preds = %481
  %487 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #10
  %488 = load ptr, ptr %487, align 8, !tbaa !5
  invoke void @_ZN9SumFactor10update_sumEv(ptr noundef nonnull align 8 dereferenceable(40) %488)
          to label %489 unwind label %492

489:                                              ; preds = %486
  br label %490

490:                                              ; preds = %489
  %491 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #10
  br label %481, !llvm.loop !32

492:                                              ; preds = %486
  %493 = landingpad { ptr, i32 }
          cleanup
  %494 = extractvalue { ptr, i32 } %493, 0
  store ptr %494, ptr %18, align 8
  %495 = extractvalue { ptr, i32 } %493, 1
  store i32 %495, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #10
  br label %705

496:                                              ; preds = %485
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #10
  %497 = call ptr @_ZNSt6vectorIP14TruncateFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #10
  %498 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.44", ptr %53, i32 0, i32 0
  store ptr %497, ptr %498, align 8
  br label %499

499:                                              ; preds = %511, %496
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #10
  %500 = call ptr @_ZNSt6vectorIP14TruncateFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #10
  %501 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.44", ptr %54, i32 0, i32 0
  store ptr %500, ptr %501, align 8
  %502 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP14TruncateFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef nonnull align 8 dereferenceable(8) %54) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #10
  br i1 %502, label %504, label %503

503:                                              ; preds = %499
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  br label %517

504:                                              ; preds = %499
  %505 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP14TruncateFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #10
  %506 = load ptr, ptr %505, align 8, !tbaa !5
  %507 = load ptr, ptr %506, align 8, !tbaa !33
  %508 = getelementptr inbounds ptr, ptr %507, i64 2
  %509 = load ptr, ptr %508, align 8
  invoke void %509(ptr noundef nonnull align 8 dereferenceable(40) %506)
          to label %510 unwind label %513

510:                                              ; preds = %504
  br label %511

511:                                              ; preds = %510
  %512 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP14TruncateFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %53) #10
  br label %499, !llvm.loop !35

513:                                              ; preds = %504
  %514 = landingpad { ptr, i32 }
          cleanup
  %515 = extractvalue { ptr, i32 } %514, 0
  store ptr %515, ptr %18, align 8
  %516 = extractvalue { ptr, i32 } %514, 1
  store i32 %516, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #10
  br label %705

517:                                              ; preds = %503
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #10
  %518 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  %519 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %55, i32 0, i32 0
  store ptr %518, ptr %519, align 8
  br label %520

520:                                              ; preds = %532, %517
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #10
  %521 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  %522 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %56, i32 0, i32 0
  store ptr %521, ptr %522, align 8
  %523 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(8) %56) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #10
  br i1 %523, label %525, label %524

524:                                              ; preds = %520
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  br label %538

525:                                              ; preds = %520
  %526 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  %527 = load ptr, ptr %526, align 8, !tbaa !5
  invoke void @_ZN9SumFactor11update_termEj(ptr noundef nonnull align 8 dereferenceable(40) %527, i32 noundef 0)
          to label %528 unwind label %534

528:                                              ; preds = %525
  %529 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  %530 = load ptr, ptr %529, align 8, !tbaa !5
  invoke void @_ZN9SumFactor11update_termEj(ptr noundef nonnull align 8 dereferenceable(40) %530, i32 noundef 1)
          to label %531 unwind label %534

531:                                              ; preds = %528
  br label %532

532:                                              ; preds = %531
  %533 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #10
  br label %520, !llvm.loop !36

534:                                              ; preds = %528, %525
  %535 = landingpad { ptr, i32 }
          cleanup
  %536 = extractvalue { ptr, i32 } %535, 0
  store ptr %536, ptr %18, align 8
  %537 = extractvalue { ptr, i32 } %535, 1
  store i32 %537, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #10
  br label %705

538:                                              ; preds = %524
  br label %539

539:                                              ; preds = %538
  %540 = load i32, ptr %13, align 4, !tbaa !9
  %541 = add i32 %540, 1
  store i32 %541, ptr %13, align 4, !tbaa !9
  br label %475, !llvm.loop !37

542:                                              ; preds = %475
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #10
  %543 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  %544 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %57, i32 0, i32 0
  store ptr %543, ptr %544, align 8
  br label %545

545:                                              ; preds = %554, %542
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #10
  %546 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  %547 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.43", ptr %58, i32 0, i32 0
  store ptr %546, ptr %547, align 8
  %548 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %58) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #10
  br i1 %548, label %550, label %549

549:                                              ; preds = %545
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  br label %560

550:                                              ; preds = %545
  %551 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #10
  %552 = load ptr, ptr %551, align 8, !tbaa !5
  invoke void @_ZN9SumFactor11update_termEj(ptr noundef nonnull align 8 dereferenceable(40) %552, i32 noundef 0)
          to label %553 unwind label %556

553:                                              ; preds = %550
  br label %554

554:                                              ; preds = %553
  %555 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %57) #10
  br label %545, !llvm.loop !38

556:                                              ; preds = %550
  %557 = landingpad { ptr, i32 }
          cleanup
  %558 = extractvalue { ptr, i32 } %557, 0
  store ptr %558, ptr %18, align 8
  %559 = extractvalue { ptr, i32 } %557, 1
  store i32 %559, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #10
  br label %705

560:                                              ; preds = %549
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #10
  %561 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  %562 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.42", ptr %59, i32 0, i32 0
  store ptr %561, ptr %562, align 8
  br label %563

563:                                              ; preds = %572, %560
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #10
  %564 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  %565 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.42", ptr %60, i32 0, i32 0
  store ptr %564, ptr %565, align 8
  %566 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef nonnull align 8 dereferenceable(8) %60) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #10
  br i1 %566, label %568, label %567

567:                                              ; preds = %563
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  br label %578

568:                                              ; preds = %563
  %569 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #10
  %570 = load ptr, ptr %569, align 8, !tbaa !5
  invoke void @_ZN16LikelihoodFactor11update_meanEv(ptr noundef nonnull align 8 dereferenceable(40) %570)
          to label %571 unwind label %574

571:                                              ; preds = %568
  br label %572

572:                                              ; preds = %571
  %573 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #10
  br label %563, !llvm.loop !39

574:                                              ; preds = %568
  %575 = landingpad { ptr, i32 }
          cleanup
  %576 = extractvalue { ptr, i32 } %575, 0
  store ptr %576, ptr %18, align 8
  %577 = extractvalue { ptr, i32 } %575, 1
  store i32 %577, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #10
  br label %705

578:                                              ; preds = %567
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %579

579:                                              ; preds = %608, %578
  %580 = load i32, ptr %13, align 4, !tbaa !9
  %581 = load i32, ptr %14, align 4, !tbaa !9
  %582 = icmp ult i32 %580, %581
  br i1 %582, label %583, label %611

583:                                              ; preds = %579
  %584 = load i32, ptr %13, align 4, !tbaa !9
  %585 = zext i32 %584 to i64
  %586 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %585) #10
  %587 = load ptr, ptr %586, align 8, !tbaa !5
  %588 = getelementptr inbounds %class.Variable, ptr %587, i32 0, i32 0
  %589 = load ptr, ptr %588, align 8, !tbaa !40
  %590 = call noundef double @_ZN8Gaussian6get_muEv(ptr noundef nonnull align 8 dereferenceable(16) %589)
  %591 = load i32, ptr %13, align 4, !tbaa !9
  %592 = zext i32 %591 to i64
  %593 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %592) #10
  %594 = load ptr, ptr %593, align 8, !tbaa !5
  %595 = getelementptr inbounds %class.Player, ptr %594, i32 0, i32 0
  store double %590, ptr %595, align 8, !tbaa !19
  %596 = load i32, ptr %13, align 4, !tbaa !9
  %597 = zext i32 %596 to i64
  %598 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %597) #10
  %599 = load ptr, ptr %598, align 8, !tbaa !5
  %600 = getelementptr inbounds %class.Variable, ptr %599, i32 0, i32 0
  %601 = load ptr, ptr %600, align 8, !tbaa !40
  %602 = call noundef double @_ZN8Gaussian9get_sigmaEv(ptr noundef nonnull align 8 dereferenceable(16) %601)
  %603 = load i32, ptr %13, align 4, !tbaa !9
  %604 = zext i32 %603 to i64
  %605 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %604) #10
  %606 = load ptr, ptr %605, align 8, !tbaa !5
  %607 = getelementptr inbounds %class.Player, ptr %606, i32 0, i32 1
  store double %602, ptr %607, align 8, !tbaa !21
  br label %608

608:                                              ; preds = %583
  %609 = load i32, ptr %13, align 4, !tbaa !9
  %610 = add i32 %609, 1
  store i32 %610, ptr %13, align 4, !tbaa !9
  br label %579, !llvm.loop !51

611:                                              ; preds = %579
  br label %612

612:                                              ; preds = %620, %611
  %613 = call noundef zeroext i1 @_ZNKSt6vectorIP11PriorFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %614 = xor i1 %613, true
  br i1 %614, label %615, label %621

615:                                              ; preds = %612
  %616 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP11PriorFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %617 = load ptr, ptr %616, align 8, !tbaa !5
  %618 = icmp eq ptr %617, null
  br i1 %618, label %620, label %619

619:                                              ; preds = %615
  call void @_ZN11PriorFactorD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %617) #10
  call void @_ZdlPvm(ptr noundef %617, i64 noundef 24) #12
  br label %620

620:                                              ; preds = %619, %615
  call void @_ZNSt6vectorIP11PriorFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  br label %612, !llvm.loop !52

621:                                              ; preds = %612
  br label %622

622:                                              ; preds = %630, %621
  %623 = call noundef zeroext i1 @_ZNKSt6vectorIP16LikelihoodFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  %624 = xor i1 %623, true
  br i1 %624, label %625, label %631

625:                                              ; preds = %622
  %626 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  %627 = load ptr, ptr %626, align 8, !tbaa !5
  %628 = icmp eq ptr %627, null
  br i1 %628, label %630, label %629

629:                                              ; preds = %625
  call void @_ZN16LikelihoodFactorD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %627) #10
  call void @_ZdlPvm(ptr noundef %627, i64 noundef 40) #12
  br label %630

630:                                              ; preds = %629, %625
  call void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  br label %622, !llvm.loop !53

631:                                              ; preds = %622
  br label %632

632:                                              ; preds = %640, %631
  %633 = call noundef zeroext i1 @_ZNKSt6vectorIP9SumFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  %634 = xor i1 %633, true
  br i1 %634, label %635, label %641

635:                                              ; preds = %632
  %636 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  %637 = load ptr, ptr %636, align 8, !tbaa !5
  %638 = icmp eq ptr %637, null
  br i1 %638, label %640, label %639

639:                                              ; preds = %635
  call void @_ZN9SumFactorD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %637) #10
  call void @_ZdlPvm(ptr noundef %637, i64 noundef 40) #12
  br label %640

640:                                              ; preds = %639, %635
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  br label %632, !llvm.loop !54

641:                                              ; preds = %632
  br label %642

642:                                              ; preds = %650, %641
  %643 = call noundef zeroext i1 @_ZNKSt6vectorIP9SumFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  %644 = xor i1 %643, true
  br i1 %644, label %645, label %651

645:                                              ; preds = %642
  %646 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  %647 = load ptr, ptr %646, align 8, !tbaa !5
  %648 = icmp eq ptr %647, null
  br i1 %648, label %650, label %649

649:                                              ; preds = %645
  call void @_ZN9SumFactorD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %647) #10
  call void @_ZdlPvm(ptr noundef %647, i64 noundef 40) #12
  br label %650

650:                                              ; preds = %649, %645
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  br label %642, !llvm.loop !55

651:                                              ; preds = %642
  br label %652

652:                                              ; preds = %663, %651
  %653 = call noundef zeroext i1 @_ZNKSt6vectorIP14TruncateFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #10
  %654 = xor i1 %653, true
  br i1 %654, label %655, label %664

655:                                              ; preds = %652
  %656 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP14TruncateFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #10
  %657 = load ptr, ptr %656, align 8, !tbaa !5
  %658 = icmp eq ptr %657, null
  br i1 %658, label %663, label %659

659:                                              ; preds = %655
  %660 = load ptr, ptr %657, align 8, !tbaa !33
  %661 = getelementptr inbounds ptr, ptr %660, i64 1
  %662 = load ptr, ptr %661, align 8
  call void %662(ptr noundef nonnull align 8 dereferenceable(40) %657) #10
  br label %663

663:                                              ; preds = %659, %655
  call void @_ZNSt6vectorIP14TruncateFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #10
  br label %652, !llvm.loop !56

664:                                              ; preds = %652
  br label %665

665:                                              ; preds = %673, %664
  %666 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  %667 = xor i1 %666, true
  br i1 %667, label %668, label %674

668:                                              ; preds = %665
  %669 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  %670 = load ptr, ptr %669, align 8, !tbaa !5
  %671 = icmp eq ptr %670, null
  br i1 %671, label %673, label %672

672:                                              ; preds = %668
  call void @_ZN8VariableD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %670) #10
  call void @_ZdlPvm(ptr noundef %670, i64 noundef 56) #12
  br label %673

673:                                              ; preds = %672, %668
  call void @_ZNSt6vectorIP8VariableSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  br label %665, !llvm.loop !57

674:                                              ; preds = %665
  br label %675

675:                                              ; preds = %683, %674
  %676 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  %677 = xor i1 %676, true
  br i1 %677, label %678, label %684

678:                                              ; preds = %675
  %679 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  %680 = load ptr, ptr %679, align 8, !tbaa !5
  %681 = icmp eq ptr %680, null
  br i1 %681, label %683, label %682

682:                                              ; preds = %678
  call void @_ZN8VariableD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %680) #10
  call void @_ZdlPvm(ptr noundef %680, i64 noundef 56) #12
  br label %683

683:                                              ; preds = %682, %678
  call void @_ZNSt6vectorIP8VariableSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  br label %675, !llvm.loop !58

684:                                              ; preds = %675
  br label %685

685:                                              ; preds = %693, %684
  %686 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  %687 = xor i1 %686, true
  br i1 %687, label %688, label %694

688:                                              ; preds = %685
  %689 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  %690 = load ptr, ptr %689, align 8, !tbaa !5
  %691 = icmp eq ptr %690, null
  br i1 %691, label %693, label %692

692:                                              ; preds = %688
  call void @_ZN8VariableD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %690) #10
  call void @_ZdlPvm(ptr noundef %690, i64 noundef 56) #12
  br label %693

693:                                              ; preds = %692, %688
  call void @_ZNSt6vectorIP8VariableSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  br label %685, !llvm.loop !59

694:                                              ; preds = %685
  br label %695

695:                                              ; preds = %703, %694
  %696 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  %697 = xor i1 %696, true
  br i1 %697, label %698, label %704

698:                                              ; preds = %695
  %699 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  %700 = load ptr, ptr %699, align 8, !tbaa !5
  %701 = icmp eq ptr %700, null
  br i1 %701, label %703, label %702

702:                                              ; preds = %698
  call void @_ZN8VariableD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %700) #10
  call void @_ZdlPvm(ptr noundef %700, i64 noundef 56) #12
  br label %703

703:                                              ; preds = %702, %698
  call void @_ZNSt6vectorIP8VariableSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  br label %695, !llvm.loop !60

704:                                              ; preds = %695
  call void @_ZNSt6vectorIP14TruncateFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #10
  call void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  call void @_ZNSt6vectorIP11PriorFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #10
  ret void

705:                                              ; preds = %574, %556, %534, %513, %492, %470, %452, %434, %419
  call void @_ZNSt6vectorIP14TruncateFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #10
  br label %706

706:                                              ; preds = %705, %360
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %37) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %37) #10
  br label %707

707:                                              ; preds = %706, %294
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #10
  br label %708

708:                                              ; preds = %707, %241
  call void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  br label %709

709:                                              ; preds = %708, %208
  call void @_ZNSt6vectorIP11PriorFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #10
  br label %710

710:                                              ; preds = %709, %151, %128, %119, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #10
  br label %711

711:                                              ; preds = %710
  %712 = load ptr, ptr %18, align 8
  %713 = load i32, ptr %19, align 4
  %714 = insertvalue { ptr, i32 } poison, ptr %712, 0
  %715 = insertvalue { ptr, i32 } %714, i32 %713, 1
  resume { ptr, i32 } %715
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP6PlayerSt6vectorIS3_SaIS3_EEEE13player_sorterEvT_SA_T0_(ptr, ptr) #7

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16LikelihoodFactorC2EP8VariableS1_d(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef) unnamed_addr #5 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18TruncateFactorDrawC2EP8Variabled(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, double noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17TruncateFactorWinC2EP8Variabled(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, double noundef) unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN8VariableD1Ev(ptr)

declare void @_ZN11PriorFactorD1Ev(ptr)

declare void @_ZN16LikelihoodFactorD1Ev(ptr)

declare void @_ZN9SumFactorD1Ev(ptr)

declare void @_ZN9SumFactorC1EP8VariablePSt6vectorIS1_SaIS1_EEPS2_IdSaIdEE(ptr, ptr, ptr, ptr)

declare void @_ZN9ConstantsC1Ev(ptr)

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "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 = { nobuiltin nounwind "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 = { nobuiltin allocsize(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 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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, !13, i64 16}
!12 = !{!"_ZTS9Constants", !13, i64 0, !13, i64 8, !13, i64 16}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!12, !13, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !13, i64 0}
!20 = !{!"_ZTS6Player", !13, i64 0, !13, i64 8, !10, i64 16}
!21 = !{!20, !13, i64 8}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = !{!20, !10, i64 16}
!27 = !{!12, !13, i64 8}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = distinct !{!30, !17}
!31 = distinct !{!31, !17}
!32 = distinct !{!32, !17}
!33 = !{!34, !34, i64 0}
!34 = !{!"vtable pointer", !8, i64 0}
!35 = distinct !{!35, !17}
!36 = distinct !{!36, !17}
!37 = distinct !{!37, !17}
!38 = distinct !{!38, !17}
!39 = distinct !{!39, !17}
!40 = !{!41, !6, i64 0}
!41 = !{!"_ZTS8Variable", !6, i64 0, !42, i64 8}
!42 = !{!"_ZTSSt3mapI6FactorP8Gaussian15FactorKeyMapperSaISt4pairIKS0_S2_EEE", !43, i64 0}
!43 = !{!"_ZTSSt8_Rb_treeI6FactorSt4pairIKS0_P8GaussianESt10_Select1stIS5_E15FactorKeyMapperSaIS5_EE", !44, i64 0}
!44 = !{!"_ZTSNSt8_Rb_treeI6FactorSt4pairIKS0_P8GaussianESt10_Select1stIS5_E15FactorKeyMapperSaIS5_EE13_Rb_tree_implIS8_Lb1EEE", !45, i64 0, !47, i64 8}
!45 = !{!"_ZTSSt20_Rb_tree_key_compareI15FactorKeyMapperE", !46, i64 0}
!46 = !{!"_ZTS15FactorKeyMapper"}
!47 = !{!"_ZTSSt15_Rb_tree_header", !48, i64 0, !50, i64 32}
!48 = !{!"_ZTSSt18_Rb_tree_node_base", !49, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!49 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!50 = !{!"long", !7, i64 0}
!51 = distinct !{!51, !17}
!52 = distinct !{!52, !17}
!53 = distinct !{!53, !17}
!54 = distinct !{!54, !17}
!55 = distinct !{!55, !17}
!56 = distinct !{!56, !17}
!57 = distinct !{!57, !17}
!58 = distinct !{!58, !17}
!59 = distinct !{!59, !17}
!60 = distinct !{!60, !17}


; 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.Constants = type { double, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Variable *, std::allocator<Variable *>>::_Vector_impl" }
%"struct.std::_Vector_base<Variable *, std::allocator<Variable *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Variable *, std::allocator<Variable *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Variable *, std::allocator<Variable *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<PriorFactor *, std::allocator<PriorFactor *>>::_Vector_impl" }
%"struct.std::_Vector_base<PriorFactor *, std::allocator<PriorFactor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<PriorFactor *, std::allocator<PriorFactor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<PriorFactor *, std::allocator<PriorFactor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<LikelihoodFactor *, std::allocator<LikelihoodFactor *>>::_Vector_impl" }
%"struct.std::_Vector_base<LikelihoodFactor *, std::allocator<LikelihoodFactor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<LikelihoodFactor *, std::allocator<LikelihoodFactor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<LikelihoodFactor *, std::allocator<LikelihoodFactor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<SumFactor *, std::allocator<SumFactor *>>::_Vector_impl" }
%"struct.std::_Vector_base<SumFactor *, std::allocator<SumFactor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<SumFactor *, std::allocator<SumFactor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SumFactor *, std::allocator<SumFactor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<TruncateFactor *, std::allocator<TruncateFactor *>>::_Vector_impl" }
%"struct.std::_Vector_base<TruncateFactor *, std::allocator<TruncateFactor *>>::_Vector_impl" = type { %"struct.std::_Vector_base<TruncateFactor *, std::allocator<TruncateFactor *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<TruncateFactor *, std::allocator<TruncateFactor *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.41" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.42" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.43" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.44" = type { ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8Gaussian13init_mu_sigmaEdd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16LikelihoodFactor12update_valueEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16LikelihoodFactor11update_meanEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SumFactor10update_sumEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9SumFactor11update_termEj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9TrueSkill14adjust_playersESt6vectorIP6PlayerSaIS2_EE(ptr nocapture noundef nonnull readnone align 1 dereferenceable(1) %0, ptr noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.Constants, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::vector.21", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::vector.26", align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::vector.31", align 8
  %17 = alloca double, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::vector.31", align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.std::vector.36", align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.41", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.42", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator.42", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.43", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.42", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.42", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #10
  call void @_ZN9ConstantsC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %41 = call ptr @_ZNSt6vectorIP6PlayerSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %42 = call ptr @_ZNSt6vectorIP6PlayerSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP6PlayerSt6vectorIS3_SaIS3_EEEE13player_sorterEvT_SA_T0_(ptr %41, ptr %42)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  %43 = call noundef i64 @_ZNKSt6vectorIP6PlayerSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  %44 = trunc i64 %43 to i32
  %45 = getelementptr inbounds i8, ptr %3, i64 16
  %46 = load double, ptr %45, align 8, !tbaa !5
  %47 = fmul double %46, %46
  %48 = load double, ptr %3, align 8, !tbaa !10
  %49 = fmul double %48, %48
  %.not = icmp eq i32 %44, 0
  br i1 %.not, label %.lr.ph163.preheader, label %.lr.ph

.preheader142:                                    ; preds = %63
  %50 = add i32 %44, -1
  %.not222 = icmp eq i32 %50, 0
  br i1 %.not222, label %._crit_edge.thread, label %.lr.ph163.preheader

._crit_edge.thread:                               ; preds = %.preheader142
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #10
  call void @_ZNSt6vectorIP11PriorFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  br label %.lr.ph166.preheader

.lr.ph163.preheader:                              ; preds = %2, %.preheader142
  %51 = phi i32 [ %50, %.preheader142 ], [ -1, %2 ]
  br label %.lr.ph163

.lr.ph:                                           ; preds = %2, %63
  %.0161 = phi i32 [ %64, %63 ], [ 0, %2 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #10
  %52 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #11
          to label %53 unwind label %65

53:                                               ; preds = %.lr.ph
  invoke void @_ZN8VariableC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %52)
          to label %54 unwind label %67

54:                                               ; preds = %53
  store ptr %52, ptr %8, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %55 unwind label %65

55:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  %56 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #11
          to label %57 unwind label %70

57:                                               ; preds = %55
  invoke void @_ZN8VariableC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %56)
          to label %58 unwind label %72

58:                                               ; preds = %57
  store ptr %56, ptr %9, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %59 unwind label %70

59:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  %60 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #11
          to label %61 unwind label %75

61:                                               ; preds = %59
  invoke void @_ZN8VariableC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %60)
          to label %62 unwind label %77

62:                                               ; preds = %61
  store ptr %60, ptr %10, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %63 unwind label %75

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  %64 = add nuw i32 %.0161, 1
  %exitcond.not = icmp eq i32 %64, %44
  br i1 %exitcond.not, label %.preheader142, label %.lr.ph, !llvm.loop !13

65:                                               ; preds = %54, %.lr.ph
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %53
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %52, i64 noundef 56) #12
  br label %69

69:                                               ; preds = %67, %65
  %.pn127 = phi { ptr, i32 } [ %66, %65 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #10
  br label %392

70:                                               ; preds = %58, %55
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %57
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %56, i64 noundef 56) #12
  br label %74

74:                                               ; preds = %72, %70
  %.pn129 = phi { ptr, i32 } [ %71, %70 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br label %392

75:                                               ; preds = %62, %59
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %79

77:                                               ; preds = %61
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %60, i64 noundef 56) #12
  br label %79

79:                                               ; preds = %77, %75
  %.pn131 = phi { ptr, i32 } [ %76, %75 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  br label %392

.lr.ph163:                                        ; preds = %.lr.ph163.preheader, %83
  %.1162 = phi i32 [ %84, %83 ], [ 0, %.lr.ph163.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  %80 = invoke noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #11
          to label %81 unwind label %85

81:                                               ; preds = %.lr.ph163
  invoke void @_ZN8VariableC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %80)
          to label %82 unwind label %87

82:                                               ; preds = %81
  store ptr %80, ptr %11, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %83 unwind label %85

83:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  %84 = add nuw i32 %.1162, 1
  %exitcond252.not = icmp eq i32 %84, %51
  br i1 %exitcond252.not, label %._crit_edge, label %.lr.ph163, !llvm.loop !15

85:                                               ; preds = %82, %.lr.ph163
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

87:                                               ; preds = %81
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %80, i64 noundef 56) #12
  br label %89

89:                                               ; preds = %87, %85
  %.pn125 = phi { ptr, i32 } [ %86, %85 ], [ %88, %87 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  br label %392

._crit_edge:                                      ; preds = %83
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #10
  call void @_ZNSt6vectorIP11PriorFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  br i1 %.not, label %._crit_edge167.thread, label %.lr.ph166.preheader

._crit_edge167.thread:                            ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #10
  call void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  br label %._crit_edge171.thread

.lr.ph166.preheader:                              ; preds = %._crit_edge.thread, %._crit_edge
  %90 = phi i32 [ 0, %._crit_edge.thread ], [ %51, %._crit_edge ]
  %.not222283285 = phi i1 [ true, %._crit_edge.thread ], [ false, %._crit_edge ]
  %wide.trip.count = and i64 %43, 4294967295
  br label %.lr.ph166

.lr.ph166:                                        ; preds = %.lr.ph166.preheader, %104
  %indvars.iv = phi i64 [ 0, %.lr.ph166.preheader ], [ %indvars.iv.next, %104 ]
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #10
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #10
  %94 = load ptr, ptr %93, align 8, !tbaa !11
  %95 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #11
          to label %96 unwind label %105

96:                                               ; preds = %.lr.ph166
  call void @_ZN8GaussianC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %95)
  %97 = load double, ptr %92, align 8, !tbaa !16
  %98 = getelementptr inbounds i8, ptr %92, i64 8
  %99 = load double, ptr %98, align 8, !tbaa !19
  %100 = call double @llvm.fmuladd.f64(double %99, double %99, double %47)
  %sqrt = call double @llvm.sqrt.f64(double %100)
  call void @_ZN8Gaussian13init_mu_sigmaEdd(ptr noundef nonnull align 8 dereferenceable(16) %95, double noundef %97, double noundef %sqrt)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  %101 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
          to label %102 unwind label %107

102:                                              ; preds = %96
  invoke void @_ZN11PriorFactorC2EP8VariableP8Gaussian(ptr noundef nonnull align 8 dereferenceable(24) %101, ptr noundef %94, ptr noundef nonnull %95)
          to label %103 unwind label %109

103:                                              ; preds = %102
  store ptr %101, ptr %13, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIP11PriorFactorSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %104 unwind label %107

104:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond254.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond254.not, label %._crit_edge167, label %.lr.ph166, !llvm.loop !20

105:                                              ; preds = %.lr.ph166
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %391

107:                                              ; preds = %103, %96
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %111

109:                                              ; preds = %102
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %101, i64 noundef 24) #12
  br label %111

111:                                              ; preds = %109, %107
  %.pn121 = phi { ptr, i32 } [ %108, %107 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  br label %391

._crit_edge167:                                   ; preds = %104
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #10
  call void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  br i1 %.not, label %._crit_edge171.thread, label %.lr.ph170.preheader

.lr.ph170.preheader:                              ; preds = %._crit_edge167
  %wide.trip.count258 = and i64 %43, 4294967295
  br label %.lr.ph170

.lr.ph170:                                        ; preds = %.lr.ph170.preheader, %119
  %indvars.iv255 = phi i64 [ 0, %.lr.ph170.preheader ], [ %indvars.iv.next256, %119 ]
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv255) #10
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv255) #10
  %115 = load ptr, ptr %114, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #10
  %116 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #11
          to label %117 unwind label %120

117:                                              ; preds = %.lr.ph170
  invoke void @_ZN16LikelihoodFactorC2EP8VariableS1_d(ptr noundef nonnull align 8 dereferenceable(40) %116, ptr noundef %113, ptr noundef %115, double noundef %49)
          to label %118 unwind label %122

118:                                              ; preds = %117
  store ptr %116, ptr %15, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %119 unwind label %120

119:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  %indvars.iv.next256 = add nuw nsw i64 %indvars.iv255, 1
  %exitcond259.not = icmp eq i64 %indvars.iv.next256, %wide.trip.count258
  br i1 %exitcond259.not, label %._crit_edge171, label %.lr.ph170, !llvm.loop !21

120:                                              ; preds = %118, %.lr.ph170
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %124

122:                                              ; preds = %117
  %123 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %116, i64 noundef 40) #12
  br label %124

124:                                              ; preds = %122, %120
  %.pn118 = phi { ptr, i32 } [ %121, %120 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #10
  br label %390

._crit_edge171.thread:                            ; preds = %._crit_edge167.thread, %._crit_edge167
  %.not222283286288.ph = phi i1 [ %.not222283285, %._crit_edge167 ], [ false, %._crit_edge167.thread ]
  %.ph = phi i32 [ %90, %._crit_edge167 ], [ %51, %._crit_edge167.thread ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  br i1 %.not222283286288.ph, label %._crit_edge179.thread, label %.lr.ph178.preheader

._crit_edge171:                                   ; preds = %119
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  br i1 %.not, label %._crit_edge175, label %.lr.ph174.preheader

.lr.ph174.preheader:                              ; preds = %._crit_edge171
  %wide.trip.count263 = and i64 %43, 4294967295
  br label %.lr.ph174

.lr.ph174:                                        ; preds = %.lr.ph174.preheader, %137
  %indvars.iv260 = phi i64 [ 0, %.lr.ph174.preheader ], [ %indvars.iv.next261, %137 ]
  %125 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
          to label %126 unwind label %138

126:                                              ; preds = %.lr.ph174
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %125, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %125) #10
  %127 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
          to label %128 unwind label %140

128:                                              ; preds = %126
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %127) #10
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv260) #10
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef nonnull align 8 dereferenceable(8) %129)
          to label %130 unwind label %140

130:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #10
  store double 1.000000e+00, ptr %17, align 8, !tbaa !22
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %127, ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %131 unwind label %142

131:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  %132 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #11
          to label %133 unwind label %144

133:                                              ; preds = %131
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv260) #10
  %135 = load ptr, ptr %134, align 8, !tbaa !11
  invoke void @_ZN9SumFactorC1EP8VariablePSt6vectorIS1_SaIS1_EEPS2_IdSaIdEE(ptr noundef nonnull align 8 dereferenceable(40) %132, ptr noundef %135, ptr noundef nonnull %125, ptr noundef nonnull %127)
          to label %136 unwind label %146

136:                                              ; preds = %133
  store ptr %132, ptr %18, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIP9SumFactorSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %137 unwind label %144

137:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  %indvars.iv.next261 = add nuw nsw i64 %indvars.iv260, 1
  %exitcond264.not = icmp eq i64 %indvars.iv.next261, %wide.trip.count263
  br i1 %exitcond264.not, label %._crit_edge175, label %.lr.ph174, !llvm.loop !23

138:                                              ; preds = %.lr.ph174
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %389

140:                                              ; preds = %128, %126
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %389

142:                                              ; preds = %130
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  br label %389

144:                                              ; preds = %136, %131
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %148

146:                                              ; preds = %133
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %132, i64 noundef 40) #12
  br label %148

148:                                              ; preds = %146, %144
  %.pn113 = phi { ptr, i32 } [ %145, %144 ], [ %147, %146 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  br label %389

._crit_edge175:                                   ; preds = %137, %._crit_edge171
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  br i1 %.not222283285, label %._crit_edge179.thread, label %.lr.ph178.preheader

.lr.ph178.preheader:                              ; preds = %._crit_edge171.thread, %._crit_edge175
  %149 = phi i32 [ %.ph, %._crit_edge171.thread ], [ %90, %._crit_edge175 ]
  %wide.trip.count268 = zext i32 %149 to i64
  br label %.lr.ph178

.lr.ph178:                                        ; preds = %.lr.ph178.preheader, %165
  %indvars.iv265 = phi i64 [ 0, %.lr.ph178.preheader ], [ %indvars.iv.next266, %165 ]
  %150 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
          to label %151 unwind label %166

151:                                              ; preds = %.lr.ph178
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %150, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIP8VariableSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %150) #10
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv265) #10
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %150, ptr noundef nonnull align 8 dereferenceable(8) %152)
          to label %153 unwind label %166

153:                                              ; preds = %151
  %indvars.iv.next266 = add nuw nsw i64 %indvars.iv265, 1
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv.next266) #10
  invoke void @_ZNSt6vectorIP8VariableSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %150, ptr noundef nonnull align 8 dereferenceable(8) %154)
          to label %155 unwind label %166

155:                                              ; preds = %153
  %156 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
          to label %157 unwind label %168

157:                                              ; preds = %155
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %156) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #10
  store double 1.000000e+00, ptr %20, align 8, !tbaa !22
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %156, ptr noundef nonnull align 8 dereferenceable(8) %20)
          to label %158 unwind label %170

158:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #10
  store double -1.000000e+00, ptr %21, align 8, !tbaa !22
  invoke void @_ZNSt6vectorIdSaIdEE9push_backEOd(ptr noundef nonnull align 8 dereferenceable(24) %156, ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %159 unwind label %172

159:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #10
  %160 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #11
          to label %161 unwind label %174

161:                                              ; preds = %159
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv265) #10
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  invoke void @_ZN9SumFactorC1EP8VariablePSt6vectorIS1_SaIS1_EEPS2_IdSaIdEE(ptr noundef nonnull align 8 dereferenceable(40) %160, ptr noundef %163, ptr noundef nonnull %150, ptr noundef nonnull %156)
          to label %164 unwind label %176

164:                                              ; preds = %161
  store ptr %160, ptr %22, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIP9SumFactorSaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %165 unwind label %174

165:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #10
  %exitcond269.not = icmp eq i64 %indvars.iv.next266, %wide.trip.count268
  br i1 %exitcond269.not, label %._crit_edge179, label %.lr.ph178, !llvm.loop !24

166:                                              ; preds = %153, %151, %.lr.ph178
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %388

168:                                              ; preds = %155
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %388

170:                                              ; preds = %157
  %171 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #10
  br label %388

172:                                              ; preds = %158
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #10
  br label %388

174:                                              ; preds = %164, %159
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %178

176:                                              ; preds = %161
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %160, i64 noundef 40) #12
  br label %178

178:                                              ; preds = %176, %174
  %.pn108 = phi { ptr, i32 } [ %175, %174 ], [ %177, %176 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #10
  br label %388

._crit_edge179.thread:                            ; preds = %._crit_edge171.thread, %._crit_edge175
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #10
  call void @_ZNSt6vectorIP14TruncateFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  br label %._crit_edge183

._crit_edge179:                                   ; preds = %165
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #10
  call void @_ZNSt6vectorIP14TruncateFactorSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %179 = getelementptr inbounds i8, ptr %3, i64 8
  %wide.trip.count273 = zext i32 %149 to i64
  br label %180

180:                                              ; preds = %._crit_edge179, %209
  %indvars.iv270 = phi i64 [ 0, %._crit_edge179 ], [ %indvars.iv.next271, %209 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #10
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv270) #10
  %182 = load ptr, ptr %181, align 8, !tbaa !11
  %183 = getelementptr inbounds i8, ptr %182, i64 16
  %184 = load i32, ptr %183, align 8, !tbaa !25
  %indvars.iv.next271 = add nuw nsw i64 %indvars.iv270, 1
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv.next271) #10
  %186 = load ptr, ptr %185, align 8, !tbaa !11
  %187 = getelementptr inbounds i8, ptr %186, i64 16
  %188 = load i32, ptr %187, align 8, !tbaa !25
  %189 = icmp eq i32 %184, %188
  br i1 %189, label %190, label %200

190:                                              ; preds = %180
  %191 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #11
          to label %192 unwind label %196

192:                                              ; preds = %190
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv270) #10
  %194 = load ptr, ptr %193, align 8, !tbaa !11
  %195 = load double, ptr %179, align 8, !tbaa !26
  invoke void @_ZN18TruncateFactorDrawC2EP8Variabled(ptr noundef nonnull align 8 dereferenceable(40) %191, ptr noundef %194, double noundef %195)
          to label %208 unwind label %198

196:                                              ; preds = %208, %200, %190
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %210

198:                                              ; preds = %192
  %199 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %191, i64 noundef 40) #12
  br label %210

200:                                              ; preds = %180
  %201 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #11
          to label %202 unwind label %196

202:                                              ; preds = %200
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv270) #10
  %204 = load ptr, ptr %203, align 8, !tbaa !11
  %205 = load double, ptr %179, align 8, !tbaa !26
  invoke void @_ZN17TruncateFactorWinC2EP8Variabled(ptr noundef nonnull align 8 dereferenceable(40) %201, ptr noundef %204, double noundef %205)
          to label %208 unwind label %206

206:                                              ; preds = %202
  %207 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %201, i64 noundef 40) #12
  br label %210

208:                                              ; preds = %202, %192
  %storemerge = phi ptr [ %191, %192 ], [ %201, %202 ]
  store ptr %storemerge, ptr %24, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIP14TruncateFactorSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %209 unwind label %196

209:                                              ; preds = %208
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #10
  %exitcond274.not = icmp eq i64 %indvars.iv.next271, %wide.trip.count273
  br i1 %exitcond274.not, label %._crit_edge183, label %180, !llvm.loop !27

210:                                              ; preds = %206, %198, %196
  %.pn = phi { ptr, i32 } [ %197, %196 ], [ %199, %198 ], [ %207, %206 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #10
  br label %387

._crit_edge183:                                   ; preds = %209, %._crit_edge179.thread
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #10
  %211 = call ptr @_ZNSt6vectorIP11PriorFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  store ptr %211, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #10
  %212 = call ptr @_ZNSt6vectorIP11PriorFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  store ptr %212, ptr %26, align 8
  %213 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP11PriorFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #10
  br i1 %213, label %.lr.ph185, label %._crit_edge186

._crit_edge186:                                   ; preds = %219, %._crit_edge183
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #10
  %214 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  store ptr %214, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #10
  %215 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  store ptr %215, ptr %28, align 8
  %216 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #10
  br i1 %216, label %.lr.ph188, label %._crit_edge189

.lr.ph185:                                        ; preds = %._crit_edge183, %219
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP11PriorFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #10
  %218 = load ptr, ptr %217, align 8, !tbaa !11
  invoke void @_ZN11PriorFactor5startEv(ptr noundef nonnull align 8 dereferenceable(24) %218)
          to label %219 unwind label %223

219:                                              ; preds = %.lr.ph185
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP11PriorFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #10
  %221 = call ptr @_ZNSt6vectorIP11PriorFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  store ptr %221, ptr %26, align 8
  %222 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP11PriorFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #10
  br i1 %222, label %.lr.ph185, label %._crit_edge186, !llvm.loop !28

223:                                              ; preds = %.lr.ph185
  %224 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #10
  br label %387

._crit_edge189:                                   ; preds = %230, %._crit_edge186
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #10
  %225 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  store ptr %225, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #10
  %226 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  store ptr %226, ptr %30, align 8
  %227 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #10
  br i1 %227, label %.lr.ph191, label %._crit_edge192

.lr.ph188:                                        ; preds = %._crit_edge186, %230
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #10
  %229 = load ptr, ptr %228, align 8, !tbaa !11
  invoke void @_ZN16LikelihoodFactor12update_valueEv(ptr noundef nonnull align 8 dereferenceable(40) %229)
          to label %230 unwind label %234

230:                                              ; preds = %.lr.ph188
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #10
  %232 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  store ptr %232, ptr %28, align 8
  %233 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #10
  br i1 %233, label %.lr.ph188, label %._crit_edge189, !llvm.loop !29

234:                                              ; preds = %.lr.ph188
  %235 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #10
  br label %387

._crit_edge192:                                   ; preds = %238, %._crit_edge189
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #10
  br label %244

.lr.ph191:                                        ; preds = %._crit_edge189, %238
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  %237 = load ptr, ptr %236, align 8, !tbaa !11
  invoke void @_ZN9SumFactor10update_sumEv(ptr noundef nonnull align 8 dereferenceable(40) %237)
          to label %238 unwind label %242

238:                                              ; preds = %.lr.ph191
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #10
  %240 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  store ptr %240, ptr %30, align 8
  %241 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #10
  br i1 %241, label %.lr.ph191, label %._crit_edge192, !llvm.loop !30

242:                                              ; preds = %.lr.ph191
  %243 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #10
  br label %387

244:                                              ; preds = %._crit_edge192, %._crit_edge201
  %.7202 = phi i32 [ 0, %._crit_edge192 ], [ %273, %._crit_edge201 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #10
  %245 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  store ptr %245, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #10
  %246 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  store ptr %246, ptr %32, align 8
  %247 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #10
  br i1 %247, label %.lr.ph194, label %._crit_edge195

._crit_edge195:                                   ; preds = %253, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #10
  %248 = call ptr @_ZNSt6vectorIP14TruncateFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  store ptr %248, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #10
  %249 = call ptr @_ZNSt6vectorIP14TruncateFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  store ptr %249, ptr %34, align 8
  %250 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP14TruncateFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #10
  br i1 %250, label %.lr.ph197, label %._crit_edge198

.lr.ph194:                                        ; preds = %244, %253
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #10
  %252 = load ptr, ptr %251, align 8, !tbaa !11
  invoke void @_ZN9SumFactor10update_sumEv(ptr noundef nonnull align 8 dereferenceable(40) %252)
          to label %253 unwind label %257

253:                                              ; preds = %.lr.ph194
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #10
  %255 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  store ptr %255, ptr %32, align 8
  %256 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #10
  br i1 %256, label %.lr.ph194, label %._crit_edge195, !llvm.loop !31

257:                                              ; preds = %.lr.ph194
  %258 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #10
  br label %387

._crit_edge198:                                   ; preds = %267, %._crit_edge195
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #10
  %259 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  store ptr %259, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #10
  %260 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  store ptr %260, ptr %36, align 8
  %261 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #10
  br i1 %261, label %.lr.ph200, label %._crit_edge201

.lr.ph197:                                        ; preds = %._crit_edge195, %267
  %262 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP14TruncateFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #10
  %263 = load ptr, ptr %262, align 8, !tbaa !11
  %264 = load ptr, ptr %263, align 8, !tbaa !32
  %265 = getelementptr inbounds i8, ptr %264, i64 16
  %266 = load ptr, ptr %265, align 8
  invoke void %266(ptr noundef nonnull align 8 dereferenceable(40) %263)
          to label %267 unwind label %271

267:                                              ; preds = %.lr.ph197
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP14TruncateFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #10
  %269 = call ptr @_ZNSt6vectorIP14TruncateFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  store ptr %269, ptr %34, align 8
  %270 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP14TruncateFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #10
  br i1 %270, label %.lr.ph197, label %._crit_edge198, !llvm.loop !34

271:                                              ; preds = %.lr.ph197
  %272 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #10
  br label %387

._crit_edge201:                                   ; preds = %279, %._crit_edge198
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #10
  %273 = add nuw nsw i32 %.7202, 1
  %exitcond275.not = icmp eq i32 %273, 5
  br i1 %exitcond275.not, label %285, label %244, !llvm.loop !35

.lr.ph200:                                        ; preds = %._crit_edge198, %279
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #10
  %275 = load ptr, ptr %274, align 8, !tbaa !11
  invoke void @_ZN9SumFactor11update_termEj(ptr noundef nonnull align 8 dereferenceable(40) %275, i32 noundef 0)
          to label %276 unwind label %283

276:                                              ; preds = %.lr.ph200
  %277 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #10
  %278 = load ptr, ptr %277, align 8, !tbaa !11
  invoke void @_ZN9SumFactor11update_termEj(ptr noundef nonnull align 8 dereferenceable(40) %278, i32 noundef 1)
          to label %279 unwind label %283

279:                                              ; preds = %276
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #10
  %281 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  store ptr %281, ptr %36, align 8
  %282 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #10
  br i1 %282, label %.lr.ph200, label %._crit_edge201, !llvm.loop !36

283:                                              ; preds = %276, %.lr.ph200
  %284 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #10
  br label %387

285:                                              ; preds = %._crit_edge201
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %37) #10
  %286 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  store ptr %286, ptr %37, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #10
  %287 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  store ptr %287, ptr %38, align 8
  %288 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #10
  br i1 %288, label %.lr.ph204, label %._crit_edge205

._crit_edge205:                                   ; preds = %294, %285
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #10
  %289 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  store ptr %289, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #10
  %290 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  store ptr %290, ptr %40, align 8
  %291 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #10
  br i1 %291, label %.lr.ph207, label %._crit_edge208

.lr.ph204:                                        ; preds = %285, %294
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #10
  %293 = load ptr, ptr %292, align 8, !tbaa !11
  invoke void @_ZN9SumFactor11update_termEj(ptr noundef nonnull align 8 dereferenceable(40) %293, i32 noundef 0)
          to label %294 unwind label %298

294:                                              ; preds = %.lr.ph204
  %295 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP9SumFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %37) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #10
  %296 = call ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  store ptr %296, ptr %38, align 8
  %297 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP9SumFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #10
  br i1 %297, label %.lr.ph204, label %._crit_edge205, !llvm.loop !37

298:                                              ; preds = %.lr.ph204
  %299 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %37) #10
  br label %387

._crit_edge208:                                   ; preds = %302, %._crit_edge205
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #10
  br i1 %.not, label %.preheader141, label %.lr.ph211.preheader

.lr.ph211.preheader:                              ; preds = %._crit_edge208
  %wide.trip.count279 = and i64 %43, 4294967295
  br label %.lr.ph211

.lr.ph207:                                        ; preds = %._crit_edge205, %302
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #10
  %301 = load ptr, ptr %300, align 8, !tbaa !11
  invoke void @_ZN16LikelihoodFactor11update_meanEv(ptr noundef nonnull align 8 dereferenceable(40) %301)
          to label %302 unwind label %306

302:                                              ; preds = %.lr.ph207
  %303 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %39) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #10
  %304 = call ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  store ptr %304, ptr %40, align 8
  %305 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPP16LikelihoodFactorSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #10
  br i1 %305, label %.lr.ph207, label %._crit_edge208, !llvm.loop !38

306:                                              ; preds = %.lr.ph207
  %307 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #10
  br label %387

.preheader141:                                    ; preds = %.lr.ph211, %._crit_edge208
  %308 = call noundef zeroext i1 @_ZNKSt6vectorIP11PriorFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  br i1 %308, label %.preheader140, label %.lr.ph212

.lr.ph211:                                        ; preds = %.lr.ph211.preheader, %.lr.ph211
  %indvars.iv276 = phi i64 [ 0, %.lr.ph211.preheader ], [ %indvars.iv.next277, %.lr.ph211 ]
  %309 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv276) #10
  %310 = load ptr, ptr %309, align 8, !tbaa !11
  %311 = load ptr, ptr %310, align 8, !tbaa !39
  %312 = call noundef double @_ZN8Gaussian6get_muEv(ptr noundef nonnull align 8 dereferenceable(16) %311)
  %313 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv276) #10
  %314 = load ptr, ptr %313, align 8, !tbaa !11
  store double %312, ptr %314, align 8, !tbaa !16
  %315 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv276) #10
  %316 = load ptr, ptr %315, align 8, !tbaa !11
  %317 = load ptr, ptr %316, align 8, !tbaa !39
  %318 = call noundef double @_ZN8Gaussian9get_sigmaEv(ptr noundef nonnull align 8 dereferenceable(16) %317)
  %319 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP6PlayerSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv276) #10
  %320 = load ptr, ptr %319, align 8, !tbaa !11
  %321 = getelementptr inbounds i8, ptr %320, i64 8
  store double %318, ptr %321, align 8, !tbaa !19
  %indvars.iv.next277 = add nuw nsw i64 %indvars.iv276, 1
  %exitcond280.not = icmp eq i64 %indvars.iv.next277, %wide.trip.count279
  br i1 %exitcond280.not, label %.preheader141, label %.lr.ph211, !llvm.loop !50

.preheader140:                                    ; preds = %327, %.preheader141
  %322 = call noundef zeroext i1 @_ZNKSt6vectorIP16LikelihoodFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  br i1 %322, label %.preheader139, label %.lr.ph213

.lr.ph212:                                        ; preds = %.preheader141, %327
  %323 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP11PriorFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  %324 = load ptr, ptr %323, align 8, !tbaa !11
  %325 = icmp eq ptr %324, null
  br i1 %325, label %327, label %326

326:                                              ; preds = %.lr.ph212
  call void @_ZN11PriorFactorD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %324) #10
  call void @_ZdlPvm(ptr noundef nonnull %324, i64 noundef 24) #12
  br label %327

327:                                              ; preds = %326, %.lr.ph212
  call void @_ZNSt6vectorIP11PriorFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  %328 = call noundef zeroext i1 @_ZNKSt6vectorIP11PriorFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  br i1 %328, label %.preheader140, label %.lr.ph212, !llvm.loop !51

.preheader139:                                    ; preds = %334, %.preheader140
  %329 = call noundef zeroext i1 @_ZNKSt6vectorIP9SumFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  br i1 %329, label %.preheader138, label %.lr.ph214

.lr.ph213:                                        ; preds = %.preheader140, %334
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  %331 = load ptr, ptr %330, align 8, !tbaa !11
  %332 = icmp eq ptr %331, null
  br i1 %332, label %334, label %333

333:                                              ; preds = %.lr.ph213
  call void @_ZN16LikelihoodFactorD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %331) #10
  call void @_ZdlPvm(ptr noundef nonnull %331, i64 noundef 40) #12
  br label %334

334:                                              ; preds = %333, %.lr.ph213
  call void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  %335 = call noundef zeroext i1 @_ZNKSt6vectorIP16LikelihoodFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  br i1 %335, label %.preheader139, label %.lr.ph213, !llvm.loop !52

.preheader138:                                    ; preds = %341, %.preheader139
  %336 = call noundef zeroext i1 @_ZNKSt6vectorIP9SumFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  br i1 %336, label %.preheader137, label %.lr.ph215

.lr.ph214:                                        ; preds = %.preheader139, %341
  %337 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  %338 = load ptr, ptr %337, align 8, !tbaa !11
  %339 = icmp eq ptr %338, null
  br i1 %339, label %341, label %340

340:                                              ; preds = %.lr.ph214
  call void @_ZN9SumFactorD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %338) #10
  call void @_ZdlPvm(ptr noundef nonnull %338, i64 noundef 40) #12
  br label %341

341:                                              ; preds = %340, %.lr.ph214
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  %342 = call noundef zeroext i1 @_ZNKSt6vectorIP9SumFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  br i1 %342, label %.preheader138, label %.lr.ph214, !llvm.loop !53

.preheader137:                                    ; preds = %348, %.preheader138
  %343 = call noundef zeroext i1 @_ZNKSt6vectorIP14TruncateFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  br i1 %343, label %.preheader136, label %.lr.ph216

.lr.ph215:                                        ; preds = %.preheader138, %348
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9SumFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  %345 = load ptr, ptr %344, align 8, !tbaa !11
  %346 = icmp eq ptr %345, null
  br i1 %346, label %348, label %347

347:                                              ; preds = %.lr.ph215
  call void @_ZN9SumFactorD1Ev(ptr noundef nonnull align 8 dereferenceable(40) %345) #10
  call void @_ZdlPvm(ptr noundef nonnull %345, i64 noundef 40) #12
  br label %348

348:                                              ; preds = %347, %.lr.ph215
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  %349 = call noundef zeroext i1 @_ZNKSt6vectorIP9SumFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  br i1 %349, label %.preheader137, label %.lr.ph215, !llvm.loop !54

.preheader136:                                    ; preds = %358, %.preheader137
  %350 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  br i1 %350, label %.preheader135, label %.lr.ph217

.lr.ph216:                                        ; preds = %.preheader137, %358
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP14TruncateFactorSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %352 = load ptr, ptr %351, align 8, !tbaa !11
  %353 = icmp eq ptr %352, null
  br i1 %353, label %358, label %354

354:                                              ; preds = %.lr.ph216
  %355 = load ptr, ptr %352, align 8, !tbaa !32
  %356 = getelementptr inbounds i8, ptr %355, i64 8
  %357 = load ptr, ptr %356, align 8
  call void %357(ptr noundef nonnull align 8 dereferenceable(40) %352) #10
  br label %358

358:                                              ; preds = %354, %.lr.ph216
  call void @_ZNSt6vectorIP14TruncateFactorSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %359 = call noundef zeroext i1 @_ZNKSt6vectorIP14TruncateFactorSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  br i1 %359, label %.preheader136, label %.lr.ph216, !llvm.loop !55

.preheader135:                                    ; preds = %365, %.preheader136
  %360 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  br i1 %360, label %.preheader134, label %.lr.ph218

.lr.ph217:                                        ; preds = %.preheader136, %365
  %361 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %362 = load ptr, ptr %361, align 8, !tbaa !11
  %363 = icmp eq ptr %362, null
  br i1 %363, label %365, label %364

364:                                              ; preds = %.lr.ph217
  call void @_ZN8VariableD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %362) #10
  call void @_ZdlPvm(ptr noundef nonnull %362, i64 noundef 56) #12
  br label %365

365:                                              ; preds = %364, %.lr.ph217
  call void @_ZNSt6vectorIP8VariableSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %366 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  br i1 %366, label %.preheader135, label %.lr.ph217, !llvm.loop !56

.preheader134:                                    ; preds = %372, %.preheader135
  %367 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  br i1 %367, label %.preheader, label %.lr.ph219

.lr.ph218:                                        ; preds = %.preheader135, %372
  %368 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  %369 = load ptr, ptr %368, align 8, !tbaa !11
  %370 = icmp eq ptr %369, null
  br i1 %370, label %372, label %371

371:                                              ; preds = %.lr.ph218
  call void @_ZN8VariableD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %369) #10
  call void @_ZdlPvm(ptr noundef nonnull %369, i64 noundef 56) #12
  br label %372

372:                                              ; preds = %371, %.lr.ph218
  call void @_ZNSt6vectorIP8VariableSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  %373 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  br i1 %373, label %.preheader134, label %.lr.ph218, !llvm.loop !57

.preheader:                                       ; preds = %379, %.preheader134
  %374 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  br i1 %374, label %._crit_edge221, label %.lr.ph220

.lr.ph219:                                        ; preds = %.preheader134, %379
  %375 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  %376 = load ptr, ptr %375, align 8, !tbaa !11
  %377 = icmp eq ptr %376, null
  br i1 %377, label %379, label %378

378:                                              ; preds = %.lr.ph219
  call void @_ZN8VariableD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %376) #10
  call void @_ZdlPvm(ptr noundef nonnull %376, i64 noundef 56) #12
  br label %379

379:                                              ; preds = %378, %.lr.ph219
  call void @_ZNSt6vectorIP8VariableSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  %380 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  br i1 %380, label %.preheader, label %.lr.ph219, !llvm.loop !58

.lr.ph220:                                        ; preds = %.preheader, %385
  %381 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP8VariableSaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  %382 = load ptr, ptr %381, align 8, !tbaa !11
  %383 = icmp eq ptr %382, null
  br i1 %383, label %385, label %384

384:                                              ; preds = %.lr.ph220
  call void @_ZN8VariableD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %382) #10
  call void @_ZdlPvm(ptr noundef nonnull %382, i64 noundef 56) #12
  br label %385

385:                                              ; preds = %384, %.lr.ph220
  call void @_ZNSt6vectorIP8VariableSaIS1_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  %386 = call noundef zeroext i1 @_ZNKSt6vectorIP8VariableSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  br i1 %386, label %._crit_edge221, label %.lr.ph220, !llvm.loop !59

._crit_edge221:                                   ; preds = %385, %.preheader
  call void @_ZNSt6vectorIP14TruncateFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #10
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  call void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #10
  call void @_ZNSt6vectorIP11PriorFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #10
  ret void

387:                                              ; preds = %306, %298, %283, %271, %257, %242, %234, %223, %210
  %.pn.pn = phi { ptr, i32 } [ %.pn, %210 ], [ %224, %223 ], [ %235, %234 ], [ %243, %242 ], [ %258, %257 ], [ %272, %271 ], [ %284, %283 ], [ %299, %298 ], [ %307, %306 ]
  call void @_ZNSt6vectorIP14TruncateFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #10
  br label %388

388:                                              ; preds = %166, %178, %172, %170, %168, %387
  %.pn108.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %387 ], [ %167, %166 ], [ %.pn108, %178 ], [ %173, %172 ], [ %171, %170 ], [ %169, %168 ]
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #10
  br label %389

389:                                              ; preds = %138, %148, %142, %140, %388
  %.pn113.pn.pn.pn = phi { ptr, i32 } [ %.pn108.pn.pn.pn, %388 ], [ %139, %138 ], [ %.pn113, %148 ], [ %143, %142 ], [ %141, %140 ]
  call void @_ZNSt6vectorIP9SumFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  br label %390

390:                                              ; preds = %389, %124
  %.pn118.pn = phi { ptr, i32 } [ %.pn118, %124 ], [ %.pn113.pn.pn.pn, %389 ]
  call void @_ZNSt6vectorIP16LikelihoodFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #10
  br label %391

391:                                              ; preds = %105, %111, %390
  %.pn121.pn.pn = phi { ptr, i32 } [ %.pn118.pn, %390 ], [ %.pn121, %111 ], [ %106, %105 ]
  call void @_ZNSt6vectorIP11PriorFactorSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #10
  br label %392

392:                                              ; preds = %391, %89, %79, %74, %69
  %.pn131.pn = phi { ptr, i32 } [ %.pn131, %79 ], [ %.pn129, %74 ], [ %.pn127, %69 ], [ %.pn125, %89 ], [ %.pn121.pn.pn, %391 ]
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @_ZNSt6vectorIP8VariableSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #10
  resume { ptr, i32 } %.pn131.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPP6PlayerSt6vectorIS3_SaIS3_EEEE13player_sorterEvT_SA_T0_(ptr, ptr) local_unnamed_addr #6

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN16LikelihoodFactorC2EP8VariableS1_d(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN18TruncateFactorDrawC2EP8Variabled(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, double noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17TruncateFactorWinC2EP8Variabled(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, double noundef) unnamed_addr #4 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare void @_ZN8VariableD1Ev(ptr) local_unnamed_addr

declare void @_ZN11PriorFactorD1Ev(ptr) local_unnamed_addr

declare void @_ZN16LikelihoodFactorD1Ev(ptr) local_unnamed_addr

declare void @_ZN9SumFactorD1Ev(ptr) local_unnamed_addr

declare void @_ZN9SumFactorC1EP8VariablePSt6vectorIS1_SaIS1_EEPS2_IdSaIdEE(ptr, ptr, ptr, ptr) local_unnamed_addr

declare void @_ZN9ConstantsC1Ev(ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #9

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin nounwind "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 = { nobuiltin allocsize(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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin 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, !7, i64 16}
!6 = !{!"_ZTS9Constants", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !7, i64 0}
!17 = !{!"_ZTS6Player", !7, i64 0, !7, i64 8, !18, i64 16}
!18 = !{!"int", !8, i64 0}
!19 = !{!17, !7, i64 8}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = !{!17, !18, i64 16}
!26 = !{!6, !7, i64 8}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
!29 = distinct !{!29, !14}
!30 = distinct !{!30, !14}
!31 = distinct !{!31, !14}
!32 = !{!33, !33, i64 0}
!33 = !{!"vtable pointer", !9, i64 0}
!34 = distinct !{!34, !14}
!35 = distinct !{!35, !14}
!36 = distinct !{!36, !14}
!37 = distinct !{!37, !14}
!38 = distinct !{!38, !14}
!39 = !{!40, !12, i64 0}
!40 = !{!"_ZTS8Variable", !12, i64 0, !41, i64 8}
!41 = !{!"_ZTSSt3mapI6FactorP8Gaussian15FactorKeyMapperSaISt4pairIKS0_S2_EEE", !42, i64 0}
!42 = !{!"_ZTSSt8_Rb_treeI6FactorSt4pairIKS0_P8GaussianESt10_Select1stIS5_E15FactorKeyMapperSaIS5_EE", !43, i64 0}
!43 = !{!"_ZTSNSt8_Rb_treeI6FactorSt4pairIKS0_P8GaussianESt10_Select1stIS5_E15FactorKeyMapperSaIS5_EE13_Rb_tree_implIS8_Lb1EEE", !44, i64 0, !46, i64 8}
!44 = !{!"_ZTSSt20_Rb_tree_key_compareI15FactorKeyMapperE", !45, i64 0}
!45 = !{!"_ZTS15FactorKeyMapper"}
!46 = !{!"_ZTSSt15_Rb_tree_header", !47, i64 0, !49, i64 32}
!47 = !{!"_ZTSSt18_Rb_tree_node_base", !48, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!48 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!49 = !{!"long", !8, i64 0}
!50 = distinct !{!50, !14}
!51 = distinct !{!51, !14}
!52 = distinct !{!52, !14}
!53 = distinct !{!53, !14}
!54 = distinct !{!54, !14}
!55 = distinct !{!55, !14}
!56 = distinct !{!56, !14}
!57 = distinct !{!57, !14}
!58 = distinct !{!58, !14}
!59 = distinct !{!59, !14}


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