; LLVM IR from pptacher/probabilistic_robotics :: ch14_markov_decision_processes/src/v0.0 (markovdp)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::valarray<int>, std::pair<const std::valarray<int>, double>, std::_Select1st<std::pair<const std::valarray<int>, double>>, valarray_comp>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::valarray<int>, std::pair<const std::valarray<int>, double>, std::_Select1st<std::pair<const std::valarray<int>, double>>, valarray_comp>::_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 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.std::allocator.7" = type { i8 }
%class.MarkovDP = type { %"class.std::map", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<void (*)(const std::valarray<int> &, std::map<std::valarray<int>, double, valarray_comp> &, double &), std::allocator<void (*)(const std::valarray<int> &, std::map<std::valarray<int>, double, valarray_comp> &, double &)>>::_Vector_impl" }
%"struct.std::_Vector_base<void (*)(const std::valarray<int> &, std::map<std::valarray<int>, double, valarray_comp> &, double &), std::allocator<void (*)(const std::valarray<int> &, std::map<std::valarray<int>, double, valarray_comp> &, double &)>>::_Vector_impl" = type { %"struct.std::_Vector_base<void (*)(const std::valarray<int> &, std::map<std::valarray<int>, double, valarray_comp> &, double &), std::allocator<void (*)(const std::valarray<int> &, std::map<std::valarray<int>, double, valarray_comp> &, double &)>>::_Vector_impl_data" }
%"struct.std::_Vector_base<void (*)(const std::valarray<int> &, std::map<std::valarray<int>, double, valarray_comp> &, double &), std::allocator<void (*)(const std::valarray<int> &, std::map<std::valarray<int>, double, valarray_comp> &, double &)>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.15" = type { %"class.std::valarray", double }
%"class.std::valarray" = type { i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8MarkovDP15value_iterationEdjRSt6vectorIdSaIdEERj(ptr noundef nonnull align 8 dereferenceable(72) %0, double noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4) #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca %"class.std::vector.5", align 8
  %18 = alloca %"class.std::vector.10", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %28 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca %"class.std::map", align 8
  %33 = alloca double, align 8
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %37 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %42 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %43 = alloca i32, align 4
  %44 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %45 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %46 = alloca i32, align 4
  %47 = alloca i8, align 1
  %48 = alloca i32, align 4
  %49 = alloca %"class.std::vector.5", align 8
  %50 = alloca %"class.std::allocator.7", align 1
  %51 = alloca i64, align 8
  %52 = alloca double, align 8
  %53 = alloca i64, align 8
  %54 = alloca double, align 8
  %55 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !11
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %56 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %57 = getelementptr inbounds %class.MarkovDP, ptr %56, i32 0, i32 0
  %58 = call noundef i64 @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %57) #9
  %59 = trunc i64 %58 to i32
  store i32 %59, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %60 = getelementptr inbounds %class.MarkovDP, ptr %56, i32 0, i32 1
  %61 = call noundef i64 @_ZNKSt6vectorIPFvRKSt8valarrayIiERSt3mapIS1_d13valarray_compSaISt4pairIS2_dEEERdESaISD_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #9
  %62 = trunc i64 %61 to i32
  store i32 %62, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %63 = load i32, ptr %12, align 4, !tbaa !11
  %64 = zext i32 %63 to i64
  %65 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %64, i64 8)
  %66 = extractvalue { i64, i1 } %65, 1
  %67 = extractvalue { i64, i1 } %65, 0
  %68 = select i1 %66, i64 -1, i64 %67
  %69 = call noalias noundef nonnull ptr @_Znam(i64 noundef %68) #10
  store ptr %69, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %70 = load i32, ptr %12, align 4, !tbaa !11
  %71 = load i32, ptr %11, align 4, !tbaa !11
  %72 = mul i32 %70, %71
  %73 = zext i32 %72 to i64
  %74 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %73, i64 4)
  %75 = extractvalue { i64, i1 } %74, 1
  %76 = extractvalue { i64, i1 } %74, 0
  %77 = select i1 %75, i64 -1, i64 %76
  %78 = call noalias noundef nonnull ptr @_Znam(i64 noundef %77) #10
  store ptr %78, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !11
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = load i32, ptr %11, align 4, !tbaa !11
  %81 = zext i32 %80 to i64
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  store double 0.000000e+00, ptr %16, align 8, !tbaa !9
  call void @_ZNSt6vectorIdSaIdEE6resizeEmRKd(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #9
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #9
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %82 = getelementptr inbounds %class.MarkovDP, ptr %56, i32 0, i32 0
  store ptr %82, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  %84 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %83) #9
  %85 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %84, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %86) #9
  %88 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %21, i32 0, i32 0
  store ptr %87, ptr %88, align 8
  br label %89

89:                                               ; preds = %233, %5
  %90 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEES7_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #9
  br i1 %90, label %92, label %91

91:                                               ; preds = %89
  store i32 2, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %236

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  store ptr %93, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %94 = load ptr, ptr %23, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.std::pair.15", ptr %94, i32 0, i32 0
  store ptr %95, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %96 = load ptr, ptr %23, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.std::pair.15", ptr %96, i32 0, i32 1
  store ptr %97, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  %98 = getelementptr inbounds %class.MarkovDP, ptr %56, i32 0, i32 0
  %99 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %98) #9
  %100 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %27, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  %101 = getelementptr inbounds %class.MarkovDP, ptr %56, i32 0, i32 0
  %102 = load ptr, ptr %24, align 8, !tbaa !5
  %103 = invoke ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) %101, ptr noundef nonnull align 8 dereferenceable(16) %102)
          to label %104 unwind label %125

104:                                              ; preds = %92
  %105 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %28, i32 0, i32 0
  store ptr %103, ptr %105, align 8
  %106 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %27, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8
  %108 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %28, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8
  %110 = invoke noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEENSt15iterator_traitsIT_E15difference_typeES8_S8_(ptr %107, ptr %109)
          to label %111 unwind label %125

111:                                              ; preds = %104
  %112 = trunc i64 %110 to i32
  store i32 %112, ptr %26, align 4, !tbaa !11
  %113 = load ptr, ptr %25, align 8, !tbaa !5
  %114 = load double, ptr %113, align 8, !tbaa !9
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load i32, ptr %26, align 4, !tbaa !11
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %117) #9
  store double %114, ptr %118, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  store i64 0, ptr %31, align 8, !tbaa !13
  br label %119

119:                                              ; preds = %227, %111
  %120 = load i64, ptr %31, align 8, !tbaa !13
  %121 = load i32, ptr %12, align 4, !tbaa !11
  %122 = zext i32 %121 to i64
  %123 = icmp ult i64 %120, %122
  br i1 %123, label %129, label %124

124:                                              ; preds = %119
  store i32 4, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %232

125:                                              ; preds = %104, %92
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %29, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %30, align 4
  br label %235

129:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 48, ptr %32) #9
  call void @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %32) #9
  %130 = getelementptr inbounds %class.MarkovDP, ptr %56, i32 0, i32 1
  %131 = load i64, ptr %31, align 8, !tbaa !13
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPFvRKSt8valarrayIiERSt3mapIS1_d13valarray_compSaISt4pairIS2_dEEERdESaISD_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %131) #9
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = load ptr, ptr %24, align 8, !tbaa !5
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = load i64, ptr %31, align 8, !tbaa !13
  %137 = getelementptr inbounds double, ptr %135, i64 %136
  invoke void %133(ptr noundef nonnull align 8 dereferenceable(16) %134, ptr noundef nonnull align 8 dereferenceable(48) %32, ptr noundef nonnull align 8 dereferenceable(8) %137)
          to label %138 unwind label %148

138:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #9
  store double 0.000000e+00, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  store i32 0, ptr %34, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #9
  store ptr %32, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #9
  %139 = load ptr, ptr %35, align 8, !tbaa !5
  %140 = call ptr @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %139) #9
  %141 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %36, i32 0, i32 0
  store ptr %140, ptr %141, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #9
  %142 = load ptr, ptr %35, align 8, !tbaa !5
  %143 = call ptr @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %142) #9
  %144 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %37, i32 0, i32 0
  store ptr %143, ptr %144, align 8
  br label %145

145:                                              ; preds = %197, %138
  %146 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt8valarrayIiEdEES7_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #9
  br i1 %146, label %152, label %147

147:                                              ; preds = %145
  store i32 7, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %200

148:                                              ; preds = %129
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %29, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %30, align 4
  br label %231

152:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #9
  %153 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt8valarrayIiEdEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  store ptr %153, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  %154 = load ptr, ptr %38, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.std::pair.15", ptr %154, i32 0, i32 0
  store ptr %155, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  %156 = load ptr, ptr %38, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.std::pair.15", ptr %156, i32 0, i32 1
  store ptr %157, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #9
  %158 = getelementptr inbounds %class.MarkovDP, ptr %56, i32 0, i32 0
  %159 = load ptr, ptr %39, align 8, !tbaa !5
  %160 = invoke ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) %158, ptr noundef nonnull align 8 dereferenceable(16) %159)
          to label %161 unwind label %183

161:                                              ; preds = %152
  %162 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %41, i32 0, i32 0
  store ptr %160, ptr %162, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #9
  %163 = getelementptr inbounds %class.MarkovDP, ptr %56, i32 0, i32 0
  %164 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %163) #9
  %165 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %42, i32 0, i32 0
  store ptr %164, ptr %165, align 8
  %166 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEES7_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %42) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #9
  br i1 %166, label %167, label %191

167:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #9
  %168 = getelementptr inbounds %class.MarkovDP, ptr %56, i32 0, i32 0
  %169 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %168) #9
  %170 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %44, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %41, i64 8, i1 false), !tbaa.struct !15
  %171 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %44, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8
  %173 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %45, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8
  %175 = invoke noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEENSt15iterator_traitsIT_E15difference_typeES8_S8_(ptr %172, ptr %174)
          to label %176 unwind label %187

176:                                              ; preds = %167
  %177 = trunc i64 %175 to i32
  store i32 %177, ptr %43, align 4, !tbaa !11
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %178 unwind label %187

178:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  %179 = load ptr, ptr %40, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %179)
          to label %180 unwind label %183

180:                                              ; preds = %178
  %181 = load i32, ptr %34, align 4, !tbaa !11
  %182 = add i32 %181, 1
  store i32 %182, ptr %34, align 4, !tbaa !11
  br label %196

183:                                              ; preds = %178, %152
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %29, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %30, align 4
  br label %199

187:                                              ; preds = %176, %167
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %29, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #9
  br label %199

191:                                              ; preds = %161
  %192 = load ptr, ptr %40, align 8, !tbaa !5
  %193 = load double, ptr %192, align 8, !tbaa !9
  %194 = load double, ptr %33, align 8, !tbaa !9
  %195 = fadd double %194, %193
  store double %195, ptr %33, align 8, !tbaa !9
  br label %196

196:                                              ; preds = %191, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  br label %197

197:                                              ; preds = %196
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt8valarrayIiEdEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #9
  br label %145

199:                                              ; preds = %187, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #9
  br label %230

200:                                              ; preds = %147
  %201 = load double, ptr %33, align 8, !tbaa !9
  %202 = fcmp une double %201, 0.000000e+00
  br i1 %202, label %203, label %220

203:                                              ; preds = %200
  %204 = load double, ptr %33, align 8, !tbaa !9
  %205 = fcmp olt double %204, 1.000000e+00
  br i1 %205, label %206, label %220

206:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #9
  %207 = load i32, ptr %26, align 4, !tbaa !11
  store i32 %207, ptr %46, align 4, !tbaa !11
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 4 dereferenceable(4) %46)
          to label %208 unwind label %212

208:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %209 unwind label %216

209:                                              ; preds = %208
  %210 = load i32, ptr %34, align 4, !tbaa !11
  %211 = add i32 %210, 1
  store i32 %211, ptr %34, align 4, !tbaa !11
  br label %220

212:                                              ; preds = %206
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %29, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #9
  br label %230

216:                                              ; preds = %208
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %29, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %30, align 4
  br label %230

220:                                              ; preds = %209, %203, %200
  %221 = load i32, ptr %34, align 4, !tbaa !11
  %222 = load ptr, ptr %14, align 8, !tbaa !5
  %223 = load i32, ptr %15, align 4, !tbaa !11
  %224 = add i32 %223, 1
  store i32 %224, ptr %15, align 4, !tbaa !11
  %225 = zext i32 %223 to i64
  %226 = getelementptr inbounds i32, ptr %222, i64 %225
  store i32 %221, ptr %226, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  call void @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %32) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %32) #9
  br label %227

227:                                              ; preds = %220
  %228 = load i64, ptr %31, align 8, !tbaa !13
  %229 = add i64 %228, 1
  store i64 %229, ptr %31, align 8, !tbaa !13
  br label %119, !llvm.loop !16

230:                                              ; preds = %216, %212, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #9
  br label %231

231:                                              ; preds = %230, %148
  call void @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %32) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  br label %235

232:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %233

233:                                              ; preds = %232
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #9
  br label %89

235:                                              ; preds = %231, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %379

236:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #9
  store i8 0, ptr %47, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #9
  store i32 0, ptr %48, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %49) #9
  %237 = load i32, ptr %11, align 4, !tbaa !11
  %238 = zext i32 %237 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #9
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #9
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %238, ptr noundef nonnull align 1 dereferenceable(1) %50)
          to label %239 unwind label %258

239:                                              ; preds = %236
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #9
  br label %240

240:                                              ; preds = %365, %239
  %241 = load i8, ptr %47, align 1, !tbaa !18, !range !20, !noundef !21
  %242 = trunc i8 %241 to i1
  br i1 %242, label %249, label %243

243:                                              ; preds = %240
  store i8 1, ptr %47, align 1, !tbaa !18
  br i1 true, label %244, label %249

244:                                              ; preds = %243
  %245 = load i32, ptr %48, align 4, !tbaa !11
  %246 = add i32 %245, 1
  store i32 %246, ptr %48, align 4, !tbaa !11
  %247 = load i32, ptr %8, align 4, !tbaa !11
  %248 = icmp ult i32 %245, %247
  br label %249

249:                                              ; preds = %244, %243, %240
  %250 = phi i1 [ false, %243 ], [ false, %240 ], [ %248, %244 ]
  br i1 %250, label %251, label %367

251:                                              ; preds = %249
  store i32 0, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #9
  store i64 0, ptr %51, align 8, !tbaa !13
  br label %252

252:                                              ; preds = %362, %251
  %253 = load i64, ptr %51, align 8, !tbaa !13
  %254 = load i32, ptr %11, align 4, !tbaa !11
  %255 = zext i32 %254 to i64
  %256 = icmp ult i64 %253, %255
  br i1 %256, label %262, label %257

257:                                              ; preds = %252
  store i32 11, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  br label %365

258:                                              ; preds = %236
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %29, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %30, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %50) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #9
  br label %378

262:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #9
  store double -6.000000e+04, ptr %52, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #9
  store i64 0, ptr %53, align 8, !tbaa !13
  br label %263

263:                                              ; preds = %327, %262
  %264 = load i64, ptr %53, align 8, !tbaa !13
  %265 = load i32, ptr %12, align 4, !tbaa !11
  %266 = zext i32 %265 to i64
  %267 = icmp ult i64 %264, %266
  br i1 %267, label %269, label %268

268:                                              ; preds = %263
  store i32 14, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #9
  br label %330

269:                                              ; preds = %263
  %270 = load ptr, ptr %14, align 8, !tbaa !5
  %271 = load i64, ptr %51, align 8, !tbaa !13
  %272 = load i32, ptr %12, align 4, !tbaa !11
  %273 = zext i32 %272 to i64
  %274 = mul i64 %271, %273
  %275 = load i64, ptr %53, align 8, !tbaa !13
  %276 = add i64 %274, %275
  %277 = getelementptr inbounds i32, ptr %270, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !11
  %279 = icmp eq i32 %278, 0
  br i1 %279, label %280, label %281

280:                                              ; preds = %269
  br label %327

281:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #9
  %282 = load ptr, ptr %13, align 8, !tbaa !5
  %283 = load i64, ptr %53, align 8, !tbaa !13
  %284 = getelementptr inbounds double, ptr %282, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !9
  store double %285, ptr %54, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #9
  store i64 0, ptr %55, align 8, !tbaa !13
  br label %286

286:                                              ; preds = %317, %281
  %287 = load i64, ptr %55, align 8, !tbaa !13
  %288 = load ptr, ptr %14, align 8, !tbaa !5
  %289 = load i64, ptr %51, align 8, !tbaa !13
  %290 = load i32, ptr %12, align 4, !tbaa !11
  %291 = zext i32 %290 to i64
  %292 = mul i64 %289, %291
  %293 = load i64, ptr %53, align 8, !tbaa !13
  %294 = add i64 %292, %293
  %295 = getelementptr inbounds i32, ptr %288, i64 %294
  %296 = load i32, ptr %295, align 4, !tbaa !11
  %297 = zext i32 %296 to i64
  %298 = icmp ult i64 %287, %297
  br i1 %298, label %300, label %299

299:                                              ; preds = %286
  store i32 17, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #9
  br label %320

300:                                              ; preds = %286
  %301 = load i32, ptr %15, align 4, !tbaa !11
  %302 = zext i32 %301 to i64
  %303 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %302) #9
  %304 = load double, ptr %303, align 8, !tbaa !9
  %305 = load ptr, ptr %9, align 8, !tbaa !5
  %306 = load i32, ptr %15, align 4, !tbaa !11
  %307 = zext i32 %306 to i64
  %308 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %307) #9
  %309 = load i32, ptr %308, align 4, !tbaa !11
  %310 = zext i32 %309 to i64
  %311 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %305, i64 noundef %310) #9
  %312 = load double, ptr %311, align 8, !tbaa !9
  %313 = load double, ptr %54, align 8, !tbaa !9
  %314 = call double @llvm.fmuladd.f64(double %304, double %312, double %313)
  store double %314, ptr %54, align 8, !tbaa !9
  %315 = load i32, ptr %15, align 4, !tbaa !11
  %316 = add i32 %315, 1
  store i32 %316, ptr %15, align 4, !tbaa !11
  br label %317

317:                                              ; preds = %300
  %318 = load i64, ptr %55, align 8, !tbaa !13
  %319 = add i64 %318, 1
  store i64 %319, ptr %55, align 8, !tbaa !13
  br label %286, !llvm.loop !22

320:                                              ; preds = %299
  %321 = load double, ptr %54, align 8, !tbaa !9
  %322 = load double, ptr %52, align 8, !tbaa !9
  %323 = fcmp ogt double %321, %322
  br i1 %323, label %324, label %326

324:                                              ; preds = %320
  %325 = load double, ptr %54, align 8, !tbaa !9
  store double %325, ptr %52, align 8, !tbaa !9
  br label %326

326:                                              ; preds = %324, %320
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #9
  br label %327

327:                                              ; preds = %326, %280
  %328 = load i64, ptr %53, align 8, !tbaa !13
  %329 = add i64 %328, 1
  store i64 %329, ptr %53, align 8, !tbaa !13
  br label %263, !llvm.loop !23

330:                                              ; preds = %268
  %331 = load double, ptr %52, align 8, !tbaa !9
  %332 = fcmp ogt double %331, -6.000000e+04
  br i1 %332, label %333, label %335

333:                                              ; preds = %330
  %334 = load double, ptr %52, align 8, !tbaa !9
  br label %340

335:                                              ; preds = %330
  %336 = load ptr, ptr %9, align 8, !tbaa !5
  %337 = load i64, ptr %51, align 8, !tbaa !13
  %338 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %336, i64 noundef %337) #9
  %339 = load double, ptr %338, align 8, !tbaa !9
  br label %340

340:                                              ; preds = %335, %333
  %341 = phi double [ %334, %333 ], [ %339, %335 ]
  %342 = load i64, ptr %51, align 8, !tbaa !13
  %343 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %342) #9
  store double %341, ptr %343, align 8, !tbaa !9
  %344 = load i64, ptr %51, align 8, !tbaa !13
  %345 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %344) #9
  %346 = load double, ptr %345, align 8, !tbaa !9
  %347 = load ptr, ptr %9, align 8, !tbaa !5
  %348 = load i64, ptr %51, align 8, !tbaa !13
  %349 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %347, i64 noundef %348) #9
  %350 = load double, ptr %349, align 8, !tbaa !9
  %351 = fsub double %346, %350
  %352 = invoke noundef double @_ZSt3absd(double noundef %351)
          to label %353 unwind label %357

353:                                              ; preds = %340
  %354 = load double, ptr %7, align 8, !tbaa !9
  %355 = fcmp ogt double %352, %354
  br i1 %355, label %356, label %361

356:                                              ; preds = %353
  store i8 0, ptr %47, align 1, !tbaa !18
  br label %361

357:                                              ; preds = %340
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %29, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #9
  br label %378

361:                                              ; preds = %356, %353
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #9
  br label %362

362:                                              ; preds = %361
  %363 = load i64, ptr %51, align 8, !tbaa !13
  %364 = add i64 %363, 1
  store i64 %364, ptr %51, align 8, !tbaa !13
  br label %252, !llvm.loop !24

365:                                              ; preds = %257
  %366 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZSt4swapIdSaIdEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24) %366, ptr noundef nonnull align 8 dereferenceable(24) %49) #9
  br label %240, !llvm.loop !25

367:                                              ; preds = %249
  %368 = load i32, ptr %48, align 4, !tbaa !11
  %369 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %368, ptr %369, align 4, !tbaa !11
  %370 = load ptr, ptr %14, align 8, !tbaa !5
  %371 = icmp eq ptr %370, null
  br i1 %371, label %373, label %372

372:                                              ; preds = %367
  call void @_ZdaPv(ptr noundef %370) #11
  br label %373

373:                                              ; preds = %372, %367
  %374 = load ptr, ptr %13, align 8, !tbaa !5
  %375 = icmp eq ptr %374, null
  br i1 %375, label %377, label %376

376:                                              ; preds = %373
  call void @_ZdaPv(ptr noundef %374) #11
  br label %377

377:                                              ; preds = %376, %373
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %49) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #9
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  ret void

378:                                              ; preds = %357, %258
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #9
  br label %379

379:                                              ; preds = %378, %235
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %380

380:                                              ; preds = %379
  %381 = load ptr, ptr %29, align 8
  %382 = load i32, ptr %30, align 4
  %383 = insertvalue { ptr, i32 } poison, ptr %381, 0
  %384 = insertvalue { ptr, i32 } %383, i32 %382, 1
  resume { ptr, i32 } %384
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEENSt15iterator_traitsIT_E15difference_typeES8_S8_(ptr, ptr) #5

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIdSaIdEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #7

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #8

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i64 0, i64 8, !5}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !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.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::valarray<int>, std::pair<const std::valarray<int>, double>, std::_Select1st<std::pair<const std::valarray<int>, double>>, valarray_comp>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::valarray<int>, std::pair<const std::valarray<int>, double>, std::_Select1st<std::pair<const std::valarray<int>, double>>, valarray_comp>::_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 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"class.std::allocator.7" = type { i8 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK8MarkovDP15value_iterationEdjRSt6vectorIdSaIdEERj(ptr noundef nonnull align 8 dereferenceable(72) %0, double noundef %1, i32 noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %4) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca double, align 8
  %7 = alloca %"class.std::vector.5", align 8
  %8 = alloca %"class.std::vector.10", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"class.std::map", align 8
  %12 = alloca double, align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"class.std::vector.5", align 8
  %20 = alloca %"class.std::allocator.7", align 1
  %21 = tail call noundef i64 @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  %23 = tail call noundef i64 @_ZNKSt6vectorIPFvRKSt8valarrayIiERSt3mapIS1_d13valarray_compSaISt4pairIS2_dEEERdESaISD_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  %24 = and i64 %23, 4294967295
  %25 = shl nuw nsw i64 %24, 3
  %26 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %25) #9
  %27 = shl i64 %21, 2
  %28 = mul i64 %27, %23
  %29 = and i64 %28, 17179869180
  %30 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #9
  %31 = and i64 %21, 4294967295
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIdSaIdEE6resizeEmRKd(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %31, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %32 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  store ptr %32, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %33 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  store ptr %33, ptr %10, align 8
  %34 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEES7_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %34, label %.lr.ph132, label %._crit_edge133

.lr.ph132:                                        ; preds = %5
  %.not = icmp eq i64 %24, 0
  br i1 %.not, label %.lr.ph132.split, label %.lr.ph132.split.us

.lr.ph132.split.us:                               ; preds = %.lr.ph132, %._crit_edge128.us
  %.092130.us = phi i32 [ %61, %._crit_edge128.us ], [ 0, %.lr.ph132 ]
  %35 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %37 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  %38 = invoke ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %39 unwind label %.split.us

39:                                               ; preds = %.lr.ph132.split.us
  %40 = invoke noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEENSt15iterator_traitsIT_E15difference_typeES8_S8_(ptr %37, ptr %38)
          to label %.lr.ph127.us unwind label %.split.us

.lr.ph127.us:                                     ; preds = %39
  %41 = trunc i64 %40 to i32
  %42 = load double, ptr %36, align 8, !tbaa !5
  %sext.us = shl i64 %40, 32
  %43 = ashr exact i64 %sext.us, 32
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %43) #8
  store double %42, ptr %44, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %.lr.ph127.us, %60
  %.193125.us = phi i32 [ %.092130.us, %.lr.ph127.us ], [ %61, %60 ]
  %.0105124.us = phi i64 [ 0, %.lr.ph127.us ], [ %64, %60 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #8
  call void @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIPFvRKSt8valarrayIiERSt3mapIS1_d13valarray_compSaISt4pairIS2_dEEERdESaISD_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %.0105124.us) #8
  %47 = load ptr, ptr %46, align 8, !tbaa !9
  %48 = getelementptr inbounds double, ptr %26, i64 %.0105124.us
  invoke void %47(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(8) %48)
          to label %49 unwind label %.split135.us

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  store double 0.000000e+00, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %50 = call ptr @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  store ptr %50, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %51 = call ptr @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  store ptr %51, ptr %14, align 8
  %52 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt8valarrayIiEdEES7_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %52, label %.lr.ph.us, label %._crit_edge.us

._crit_edge.us:                                   ; preds = %83, %49
  %.0106.lcssa.us = phi i32 [ 0, %49 ], [ %.1107.us, %83 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  %53 = load double, ptr %12, align 8
  %54 = fcmp une double %53, 0.000000e+00
  %55 = fcmp olt double %53, 1.000000e+00
  %or.cond.us = and i1 %54, %55
  br i1 %or.cond.us, label %56, label %60

56:                                               ; preds = %._crit_edge.us
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #8
  store i32 %41, ptr %18, align 4, !tbaa !11
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %57 unwind label %.split138.us

57:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %58 unwind label %.split141.us

58:                                               ; preds = %57
  %59 = add i32 %.0106.lcssa.us, 1
  br label %60

60:                                               ; preds = %58, %._crit_edge.us
  %.2108.us = phi i32 [ %59, %58 ], [ %.0106.lcssa.us, %._crit_edge.us ]
  %61 = add i32 %.193125.us, 1
  %62 = zext i32 %.193125.us to i64
  %63 = getelementptr inbounds i32, ptr %30, i64 %62
  store i32 %.2108.us, ptr %63, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #8
  %64 = add nuw nsw i64 %.0105124.us, 1
  %exitcond.not = icmp eq i64 %64, %24
  br i1 %exitcond.not, label %._crit_edge128.us, label %45, !llvm.loop !13

.lr.ph.us:                                        ; preds = %49, %83
  %.0106123.us = phi i32 [ %.1107.us, %83 ], [ 0, %49 ]
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKSt8valarrayIiEdEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %67 = invoke ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(16) %65)
          to label %68 unwind label %.split144.us

68:                                               ; preds = %.lr.ph.us
  store ptr %67, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %69 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  store ptr %69, ptr %16, align 8
  %70 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEES7_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  br i1 %70, label %75, label %71

71:                                               ; preds = %68
  %72 = load double, ptr %66, align 8, !tbaa !5
  %73 = load double, ptr %12, align 8, !tbaa !5
  %74 = fadd double %72, %73
  store double %74, ptr %12, align 8, !tbaa !5
  br label %83

75:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #8
  %76 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  %.sroa.0.0.copyload.us = load ptr, ptr %15, align 8, !tbaa !9
  %77 = invoke noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEENSt15iterator_traitsIT_E15difference_typeES8_S8_(ptr %76, ptr %.sroa.0.0.copyload.us)
          to label %78 unwind label %.split147.us

78:                                               ; preds = %75
  %79 = trunc i64 %77 to i32
  store i32 %79, ptr %17, align 4, !tbaa !11
  invoke void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %80 unwind label %.split147.us

80:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %66)
          to label %81 unwind label %.split144.us

81:                                               ; preds = %80
  %82 = add i32 %.0106123.us, 1
  br label %83

83:                                               ; preds = %81, %71
  %.1107.us = phi i32 [ %82, %81 ], [ %.0106123.us, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKSt8valarrayIiEdEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %85 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKSt8valarrayIiEdEES7_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  br i1 %85, label %.lr.ph.us, label %._crit_edge.us

._crit_edge128.us:                                ; preds = %60
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %87 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEES7_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %87, label %.lr.ph132.split.us, label %._crit_edge133

.split.us:                                        ; preds = %39, %.lr.ph132.split.us
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %110

.split135.us:                                     ; preds = %45
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %109

.split138.us:                                     ; preds = %56
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #8
  br label %108

.split141.us:                                     ; preds = %57
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %108

.split144.us:                                     ; preds = %80, %.lr.ph.us
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %107

.split147.us:                                     ; preds = %78, %75
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #8
  br label %107

._crit_edge133:                                   ; preds = %._crit_edge128.us, %100, %5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %31, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %111 unwind label %165

.lr.ph132.split:                                  ; preds = %.lr.ph132, %100
  %94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %95 = getelementptr inbounds i8, ptr %94, i64 16
  %96 = call ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #8
  %97 = invoke ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(16) %94)
          to label %98 unwind label %.split

98:                                               ; preds = %.lr.ph132.split
  %99 = invoke noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEENSt15iterator_traitsIT_E15difference_typeES8_S8_(ptr %96, ptr %97)
          to label %100 unwind label %.split

100:                                              ; preds = %98
  %101 = load double, ptr %95, align 8, !tbaa !5
  %sext = shl i64 %99, 32
  %102 = ashr exact i64 %sext, 32
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %102) #8
  store double %101, ptr %103, align 8, !tbaa !5
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  %105 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEES7_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br i1 %105, label %.lr.ph132.split, label %._crit_edge133

.split:                                           ; preds = %98, %.lr.ph132.split
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %110

107:                                              ; preds = %.split147.us, %.split144.us
  %.pn = phi { ptr, i32 } [ %92, %.split144.us ], [ %93, %.split147.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %108

108:                                              ; preds = %.split141.us, %.split138.us, %107
  %.pn.pn = phi { ptr, i32 } [ %.pn, %107 ], [ %91, %.split141.us ], [ %90, %.split138.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %109

109:                                              ; preds = %108, %.split135.us
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %108 ], [ %89, %.split135.us ]
  call void @_ZNSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #8
  br label %110

110:                                              ; preds = %.split, %.split.us, %109
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %109 ], [ %106, %.split ], [ %88, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %167

111:                                              ; preds = %._crit_edge133
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #8
  %.not180 = icmp eq i64 %31, 0
  br i1 %.not180, label %.split170, label %.split170.us

.split170.us:                                     ; preds = %111
  %.not181 = icmp eq i64 %24, 0
  %112 = add i32 %2, 1
  br i1 %.not181, label %.split170.us.split, label %.split170.us.split.us

.split170.us.split.us:                            ; preds = %.split170.us, %._crit_edge163.split.us.us.us
  %.087169.us.us = phi i32 [ %113, %._crit_edge163.split.us.us.us ], [ 0, %.split170.us ]
  %113 = add i32 %.087169.us.us, 1
  %exitcond192.not = icmp eq i32 %.087169.us.us, %2
  br i1 %exitcond192.not, label %.critedge, label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %.split170.us.split.us, %119
  %.086162.us.us.us = phi i64 [ %129, %119 ], [ 0, %.split170.us.split.us ]
  %.190161.us.us.us = phi i1 [ %.291.us.us.us, %119 ], [ true, %.split170.us.split.us ]
  %.294160.us.us.us = phi i32 [ %.5.us.us.us, %119 ], [ 0, %.split170.us.split.us ]
  %114 = mul nuw i64 %.086162.us.us.us, %24
  %115 = getelementptr i32, ptr %30, i64 %114
  br label %130

116:                                              ; preds = %._crit_edge157.us.us.us
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.086162.us.us.us) #8
  %118 = load double, ptr %117, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %._crit_edge157.us.us.us, %116
  %120 = phi double [ %118, %116 ], [ %.2.us.us.us, %._crit_edge157.us.us.us ]
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %.086162.us.us.us) #8
  store double %120, ptr %121, align 8, !tbaa !5
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %.086162.us.us.us) #8
  %123 = load double, ptr %122, align 8, !tbaa !5
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.086162.us.us.us) #8
  %125 = load double, ptr %124, align 8, !tbaa !5
  %126 = fsub double %123, %125
  %127 = call noundef double @_ZSt3absd(double noundef %126)
  %128 = fcmp ule double %127, %1
  %.291.us.us.us = select i1 %128, i1 %.190161.us.us.us, i1 false
  %129 = add nuw nsw i64 %.086162.us.us.us, 1
  %exitcond191.not = icmp eq i64 %129, %31
  br i1 %exitcond191.not, label %._crit_edge163.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !15

130:                                              ; preds = %150, %.preheader.us.us.us
  %.084155.us.us.us = phi i64 [ 0, %.preheader.us.us.us ], [ %151, %150 ]
  %.085154.us.us.us = phi double [ -6.000000e+04, %.preheader.us.us.us ], [ %.2.us.us.us, %150 ]
  %.3153.us.us.us = phi i32 [ %.294160.us.us.us, %.preheader.us.us.us ], [ %.5.us.us.us, %150 ]
  %131 = getelementptr i32, ptr %115, i64 %.084155.us.us.us
  %132 = load i32, ptr %131, align 4, !tbaa !11
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %150, label %.lr.ph.us165.us.us.preheader

.lr.ph.us165.us.us.preheader:                     ; preds = %130
  %134 = getelementptr inbounds double, ptr %26, i64 %.084155.us.us.us
  %135 = load double, ptr %134, align 8, !tbaa !5
  %136 = zext i32 %132 to i64
  br label %.lr.ph.us165.us.us

._crit_edge.us166.us.us:                          ; preds = %.lr.ph.us165.us.us
  %137 = fcmp ogt double %146, %.085154.us.us.us
  %.1.us.us.us = select i1 %137, double %146, double %.085154.us.us.us
  br label %150

.lr.ph.us165.us.us:                               ; preds = %.lr.ph.us165.us.us.preheader, %.lr.ph.us165.us.us
  %.0151.us.us.us = phi i64 [ %148, %.lr.ph.us165.us.us ], [ 0, %.lr.ph.us165.us.us.preheader ]
  %.083150.us.us.us = phi double [ %146, %.lr.ph.us165.us.us ], [ %135, %.lr.ph.us165.us.us.preheader ]
  %.4149.us.us.us = phi i32 [ %147, %.lr.ph.us165.us.us ], [ %.3153.us.us.us, %.lr.ph.us165.us.us.preheader ]
  %138 = zext i32 %.4149.us.us.us to i64
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %138) #8
  %140 = load double, ptr %139, align 8, !tbaa !5
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %138) #8
  %142 = load i32, ptr %141, align 4, !tbaa !11
  %143 = zext i32 %142 to i64
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %143) #8
  %145 = load double, ptr %144, align 8, !tbaa !5
  %146 = call double @llvm.fmuladd.f64(double %140, double %145, double %.083150.us.us.us)
  %147 = add i32 %.4149.us.us.us, 1
  %148 = add nuw nsw i64 %.0151.us.us.us, 1
  %149 = icmp ult i64 %148, %136
  br i1 %149, label %.lr.ph.us165.us.us, label %._crit_edge.us166.us.us, !llvm.loop !16

150:                                              ; preds = %._crit_edge.us166.us.us, %130
  %.5.us.us.us = phi i32 [ %.3153.us.us.us, %130 ], [ %147, %._crit_edge.us166.us.us ]
  %.2.us.us.us = phi double [ %.085154.us.us.us, %130 ], [ %.1.us.us.us, %._crit_edge.us166.us.us ]
  %151 = add nuw nsw i64 %.084155.us.us.us, 1
  %exitcond190.not = icmp eq i64 %151, %24
  br i1 %exitcond190.not, label %._crit_edge157.us.us.us, label %130, !llvm.loop !17

._crit_edge157.us.us.us:                          ; preds = %150
  %152 = fcmp ogt double %.2.us.us.us, -6.000000e+04
  br i1 %152, label %119, label %116

._crit_edge163.split.us.us.us:                    ; preds = %119
  call void @_ZSt4swapIdSaIdEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br i1 %.291.us.us.us, label %.critedge, label %.split170.us.split.us, !llvm.loop !18

.split170.us.split:                               ; preds = %.split170.us, %._crit_edge163.split.us175
  %.087169.us = phi i32 [ %153, %._crit_edge163.split.us175 ], [ 0, %.split170.us ]
  %153 = add i32 %.087169.us, 1
  %exitcond194.not = icmp eq i32 %.087169.us, %2
  br i1 %exitcond194.not, label %.critedge, label %.preheader.us171

.preheader.us171:                                 ; preds = %.split170.us.split, %.preheader.us171
  %.086162.us172 = phi i64 [ %164, %.preheader.us171 ], [ 0, %.split170.us.split ]
  %.190161.us173 = phi i1 [ %.291.us174, %.preheader.us171 ], [ true, %.split170.us.split ]
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.086162.us172) #8
  %155 = load double, ptr %154, align 8, !tbaa !5
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %.086162.us172) #8
  store double %155, ptr %156, align 8, !tbaa !5
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %.086162.us172) #8
  %158 = load double, ptr %157, align 8, !tbaa !5
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.086162.us172) #8
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = fsub double %158, %160
  %162 = call noundef double @_ZSt3absd(double noundef %161)
  %163 = fcmp ule double %162, %1
  %.291.us174 = select i1 %163, i1 %.190161.us173, i1 false
  %164 = add nuw nsw i64 %.086162.us172, 1
  %exitcond193.not = icmp eq i64 %164, %31
  br i1 %exitcond193.not, label %._crit_edge163.split.us175, label %.preheader.us171, !llvm.loop !15

._crit_edge163.split.us175:                       ; preds = %.preheader.us171
  call void @_ZSt4swapIdSaIdEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br i1 %.291.us174, label %.critedge, label %.split170.us.split, !llvm.loop !18

.split170:                                        ; preds = %111
  %.not182 = icmp eq i32 %2, 0
  br i1 %.not182, label %.critedge, label %.preheader115

.preheader115:                                    ; preds = %.split170
  call void @_ZSt4swapIdSaIdEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  br label %.critedge, !llvm.loop !18

165:                                              ; preds = %._crit_edge133
  %166 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  br label %167

.critedge:                                        ; preds = %._crit_edge163.split.us.us.us, %.split170.us.split.us, %._crit_edge163.split.us175, %.split170.us.split, %.split170, %.preheader115
  %.us-phi178 = phi i32 [ 1, %.preheader115 ], [ 1, %.split170 ], [ %153, %._crit_edge163.split.us175 ], [ %112, %.split170.us.split ], [ %113, %._crit_edge163.split.us.us.us ], [ %112, %.split170.us.split.us ]
  store i32 %.us-phi178, ptr %4, align 4, !tbaa !11
  call void @_ZdaPv(ptr noundef nonnull %30) #10
  call void @_ZdaPv(ptr noundef nonnull %26) #10
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  ret void

167:                                              ; preds = %165, %110
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %110 ], [ %166, %165 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKSt8valarrayIiEdEEENSt15iterator_traitsIT_E15difference_typeES8_S8_(ptr, ptr) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNKSt3mapISt8valarrayIiEd13valarray_compSaISt4pairIKS1_dEEE4findERS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIdSaIdEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #6

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #7

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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