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

; 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.starspace::InternDataHandler" = type { ptr, %"class.std::shared_ptr", %"class.std::vector", i32, i32, i32, %"class.std::vector.0" }
%"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<starspace::ParseResults, std::allocator<starspace::ParseResults>>::_Vector_impl" }
%"struct.std::_Vector_base<starspace::ParseResults, std::allocator<starspace::ParseResults>>::_Vector_impl" = type { %"struct.std::_Vector_base<starspace::ParseResults, std::allocator<starspace::ParseResults>>::_Vector_impl_data" }
%"struct.std::_Vector_base<starspace::ParseResults, std::allocator<starspace::ParseResults>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"struct.starspace::ParseResults" = type { float, %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.25" }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = 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.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.8 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZNK9starspace16LayerDataHandler12getRandomRHSERSt6vectorISt4pairIifESaIS3_EE = external hidden unnamed_addr constant [77 x i8], align 1

; 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_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 uwtable
declare dso_local void @_ZNK9starspace16LayerDataHandler6insertERSt6vectorISt4pairIifESaIS3_EERKS5_f(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), float noundef) #2 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK9starspace16LayerDataHandler12getRandomRHSERSt6vectorISt4pairIifESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) unnamed_addr #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8
  %9 = getelementptr inbounds %"class.starspace::InternDataHandler", ptr %8, i32 0, i32 4
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %12, label %13

12:                                               ; preds = %2
  br label %15

13:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.8, i32 noundef 198, ptr noundef @__PRETTY_FUNCTION__._ZNK9starspace16LayerDataHandler12getRandomRHSERSt6vectorISt4pairIifESaIS3_EE) #5
  unreachable

14:                                               ; No predecessors!
  br label %15

15:                                               ; preds = %14, %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %16 = getelementptr inbounds %"class.starspace::InternDataHandler", ptr %8, i32 0, i32 2
  %17 = call i32 @rand() #6
  %18 = getelementptr inbounds %"class.starspace::InternDataHandler", ptr %8, i32 0, i32 4
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = srem i32 %17, %19
  %21 = sext i32 %20 to i64
  %22 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt6vectorIN9starspace12ParseResultsESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %21) #6
  store ptr %22, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %23 = call i32 @rand() #6
  %24 = sext i32 %23 to i64
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.starspace::ParseResults", ptr %25, i32 0, i32 3
  %27 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIifESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  %28 = urem i64 %24, %27
  %29 = trunc i64 %28 to i32
  store i32 %29, ptr %6, align 4, !tbaa !23
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorISt4pairIifESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %31 = getelementptr inbounds %"class.starspace::InternDataHandler", ptr %8, i32 0, i32 1
  %32 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %31) #6
  %33 = getelementptr inbounds %"class.starspace::Args", ptr %32, i32 0, i32 35
  %34 = load i32, ptr %33, align 4, !tbaa !24
  %35 = icmp eq i32 %34, 2
  br i1 %35, label %36, label %66

36:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !23
  br label %37

37:                                               ; preds = %62, %36
  %38 = load i32, ptr %7, align 4, !tbaa !23
  %39 = zext i32 %38 to i64
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.starspace::ParseResults", ptr %40, i32 0, i32 3
  %42 = call noundef i64 @_ZNKSt6vectorIS_ISt4pairIifESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %43 = icmp ult i64 %39, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %65

45:                                               ; preds = %37
  %46 = load i32, ptr %7, align 4, !tbaa !23
  %47 = load i32, ptr %6, align 4, !tbaa !23
  %48 = icmp ne i32 %46, %47
  br i1 %48, label %49, label %61

49:                                               ; preds = %45
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.starspace::ParseResults", ptr %51, i32 0, i32 3
  %53 = load i32, ptr %7, align 4, !tbaa !23
  %54 = zext i32 %53 to i64
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt4pairIifESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54) #6
  %56 = getelementptr inbounds %"class.starspace::InternDataHandler", ptr %8, i32 0, i32 1
  %57 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %56) #6
  %58 = getelementptr inbounds %"class.starspace::Args", ptr %57, i32 0, i32 21
  %59 = load double, ptr %58, align 8, !tbaa !31
  %60 = fptrunc double %59 to float
  call void @_ZNK9starspace16LayerDataHandler6insertERSt6vectorISt4pairIifESaIS3_EERKS5_f(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 8 dereferenceable(24) %55, float noundef %60)
  br label %61

61:                                               ; preds = %49, %45
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %7, align 4, !tbaa !23
  %64 = add i32 %63, 1
  store i32 %64, ptr %7, align 4, !tbaa !23
  br label %37, !llvm.loop !32

65:                                               ; preds = %44
  br label %78

66:                                               ; preds = %15
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.starspace::ParseResults", ptr %68, i32 0, i32 3
  %70 = load i32, ptr %6, align 4, !tbaa !23
  %71 = zext i32 %70 to i64
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt4pairIifESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %71) #6
  %73 = getelementptr inbounds %"class.starspace::InternDataHandler", ptr %8, i32 0, i32 1
  %74 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %73) #6
  %75 = getelementptr inbounds %"class.starspace::Args", ptr %74, i32 0, i32 21
  %76 = load double, ptr %75, align 8, !tbaa !31
  %77 = fptrunc double %76 to float
  call void @_ZNK9starspace16LayerDataHandler6insertERSt6vectorISt4pairIifESaIS3_EERKS5_f(ptr noundef nonnull align 8 dereferenceable(88) %8, ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(24) %72, float noundef %77)
  br label %78

78:                                               ; preds = %66, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

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 = { 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 #4 = { 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 #5 = { noreturn nounwind }
attributes #6 = { 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, !18, i64 52}
!10 = !{!"_ZTSN9starspace17InternDataHandlerE", !11, i64 8, !14, i64 24, !18, i64 48, !18, i64 52, !18, i64 56, !19, i64 64}
!11 = !{!"_ZTSSt10shared_ptrIN9starspace4ArgsEE", !12, i64 0}
!12 = !{!"_ZTSSt12__shared_ptrIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !13, i64 8}
!13 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!14 = !{!"_ZTSSt6vectorIN9starspace12ParseResultsESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN9starspace12ParseResultsESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN9starspace12ParseResultsESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN9starspace12ParseResultsESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"int", !7, i64 0}
!19 = !{!"_ZTSSt6vectorISt4pairIifESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt4pairIifESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt4pairIifESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt4pairIifESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!18, !18, i64 0}
!24 = !{!25, !18, i64 516}
!25 = !{!"_ZTSN9starspace4ArgsE", !26, i64 0, !26, i64 32, !26, i64 64, !26, i64 96, !26, i64 128, !26, i64 160, !26, i64 192, !26, i64 224, !26, i64 256, !26, i64 288, !26, i64 320, !26, i64 352, !7, i64 384, !29, i64 392, !29, i64 400, !29, i64 408, !29, i64 416, !29, i64 424, !29, i64 432, !29, i64 440, !29, i64 448, !29, i64 456, !28, i64 464, !18, i64 472, !18, i64 476, !18, i64 480, !18, i64 484, !18, i64 488, !18, i64 492, !18, i64 496, !18, i64 500, !18, i64 504, !18, i64 508, !18, i64 512, !18, i64 516, !18, i64 520, !18, i64 524, !18, i64 528, !30, i64 532, !30, i64 533, !30, i64 534, !30, i64 535, !30, i64 536, !30, i64 537, !30, i64 538, !30, i64 539, !30, i64 540, !30, i64 541, !30, i64 542}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"double", !7, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!25, !29, i64 448}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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

@.str.8 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__._ZNK9starspace16LayerDataHandler12getRandomRHSERSt6vectorISt4pairIifESaIS3_EE = external hidden unnamed_addr constant [77 x i8], align 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)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK9starspace16LayerDataHandler12getRandomRHSERSt6vectorISt4pairIifESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 52
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %7, label %6

6:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.8, i32 noundef 198, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK9starspace16LayerDataHandler12getRandomRHSERSt6vectorISt4pairIifESaIS3_EE) #4
  unreachable

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = tail call i32 @rand() #5
  %10 = load i32, ptr %3, align 4, !tbaa !5
  %11 = srem i32 %9, %10
  %12 = sext i32 %11 to i64
  %13 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNKSt6vectorIN9starspace12ParseResultsESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %12) #5
  %14 = tail call i32 @rand() #5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds i8, ptr %13, i64 56
  %17 = tail call noundef i64 @_ZNKSt6vectorIS_ISt4pairIifESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  %18 = urem i64 %15, %17
  %19 = trunc i64 %18 to i32
  tail call void @_ZNSt6vectorISt4pairIifESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  %22 = getelementptr inbounds i8, ptr %21, i64 516
  %23 = load i32, ptr %22, align 4, !tbaa !22
  %24 = icmp eq i32 %23, 2
  br i1 %24, label %.preheader, label %38

.preheader:                                       ; preds = %7
  %25 = tail call noundef i64 @_ZNKSt6vectorIS_ISt4pairIifESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  %.not15 = icmp eq i64 %25, 0
  br i1 %.not15, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %33
  %26 = phi i64 [ %35, %33 ], [ 0, %.preheader ]
  %.014 = phi i32 [ %34, %33 ], [ 0, %.preheader ]
  %.not = icmp eq i32 %.014, %19
  br i1 %.not, label %33, label %27

27:                                               ; preds = %.lr.ph
  %28 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt4pairIifESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %26) #5
  %29 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  %30 = getelementptr inbounds i8, ptr %29, i64 448
  %31 = load double, ptr %30, align 8, !tbaa !29
  %32 = fptrunc double %31 to float
  tail call void @_ZNK9starspace16LayerDataHandler6insertERSt6vectorISt4pairIifESaIS3_EERKS5_f(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %28, float noundef %32)
  br label %33

33:                                               ; preds = %.lr.ph, %27
  %34 = add i32 %.014, 1
  %35 = zext i32 %34 to i64
  %36 = tail call noundef i64 @_ZNKSt6vectorIS_ISt4pairIifESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  %37 = icmp ugt i64 %36, %35
  br i1 %37, label %.lr.ph, label %.loopexit, !llvm.loop !30

38:                                               ; preds = %7
  %39 = and i64 %18, 4294967295
  %40 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt4pairIifESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %39) #5
  %41 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  %42 = getelementptr inbounds i8, ptr %41, i64 448
  %43 = load double, ptr %42, align 8, !tbaa !29
  %44 = fptrunc double %43 to float
  tail call void @_ZNK9starspace16LayerDataHandler6insertERSt6vectorISt4pairIifESaIS3_EERKS5_f(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %40, float noundef %44)
  br label %.loopexit

.loopexit:                                        ; preds = %33, %.preheader, %38
  ret void
}

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress 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 = { 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 #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }
attributes #5 = { 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, !17, i64 52}
!6 = !{!"_ZTSN9starspace17InternDataHandlerE", !7, i64 8, !13, i64 24, !17, i64 48, !17, i64 52, !17, i64 56, !18, i64 64}
!7 = !{!"_ZTSSt10shared_ptrIN9starspace4ArgsEE", !8, i64 0}
!8 = !{!"_ZTSSt12__shared_ptrIN9starspace4ArgsELN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0, !12, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !9, i64 0}
!13 = !{!"_ZTSSt6vectorIN9starspace12ParseResultsESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN9starspace12ParseResultsESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN9starspace12ParseResultsESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN9starspace12ParseResultsESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!17 = !{!"int", !10, i64 0}
!18 = !{!"_ZTSSt6vectorISt4pairIifESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt4pairIifESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt4pairIifESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt4pairIifESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!22 = !{!23, !17, i64 516}
!23 = !{!"_ZTSN9starspace4ArgsE", !24, i64 0, !24, i64 32, !24, i64 64, !24, i64 96, !24, i64 128, !24, i64 160, !24, i64 192, !24, i64 224, !24, i64 256, !24, i64 288, !24, i64 320, !24, i64 352, !10, i64 384, !27, i64 392, !27, i64 400, !27, i64 408, !27, i64 416, !27, i64 424, !27, i64 432, !27, i64 440, !27, i64 448, !27, i64 456, !26, i64 464, !17, i64 472, !17, i64 476, !17, i64 480, !17, i64 484, !17, i64 488, !17, i64 492, !17, i64 496, !17, i64 500, !17, i64 504, !17, i64 508, !17, i64 512, !17, i64 516, !17, i64 520, !17, i64 524, !17, i64 528, !28, i64 532, !28, i64 533, !28, i64 534, !28, i64 535, !28, i64 536, !28, i64 537, !28, i64 538, !28, i64 539, !28, i64 540, !28, i64 541, !28, i64 542}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !26, i64 8, !10, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!26 = !{!"long", !10, i64 0}
!27 = !{!"double", !10, i64 0}
!28 = !{!"bool", !10, i64 0}
!29 = !{!23, !27, i64 448}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


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