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

; 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.boost::numeric::ublas::matrix_row" = type { %"class.boost::numeric::ublas::matrix_reference", i64 }
%"class.boost::numeric::ublas::matrix_reference" = type { ptr }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.26" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.84" = type { ptr }
%"struct.std::pair" = type { i32, float }
%class.anon.85 = type { ptr }
%"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::EmbedModel" = type { %"class.std::shared_ptr.0", %"class.std::shared_ptr.3", %"class.std::shared_ptr.3", %"class.std::shared_ptr", %"class.std::vector", %"class.std::vector" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { 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" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_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 }>
%"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] }

@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1

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: 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 i32 @_ZNK9starspace10Dictionary6nwordsEv(ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

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

; 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: 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_accessIN9starspace12SparseLinearIfEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN9starspace3dotEN5boost7numeric5ublas10matrix_rowINS2_6matrixIfNS2_15basic_row_majorImlEENS2_15unbounded_arrayIfSaIfEEEEEEESB_(ptr noundef, ptr noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9starspace6MatrixIfEcvN5boost7numeric5ublas10matrix_rowINS4_6matrixIfNS4_15basic_row_majorImlEENS4_15unbounded_arrayIfSaIfEEEEEEEEv(ptr dead_on_unwind noalias writable sret(%"class.boost::numeric::ublas::matrix_row") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; 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) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9starspace10EmbedModel3kNNESt10shared_ptrINS_12SparseLinearIfEEENS_6MatrixIfEEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.24") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  %13 = alloca %"class.std::allocator.26", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.std::pair", align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca %class.anon.85, align 8
  %24 = alloca %"struct.starspace::Matrix", align 8
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca %"class.boost::numeric::ublas::matrix_row", align 8
  %28 = alloca i1, align 1
  %29 = alloca %"class.boost::numeric::ublas::matrix_row", align 8
  %30 = alloca i1, align 1
  %31 = alloca %"struct.std::pair", align 4
  %32 = alloca ptr, align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %35 = alloca %"struct.std::pair", align 4
  store ptr %0, ptr %6, 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 i32 %4, ptr %10, align 4, !tbaa !9
  %36 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %37 = getelementptr inbounds %"struct.starspace::EmbedModel", ptr %36, i32 0, i32 0
  %38 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10DictionaryELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %37) #7
  %39 = call noundef i32 @_ZNK9starspace10Dictionary6nwordsEv(ptr noundef nonnull align 8 dereferenceable(88) %38)
  %40 = getelementptr inbounds %"struct.starspace::EmbedModel", ptr %36, i32 0, i32 0
  %41 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10DictionaryELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %40) #7
  %42 = call noundef i32 @_ZNK9starspace10Dictionary7nlabelsEv(ptr noundef nonnull align 8 dereferenceable(88) %41)
  %43 = add nsw i32 %39, %42
  store i32 %43, ptr %11, align 4, !tbaa !9
  store i1 false, ptr %12, align 1
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  call void @_ZNSaISt4pairIifEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNSt6vectorISt4pairIifESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %46, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %47 unwind label %57

47:                                               ; preds = %5
  call void @_ZNSt15__new_allocatorISt4pairIifEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store ptr %0, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  %49 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #7
  %50 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.84", ptr %17, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %51 = load ptr, ptr %16, align 8, !tbaa !5
  %52 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #7
  %53 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.84", ptr %18, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  br label %54

54:                                               ; preds = %66, %47
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br i1 %55, label %61, label %56

56:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %72

57:                                               ; preds = %5
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %14, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %15, align 4
  call void @_ZNSt15__new_allocatorISt4pairIifEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %182

61:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %62 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  store ptr %62, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 -1, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store double -1.000000e+00, ptr %22, align 8, !tbaa !11
  invoke void @_ZNSt4pairIifEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %63 unwind label %68

63:                                               ; preds = %61
  %64 = load ptr, ptr %19, align 8, !tbaa !5
  %65 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIifEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %64, ptr noundef nonnull align 4 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %66

66:                                               ; preds = %63
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %54

68:                                               ; preds = %61
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %14, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %181

72:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %73 = getelementptr inbounds %class.anon.85, ptr %23, i32 0, i32 0
  store ptr %0, ptr %73, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #7
  invoke void @_ZN9starspace6MatrixIfEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %74 unwind label %80

74:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %147, %74
  %76 = load i32, ptr %25, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %84, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %152

80:                                               ; preds = %72
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %14, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %15, align 4
  br label %178

84:                                               ; preds = %75
  %85 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace12SparseLinearIfEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #7
  %86 = load i32, ptr %25, align 4, !tbaa !9
  invoke void @_ZN9starspace12SparseLinearIfE7forwardEiRNS_6MatrixIfEE(ptr noundef nonnull align 8 dereferenceable(40) %85, i32 noundef %86, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %87 unwind label %119

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %88 = getelementptr inbounds %"struct.starspace::EmbedModel", ptr %36, i32 0, i32 3
  %89 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %88) #7
  %90 = getelementptr inbounds %"class.starspace::Args", ptr %89, i32 0, i32 11
  store i1 false, ptr %28, align 1
  store i1 false, ptr %30, align 1
  %91 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %90, ptr noundef @.str.9)
          to label %92 unwind label %123

92:                                               ; preds = %87
  br i1 %91, label %93, label %98

93:                                               ; preds = %92
  invoke void @_ZN9starspace6MatrixIfEcvN5boost7numeric5ublas10matrix_rowINS4_6matrixIfNS4_15basic_row_majorImlEENS4_15unbounded_arrayIfSaIfEEEEEEEEv(ptr dead_on_unwind writable sret(%"class.boost::numeric::ublas::matrix_row") align 8 %27, ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %94 unwind label %123

94:                                               ; preds = %93
  store i1 true, ptr %28, align 1
  invoke void @_ZN9starspace6MatrixIfEcvN5boost7numeric5ublas10matrix_rowINS4_6matrixIfNS4_15basic_row_majorImlEENS4_15unbounded_arrayIfSaIfEEEEEEEEv(ptr dead_on_unwind writable sret(%"class.boost::numeric::ublas::matrix_row") align 8 %29, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %95 unwind label %127

95:                                               ; preds = %94
  store i1 true, ptr %30, align 1
  %96 = invoke noundef float @_ZN9starspace3dotEN5boost7numeric5ublas10matrix_rowINS2_6matrixIfNS2_15basic_row_majorImlEENS2_15unbounded_arrayIfSaIfEEEEEEESB_(ptr noundef %27, ptr noundef %29)
          to label %97 unwind label %131

97:                                               ; preds = %95
  br label %101

98:                                               ; preds = %92
  %99 = invoke noundef float @_ZN9starspace10EmbedModel6cosineERNS_6MatrixIfEES3_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %24)
          to label %100 unwind label %131

100:                                              ; preds = %98
  br label %101

101:                                              ; preds = %100, %97
  %102 = phi float [ %96, %97 ], [ %99, %100 ]
  %103 = load i1, ptr %30, align 1
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  br label %105

105:                                              ; preds = %104, %101
  %106 = load i1, ptr %28, align 1
  br i1 %106, label %107, label %108

107:                                              ; preds = %105
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  br label %108

108:                                              ; preds = %107, %105
  store float %102, ptr %26, align 4, !tbaa !13
  %109 = load float, ptr %26, align 4, !tbaa !13
  %110 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIifESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %111 = getelementptr inbounds %"struct.std::pair", ptr %110, i32 0, i32 1
  %112 = load float, ptr %111, align 4, !tbaa !15
  %113 = fcmp ogt float %109, %112
  br i1 %113, label %114, label %146

114:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  invoke void @_ZNSt4pairIifEC2IRiRfTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %31, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %115 unwind label %142

115:                                              ; preds = %114
  %116 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIifESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  %117 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIifEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %116, ptr noundef nonnull align 4 dereferenceable(8) %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  invoke void @"_ZZN9starspace10EmbedModel3kNNESt10shared_ptrINS_12SparseLinearIfEEENS_6MatrixIfEEiENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %118 unwind label %123

118:                                              ; preds = %115
  br label %146

119:                                              ; preds = %84
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %15, align 4
  br label %151

123:                                              ; preds = %115, %93, %87
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %14, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %15, align 4
  br label %150

127:                                              ; preds = %94
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %14, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %15, align 4
  br label %138

131:                                              ; preds = %98, %95
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %14, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %15, align 4
  %135 = load i1, ptr %30, align 1
  br i1 %135, label %136, label %137

136:                                              ; preds = %131
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #7
  br label %137

137:                                              ; preds = %136, %131
  br label %138

138:                                              ; preds = %137, %127
  %139 = load i1, ptr %28, align 1
  br i1 %139, label %140, label %141

140:                                              ; preds = %138
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #7
  br label %141

141:                                              ; preds = %140, %138
  br label %150

142:                                              ; preds = %114
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %14, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %150

146:                                              ; preds = %118, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %25, align 4, !tbaa !9
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %25, align 4, !tbaa !9
  br label %75, !llvm.loop !17

150:                                              ; preds = %142, %141, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %151

151:                                              ; preds = %150, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #7
  br label %178

152:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  store ptr %0, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %153 = load ptr, ptr %32, align 8, !tbaa !5
  %154 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %153) #7
  %155 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.84", ptr %33, i32 0, i32 0
  store ptr %154, ptr %155, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %156 = load ptr, ptr %32, align 8, !tbaa !5
  %157 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %156) #7
  %158 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.84", ptr %34, i32 0, i32 0
  store ptr %157, ptr %158, align 8
  br label %159

159:                                              ; preds = %174, %152
  %160 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34) #7
  br i1 %160, label %162, label %161

161:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %176

162:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %163 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %163, i64 8, i1 false)
  %164 = getelementptr inbounds %"struct.std::pair", ptr %35, i32 0, i32 0
  %165 = load i32, ptr %164, align 4, !tbaa !19
  %166 = icmp eq i32 %165, -1
  br i1 %166, label %172, label %167

167:                                              ; preds = %162
  %168 = getelementptr inbounds %"struct.std::pair", ptr %35, i32 0, i32 1
  %169 = load float, ptr %168, align 4, !tbaa !15
  %170 = fpext float %169 to double
  %171 = fcmp oeq double %170, -1.000000e+00
  br i1 %171, label %172, label %173

172:                                              ; preds = %167, %162
  call void @abort() #8
  unreachable

173:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %174

174:                                              ; preds = %173
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %33) #7
  br label %159

176:                                              ; preds = %161
  store i1 true, ptr %12, align 1
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %177 = load i1, ptr %12, align 1
  br i1 %177, label %180, label %179

178:                                              ; preds = %151, %80
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %181

179:                                              ; preds = %176
  call void @_ZNSt6vectorISt4pairIifESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %180

180:                                              ; preds = %179, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  ret void

181:                                              ; preds = %178, %68
  call void @_ZNSt6vectorISt4pairIifESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #7
  br label %182

182:                                              ; preds = %181, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %14, align 8
  %185 = load i32, ptr %15, align 4
  %186 = insertvalue { ptr, i32 } poison, ptr %184, 0
  %187 = insertvalue { ptr, i32 } %186, i32 %185, 1
  resume { ptr, i32 } %187
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIifEC2IRiRfTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(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 void @"_ZZN9starspace10EmbedModel3kNNESt10shared_ptrINS_12SparseLinearIfEEENS_6MatrixIfEEiENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: noreturn nounwind
declare void @abort() #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn 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 = { nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !14, i64 4}
!16 = !{!"_ZTSSt4pairIifE", !10, i64 0, !14, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!16, !10, i64 0}


; 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.boost::numeric::ublas::matrix_row" = type { %"class.boost::numeric::ublas::matrix_reference", i64 }
%"class.boost::numeric::ublas::matrix_reference" = type { ptr }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.26" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.84" = type { ptr }
%"struct.std::pair" = type { i32, float }
%class.anon.85 = type { ptr }
%"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 }

@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1

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 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 i32 @_ZNK9starspace10Dictionary6nwordsEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

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

; 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 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_accessIN9starspace12SparseLinearIfEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN9starspace3dotEN5boost7numeric5ublas10matrix_rowINS2_6matrixIfNS2_15basic_row_majorImlEENS2_15unbounded_arrayIfSaIfEEEEEEESB_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9starspace6MatrixIfEcvN5boost7numeric5ublas10matrix_rowINS4_6matrixIfNS4_15basic_row_majorImlEENS4_15unbounded_arrayIfSaIfEEEEEEEEv(ptr dead_on_unwind noalias writable sret(%"class.boost::numeric::ublas::matrix_row") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9starspace10EmbedModel3kNNESt10shared_ptrINS_12SparseLinearIfEEENS_6MatrixIfEEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector.24") align 8 %0, ptr noundef nonnull align 8 dereferenceable(112) %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::allocator.26", align 1
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca %class.anon.85, align 8
  %15 = alloca %"struct.starspace::Matrix", align 8
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca %"class.boost::numeric::ublas::matrix_row", align 8
  %19 = alloca %"class.boost::numeric::ublas::matrix_row", align 8
  %20 = alloca %"struct.std::pair", align 4
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.84", align 8
  store i32 %4, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %23 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10DictionaryELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %24 = tail call noundef i32 @_ZNK9starspace10Dictionary6nwordsEv(ptr noundef nonnull align 8 dereferenceable(88) %23)
  %25 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace10DictionaryELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #6
  %26 = tail call noundef i32 @_ZNK9starspace10Dictionary7nlabelsEv(ptr noundef nonnull align 8 dereferenceable(88) %25)
  %27 = add nsw i32 %26, %24
  store i32 %27, ptr %7, align 4, !tbaa !5
  %28 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaISt4pairIifEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorISt4pairIifESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %30, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %31 unwind label %35

31:                                               ; preds = %5
  call void @_ZNSt15__new_allocatorISt4pairIifEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %32 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %32, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %33 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %33, ptr %10, align 8
  %34 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %34, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store ptr %0, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #6
  invoke void @_ZN9starspace6MatrixIfEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %41 unwind label %48

35:                                               ; preds = %5
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt4pairIifEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %98

.lr.ph:                                           ; preds = %31, %.lr.ph
  %37 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  store i32 -1, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  store double -1.000000e+00, ptr %13, align 8, !tbaa !11
  call void @_ZNSt4pairIifEC2IidTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %38 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIifEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %37, ptr noundef nonnull align 4 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %40, label %.lr.ph, label %._crit_edge

41:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store i32 0, ptr %16, align 4, !tbaa !5
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph34, label %._crit_edge35

.lr.ph34:                                         ; preds = %41
  %44 = getelementptr inbounds i8, ptr %1, i64 48
  br label %50

._crit_edge35:                                    ; preds = %83, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %45 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %45, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  %46 = call ptr @_ZNSt6vectorISt4pairIifESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %46, ptr %22, align 8
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %47, label %.lr.ph37, label %._crit_edge38

48:                                               ; preds = %._crit_edge
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %97

50:                                               ; preds = %.lr.ph34, %83
  %51 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace12SparseLinearIfEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %52 = load i32, ptr %16, align 4, !tbaa !5
  invoke void @_ZN9starspace12SparseLinearIfE7forwardEiRNS_6MatrixIfEE(ptr noundef nonnull align 8 dereferenceable(40) %51, i32 noundef %52, ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %53 unwind label %72

53:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %54 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %44) #6
  %55 = getelementptr inbounds i8, ptr %54, i64 352
  %56 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %55, ptr noundef nonnull @.str.9)
  br i1 %56, label %57, label %61

57:                                               ; preds = %53
  invoke void @_ZN9starspace6MatrixIfEcvN5boost7numeric5ublas10matrix_rowINS4_6matrixIfNS4_15basic_row_majorImlEENS4_15unbounded_arrayIfSaIfEEEEEEEEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::numeric::ublas::matrix_row") align 8 %18, ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %58 unwind label %74

58:                                               ; preds = %57
  invoke void @_ZN9starspace6MatrixIfEcvN5boost7numeric5ublas10matrix_rowINS4_6matrixIfNS4_15basic_row_majorImlEENS4_15unbounded_arrayIfSaIfEEEEEEEEv(ptr dead_on_unwind nonnull writable sret(%"class.boost::numeric::ublas::matrix_row") align 8 %19, ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %59 unwind label %76

59:                                               ; preds = %58
  %60 = invoke noundef float @_ZN9starspace3dotEN5boost7numeric5ublas10matrix_rowINS2_6matrixIfNS2_15basic_row_majorImlEENS2_15unbounded_arrayIfSaIfEEEEEEESB_(ptr noundef nonnull %18, ptr noundef nonnull %19)
          to label %63 unwind label %78

61:                                               ; preds = %53
  %62 = invoke noundef float @_ZN9starspace10EmbedModel6cosineERNS_6MatrixIfEES3_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %.critedge unwind label %80

63:                                               ; preds = %59
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %.critedge

.critedge:                                        ; preds = %61, %63
  %64 = phi float [ %60, %63 ], [ %62, %61 ]
  store float %64, ptr %17, align 4, !tbaa !13
  %65 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIifESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %66 = getelementptr inbounds i8, ptr %65, i64 4
  %67 = load float, ptr %66, align 4, !tbaa !15
  %68 = fcmp ogt float %64, %67
  br i1 %68, label %69, label %83

69:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  call void @_ZNSt4pairIifEC2IRiRfTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %70 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIifESaIS1_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %71 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt4pairIifEaSEOS0_(ptr noundef nonnull align 4 dereferenceable(8) %70, ptr noundef nonnull align 4 dereferenceable(8) %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  invoke void @"_ZZN9starspace10EmbedModel3kNNESt10shared_ptrINS_12SparseLinearIfEEENS_6MatrixIfEEiENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %83 unwind label %74

72:                                               ; preds = %50
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %89

74:                                               ; preds = %69, %57
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %88

76:                                               ; preds = %58
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %82

78:                                               ; preds = %59
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  br label %82

80:                                               ; preds = %61
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %88

82:                                               ; preds = %78, %76
  %.pn.ph = phi { ptr, i32 } [ %77, %76 ], [ %79, %78 ]
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #6
  br label %88

83:                                               ; preds = %69, %.critedge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  %84 = load i32, ptr %16, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %16, align 4, !tbaa !5
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %50, label %._crit_edge35, !llvm.loop !17

88:                                               ; preds = %80, %82, %74
  %.pn23 = phi { ptr, i32 } [ %75, %74 ], [ %.pn.ph, %82 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  br label %89

89:                                               ; preds = %88, %72
  %.pn23.pn = phi { ptr, i32 } [ %.pn23, %88 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #6
  br label %97

._crit_edge38:                                    ; preds = %94, %._crit_edge35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  call void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  ret void

.lr.ph37:                                         ; preds = %._crit_edge35, %94
  %90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %.sroa.0.0.copyload = load i32, ptr %90, align 4
  %91 = icmp eq i32 %.sroa.0.0.copyload, -1
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 4
  %.sroa.4.0.copyload = load float, ptr %.sroa.4.0..sroa_idx, align 4
  %92 = fcmp oeq float %.sroa.4.0.copyload, -1.000000e+00
  %or.cond = select i1 %91, i1 true, i1 %92
  br i1 %or.cond, label %93, label %94

93:                                               ; preds = %.lr.ph37
  call void @abort() #7
  unreachable

94:                                               ; preds = %.lr.ph37
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIifESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %96 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIifESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %96, label %.lr.ph37, label %._crit_edge38

97:                                               ; preds = %89, %48
  %.pn23.pn.pn = phi { ptr, i32 } [ %.pn23.pn, %89 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @_ZNSt6vectorISt4pairIifESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %98

98:                                               ; preds = %97, %35
  %.pn23.pn.pn.pn = phi { ptr, i32 } [ %.pn23.pn.pn, %97 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn23.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIifEC2IRiRfTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(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 void @"_ZZN9starspace10EmbedModel3kNNESt10shared_ptrINS_12SparseLinearIfEEENS_6MatrixIfEEiENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9starspace6MatrixIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 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 = { 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 #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 = { 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 = { noreturn 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 = { nounwind }
attributes #7 = { noreturn 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 = !{!"int", !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 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !14, i64 4}
!16 = !{!"_ZTSSt4pairIifE", !6, i64 0, !14, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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