; 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 }
%"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.4 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__._ZN9starspace10EmbedModel10similarityERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_ = external hidden unnamed_addr constant [77 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

; 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)) #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isinff(float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN9starspace10EmbedModel10similarityERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca %"class.boost::numeric::ublas::matrix_row", align 8
  %9 = alloca i1, align 1
  %10 = alloca %"class.boost::numeric::ublas::matrix_row", align 8
  %11 = alloca i1, align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %15 = getelementptr inbounds %"struct.starspace::EmbedModel", ptr %14, i32 0, i32 3
  %16 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  %17 = getelementptr inbounds %"class.starspace::Args", ptr %16, i32 0, i32 11
  %18 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.9)
  store i1 false, ptr %9, align 1
  store i1 false, ptr %11, align 1
  br i1 %18, label %19, label %24

19:                                               ; preds = %3
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %20, i64 16, i1 false)
  store i1 true, ptr %9, align 1
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %21, i64 16, i1 false)
  store i1 true, ptr %11, align 1
  %22 = invoke noundef float @_ZN9starspace3dotEN5boost7numeric5ublas10matrix_rowINS2_6matrixIfNS2_15basic_row_majorImlEENS2_15unbounded_arrayIfSaIfEEEEEEESB_(ptr noundef %8, ptr noundef %10)
          to label %23 unwind label %42

23:                                               ; preds = %19
  br label %29

24:                                               ; preds = %3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = invoke noundef float @_ZN9starspace10EmbedModel6cosineERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %26)
          to label %28 unwind label %42

28:                                               ; preds = %24
  br label %29

29:                                               ; preds = %28, %23
  %30 = phi float [ %22, %23 ], [ %27, %28 ]
  %31 = load i1, ptr %11, align 1
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %33

33:                                               ; preds = %32, %29
  %34 = load i1, ptr %9, align 1
  br i1 %34, label %35, label %36

35:                                               ; preds = %33
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br label %36

36:                                               ; preds = %35, %33
  store float %30, ptr %7, align 4, !tbaa !9
  %37 = load float, ptr %7, align 4, !tbaa !9
  %38 = call noundef zeroext i1 @_ZSt5isnanf(float noundef %37)
  %39 = xor i1 %38, true
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  br label %53

41:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.4, i32 noundef 687, ptr noundef @__PRETTY_FUNCTION__._ZN9starspace10EmbedModel10similarityERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_) #7
  unreachable

42:                                               ; preds = %24, %19
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %12, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %13, align 4
  %46 = load i1, ptr %11, align 1
  br i1 %46, label %47, label %48

47:                                               ; preds = %42
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  br label %48

48:                                               ; preds = %47, %42
  %49 = load i1, ptr %9, align 1
  br i1 %49, label %50, label %51

50:                                               ; preds = %48
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  br label %51

51:                                               ; preds = %50, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %62

52:                                               ; No predecessors!
  br label %53

53:                                               ; preds = %52, %40
  %54 = load float, ptr %7, align 4, !tbaa !9
  %55 = call noundef zeroext i1 @_ZSt5isinff(float noundef %54)
  %56 = xor i1 %55, true
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  br label %60

58:                                               ; preds = %53
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.4, i32 noundef 688, ptr noundef @__PRETTY_FUNCTION__._ZN9starspace10EmbedModel10similarityERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_) #7
  unreachable

59:                                               ; No predecessors!
  br label %60

60:                                               ; preds = %59, %57
  %61 = load float, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret float %61

62:                                               ; preds = %51
  %63 = load ptr, ptr %12, align 8
  %64 = load i32, ptr %13, align 4
  %65 = insertvalue { ptr, i32 } poison, ptr %63, 0
  %66 = insertvalue { ptr, i32 } %65, i32 %64, 1
  resume { ptr, i32 } %66
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnanf(float noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, 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 }

@.str.4 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__._ZN9starspace10EmbedModel10similarityERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_ = external hidden unnamed_addr constant [77 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #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 uwtable
declare dso_local noundef float @_ZN9starspace3dotEN5boost7numeric5ublas10matrix_rowINS2_6matrixIfNS2_15basic_row_majorImlEENS2_15unbounded_arrayIfSaIfEEEEEEESB_(ptr noundef, ptr noundef) local_unnamed_addr #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: 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: mustprogress 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 noundef zeroext i1 @_ZSt5isinff(float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN9starspace10EmbedModel10similarityERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.boost::numeric::ublas::matrix_row", align 8
  %5 = alloca %"class.boost::numeric::ublas::matrix_row", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  %8 = getelementptr inbounds i8, ptr %7, i64 352
  %9 = tail call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull @.str.9)
  br i1 %9, label %10, label %12

10:                                               ; preds = %3
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false)
  %11 = invoke noundef float @_ZN9starspace3dotEN5boost7numeric5ublas10matrix_rowINS2_6matrixIfNS2_15basic_row_majorImlEENS2_15unbounded_arrayIfSaIfEEEEEEESB_(ptr noundef nonnull %4, ptr noundef nonnull %5)
          to label %14 unwind label %.critedge16

12:                                               ; preds = %3
  %13 = tail call noundef float @_ZN9starspace10EmbedModel6cosineERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
  br label %.critedge

14:                                               ; preds = %10
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  br label %.critedge

.critedge:                                        ; preds = %12, %14
  %15 = phi float [ %11, %14 ], [ %13, %12 ]
  %16 = call noundef zeroext i1 @_ZSt5isnanf(float noundef %15)
  br i1 %16, label %17, label %19

17:                                               ; preds = %.critedge
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.4, i32 noundef 687, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN9starspace10EmbedModel10similarityERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_) #6
  unreachable

.critedge16:                                      ; preds = %10
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @_ZN5boost7numeric5ublas10matrix_rowINS1_6matrixIfNS1_15basic_row_majorImlEENS1_15unbounded_arrayIfSaIfEEEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  resume { ptr, i32 } %18

19:                                               ; preds = %.critedge
  %20 = call noundef zeroext i1 @_ZSt5isinff(float noundef %15)
  br i1 %20, label %21, label %22

21:                                               ; preds = %19
  call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.4, i32 noundef 688, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN9starspace10EmbedModel10similarityERKN5boost7numeric5ublas10matrix_rowINS3_6matrixIfNS3_15basic_row_majorImlEENS3_15unbounded_arrayIfSaIfEEEEEEESE_) #6
  unreachable

22:                                               ; preds = %19
  ret float %15
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSt5isnanf(float noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }
attributes #6 = { 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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass