; LLVM IR from facebookresearch/StarSpace :: src (starspace)

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

%"struct.starspace::Matrix" = type { %"class.boost::numeric::ublas::matrix" }
%"class.boost::numeric::ublas::matrix" = type { i64, i64, %"class.boost::numeric::ublas::unbounded_array" }
%"class.boost::numeric::ublas::unbounded_array" = type { [8 x i8], i64, ptr }
%"struct.starspace::Metrics" = type { float, float, float, float, float, i32 }
%"class.std::priority_queue" = type <{ %"class.std::vector.73", [8 x i8] }>
%"class.std::vector.73" = type { %"struct.std::_Vector_base.74" }
%"struct.std::_Vector_base.74" = type { %"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.78" = type { float, i32 }
%"class.__gnu_cxx::__normal_iterator.82" = type { ptr }
%class.anon = type { ptr, ptr }
%"class.starspace::StarSpace" = type { %"class.std::__cxx11::basic_string", %"class.std::shared_ptr", %"class.std::vector", %"class.std::shared_ptr.3", %"class.std::shared_ptr.6", %"class.std::shared_ptr.9", %"class.std::shared_ptr.9", %"class.std::shared_ptr.9", %"class.std::shared_ptr.12", %"class.std::vector.15" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, float>>, std::allocator<std::vector<std::pair<int, float>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<std::pair<int, float>>, std::allocator<std::vector<std::pair<int, float>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<std::pair<int, float>>, std::allocator<std::vector<std::pair<int, float>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<std::pair<int, float>>, std::allocator<std::vector<std::pair<int, float>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.6" = type { %"class.std::__shared_ptr.7" }
%"class.std::__shared_ptr.7" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.9" = type { %"class.std::__shared_ptr.10" }
%"class.std::__shared_ptr.10" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.12" = type { %"class.std::__shared_ptr.13" }
%"class.std::__shared_ptr.13" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<starspace::Matrix<>, std::allocator<starspace::Matrix<>>>::_Vector_impl" }
%"struct.std::_Vector_base<starspace::Matrix<>, std::allocator<starspace::Matrix<>>>::_Vector_impl" = type { %"struct.std::_Vector_base<starspace::Matrix<>, std::allocator<starspace::Matrix<>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<starspace::Matrix<>, std::allocator<starspace::Matrix<>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.starspace::Args" = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, [7 x i8], double, double, double, double, double, double, double, double, double, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }>
%"struct.std::pair" = type { i32, float }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

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

declare void @_ZN9starspace10EmbedModel10projectLHSERKSt6vectorISt4pairIifESaIS3_EE(ptr dead_on_unwind writable sret(%"struct.starspace::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

declare void @_ZN9starspace10EmbedModel10projectRHSERKSt6vectorISt4pairIifESaIS3_EE(ptr dead_on_unwind writable sret(%"struct.starspace::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN9starspace10EmbedModel10similarityERNS_6MatrixIfEES3_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #5 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9starspace9StarSpace11evaluateOneERKSt6vectorISt4pairIifESaIS3_EES7_RS1_IS2_IfiESaIS8_EEb(ptr dead_on_unwind noalias writable sret(%"struct.starspace::Metrics") align 4 %0, ptr noundef nonnull align 8 dereferenceable(192) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, i1 noundef zeroext %5) #5 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca %"class.std::priority_queue", align 8
  %13 = alloca %"struct.starspace::Matrix", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.starspace::Matrix", align 8
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair.78", align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca %"struct.std::pair.78", align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::pair.78", align 4
  %28 = alloca i8, align 1
  %29 = alloca i32, align 4
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.82", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.82", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.82", align 8
  %33 = alloca %class.anon, align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.82", align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %35 = zext i1 %5 to i8
  store i8 %35, ptr %11, align 1, !tbaa !9
  %36 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  call void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %12)
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #8
  %37 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 8
  %38 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10EmbedModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %37) #8
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN9starspace10EmbedModel10projectLHSERKSt6vectorISt4pairIifESaIS3_EE(ptr dead_on_unwind writable sret(%"struct.starspace::Matrix") align 8 %13, ptr noundef nonnull align 8 dereferenceable(112) %38, ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %40 unwind label %58

40:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #8
  %41 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 8
  %42 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10EmbedModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %41) #8
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN9starspace10EmbedModel10projectRHSERKSt6vectorISt4pairIifESaIS3_EE(ptr dead_on_unwind writable sret(%"struct.starspace::Matrix") align 8 %16, ptr noundef nonnull align 8 dereferenceable(112) %42, ptr noundef nonnull align 8 dereferenceable(24) %43)
          to label %44 unwind label %62

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %45 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 8
  %46 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10EmbedModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %45) #8
  %47 = invoke noundef float @_ZN9starspace10EmbedModel10similarityERNS_6MatrixIfEES3_(ptr noundef nonnull align 8 dereferenceable(112) %46, ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %48 unwind label %66

48:                                               ; preds = %44
  store float %47, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 1, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !13
  invoke void @_ZNSt4pairIfiEC2IRfiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %49 unwind label %70

49:                                               ; preds = %48
  invoke void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %12, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %50 unwind label %70

50:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !13
  br label %51

51:                                               ; preds = %136, %50
  %52 = load i32, ptr %21, align 4, !tbaa !13
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 9
  %55 = call noundef i64 @_ZNKSt6vectorIN9starspace6MatrixIfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #8
  %56 = icmp ult i64 %53, %55
  br i1 %56, label %74, label %57

57:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %145

58:                                               ; preds = %6
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %14, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %15, align 4
  br label %239

62:                                               ; preds = %40
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %14, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %15, align 4
  br label %238

66:                                               ; preds = %44
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %14, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %15, align 4
  br label %237

70:                                               ; preds = %49, %48
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %14, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %236

74:                                               ; preds = %51
  %75 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 1
  %76 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %75) #8
  %77 = getelementptr inbounds %"class.starspace::Args", ptr %76, i32 0, i32 9
  %78 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %77) #8
  br i1 %78, label %79, label %96

79:                                               ; preds = %74
  %80 = load i32, ptr %21, align 4, !tbaa !13
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorISt4pairIifESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef 0) #8
  %83 = getelementptr inbounds %"struct.std::pair", ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 4, !tbaa !15
  %85 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 3
  %86 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10DictionaryELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %85) #8
  %87 = invoke noundef i32 @_ZNK9starspace10Dictionary6nwordsEv(ptr noundef nonnull align 8 dereferenceable(88) %86)
          to label %88 unwind label %92

88:                                               ; preds = %79
  %89 = sub nsw i32 %84, %87
  %90 = icmp eq i32 %80, %89
  br i1 %90, label %91, label %96

91:                                               ; preds = %88
  br label %136

92:                                               ; preds = %79
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %14, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %15, align 4
  br label %144

96:                                               ; preds = %88, %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %97 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 8
  %98 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10EmbedModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %97) #8
  %99 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 9
  %100 = load i32, ptr %21, align 4, !tbaa !13
  %101 = zext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN9starspace6MatrixIfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %101) #8
  %103 = invoke noundef float @_ZN9starspace10EmbedModel10similarityERNS_6MatrixIfEES3_(ptr noundef nonnull align 8 dereferenceable(112) %98, ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(40) %102)
          to label %104 unwind label %111

104:                                              ; preds = %96
  store float %103, ptr %22, align 4, !tbaa !11
  %105 = load float, ptr %22, align 4, !tbaa !11
  %106 = load float, ptr %17, align 4, !tbaa !11
  %107 = fcmp ogt float %105, %106
  br i1 %107, label %108, label %115

108:                                              ; preds = %104
  %109 = load i32, ptr %18, align 4, !tbaa !13
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %18, align 4, !tbaa !13
  br label %131

111:                                              ; preds = %96
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %14, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %15, align 4
  br label %143

115:                                              ; preds = %104
  %116 = load float, ptr %22, align 4, !tbaa !11
  %117 = load float, ptr %17, align 4, !tbaa !11
  %118 = fcmp oeq float %116, %117
  br i1 %118, label %119, label %130

119:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %120 = call i32 @rand() #8
  %121 = sitofp i32 %120 to float
  %122 = fdiv float %121, 0x41E0000000000000
  store float %122, ptr %23, align 4, !tbaa !11
  %123 = load float, ptr %23, align 4, !tbaa !11
  %124 = fpext float %123 to double
  %125 = fcmp ogt double %124, 5.000000e-01
  br i1 %125, label %126, label %129

126:                                              ; preds = %119
  %127 = load i32, ptr %18, align 4, !tbaa !13
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %18, align 4, !tbaa !13
  br label %129

129:                                              ; preds = %126, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %130

130:                                              ; preds = %129, %115
  br label %131

131:                                              ; preds = %130, %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %132 = load i32, ptr %21, align 4, !tbaa !13
  %133 = add i32 %132, 1
  store i32 %133, ptr %25, align 4, !tbaa !13
  invoke void @_ZNSt4pairIfiEC2IRfjTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %134 unwind label %139

134:                                              ; preds = %131
  invoke void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %12, ptr noundef nonnull align 4 dereferenceable(8) %24)
          to label %135 unwind label %139

135:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %136

136:                                              ; preds = %135, %91
  %137 = load i32, ptr %21, align 4, !tbaa !13
  %138 = add i32 %137, 1
  store i32 %138, ptr %21, align 4, !tbaa !13
  br label %51, !llvm.loop !17

139:                                              ; preds = %134, %131
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %14, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %143

143:                                              ; preds = %139, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %144

144:                                              ; preds = %143, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %236

145:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !13
  br label %146

146:                                              ; preds = %228, %145
  %147 = load i32, ptr %26, align 4, !tbaa !13
  %148 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 1
  %149 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %148) #8
  %150 = getelementptr inbounds %"class.starspace::Args", ptr %149, i32 0, i32 36
  %151 = load i32, ptr %150, align 8, !tbaa !19
  %152 = icmp slt i32 %147, %151
  br i1 %152, label %153, label %157

153:                                              ; preds = %146
  %154 = invoke noundef i64 @_ZNKSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %12)
          to label %155 unwind label %199

155:                                              ; preds = %153
  %156 = icmp ugt i64 %154, 0
  br label %157

157:                                              ; preds = %155, %146
  %158 = phi i1 [ false, %146 ], [ %156, %155 ]
  br i1 %158, label %159, label %231

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %160 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %12)
          to label %161 unwind label %203

161:                                              ; preds = %159
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %160, i64 8, i1 false)
  invoke void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %12)
          to label %162 unwind label %203

162:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #8
  store i8 1, ptr %28, align 1, !tbaa !9
  %163 = load i8, ptr %11, align 1, !tbaa !9, !range !25, !noundef !26
  %164 = trunc i8 %163 to i1
  br i1 %164, label %165, label %216

165:                                              ; preds = %162
  %166 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 1
  %167 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %166) #8
  %168 = getelementptr inbounds %"class.starspace::Args", ptr %167, i32 0, i32 9
  %169 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %168) #8
  br i1 %169, label %170, label %216

170:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %171 = getelementptr inbounds %"class.starspace::StarSpace", ptr %36, i32 0, i32 3
  %172 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10DictionaryELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %171) #8
  %173 = invoke noundef i32 @_ZNK9starspace10Dictionary6nwordsEv(ptr noundef nonnull align 8 dereferenceable(88) %172)
          to label %174 unwind label %207

174:                                              ; preds = %170
  store i32 %173, ptr %29, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = call ptr @_ZNKSt6vectorISt4pairIifESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #8
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.82", ptr %31, i32 0, i32 0
  store ptr %176, ptr %177, align 8
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = call ptr @_ZNKSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %178) #8
  %180 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.82", ptr %32, i32 0, i32 0
  store ptr %179, ptr %180, align 8
  %181 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 0
  store ptr %27, ptr %181, align 8, !tbaa !5
  %182 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 1
  store ptr %29, ptr %182, align 8, !tbaa !5
  %183 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.82", ptr %31, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8
  %185 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.82", ptr %32, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8
  %187 = getelementptr inbounds { ptr, ptr }, ptr %33, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8
  %189 = getelementptr inbounds { ptr, ptr }, ptr %33, i32 0, i32 1
  %190 = load ptr, ptr %189, align 8
  %191 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPKSt4pairIifESt6vectorIS3_SaIS3_EEEEZN9starspace9StarSpace11evaluateOneERKS8_SD_RS6_IS2_IfiESaISE_EEbE3$_0ET_SJ_SJ_T0_"(ptr %184, ptr %186, ptr %188, ptr %190)
          to label %192 unwind label %211

192:                                              ; preds = %174
  %193 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.82", ptr %30, i32 0, i32 0
  store ptr %191, ptr %193, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = call ptr @_ZNKSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %194) #8
  %196 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.82", ptr %34, i32 0, i32 0
  store ptr %195, ptr %196, align 8
  %197 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %34) #8
  %198 = zext i1 %197 to i8
  store i8 %198, ptr %28, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %216

199:                                              ; preds = %232, %231, %153
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %14, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %15, align 4
  br label %235

203:                                              ; preds = %161, %159
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %14, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %15, align 4
  br label %230

207:                                              ; preds = %170
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %14, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %15, align 4
  br label %215

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

215:                                              ; preds = %211, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %229

216:                                              ; preds = %192, %165, %162
  %217 = load i8, ptr %28, align 1, !tbaa !9, !range !25, !noundef !26
  %218 = trunc i8 %217 to i1
  br i1 %218, label %219, label %228

219:                                              ; preds = %216
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNSt6vectorISt4pairIfiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %220, ptr noundef nonnull align 4 dereferenceable(8) %27)
          to label %221 unwind label %224

221:                                              ; preds = %219
  %222 = load i32, ptr %26, align 4, !tbaa !13
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %26, align 4, !tbaa !13
  br label %228

224:                                              ; preds = %219
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %14, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %15, align 4
  br label %229

228:                                              ; preds = %221, %216
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %146, !llvm.loop !27

229:                                              ; preds = %224, %215
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #8
  br label %230

230:                                              ; preds = %229, %203
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %235

231:                                              ; preds = %157
  invoke void @_ZN9starspace7Metrics5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %0)
          to label %232 unwind label %199

232:                                              ; preds = %231
  %233 = load i32, ptr %18, align 4, !tbaa !13
  invoke void @_ZN9starspace7Metrics6updateEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef %233)
          to label %234 unwind label %199

234:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #8
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #8
  call void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  ret void

235:                                              ; preds = %230, %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %236

236:                                              ; preds = %235, %144, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %237

237:                                              ; preds = %236, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #8
  br label %238

238:                                              ; preds = %237, %62
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #8
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #8
  br label %239

239:                                              ; preds = %238, %58
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #8
  call void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %240

240:                                              ; preds = %239
  %241 = load ptr, ptr %14, align 8
  %242 = load i32, ptr %15, align 4
  %243 = insertvalue { ptr, i32 } poison, ptr %241, 0
  %244 = insertvalue { ptr, i32 } %243, i32 %242, 1
  resume { ptr, i32 } %244
}

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

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

; Function Attrs: nounwind
declare i32 @rand() #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPKSt4pairIifESt6vectorIS3_SaIS3_EEEEZN9starspace9StarSpace11evaluateOneERKS8_SD_RS6_IS2_IfiESaISE_EEbE3$_0ET_SJ_SJ_T0_"(ptr, ptr, ptr, ptr) #7

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 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 #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 = { 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 #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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"_ZTSSt4pairIifE", !14, i64 0, !12, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !14, i64 520}
!20 = !{!"_ZTSN9starspace4ArgsE", !21, i64 0, !21, i64 32, !21, i64 64, !21, i64 96, !21, i64 128, !21, i64 160, !21, i64 192, !21, i64 224, !21, i64 256, !21, i64 288, !21, i64 320, !21, i64 352, !7, i64 384, !24, i64 392, !24, i64 400, !24, i64 408, !24, i64 416, !24, i64 424, !24, i64 432, !24, i64 440, !24, i64 448, !24, i64 456, !23, i64 464, !14, i64 472, !14, i64 476, !14, i64 480, !14, i64 484, !14, i64 488, !14, i64 492, !14, i64 496, !14, i64 500, !14, i64 504, !14, i64 508, !14, i64 512, !14, i64 516, !14, i64 520, !14, i64 524, !14, i64 528, !10, i64 532, !10, i64 533, !10, i64 534, !10, i64 535, !10, i64 536, !10, i64 537, !10, i64 538, !10, i64 539, !10, i64 540, !10, i64 541, !10, i64 542}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"double", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = distinct !{!27, !18}


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

%"struct.starspace::Matrix" = type { %"class.boost::numeric::ublas::matrix" }
%"class.boost::numeric::ublas::matrix" = type { i64, i64, %"class.boost::numeric::ublas::unbounded_array" }
%"class.boost::numeric::ublas::unbounded_array" = type { [8 x i8], i64, ptr }
%"struct.starspace::Metrics" = type { float, float, float, float, float, i32 }
%"class.std::priority_queue" = type <{ %"class.std::vector.73", [8 x i8] }>
%"class.std::vector.73" = type { %"struct.std::_Vector_base.74" }
%"struct.std::_Vector_base.74" = type { %"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.78" = type { float, i32 }
%"class.__gnu_cxx::__normal_iterator.82" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

declare void @_ZN9starspace10EmbedModel10projectLHSERKSt6vectorISt4pairIifESaIS3_EE(ptr dead_on_unwind writable sret(%"struct.starspace::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

declare void @_ZN9starspace10EmbedModel10projectRHSERKSt6vectorISt4pairIifESaIS3_EE(ptr dead_on_unwind writable sret(%"struct.starspace::Matrix") align 8, ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN9starspace10EmbedModel10similarityERNS_6MatrixIfEES3_(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9starspace9StarSpace11evaluateOneERKSt6vectorISt4pairIifESaIS3_EES7_RS1_IS2_IfiESaIS8_EEb(ptr dead_on_unwind noalias writable sret(%"struct.starspace::Metrics") align 4 %0, ptr noundef nonnull align 8 dereferenceable(192) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4, i1 noundef zeroext %5) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::priority_queue", align 8
  %8 = alloca %"struct.starspace::Matrix", align 8
  %9 = alloca %"struct.starspace::Matrix", align 8
  %10 = alloca float, align 4
  %11 = alloca %"struct.std::pair.78", align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca %"struct.std::pair.78", align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.std::pair.78", align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.82", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.82", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EEC2IS4_vEEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #7
  %20 = getelementptr inbounds i8, ptr %1, i64 152
  %21 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10EmbedModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZN9starspace10EmbedModel10projectLHSERKSt6vectorISt4pairIifESaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"struct.starspace::Matrix") align 8 %8, ptr noundef nonnull align 8 dereferenceable(112) %21, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %22 unwind label %66

22:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #7
  %23 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10EmbedModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  invoke void @_ZN9starspace10EmbedModel10projectRHSERKSt6vectorISt4pairIifESaIS3_EE(ptr dead_on_unwind nonnull writable sret(%"struct.starspace::Matrix") align 8 %9, ptr noundef nonnull align 8 dereferenceable(112) %23, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %24 unwind label %68

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  %25 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10EmbedModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  %26 = invoke noundef float @_ZN9starspace10EmbedModel10similarityERNS_6MatrixIfEES3_(ptr noundef nonnull align 8 dereferenceable(112) %25, ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %27 unwind label %70

27:                                               ; preds = %24
  store float %26, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @_ZNSt4pairIfiEC2IRfiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
  invoke void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %7, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %28 unwind label %72

28:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %29 = getelementptr inbounds i8, ptr %1, i64 168
  %30 = call noundef i64 @_ZNKSt6vectorIN9starspace6MatrixIfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  %.not65 = icmp eq i64 %30, 0
  br i1 %.not65, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %28
  %31 = getelementptr inbounds i8, ptr %1, i64 32
  %32 = getelementptr inbounds i8, ptr %1, i64 72
  br label %74

.preheader:                                       ; preds = %108, %28
  %.031.lcssa = phi i32 [ 1, %28 ], [ %.334, %108 ]
  %33 = getelementptr inbounds i8, ptr %1, i64 32
  %34 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  %35 = getelementptr inbounds i8, ptr %34, i64 520
  %36 = load i32, ptr %35, align 8, !tbaa !11
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph57, label %.critedge

.lr.ph57:                                         ; preds = %.preheader
  %38 = getelementptr inbounds i8, ptr %1, i64 72
  br i1 %5, label %.lr.ph57.split.us, label %.lr.ph57.split

.lr.ph57.split.us:                                ; preds = %.lr.ph57, %58
  %.03756.us = phi i32 [ %.138.us, %58 ], [ 0, %.lr.ph57 ]
  %39 = call noundef i64 @_ZNKSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  %.not.us = icmp eq i64 %39, 0
  br i1 %.not.us, label %.critedge, label %40

40:                                               ; preds = %.lr.ph57.split.us
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %41 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  %42 = load i64, ptr %41, align 4
  store i64 %42, ptr %16, align 8
  invoke void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %43 unwind label %.split.us

43:                                               ; preds = %40
  %44 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  %45 = getelementptr inbounds i8, ptr %44, i64 288
  %46 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %45) #7
  br i1 %46, label %47, label %.critedge51.us

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %48 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10DictionaryELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %38) #7
  %49 = call noundef i32 @_ZNK9starspace10Dictionary6nwordsEv(ptr noundef nonnull align 8 dereferenceable(88) %48)
  store i32 %49, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #7
  %50 = call ptr @_ZNKSt6vectorISt4pairIifESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %51 = call ptr @_ZNKSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %52 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPKSt4pairIifESt6vectorIS3_SaIS3_EEEEZN9starspace9StarSpace11evaluateOneERKS8_SD_RS6_IS2_IfiESaISE_EEbE3$_0ET_SJ_SJ_T0_"(ptr %50, ptr %51, ptr nonnull %16, ptr nonnull %17)
          to label %53 unwind label %.split60.us

53:                                               ; preds = %47
  store ptr %52, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %54 = call ptr @_ZNKSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %54, ptr %19, align 8
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br i1 %55, label %.critedge51.us, label %58

.critedge51.us:                                   ; preds = %53, %43
  invoke void @_ZNSt6vectorISt4pairIfiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %56 unwind label %.split63.us

56:                                               ; preds = %.critedge51.us
  %57 = add nsw i32 %.03756.us, 1
  br label %58

58:                                               ; preds = %56, %53
  %.138.us = phi i32 [ %57, %56 ], [ %.03756.us, %53 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  %59 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  %60 = getelementptr inbounds i8, ptr %59, i64 520
  %61 = load i32, ptr %60, align 8, !tbaa !11
  %62 = icmp slt i32 %.138.us, %61
  br i1 %62, label %.lr.ph57.split.us, label %.critedge, !llvm.loop !19

.split.us:                                        ; preds = %40
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %127

.split60.us:                                      ; preds = %47
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br label %127

.split63.us:                                      ; preds = %.critedge51.us
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %127

66:                                               ; preds = %6
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %130

68:                                               ; preds = %22
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %129

70:                                               ; preds = %24
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %128

72:                                               ; preds = %27
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %128

74:                                               ; preds = %.lr.ph, %108
  %75 = phi i64 [ 0, %.lr.ph ], [ %109, %108 ]
  %.03155 = phi i32 [ 1, %.lr.ph ], [ %.334, %108 ]
  %.03554 = phi i32 [ 0, %.lr.ph ], [ %.pre-phi, %108 ]
  %76 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #7
  %77 = getelementptr inbounds i8, ptr %76, i64 288
  %78 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %77) #7
  br i1 %78, label %79, label %86

79:                                               ; preds = %74
  %80 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorISt4pairIifESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #7
  %81 = load i32, ptr %80, align 4, !tbaa !21
  %82 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10DictionaryELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %32) #7
  %83 = call noundef i32 @_ZNK9starspace10Dictionary6nwordsEv(ptr noundef nonnull align 8 dereferenceable(88) %82)
  %84 = sub nsw i32 %81, %83
  %85 = icmp eq i32 %.03554, %84
  br i1 %85, label %._crit_edge, label %86

._crit_edge:                                      ; preds = %79
  %.pre = add i32 %.03554, 1
  br label %108

86:                                               ; preds = %79, %74
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %87 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10EmbedModelELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  %88 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN9starspace6MatrixIfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %75) #7
  %89 = invoke noundef float @_ZN9starspace10EmbedModel10similarityERNS_6MatrixIfEES3_(ptr noundef nonnull align 8 dereferenceable(112) %87, ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %88)
          to label %90 unwind label %95

90:                                               ; preds = %86
  store float %89, ptr %13, align 4, !tbaa !5
  %91 = load float, ptr %10, align 4, !tbaa !5
  %92 = fcmp ogt float %89, %91
  br i1 %92, label %93, label %97

93:                                               ; preds = %90
  %94 = add nsw i32 %.03155, 1
  br label %105

95:                                               ; preds = %86
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %114

97:                                               ; preds = %90
  %98 = fcmp oeq float %89, %91
  br i1 %98, label %99, label %105

99:                                               ; preds = %97
  %100 = call i32 @rand() #7
  %101 = sitofp i32 %100 to float
  %102 = fmul float %101, 0x3E00000000000000
  %103 = fcmp ogt float %102, 5.000000e-01
  %104 = zext i1 %103 to i32
  %.132 = add nsw i32 %.03155, %104
  br label %105

105:                                              ; preds = %97, %99, %93
  %.233 = phi i32 [ %94, %93 ], [ %.132, %99 ], [ %.03155, %97 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %106 = add i32 %.03554, 1
  store i32 %106, ptr %15, align 4, !tbaa !9
  call void @_ZNSt4pairIfiEC2IRfjTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS4_S5_EEEbE4typeELb1EEEOS4_OS5_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %15)
  invoke void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4pushEOS1_(ptr noundef nonnull align 8 dereferenceable(25) %7, ptr noundef nonnull align 4 dereferenceable(8) %14)
          to label %107 unwind label %112

107:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  br label %108

108:                                              ; preds = %._crit_edge, %107
  %.pre-phi = phi i32 [ %.pre, %._crit_edge ], [ %106, %107 ]
  %.334 = phi i32 [ %.03155, %._crit_edge ], [ %.233, %107 ]
  %109 = zext i32 %.pre-phi to i64
  %110 = call noundef i64 @_ZNKSt6vectorIN9starspace6MatrixIfEESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  %111 = icmp ugt i64 %110, %109
  br i1 %111, label %74, label %.preheader, !llvm.loop !23

112:                                              ; preds = %105
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %114

114:                                              ; preds = %112, %95
  %.pn44 = phi { ptr, i32 } [ %113, %112 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  br label %128

.lr.ph57.split:                                   ; preds = %.lr.ph57, %120
  %.03756 = phi i32 [ %121, %120 ], [ 0, %.lr.ph57 ]
  %115 = call noundef i64 @_ZNKSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  %.not = icmp eq i64 %115, 0
  br i1 %.not, label %.critedge, label %116

116:                                              ; preds = %.lr.ph57.split
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %117 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3topEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
  %118 = load i64, ptr %117, align 4
  store i64 %118, ptr %16, align 8
  invoke void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EE3popEv(ptr noundef nonnull align 8 dereferenceable(25) %7)
          to label %.critedge51 unwind label %.split

.critedge51:                                      ; preds = %116
  invoke void @_ZNSt6vectorISt4pairIfiESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(8) %16)
          to label %120 unwind label %.split63

.split:                                           ; preds = %116
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %127

120:                                              ; preds = %.critedge51
  %121 = add nuw nsw i32 %.03756, 1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  %122 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %33) #7
  %123 = getelementptr inbounds i8, ptr %122, i64 520
  %124 = load i32, ptr %123, align 8, !tbaa !11
  %125 = icmp slt i32 %121, %124
  br i1 %125, label %.lr.ph57.split, label %.critedge, !llvm.loop !19

.split63:                                         ; preds = %.critedge51
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %127

127:                                              ; preds = %.split63, %.split63.us, %.split, %.split.us, %.split60.us
  %.pn.pn = phi { ptr, i32 } [ %64, %.split60.us ], [ %119, %.split ], [ %63, %.split.us ], [ %126, %.split63 ], [ %65, %.split63.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %128

.critedge:                                        ; preds = %.lr.ph57.split, %120, %.lr.ph57.split.us, %58, %.preheader
  call void @_ZN9starspace7Metrics5clearEv(ptr noundef nonnull align 4 dereferenceable(24) %0)
  call void @_ZN9starspace7Metrics6updateEi(ptr noundef nonnull align 4 dereferenceable(24) %0, i32 noundef %.031.lcssa)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  call void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  ret void

128:                                              ; preds = %72, %114, %127, %70
  %.pn44.pn.pn = phi { ptr, i32 } [ %71, %70 ], [ %.pn44, %114 ], [ %.pn.pn, %127 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  br label %129

129:                                              ; preds = %128, %68
  %.pn44.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn, %128 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #7
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #7
  br label %130

130:                                              ; preds = %129, %66
  %.pn44.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn44.pn.pn.pn, %129 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #7
  call void @_ZNSt14priority_queueISt4pairIfiESt6vectorIS1_SaIS1_EESt4lessIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(25) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  resume { ptr, i32 } %.pn44.pn.pn.pn.pn
}

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

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPKSt4pairIifESt6vectorIS3_SaIS3_EEEEZN9starspace9StarSpace11evaluateOneERKS8_SD_RS6_IS2_IfiESaISE_EEbE3$_0ET_SJ_SJ_T0_"(ptr, ptr, ptr, ptr) local_unnamed_addr #6

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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 #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 = { 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 #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 = { 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 = !{!"float", !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, !10, i64 520}
!12 = !{!"_ZTSN9starspace4ArgsE", !13, i64 0, !13, i64 32, !13, i64 64, !13, i64 96, !13, i64 128, !13, i64 160, !13, i64 192, !13, i64 224, !13, i64 256, !13, i64 288, !13, i64 320, !13, i64 352, !7, i64 384, !17, i64 392, !17, i64 400, !17, i64 408, !17, i64 416, !17, i64 424, !17, i64 432, !17, i64 440, !17, i64 448, !17, i64 456, !16, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !18, i64 532, !18, i64 533, !18, i64 534, !18, i64 535, !18, i64 536, !18, i64 537, !18, i64 538, !18, i64 539, !18, i64 540, !18, i64 541, !18, i64 542}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !16, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !10, i64 0}
!22 = !{!"_ZTSSt4pairIifE", !10, i64 0, !6, i64 4}
!23 = distinct !{!23, !20}


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